mirror of
https://github.com/penpot/penpot.git
synced 2026-03-12 05:16:23 +00:00
Add the ability to create a point instance from hash-map.
This commit is contained in:
@@ -31,6 +31,9 @@
|
||||
(seq? v))
|
||||
(Point. (first v) (second v))
|
||||
|
||||
(map? v)
|
||||
(Point. (:x v) (:y v))
|
||||
|
||||
(number? v)
|
||||
(Point. v v)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user