Closed PrimaryFeather closed 1 year ago
Very good, thanks for report. I'll look into this before too long, but that might be a couple of weeks... I have a bit of a vacation coming up :-)
No worries, this is not a pressing issue on my side. Whenever you find the time! Enjoy your vacation! π
Yep, it's definitely broken. It looks like I used RenderContext
for something other than a context for rendering - I'm storing the RenderContext
on group nodes, which certainly seems wrong. The fix should be cleaning that up, by making RenderContext
just have this single responsibility.
OK, I just published it as 1.1.18-rc.2. The fix was pretty straightforward, so I have high confidence, but let me know if it works with any other images where you saw this problem. The fix could have been one line, but along the way I made this area of the code less confusing.
That sounds great, Bill!
I literally had just one SVG file that showed the issue, and after upgrading to RC2 it now displays its colors just the way it should. Perfect! π
Thanks a lot for the fix! π
Since I opened up the issue in the first place, I believe I should also close it, now that everything works just fine. βΊοΈ
I think I found another color related problem that only pops up in specific situations.
When an element that uses
currentColor
is transformed, that color is no longer used. At least that's what happens in this example:This code displays two circles, but one of them is wrapped in a group that contains a
transform
attribute. The expectation would be that the two circles have the same color; instead, the code is rendered like this:When I remove the transformation, the colors end up correctly.
Or is this maybe a known limitation that I overlooked in the README file? If so, sorry for the noise. π In any case: thanks a lot in advance for looking into it! π