From d6f6d78b1e6b73d17cfdabe9db8f7d4b37277f03 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 13 Sep 2024 11:49:10 +0200 Subject: [PATCH] :sparkles: New viewport functions --- frontend/src/app/plugins/viewport.cljs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/plugins/viewport.cljs b/frontend/src/app/plugins/viewport.cljs index 8f2fb4c32..c71893e5a 100644 --- a/frontend/src/app/plugins/viewport.cljs +++ b/frontend/src/app/plugins/viewport.cljs @@ -5,7 +5,6 @@ ;; Copyright (c) KALEIDOS INC (ns app.plugins.viewport - "RPC for plugins runtime." (:require [app.common.data.macros :as dm] [app.common.record :as crc] @@ -21,12 +20,10 @@ (deftype ViewportProxy [$plugin] Object (zoomReset [_] - ;;TODO - ) + (st/emit! dwz/reset-zoom)) (zoomToFitAll [_] - ;;TODO - ) + (st/emit! dwz/zoom-to-fit-all)) (zoomIntoView [_ shapes] (let [ids