mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 18:48:37 -05:00
Fix alignemnt on middle resize handlers when grid is active.
This commit is contained in:
parent
14ac4c80f6
commit
05f9a63c96
1 changed files with 7 additions and 1 deletions
|
@ -157,7 +157,13 @@
|
|||
:top-left (gpt/point x1 y1)
|
||||
:top-right (gpt/point x2 y1)
|
||||
:bottom-left (gpt/point x1 y2)
|
||||
:bottom-right (gpt/point x2 y2)))
|
||||
:bottom-right (gpt/point x2 y2)
|
||||
:top (gpt/point (/ (+ x1 x2) 2) y1)
|
||||
:right (gpt/point x2 (/ (+ y1 y2) 2))
|
||||
:left (gpt/point x1 (/ (+ y1 y2) 2))
|
||||
:bottom (gpt/point (/ (+ x1 x2) 2)
|
||||
(/ (+ y1 y2) 2))))
|
||||
|
||||
|
||||
(defn- get-circle-vertext-point
|
||||
[{:keys [rx ry]} id]
|
||||
|
|
Loading…
Add table
Reference in a new issue