You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I imported an svg with an arc, the fill color appeared as shown in the picture. Is there any setting I am missing?
I thought it should fill the entire image, but it doesn't.
The left side is what it looks like after I fill it, and the right side is my original svg image
Here is part of my code to import svg function loadSVG() { var svgFileUrl = 'aaa.svg'; project.importSVG(svgFileUrl, function(item) { if (item instanceof Group) { item.children.forEach(function(child) { if (child instanceof Path && child.bounds.width > 5000) { child.remove(); } }); } if (item instanceof Path) { item.flatten(1); if (!item.closed) { item.closed = true; } } item.position = view.center; }); }
The text was updated successfully, but these errors were encountered:
After I imported an svg with an arc, the fill color appeared as shown in the picture. Is there any setting I am missing?
I thought it should fill the entire image, but it doesn't.
The left side is what it looks like after I fill it, and the right side is my original svg image
Here is part of my code to import svg
function loadSVG() { var svgFileUrl = 'aaa.svg'; project.importSVG(svgFileUrl, function(item) { if (item instanceof Group) { item.children.forEach(function(child) { if (child instanceof Path && child.bounds.width > 5000) { child.remove(); } }); } if (item instanceof Path) { item.flatten(1); if (!item.closed) { item.closed = true; } } item.position = view.center; }); }
The text was updated successfully, but these errors were encountered: