mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 02:18:23 +02:00
⚡ Improve interactions and after-review fixes
This commit is contained in:
parent
c28a2acfc7
commit
493a7680e0
5 changed files with 51 additions and 25 deletions
|
@ -15,12 +15,16 @@
|
|||
|
||||
(defn calc-bool-content
|
||||
[shape objects]
|
||||
(->> (:shapes shape)
|
||||
(map (d/getf objects))
|
||||
(filter (comp not :hidden))
|
||||
(map #(stp/convert-to-path % objects))
|
||||
(mapv :content)
|
||||
(pb/content-bool (:bool-type shape))))
|
||||
|
||||
(let [extract-content-xf
|
||||
(comp (map (d/getf objects))
|
||||
(filter (comp not :hidden))
|
||||
(map #(stp/convert-to-path % objects))
|
||||
(map :content))
|
||||
|
||||
shapes-content
|
||||
(into [] extract-content-xf (:shapes shape))]
|
||||
(pb/content-bool (:bool-type shape) shapes-content)))
|
||||
|
||||
(defn update-bool-selrect
|
||||
"Calculates the selrect+points for the boolean shape"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue