mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 21:01:39 +02:00
♻️ Refactor transforms
This commit is contained in:
parent
2c50bb16dc
commit
af68c26aea
32 changed files with 1085 additions and 685 deletions
|
@ -23,7 +23,8 @@
|
|||
(let [shape (unchecked-get props "shape")
|
||||
base-props (unchecked-get props "base-props")
|
||||
elem-name (unchecked-get props "elem-name")
|
||||
{:keys [x y width height]} (geom/shape->rect-shape shape)
|
||||
;; {:keys [x y width height]} (geom/shape->rect-shape shape)
|
||||
{:keys [x y width height]} (:selrect shape)
|
||||
mask-id (mf/use-ctx mask-id-ctx)
|
||||
stroke-id (mf/use-var (uuid/next))
|
||||
stroke-style (:stroke-style shape :none)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue