mirror of
https://github.com/penpot/penpot.git
synced 2025-07-15 03:37:17 +02:00
✨ Add support for plugin data into penpot objects
This commit is contained in:
parent
4d4a3a512d
commit
5233654da2
22 changed files with 764 additions and 138 deletions
|
@ -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 [_]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue