mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
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…
x
Reference in New Issue
Block a user