mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 02:18:23 +02:00
♻️ Components refactor: generator for relocate shapes (and tests)
This commit is contained in:
parent
78d0611632
commit
f354942487
7 changed files with 499 additions and 229 deletions
|
@ -34,3 +34,9 @@
|
|||
[f]
|
||||
(reset-idmap!)
|
||||
(f))
|
||||
|
||||
(defn label [id]
|
||||
(->> @idmap
|
||||
(filter #(= id (val %)))
|
||||
(map key)
|
||||
(first)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue