mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
✨ New viewport functions
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
;; Copyright (c) KALEIDOS INC
|
;; Copyright (c) KALEIDOS INC
|
||||||
|
|
||||||
(ns app.plugins.viewport
|
(ns app.plugins.viewport
|
||||||
"RPC for plugins runtime."
|
|
||||||
(:require
|
(:require
|
||||||
[app.common.data.macros :as dm]
|
[app.common.data.macros :as dm]
|
||||||
[app.common.record :as crc]
|
[app.common.record :as crc]
|
||||||
@@ -21,12 +20,10 @@
|
|||||||
(deftype ViewportProxy [$plugin]
|
(deftype ViewportProxy [$plugin]
|
||||||
Object
|
Object
|
||||||
(zoomReset [_]
|
(zoomReset [_]
|
||||||
;;TODO
|
(st/emit! dwz/reset-zoom))
|
||||||
)
|
|
||||||
|
|
||||||
(zoomToFitAll [_]
|
(zoomToFitAll [_]
|
||||||
;;TODO
|
(st/emit! dwz/zoom-to-fit-all))
|
||||||
)
|
|
||||||
|
|
||||||
(zoomIntoView [_ shapes]
|
(zoomIntoView [_ shapes]
|
||||||
(let [ids
|
(let [ids
|
||||||
|
|||||||
Reference in New Issue
Block a user