mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Merge pull request #1275 from weaveworks/1144-svg-font
Fix exported SVG for SVG viewers
This commit is contained in:
@@ -25,6 +25,7 @@ function setInlineStyles(svg, target, emptySvgDeclarationComputed) {
|
||||
}
|
||||
});
|
||||
targetEl.setAttribute('style', computedStyleStr);
|
||||
targetEl.removeAttribute('data-reactid');
|
||||
}
|
||||
|
||||
function traverse(obj) {
|
||||
@@ -60,7 +61,11 @@ function setInlineStyles(svg, target, emptySvgDeclarationComputed) {
|
||||
}
|
||||
|
||||
// set font
|
||||
target.setAttribute('style', 'font-family: "Roboto", sans-serif;');
|
||||
target.setAttribute('style', 'font-family: Arial;');
|
||||
|
||||
// set view box
|
||||
target.setAttribute('width', svg.clientWidth);
|
||||
target.setAttribute('height', svg.clientHeight);
|
||||
}
|
||||
|
||||
function download(source, name) {
|
||||
|
||||
Reference in New Issue
Block a user