mirror of
https://github.com/penpot/penpot.git
synced 2025-06-14 04:21:38 +02:00
♻️ Move component instantiation to new types module
This commit is contained in:
parent
5dc7bc213f
commit
bdcbe46d0d
39 changed files with 542 additions and 409 deletions
|
@ -21,6 +21,7 @@
|
|||
[app.common.geom.shapes.bounds :as gsb]
|
||||
[app.common.math :as mth]
|
||||
[app.common.pages.helpers :as cph]
|
||||
[app.common.types.shape-tree :as ctst]
|
||||
[app.config :as cfg]
|
||||
[app.main.fonts :as fonts]
|
||||
[app.main.ui.context :as muc]
|
||||
|
@ -61,7 +62,7 @@
|
|||
(defn- calculate-dimensions
|
||||
[objects]
|
||||
(let [bounds
|
||||
(->> (cph/get-root-objects objects)
|
||||
(->> (ctst/get-root-objects objects)
|
||||
(map (partial gsb/get-object-bounds objects))
|
||||
(gsh/join-rects))]
|
||||
(-> bounds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue