🚧 More work on rotation related stuff.

This commit is contained in:
Andrey Antukh 2020-01-15 17:59:55 +01:00
parent 79a91605d3
commit 72d92c419f
9 changed files with 333 additions and 299 deletions

View file

@ -304,10 +304,10 @@
(mf/defc generic-draw-area
[{:keys [shape zoom]}]
(let [{:keys [x1 y1 width height]} (geom/selection-rect shape)]
(let [{:keys [x y width height]} (geom/shape->rect-shape shape)]
[:g
[:& shapes/shape-wrapper {:shape shape}]
[:rect.main {:x x1 :y y1
[:rect.main {:x x :y y
:width width
:height height
:stroke-dasharray (str (/ 5.0 zoom) "," (/ 5 zoom))