@mocanvas/mocanvas · class

BrushOverlayUtil

declare class BrushOverlayUtil extends BaseBrushOverlayUtil<TLBrushOverlay>

Paints the select tool's brush.

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

``ts <Mocanvas overlayUtils={[BrushOverlayUtil.configure({ radius: 0 })]} /> ``


Methods · 2

protected getBrushBounds(): OverlayBox | null
getOverlays(): TLBrushOverlay[]

Properties · 3

static options: BrushOverlayUtilOptions
static type: string
static zIndex: number

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.