@mocanvas/mocanvas · class

ShapeIndicatorOverlayUtil

declare class ShapeIndicatorOverlayUtil<H extends TLIndicatorHost = TLIndicatorHost> extends ShapeIndicatorCompositor<H>

Paints every selection, hover and drop-target outline onto the canvas overlay in a single pass.

Register it — or a configured subclass — as an overlay util:

``ts <Mocanvas overlayUtils={[ShapeIndicatorOverlayUtil.configure({ lineWidth: 2 })]} /> ``

Override shouldShowIndicator to control *which* shapes get an outline; anything finer belongs in a shape util's getIndicatorPath.

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.