mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 07:11:39 +02:00
♻️ Move common libraries_helpers to libraries_common_helpers
This commit is contained in:
parent
716211524b
commit
e1cd6d04d9
4 changed files with 7 additions and 7 deletions
|
@ -12,7 +12,7 @@
|
||||||
[app.common.files.changes :as cp]
|
[app.common.files.changes :as cp]
|
||||||
[app.common.files.changes-builder :as fcb]
|
[app.common.files.changes-builder :as fcb]
|
||||||
[app.common.files.helpers :as cfh]
|
[app.common.files.helpers :as cfh]
|
||||||
[app.common.files.libraries-helpers :as cflh]
|
[app.common.files.libraries-common-helpers :as cflch]
|
||||||
[app.common.files.migrations :as fmg]
|
[app.common.files.migrations :as fmg]
|
||||||
[app.common.files.shapes-helpers :as cfsh]
|
[app.common.files.shapes-helpers :as cfsh]
|
||||||
[app.common.files.validate :as cfv]
|
[app.common.files.validate :as cfv]
|
||||||
|
@ -1451,7 +1451,7 @@
|
||||||
(cons shape children))
|
(cons shape children))
|
||||||
|
|
||||||
[_ _ changes2]
|
[_ _ changes2]
|
||||||
(cflh/generate-add-component nil
|
(cflch/generate-add-component nil
|
||||||
[shape]
|
[shape]
|
||||||
(:objects page)
|
(:objects page)
|
||||||
(:id page)
|
(:id page)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) KALEIDOS INC
|
;; Copyright (c) KALEIDOS INC
|
||||||
|
|
||||||
(ns app.common.files.libraries-helpers
|
(ns app.common.files.libraries-common-helpers
|
||||||
(:require
|
(:require
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.common.files.changes-builder :as pcb]
|
[app.common.files.changes-builder :as pcb]
|
|
@ -11,7 +11,7 @@
|
||||||
[app.common.files.changes :as ch]
|
[app.common.files.changes :as ch]
|
||||||
[app.common.files.changes-builder :as pcb]
|
[app.common.files.changes-builder :as pcb]
|
||||||
[app.common.files.helpers :as cfh]
|
[app.common.files.helpers :as cfh]
|
||||||
[app.common.files.libraries-helpers :as cflh]
|
[app.common.files.libraries-common-helpers :as cflch]
|
||||||
[app.common.files.shapes-helpers :as cfsh]
|
[app.common.files.shapes-helpers :as cfsh]
|
||||||
[app.common.geom.point :as gpt]
|
[app.common.geom.point :as gpt]
|
||||||
[app.common.logging :as log]
|
[app.common.logging :as log]
|
||||||
|
@ -345,7 +345,7 @@
|
||||||
parents (into #{} (map :parent-id) shapes)]
|
parents (into #{} (map :parent-id) shapes)]
|
||||||
(when-not (empty? shapes)
|
(when-not (empty? shapes)
|
||||||
(let [[root _ changes]
|
(let [[root _ changes]
|
||||||
(cflh/generate-add-component it shapes objects page-id file-id components-v2
|
(cflch/generate-add-component it shapes objects page-id file-id components-v2
|
||||||
dwg/prepare-create-group
|
dwg/prepare-create-group
|
||||||
cfsh/prepare-create-artboard-from-selection)]
|
cfsh/prepare-create-artboard-from-selection)]
|
||||||
(when-not (empty? (:redo-changes changes))
|
(when-not (empty? (:redo-changes changes))
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
[app.common.files.changes-builder :as pcb]
|
[app.common.files.changes-builder :as pcb]
|
||||||
[app.common.files.focus :as cpf]
|
[app.common.files.focus :as cpf]
|
||||||
[app.common.files.helpers :as cfh]
|
[app.common.files.helpers :as cfh]
|
||||||
[app.common.files.libraries-helpers :as cflh]
|
[app.common.files.libraries-common-helpers :as cflch]
|
||||||
[app.common.geom.point :as gpt]
|
[app.common.geom.point :as gpt]
|
||||||
[app.common.geom.rect :as grc]
|
[app.common.geom.rect :as grc]
|
||||||
[app.common.geom.shapes :as gsh]
|
[app.common.geom.shapes :as gsh]
|
||||||
|
@ -498,7 +498,7 @@
|
||||||
regenerate-component
|
regenerate-component
|
||||||
(fn [changes shape]
|
(fn [changes shape]
|
||||||
(let [components-v2 (dm/get-in library-data [:options :components-v2])
|
(let [components-v2 (dm/get-in library-data [:options :components-v2])
|
||||||
[_ changes] (cflh/generate-add-component-changes changes shape objects file-id (:id page) components-v2)]
|
[_ changes] (cflch/generate-add-component-changes changes shape objects file-id (:id page) components-v2)]
|
||||||
changes))
|
changes))
|
||||||
|
|
||||||
new-obj
|
new-obj
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue