mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 12:29:23 +02:00
♻️ Refactor custom-stroke render impl
This commit is contained in:
parent
1b420e55f4
commit
bf2a546f77
4 changed files with 374 additions and 299 deletions
|
@ -99,3 +99,13 @@
|
|||
(defn ^boolean in?
|
||||
[obj prop]
|
||||
(js* "~{} in ~{}" prop obj))
|
||||
|
||||
(defn map->obj
|
||||
[o]
|
||||
(reduce-kv (fn [result k v]
|
||||
(let [k (if (keyword? k) (name k) k)
|
||||
v (if (keyword? v) (name v) v)]
|
||||
(unchecked-set result k v)
|
||||
result))
|
||||
#js {}
|
||||
o))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue