mirror of
https://github.com/penpot/penpot.git
synced 2025-02-24 15:56:11 -05:00
🐛 Fixing texts with multiple strokes and fills
This commit is contained in:
parent
cf09ff8dc3
commit
d6820a69d4
2 changed files with 2 additions and 2 deletions
|
@ -329,7 +329,6 @@
|
||||||
|
|
||||||
props (cond
|
props (cond
|
||||||
(and last-stroke? url-fill?)
|
(and last-stroke? url-fill?)
|
||||||
;; TODO: check this zero
|
|
||||||
(obj/set! props "fill" (str "url(#fill-0-" render-id ")"))
|
(obj/set! props "fill" (str "url(#fill-0-" render-id ")"))
|
||||||
|
|
||||||
(and last-stroke? one-fill?)
|
(and last-stroke? one-fill?)
|
||||||
|
|
|
@ -59,7 +59,8 @@
|
||||||
:fontStyle (:font-style data)
|
:fontStyle (:font-style data)
|
||||||
:direction (if (:rtl data) "rtl" "ltr")
|
:direction (if (:rtl data) "rtl" "ltr")
|
||||||
:whiteSpace "pre"}
|
:whiteSpace "pre"}
|
||||||
(obj/set! "fill" (str "url(#fill-" index "-" render-id ")")))})]
|
(obj/set! "fill" (str "url(#fill-" index "-" render-id ")")))})
|
||||||
|
shape (assoc shape :fills (:fills data))]
|
||||||
[:& shape-custom-strokes {:shape shape}
|
[:& shape-custom-strokes {:shape shape}
|
||||||
[:> :text props (:text data)]]))]]))
|
[:> :text props (:text data)]]))]]))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue