mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 16:16:12 +02:00
🐛 Fix dynamic alignment enabled with hidden objects
This commit is contained in:
parent
9b878bd1cc
commit
d2777f5915
2 changed files with 4 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
(defn process-shape [frame-id coord]
|
||||
(fn [shape]
|
||||
(let [points (snap/shape-snap-points shape)
|
||||
(let [points (when-not (:hidden shape) (snap/shape-snap-points shape))
|
||||
shape-data (->> points (mapv #(vector % (:id shape))))]
|
||||
(if (= (:id shape) frame-id)
|
||||
(d/concat
|
||||
|
@ -73,7 +73,7 @@
|
|||
(d/mapm create-index shapes-data)))
|
||||
|
||||
;; Attributes that will change the values of their snap
|
||||
(def snap-attrs [:x :y :width :height :selrect :grids])
|
||||
(def snap-attrs [:x :y :width :height :hidden :selrect :grids])
|
||||
|
||||
(defn- update-snap-data
|
||||
[snap-data old-objects new-objects]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue