♻️ Refactor custom stroke

This commit is contained in:
alonso.torres 2021-05-31 18:06:28 +02:00 committed by Andrés Moya
parent bf5f845789
commit 6cbbfa6499
7 changed files with 166 additions and 137 deletions

View file

@ -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]]))