🎉 Add stroke-alignment option

This commit is contained in:
Andrés Moya 2020-04-22 15:23:07 +02:00
parent de826f606d
commit 9e21d6ab9d
8 changed files with 170 additions and 27 deletions

View file

@ -16,7 +16,8 @@
[uxbox.main.ui.shapes.common :as common]
[uxbox.util.interop :as itr]
[uxbox.util.geom.matrix :as gmt]
[uxbox.main.ui.shapes.bounding-box :refer [bounding-box]]))
[uxbox.main.ui.shapes.bounding-box :refer [bounding-box]]
[uxbox.main.ui.shapes.custom-stroke :refer [shape-custom-stroke]]))
;; --- Path Wrapper
@ -83,5 +84,10 @@
:fill "transparent"
:stroke-width "20px"
:d pdata}]
[:> "path" props]]
[:> "path" props])))
[:& shape-custom-stroke {:shape shape
:base-props props
:elem-name "path"}]]
[:& shape-custom-stroke {:shape shape
:base-props props
:elem-name "path"}])))