Skip to content

Commit

Permalink
Add optimize rendering flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan-Lyashenko committed Oct 22, 2018
1 parent 3f8d53d commit b3db810
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/js2flowchart.js
Original file line number Diff line number Diff line change
Expand Up @@ -41032,7 +41032,7 @@ var SVGBase = exports.SVGBase = function SVGBase() {
w = _calculateDimensions.w,
h = _calculateDimensions.h;

return '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" \n width="' + w + '" height="' + h + '">\n ' + this.printChildren(config) + '\n </svg>';
return '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" \n width="' + w + '" height="' + h + '" shape-rendering="optimizeSpeed">\n ' + this.printChildren(config) + '\n </svg>';
}
};
};
Expand Down
2 changes: 1 addition & 1 deletion dist/js2flowchart.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js2flowchart",
"version": "1.1.6",
"version": "1.1.7",
"author": "Bohdan Liashenko",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/render/svg/SVGBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const SVGBase = () => {

return `<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
width="${w}" height="${h}">
width="${w}" height="${h}" shape-rendering="optimizeSpeed">
${this.printChildren(config)}
</svg>`;
}
Expand Down

0 comments on commit b3db810

Please sign in to comment.