Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arc fill color is abnormal #2091

Open
heaxo opened this issue Nov 6, 2024 · 0 comments
Open

Arc fill color is abnormal #2091

heaxo opened this issue Nov 6, 2024 · 0 comments

Comments

@heaxo
Copy link

heaxo commented Nov 6, 2024

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.

image

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; }); }

aaa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant