Function: rotateBox()
rotateBox(
start,from,to,snap):TransformBox
Defined in: src/lib/transform/geometry/index.ts:236
Rotate the box around its centre by how far the pointer has turned around it since the drag started.
With snap (Shift), the rotation is a multiple of 45°.
Parameters
start
the box when the drag started
from
pointer position when the drag started
to
snap
boolean