mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 09:21:39 +02:00
🐛 Change place for circular dependency workaround
This commit is contained in:
parent
9fb91b3052
commit
be84b1cb01
3 changed files with 12 additions and 10 deletions
|
@ -413,8 +413,6 @@
|
|||
(defn lib-typography-proxy? [p]
|
||||
(instance? LibraryTypographyProxy p))
|
||||
|
||||
(set! shape/lib-typography-proxy? lib-typography-proxy?)
|
||||
|
||||
(defn lib-typography-proxy
|
||||
[plugin-id file-id id]
|
||||
(assert (uuid? file-id))
|
||||
|
@ -758,8 +756,6 @@
|
|||
value (dm/str value " / " (:name component))]
|
||||
(st/emit! (dwl/rename-component id value)))))}))
|
||||
|
||||
(set! shape/lib-component-proxy lib-component-proxy)
|
||||
|
||||
(deftype Library [$plugin $id]
|
||||
Object
|
||||
|
||||
|
|
|
@ -576,12 +576,6 @@
|
|||
(defn shape-proxy? [p]
|
||||
(instance? ShapeProxy p))
|
||||
|
||||
;; Prevent circular dependency
|
||||
(do (set! flex/shape-proxy? shape-proxy?)
|
||||
(set! grid/shape-proxy? shape-proxy?))
|
||||
|
||||
(set! format/shape-proxy shape-proxy)
|
||||
|
||||
(crc/define-properties!
|
||||
ShapeProxy
|
||||
{:name js/Symbol.toStringTag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue