mirror of https://github.com/penpot/penpot.git
Add the ability to create a point instance from hash-map.
This commit is contained in:
parent
4676edca8b
commit
fdf3f1b6f0
|
|
@ -31,6 +31,9 @@
|
|||
(seq? v))
|
||||
(Point. (first v) (second v))
|
||||
|
||||
(map? v)
|
||||
(Point. (:x v) (:y v))
|
||||
|
||||
(number? v)
|
||||
(Point. v v)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue