mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 06:21:38 +02:00
Fix many inconsistencies between drawing and resizing.
This enables sharing code between the drawing logic and the simple resizing. Allowing drawing in any direction, not only from top-left to bottom-right. Fixes issue #44.
This commit is contained in:
parent
b7253b7fd5
commit
f82ddac72d
16 changed files with 291 additions and 321 deletions
|
@ -421,7 +421,6 @@
|
|||
(defn materialize-xfmt
|
||||
[state id xfmt]
|
||||
(let [{:keys [type items] :as shape} (get-in state [:shapes id])]
|
||||
(if (= type :group)
|
||||
(-> (reduce #(materialize-xfmt %1 %2 xfmt) state items)
|
||||
(update-in [:shapes id] geom/transform xfmt))
|
||||
(if (= type :group)
|
||||
(reduce #(materialize-xfmt %1 %2 xfmt) state items)
|
||||
(update-in state [:shapes id] geom/transform xfmt))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue