@mocanvas/mocanvas · interface

ShapeHandleOverlayUtilOptions

interface ShapeHandleOverlayUtilOptions extends OverlayOptionsWithDisplayValues<ShapeHandleOverlayUtilDisplayValues>

Handle geometry, all in CSS pixels so handles are one size at every zoom.


Properties · 5

hitPadding: number

Extra pointer slack around a handle, on top of its radius. A 6px dot is hard to hit on a trackpad and impossible on touch; the target is bigger than the thing you can see, deliberately.

lineWidth: number

Outline weight.

radius: number

Radius of a real (vertex, create, clone) handle.

virtualOpacity: number

Opacity of a virtual handle.

virtualRadius: number

Radius of a virtual handle — smaller, because it is only a suggestion.

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.