0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 15:39:50 -05:00

Merge branch 'main' into develop

This commit is contained in:
Andrey Antukh 2021-11-03 16:41:55 +01:00
commit fe9033b8be

View file

@ -69,6 +69,7 @@
stroke-opacity (when-not (:stroke-color-gradient shape) stroke-opacity (when-not (:stroke-color-gradient shape)
(:stroke-opacity shape))] (:stroke-opacity shape))]
[:* [:*
(when (or (= cap-start :line-arrow) (= cap-end :line-arrow)) (when (or (= cap-start :line-arrow) (= cap-end :line-arrow))
[:marker {:id (str marker-id-prefix "-line-arrow") [:marker {:id (str marker-id-prefix "-line-arrow")
@ -160,8 +161,8 @@
(mf/defc stroke-defs (mf/defc stroke-defs
[{:keys [shape render-id]}] [{:keys [shape render-id]}]
(when (or (not= (:type shape) :path) (when (and (= (:type shape) :path)
(not (gsh/open-path? shape))) (gsh/open-path? shape))
(cond (cond
(and (= :inner (:stroke-alignment shape :center)) (and (= :inner (:stroke-alignment shape :center))
(> (:stroke-width shape 0) 0)) (> (:stroke-width shape 0) 0))