🐛 Fix color gradient on text positioned incorrectly (#6253)
Some checks are pending
Commit Message Check / Check Commit Message (push) Waiting to run

This commit is contained in:
Aitor Moreno
2025-04-11 11:36:31 +02:00
committed by GitHub
parent ee5596067e
commit 87650de9bc
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}