From 5834e29b39fb217cae71210e6f04778fc82e1b18 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 28 Jul 2022 08:26:02 +0200 Subject: [PATCH] :fire: Remove unnecesary ref, viewport already has access to all local data --- frontend/src/app/main/refs.cljs | 3 --- frontend/src/app/main/ui/workspace/viewport.cljs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/app/main/refs.cljs b/frontend/src/app/main/refs.cljs index 650c648d9..ce4f0b8d5 100644 --- a/frontend/src/app/main/refs.cljs +++ b/frontend/src/app/main/refs.cljs @@ -117,9 +117,6 @@ (wsh/process-selected-shapes objects selected)) selected-shapes-data)) -(def highlighted-shapes - (l/derived :highlighted workspace-local)) - (defn make-selected-ref [id] (l/derived #(contains? % id) selected-shapes)) diff --git a/frontend/src/app/main/ui/workspace/viewport.cljs b/frontend/src/app/main/ui/workspace/viewport.cljs index d808c7cc5..3a1b6e05a 100644 --- a/frontend/src/app/main/ui/workspace/viewport.cljs +++ b/frontend/src/app/main/ui/workspace/viewport.cljs @@ -53,6 +53,7 @@ panning selrect transform + highlighted vbox vport zoom @@ -70,7 +71,6 @@ drawing (mf/deref refs/workspace-drawing) options (mf/deref refs/workspace-page-options) focus (mf/deref refs/workspace-focus-selected) - highlighted (mf/deref refs/highlighted-shapes) objects-ref (mf/use-memo #(refs/workspace-page-objects-by-id page-id)) objects (mf/deref objects-ref)