0
Fork 0
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:
Andrey Antukh 2017-03-02 16:14:12 +01:00
parent 4676edca8b
commit fdf3f1b6f0
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -31,6 +31,9 @@
(seq? v))
(Point. (first v) (second v))
(map? v)
(Point. (:x v) (:y v))
(number? v)
(Point. v v)