mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
Add the ability to create a point instance from hash-map.
This commit is contained in:
parent
4676edca8b
commit
fdf3f1b6f0
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,9 @@
|
|||
(seq? v))
|
||||
(Point. (first v) (second v))
|
||||
|
||||
(map? v)
|
||||
(Point. (:x v) (:y v))
|
||||
|
||||
(number? v)
|
||||
(Point. v v)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue