mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 02:06:11 +02:00
✨ Correct selrect calculation
This commit is contained in:
parent
56e2db22eb
commit
fcc7b6791e
7 changed files with 77 additions and 33 deletions
|
@ -107,10 +107,10 @@
|
|||
(ptk/reify ::bool-to-group
|
||||
ptk/WatchEvent
|
||||
(watch [_ state _]
|
||||
(let [objects (wsh/lookup-page-objects state)]
|
||||
(let [change-to-group
|
||||
(fn [shape] (bool->group shape objects))]
|
||||
(rx/of (dch/update-shapes [shape-id] change-to-group {:reg-objects? true})))))))
|
||||
(let [objects (wsh/lookup-page-objects state)
|
||||
change-to-group
|
||||
(fn [shape] (bool->group shape objects))]
|
||||
(rx/of (dch/update-shapes [shape-id] change-to-group {:reg-objects? true}))))))
|
||||
|
||||
|
||||
(defn change-bool-type
|
||||
|
|
|
@ -158,7 +158,7 @@
|
|||
|
||||
(defmethod impl/handler :selection/query
|
||||
[{:keys [page-id rect frame-id reverse? full-frame? include-frames? clip-children?]
|
||||
:or {reverse? false full-frame? false include-frames? false include-booleans? true include-groups? true} :as message}]
|
||||
:or {reverse? false full-frame? false include-frames? false clip-children? true} :as message}]
|
||||
(when-let [index (get @state page-id)]
|
||||
(query-index index rect frame-id full-frame? include-frames? clip-children? reverse?)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue