🐛 Fix color gradient on text positioned incorrectly (#6253)

This commit is contained in:
Aitor Moreno 2025-04-11 11:36:31 +02:00 committed by GitHub
parent ee5596067e
commit 87650de9bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -61,9 +61,9 @@
embed (embed/use-data-uris uris)
transform (gsh/transform-str shape)
pat-props #js {:patternUnits "userSpaceOnUse"
:x x
:y y
pat-props #js {:patternUnits (if (= :text type) "objectBoundingBox" "userSpaceOnUse")
:x (when-not (= :text type) x)
:y (when-not (= :text type) y)
:width width
:height height}