nanosvg icon indicating copy to clipboard operation
nanosvg copied to clipboard

Don't do inverse of xform twice.

Open Joshua-Ashton opened this issue 6 years ago • 3 comments

These two lines caused a massive issue in my application as they caused the actual gradient co-ordinates I needed to be changed into garbage. Commenting the extra inverse completely solved the issue.

Is there a reason that he inverse is done here, am I missing something...?

Thanks!

  • Josh

Joshua-Ashton avatar Sep 07 '17 19:09 Joshua-Ashton

I cannot parse your question :)

You need to explain a bit more what you were trying to do and what you were expecting to see. Can you post a snippet of code?

memononen avatar Sep 08 '17 18:09 memononen

When getting data back from nsvg, the gradients would all be like: -0.512312345, 1.212312 in the xform, which is data that I cannot use, I was expecting to see 354.xxxx, 380.xxx etc. Removing this extra inverse fixed the issue.

Joshua-Ashton avatar Sep 10 '17 20:09 Joshua-Ashton

No, these lines are in right place. Look for mistake somewhere else.

SergeySlice avatar Jul 08 '18 05:07 SergeySlice