mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 09:28:26 +02:00
Improve page data structure and adapt it to the backend representation.
This commit is contained in:
parent
4fde0469c0
commit
f05d6924a3
6 changed files with 126 additions and 130 deletions
|
@ -90,6 +90,16 @@
|
|||
(and (string? v)
|
||||
(re-seq +uuid-re+ v)))
|
||||
|
||||
;; --- Interop
|
||||
|
||||
(defn jscoll->vec
|
||||
"Convert array like js object into vector."
|
||||
[v]
|
||||
(-> (clj->js [])
|
||||
(.-slice)
|
||||
(.call v)
|
||||
(js->clj)))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Numbers Parsing
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue