Skip to content

Arc fill color is abnormal #2091

@heaxo

Description

@heaxo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions