0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 16:30:37 -05:00

🐛 Fix strokes class

This commit is contained in:
Alejandro Alonso 2022-11-28 09:56:52 +01:00
parent 667fabbdc5
commit 427e43585c

View file

@ -431,6 +431,7 @@
stroke-id (dm/fmt "strokes-%" (:id shape))
stroke-props (-> (obj/create)
(obj/set! "id" stroke-id)
(obj/set! "class" "strokes")
(cond->
;; There is a blur
(and (:blur shape) (not (cph/frame-shape? shape)) (-> shape :blur :hidden not))
@ -442,7 +443,7 @@
[:*
(when
(d/not-empty? (:strokes shape))
[:> :g.strokes stroke-props
[:> :g stroke-props
(for [[index value] (-> (d/enumerate (:strokes shape)) reverse)]
(let [props (build-stroke-props index child value render-id)
shape (assoc value :points (:points shape))]