mirror of
https://github.com/penpot/penpot.git
synced 2025-07-14 08:17:17 +02:00
✨ Plugins support for code generation
This commit is contained in:
parent
8ff0015458
commit
f86156b619
4 changed files with 61 additions and 10 deletions
|
@ -32,8 +32,10 @@
|
|||
(dm/get-in (locate-file file-id) [:data :pages-index id]))
|
||||
|
||||
(defn locate-objects
|
||||
[file-id page-id]
|
||||
(:objects (locate-page file-id page-id)))
|
||||
([]
|
||||
(locate-objects (:current-file-id @st/state) (:current-page-id @st/state)))
|
||||
([file-id page-id]
|
||||
(:objects (locate-page file-id page-id))))
|
||||
|
||||
(defn locate-shape
|
||||
[file-id page-id id]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue