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:
parent
a4562c11e2
commit
0326c02c05
1 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue