mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 06:01:40 +02:00
♻️ Merge libraries_common_helpers into libraries_helpers
This commit is contained in:
parent
2e18ce9323
commit
a8738b44a1
5 changed files with 97 additions and 12 deletions
|
@ -11,7 +11,6 @@
|
|||
[app.common.files.changes :as ch]
|
||||
[app.common.files.changes-builder :as pcb]
|
||||
[app.common.files.helpers :as cfh]
|
||||
[app.common.files.libraries-common-helpers :as cflch]
|
||||
[app.common.files.libraries-helpers :as cflh]
|
||||
[app.common.files.shapes-helpers :as cfsh]
|
||||
[app.common.geom.point :as gpt]
|
||||
|
@ -352,7 +351,7 @@
|
|||
parents (into #{} (map :parent-id) shapes)]
|
||||
(when-not (empty? shapes)
|
||||
(let [[root _ changes]
|
||||
(cflch/generate-add-component it shapes objects page-id file-id components-v2
|
||||
(cflh/generate-add-component it shapes objects page-id file-id components-v2
|
||||
dwg/prepare-create-group
|
||||
cfsh/prepare-create-artboard-from-selection)]
|
||||
(when-not (empty? (:redo-changes changes))
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
[app.common.files.changes-builder :as pcb]
|
||||
[app.common.files.focus :as cpf]
|
||||
[app.common.files.helpers :as cfh]
|
||||
[app.common.files.libraries-common-helpers :as cflch]
|
||||
[app.common.files.libraries-helpers :as cflh]
|
||||
[app.common.geom.point :as gpt]
|
||||
[app.common.geom.rect :as grc]
|
||||
|
@ -498,7 +497,7 @@
|
|||
regenerate-component
|
||||
(fn [changes shape]
|
||||
(let [components-v2 (dm/get-in library-data [:options :components-v2])
|
||||
[_ changes] (cflch/generate-add-component-changes changes shape objects file-id (:id page) components-v2)]
|
||||
[_ changes] (cflh/generate-add-component-changes changes shape objects file-id (:id page) components-v2)]
|
||||
changes))
|
||||
|
||||
new-obj
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue