pixi-essentials icon indicating copy to clipboard operation
pixi-essentials copied to clipboard

Cannot render svg correctly

Open carefree0910 opened this issue 4 years ago • 1 comments

Update: I dig into it a little bit and found that the GraphicsData parsed by SVGScene will contain several points which is NaN, which is likely the reason that makes the filling wrong

Target: clampy

Rendered: image

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

carefree0910 avatar Dec 07 '21 11:12 carefree0910

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

penggelies07 avatar Dec 11 '21 11:12 penggelies07