@mocanvas/editor · interface

ScribbleItem

interface ScribbleItem

One live scribble, plus the bookkeeping that fades it out.

The scribble is what ends up in the instance record and on screen; the rest is the manager's own state — how long the tail has left, and the last point taken, so a stationary pointer does not stack duplicate points.


Properties · 5

delayRemaining: number

Milliseconds of delay still to burn before points start being shed.

id: string
next: {

The point most recently offered, appended on the next tick.

prev: {

The last point appended, used to drop repeats.

scribble: Scribble

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.