mirror of
https://github.com/penpot/penpot.git
synced 2025-06-13 16:41:38 +02:00
🔧 Fix test cases
This commit is contained in:
parent
2790111405
commit
bbd561a772
9 changed files with 147 additions and 98 deletions
|
@ -174,7 +174,7 @@
|
|||
components-v2)
|
||||
|
||||
changes (cond-> (pcb/add-object changes (first new-shapes) {:ignore-touched true})
|
||||
(some? old-id) (pcb/amend-last-change #(assoc % :old-id old-id))) ; on copy/paste old id is used later to reorder the paster layers
|
||||
(some? old-id) (pcb/amend-last-change #(assoc % :old-id old-id))) ; on copy/paste old id is used later to reorder the paster layers
|
||||
|
||||
changes (reduce #(pcb/add-object %1 %2 {:ignore-touched true})
|
||||
changes
|
||||
|
|
|
@ -152,7 +152,8 @@
|
|||
(watch [it state _]
|
||||
(let [page-id (:current-page-id state)
|
||||
objects (wsh/lookup-page-objects state page-id)
|
||||
changes (pcb/empty-changes it page-id)
|
||||
changes (-> (pcb/empty-changes it page-id)
|
||||
(pcb/with-objects objects))
|
||||
changes (prepare-move-shapes-into-frame changes
|
||||
frame-id
|
||||
shapes
|
||||
|
|
|
@ -179,8 +179,10 @@
|
|||
|
||||
modifiers
|
||||
(-> (ctm/empty)
|
||||
|
||||
(cond-> displacement
|
||||
(ctm/move displacement))
|
||||
|
||||
(ctm/resize scalev resize-origin shape-transform shape-transform-inverse)
|
||||
|
||||
(cond-> set-fix-width?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue