mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 04:02:01 +02:00
♻️ Refactor custom stroke
This commit is contained in:
parent
bf5f845789
commit
6cbbfa6499
7 changed files with 166 additions and 137 deletions
|
@ -26,16 +26,6 @@
|
|||
props (-> (attrs/extract-style-attrs shape)
|
||||
(obj/merge!
|
||||
#js {:d pdata}))]
|
||||
(if background?
|
||||
[:g
|
||||
[:path {:stroke "none"
|
||||
:fill "none"
|
||||
:stroke-width "20px"
|
||||
:d pdata}]
|
||||
[:& shape-custom-stroke {:shape shape
|
||||
:base-props props
|
||||
:elem-name "path"}]]
|
||||
[:& shape-custom-stroke {:shape shape
|
||||
:base-props props
|
||||
:elem-name "path"}])))
|
||||
[:& shape-custom-stroke {:shape shape}
|
||||
[:> :path props]]))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue