Skip to content

resizeRect()

function resizeRect(
rect,
handle,
dx,
dy,
grid?,
minSize?
): Rect;

Applies a resize drag. dx/dy are the pointer movement in template units. The opposite edge stays fixed; sizes never go below minSize.

Parameter Type Default value
rect Rect undefined
handle ResizeHandle undefined
dx number undefined
dy number undefined
grid number 0
minSize number 1

Rect