mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 16:21:40 +02:00
🚧 Start working on shape rotation (with mouse handlers).
This commit is contained in:
parent
747213dea3
commit
338a0b97ac
4 changed files with 89 additions and 36 deletions
|
@ -116,7 +116,7 @@
|
|||
If the second vector is not provided, the angle
|
||||
will be measured from x-axis."
|
||||
([p]
|
||||
{:pre [(point? p)]}
|
||||
|
||||
(-> (mth/atan2 (:y p) (:x p))
|
||||
(mth/degrees)))
|
||||
([p center]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue