♻️ Merge libraries_common_helpers into libraries_helpers

This commit is contained in:
Pablo Alba 2024-04-19 15:37:42 +02:00
parent 2e18ce9323
commit a8738b44a1
5 changed files with 97 additions and 12 deletions

View file

@ -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))

View file

@ -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