Add support for plugin data into penpot objects

This commit is contained in:
alonso.torres 2024-06-10 11:32:35 +02:00 committed by Andrey Antukh
parent 4d4a3a512d
commit 5233654da2
22 changed files with 764 additions and 138 deletions

View file

@ -16,7 +16,7 @@
[app.main.store :as st]
[app.util.object :as obj]))
(deftype ViewportProxy []
(deftype ViewportProxy [$plugin]
Object
(zoomIntoView [_ shapes]
(let [ids
@ -33,9 +33,9 @@
:get (fn [] (str "ViewportProxy"))})
(defn create-proxy
[]
[plugin-id]
(crc/add-properties!
(ViewportProxy.)
(ViewportProxy. plugin-id)
{:name "center"
:get
(fn [_]