0
Fork 0
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:
Andrey Antukh 2016-06-30 17:01:59 +03:00
parent 14ac4c80f6
commit 05f9a63c96
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -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]