Closed stanio closed 8 months ago
This should be fixed in the latest snapshot
Trying out current 1.5.0-SNAPSHOT (gradlew --refresh-dependencies
→ 1.5.0-20240304.002615-19
) – the outer stroke is now fully visible but a different defect appears. Looks like the overall mask is scaled (enlarged):
mask-0 | mask-1 | mask-2 |
---|---|---|
Notice the circular hole is bigger than the debug overlay that uses the same path as for the mask. A thick semi-transparent ring is also visible.
This is related to #66. I have a fix locally, will push once #67 is resolved. I noticed that the library I am using to compare images in tests doesn’t handle transparent pixels and thus multiple tests have failed silently for the past few versions. I need to catch up with those before work on subpixel alignment can be continued.
Just tried with a current 1.5.0-SNAPSHOT – it now (currently) appears just right.
It appears
<mask>
area doesn't get expanded beyond the bounding box of the object it is applied to:It could "shrink" inside the object's bounding box, though. The most apparent effect is that a stroke that goes beyond the object's bounding box gets clipped from view.
mask-0.svg
mask-1.svg
mask-2.svg
Initially found in https://github.com/weisJ/jsvg/issues/64#issuecomment-1974806550