@mocanvas/editor · function

getHandleHitRadius

declare function getHandleHitRadius(screenW: number, screenH: number): number

The effective hit radius for the current selection. On a selection smaller than a few handles across, full-size targets would cover the whole shape and leave nothing to drag, so the radius shrinks to keep an interior free.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.