@mocanvas/mocanvas · class
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 | undefinedA 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(): booleanrender(ctx: CanvasRenderingContext2D): voidProperties · 3
static options: ScribbleOverlayUtilOptionsstatic type: stringstatic zIndex: numberMentioned 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.