0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

Use proper vertex identifiers for obtain the corresponding point.

This commit is contained in:
Andrey Antukh 2016-06-21 18:57:09 +03:00
parent a4562c11e2
commit 0326c02c05
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -154,10 +154,10 @@
(defn- get-rect-vertext-point
[{:keys [x1 y1 x2 y2]} id]
(case id
1 (gpt/point x1 y1)
2 (gpt/point x2 y1)
3 (gpt/point x1 y2)
4 (gpt/point x2 y2)))
:top-left (gpt/point x1 y1)
:top-right (gpt/point x2 y1)
:bottom-left (gpt/point x1 y2)
:bottom-right (gpt/point x2 y2)))
(defn- get-circle-vertext-point
[{:keys [rx ry]} id]