mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 15:41:38 +02:00
🎉 Changed the user origin for shapes to their corner
This commit is contained in:
parent
db4e0fc314
commit
7ab3d86bc6
19 changed files with 195 additions and 182 deletions
|
@ -24,7 +24,7 @@
|
|||
(declare path-shape)
|
||||
|
||||
(mf/defc path-wrapper
|
||||
[{:keys [shape frame] :as props}]
|
||||
[{:keys [shape] :as props}]
|
||||
(let [selected (mf/deref refs/selected-shapes)
|
||||
selected? (contains? selected (:id shape))
|
||||
on-mouse-down (mf/use-callback
|
||||
|
@ -42,8 +42,7 @@
|
|||
[:g.shape {:on-double-click on-double-click
|
||||
:on-mouse-down on-mouse-down
|
||||
:on-context-menu on-context-menu}
|
||||
[:& path-shape {:shape (geom/transform-shape frame shape) :background? true}]
|
||||
[:& bounding-box {:shape shape :frame frame}]]))
|
||||
[:& path-shape {:shape shape :background? true}]]))
|
||||
|
||||
;; --- Path Shape
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue