mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 11:16:38 +02:00
💄 Add cosmetic improvements to align-object-to-parent fn
This commit is contained in:
parent
a3f347c9fd
commit
e97aab4c7f
1 changed files with 4 additions and 4 deletions
|
@ -1056,10 +1056,10 @@
|
||||||
|
|
||||||
(defn align-object-to-parent
|
(defn align-object-to-parent
|
||||||
[objects object-id axis]
|
[objects object-id axis]
|
||||||
(let [object (get objects object-id)
|
(let [object (get objects object-id)
|
||||||
parent (:parent-id (get objects object-id))
|
parent-id (:parent-id (get objects object-id))
|
||||||
parent-obj (get objects parent)]
|
parent (get objects parent-id)]
|
||||||
(gal/align-to-rect object parent-obj axis objects)))
|
(gal/align-to-rect object parent axis objects)))
|
||||||
|
|
||||||
(defn align-objects-list
|
(defn align-objects-list
|
||||||
[objects selected axis]
|
[objects selected axis]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue