From 74ae4743d8c43e07b4aa8943a0cf8faa3f559c36 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 24 Mar 2025 11:06:14 +0100 Subject: [PATCH] :bug: Disable svg viewport texts for wasm render --- .../src/app/main/ui/workspace/viewport_wasm.cljs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/viewport_wasm.cljs b/frontend/src/app/main/ui/workspace/viewport_wasm.cljs index 3f41a55d0..ee01660d1 100644 --- a/frontend/src/app/main/ui/workspace/viewport_wasm.cljs +++ b/frontend/src/app/main/ui/workspace/viewport_wasm.cljs @@ -26,7 +26,6 @@ [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.v2-editor :as editor-v2] - [app.main.ui.workspace.shapes.text.viewport-texts-html :as stvh] [app.main.ui.workspace.viewport.actions :as actions] [app.main.ui.workspace.viewport.comments :as comments] [app.main.ui.workspace.viewport.debug :as wvd] @@ -326,21 +325,6 @@ (when (:can-edit permissions) [:& top-bar/top-bar {:layout layout}]) [:div {:class (stl/css :viewport-overlays)} - ;; The behaviour inside a foreign object is a bit different that in plain HTML so we wrap - ;; inside a foreign object "dummy" so this awkward behaviour is take into account - [:svg {:style {:top 0 :left 0 :position "fixed" :width "100%" :height "100%" :opacity (when-not (dbg/enabled? :html-text) 0)}} - [:foreignObject {:x 0 :y 0 :width "100%" :height "100%"} - [:div {:style {:pointer-events (when-not (dbg/enabled? :html-text) "none") - ;; some opacity because to debug auto-width events will fill the screen - :opacity 0.6}} - (when (and (:can-edit permissions) (not read-only?)) - [:& stvh/viewport-texts - {:key (dm/str "texts-" page-id) - :page-id page-id - :objects objects - :modifiers modifiers - :edition edition}])]]] - (when show-comments? [:> comments/comments-layer* {:vbox vbox :page-id page-id