Closed yisibl closed 2 months ago
@LaurenzV
Yes, I'll take a look. It's probably also because of the view box, like for the pattern.
@RazrFalcon Both issues are regressions from the tree viewbox flattening that was implemented recently. 👀 It works fine on previous commits:
The issue seems to be that the abs_transform
of the children doesn't include the viewbox transform that is applied in the beginning.
... but it's my fault after all, I'm not propagating the abs transforms when creating the marker's group:
Will try to fix tomorrow or so.
Meh... abs_transform
again. Will see what I can do to avoid it.
But also I though that usvg
doesn't rely on abs_transform
except in one place during text layouting. I guess I was wrong.
And also, we have to add tests for those cases to make sure we would not break them in the future.
PS: I'm open to any ideas about how to make abs_transform
implementation easier. We cannot calculate it on demand, because we would have to have a reference to the parent node somehow. And we can't calculate it after parsing (like bboxes), because it's needed during text layouting.
I have to rely on it unfortunately... But yes, I will add a test case for it.
Test SVG
Output
See also: https://gitlab.com/inkscape/inkscape/-/issues/3957