pixi-essentials
pixi-essentials copied to clipboard
Cannot render svg correctly
Update: I dig into it a little bit and found that the
GraphicsDataparsed bySVGScenewill contain severalpointswhich isNaN, which is likely the reason that makes the filling wrong
Target:

Rendered:

The background color and the rotation angle can be safely ignored, the main issue lands on the incorrectness of filling the red color
Source SVG: clampy.svg.zip
I also encountered the same problem, which is correct in the image rendering, but app.stage.children[0].children[0].root.children[0].children[0].children[0].children[0].geometry.points is wrong.
From 882 to 889 are all NaN, which will affect my calculations.
point.svg.zip