mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
♻️ Convert text-edition-outline to modern rumext * format
Rename to text-edition-outline*, update call sites in viewport.cljs and viewport_wasm.cljs to [:> text-edition-outline* ...].
This commit is contained in:
parent
304a324529
commit
f0d6e8cb2f
@ -16,7 +16,7 @@
|
||||
[app.render-wasm.api :as wasm.api]
|
||||
[rumext.v2 :as mf]))
|
||||
|
||||
(mf/defc text-edition-outline
|
||||
(mf/defc text-edition-outline*
|
||||
[{:keys [shape zoom modifiers]}]
|
||||
(if (features/active-feature? @st/state "render-wasm/v1")
|
||||
(let [selrect-transform (mf/deref refs/workspace-selrect)
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
[app.main.ui.workspace.shapes :as shapes]
|
||||
[app.main.ui.workspace.shapes.path.editor :refer [path-editor*]]
|
||||
[app.main.ui.workspace.shapes.text.editor :as editor-v1]
|
||||
[app.main.ui.workspace.shapes.text.text-edition-outline :refer [text-edition-outline]]
|
||||
[app.main.ui.workspace.shapes.text.text-edition-outline :refer [text-edition-outline*]]
|
||||
[app.main.ui.workspace.shapes.text.v2-editor :as editor-v2]
|
||||
[app.main.ui.workspace.shapes.text.viewport-texts-html :as stvh]
|
||||
[app.main.ui.workspace.top-toolbar :refer [top-toolbar*]]
|
||||
@ -488,7 +488,7 @@
|
||||
:on-context-menu on-menu-selected}])
|
||||
|
||||
(when show-text-editor?
|
||||
[:& text-edition-outline
|
||||
[:> text-edition-outline*
|
||||
{:shape (get base-objects edition)
|
||||
:zoom zoom
|
||||
:modifiers modifiers}])
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
[app.main.ui.measurements :as msr]
|
||||
[app.main.ui.workspace.shapes.path.editor :refer [path-editor*]]
|
||||
[app.main.ui.workspace.shapes.text.editor :as editor-v1]
|
||||
[app.main.ui.workspace.shapes.text.text-edition-outline :refer [text-edition-outline]]
|
||||
[app.main.ui.workspace.shapes.text.text-edition-outline :refer [text-edition-outline*]]
|
||||
[app.main.ui.workspace.shapes.text.v2-editor :as editor-v2]
|
||||
[app.main.ui.workspace.shapes.text.v3-editor :as editor-v3]
|
||||
[app.main.ui.workspace.top-toolbar :refer [top-toolbar*]]
|
||||
@ -585,7 +585,7 @@
|
||||
:on-context-menu on-menu-selected}])
|
||||
|
||||
(when show-text-editor?
|
||||
[:& text-edition-outline
|
||||
[:> text-edition-outline*
|
||||
{:shape (get base-objects edition)
|
||||
:zoom zoom}])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user