mirror of
https://github.com/penpot/penpot.git
synced 2026-05-26 02:13:46 +00:00
🐛 Fix problem with createText in plugins
This commit is contained in:
parent
e6e34af391
commit
eddfc4c4b2
@ -27,6 +27,7 @@
|
|||||||
[app.main.data.workspace.media :as dwm]
|
[app.main.data.workspace.media :as dwm]
|
||||||
[app.main.data.workspace.selection :as dws]
|
[app.main.data.workspace.selection :as dws]
|
||||||
[app.main.data.workspace.wasm-text :as dwwt]
|
[app.main.data.workspace.wasm-text :as dwwt]
|
||||||
|
[app.main.features :as features]
|
||||||
[app.main.fonts :refer [fetch-font-css]]
|
[app.main.fonts :refer [fetch-font-css]]
|
||||||
[app.main.router :as rt]
|
[app.main.router :as rt]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
@ -365,8 +366,10 @@
|
|||||||
(cb/add-object shape))]
|
(cb/add-object shape))]
|
||||||
|
|
||||||
(st/emit! (ch/commit-changes changes)
|
(st/emit! (ch/commit-changes changes)
|
||||||
(se/event plugin-id "create-shape" :type :text)
|
(se/event plugin-id "create-shape" :type :text))
|
||||||
(dwwt/resize-wasm-text-debounce (:id shape)))
|
|
||||||
|
(when (features/active-feature? @st/state "render-wasm/v1")
|
||||||
|
(st/emit! (dwwt/resize-wasm-text-debounce (:id shape))))
|
||||||
|
|
||||||
(shape/shape-proxy plugin-id (:id shape)))))
|
(shape/shape-proxy plugin-id (:id shape)))))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user