mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 18:21:38 +02:00
🚧 More work on rotation related stuff.
This commit is contained in:
parent
79a91605d3
commit
72d92c419f
9 changed files with 333 additions and 299 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue