mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 17:00:36 -05:00
⚡ Performance improvement
This commit is contained in:
parent
0487539b23
commit
ed22e2c6d1
1 changed files with 2 additions and 3 deletions
|
@ -205,9 +205,8 @@
|
||||||
(defn all-frames-by-position
|
(defn all-frames-by-position
|
||||||
[objects position]
|
[objects position]
|
||||||
(->> (get-frames-ids objects)
|
(->> (get-frames-ids objects)
|
||||||
(sort-z-index objects)
|
(filter #(and position (gsh/has-point? (get objects %) position)))
|
||||||
(filterv #(and position (gsh/has-point? (get objects %) position)))))
|
(sort-z-index objects)))
|
||||||
|
|
||||||
|
|
||||||
(defn top-nested-frame
|
(defn top-nested-frame
|
||||||
"Search for the top nested frame for positioning shapes when moving or creating.
|
"Search for the top nested frame for positioning shapes when moving or creating.
|
||||||
|
|
Loading…
Reference in a new issue