mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 15:37:24 +02:00
❇️ Change mutation listener
This commit is contained in:
parent
6cb6adc134
commit
d83459f674
4 changed files with 45 additions and 40 deletions
|
@ -265,10 +265,11 @@
|
|||
|
||||
(defn bounding-rect->rect
|
||||
[rect]
|
||||
{:x (or (.-left rect) (:left rect))
|
||||
:y (or (.-top rect) (:top rect))
|
||||
:width (or (.-width rect) (:width rect))
|
||||
:height (or (.-height rect) (:height rect))})
|
||||
(when (some? rect)
|
||||
{:x (or (.-left rect) (:left rect))
|
||||
:y (or (.-top rect) (:top rect))
|
||||
:width (or (.-width rect) (:width rect))
|
||||
:height (or (.-height rect) (:height rect))}))
|
||||
|
||||
(defn get-window-size
|
||||
[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue