@mocanvas/mocanvas · class

ScribbleOverlayUtil

declare class ScribbleOverlayUtil extends OverlayUtil<Editor, ScribbleOverlayUtilOptions>

Paints every live scribble.

Scribbles are stroked as *ribbons*, not lines: a trail that thins to a point cannot be produced by ctx.stroke, which has one width for the whole path. See traceTaperedStroke.


Methods · 5

getGeometry(): Geometry2d | undefined

A scribble is decoration in flight; nothing should be able to click it.

getOverlays(): TLScribbleOverlay[]
protected getScribbles(): Scribble[]

The scribbles to draw. Overridden by the collaborator variant.

isActive(): boolean
render(ctx: CanvasRenderingContext2D): void

Properties · 3

static options: ScribbleOverlayUtilOptions
static type: string
static zIndex: number

Mentioned here

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.