mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
🐛 Fix strokes class
This commit is contained in:
parent
667fabbdc5
commit
427e43585c
1 changed files with 2 additions and 1 deletions
|
@ -431,6 +431,7 @@
|
||||||
stroke-id (dm/fmt "strokes-%" (:id shape))
|
stroke-id (dm/fmt "strokes-%" (:id shape))
|
||||||
stroke-props (-> (obj/create)
|
stroke-props (-> (obj/create)
|
||||||
(obj/set! "id" stroke-id)
|
(obj/set! "id" stroke-id)
|
||||||
|
(obj/set! "class" "strokes")
|
||||||
(cond->
|
(cond->
|
||||||
;; There is a blur
|
;; There is a blur
|
||||||
(and (:blur shape) (not (cph/frame-shape? shape)) (-> shape :blur :hidden not))
|
(and (:blur shape) (not (cph/frame-shape? shape)) (-> shape :blur :hidden not))
|
||||||
|
@ -442,7 +443,7 @@
|
||||||
[:*
|
[:*
|
||||||
(when
|
(when
|
||||||
(d/not-empty? (:strokes shape))
|
(d/not-empty? (:strokes shape))
|
||||||
[:> :g.strokes stroke-props
|
[:> :g stroke-props
|
||||||
(for [[index value] (-> (d/enumerate (:strokes shape)) reverse)]
|
(for [[index value] (-> (d/enumerate (:strokes shape)) reverse)]
|
||||||
(let [props (build-stroke-props index child value render-id)
|
(let [props (build-stroke-props index child value render-id)
|
||||||
shape (assoc value :points (:points shape))]
|
shape (assoc value :points (:points shape))]
|
||||||
|
|
Loading…
Reference in a new issue