🎉 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

@ -15,7 +15,8 @@
[uxbox.main.ui.shapes.attrs :as attrs]
[uxbox.main.ui.shapes.common :as common]
[uxbox.util.interop :as itr]
[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]]))
;; --- Rect Wrapper
@ -53,4 +54,8 @@
:id (str "shape-" id)
:width width
:height height}))]
[:> "rect" props]))
[:& shape-custom-stroke {:shape shape
:base-props props
:elem-name "rect"}]))