mirror of
https://github.com/penpot/penpot.git
synced 2025-06-13 09:51:39 +02:00
Cleanup
This commit is contained in:
parent
6c3415b92c
commit
9ff3a135a8
1 changed files with 0 additions and 6 deletions
|
@ -50,12 +50,6 @@
|
||||||
(let [[shape-leftover token-leftover _matching] (data/diff (:applied-tokens shape) token)]
|
(let [[shape-leftover token-leftover _matching] (data/diff (:applied-tokens shape) token)]
|
||||||
(merge {} shape-leftover token-leftover)))
|
(merge {} shape-leftover token-leftover)))
|
||||||
|
|
||||||
(defn get-shape-from-state [shape-id state]
|
|
||||||
(let [current-page-id (get state :current-page-id)
|
|
||||||
shape (-> (workspace-shapes (:workspace-data state) current-page-id #{shape-id})
|
|
||||||
(first))]
|
|
||||||
shape))
|
|
||||||
|
|
||||||
(defn token-from-attributes [token attributes]
|
(defn token-from-attributes [token attributes]
|
||||||
(->> (map (fn [attr] [attr (wtt/token-identifier token)]) attributes)
|
(->> (map (fn [attr] [attr (wtt/token-identifier token)]) attributes)
|
||||||
(into {})))
|
(into {})))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue