ScribbleManager
Table of contents
class ScribbleManager {}
Constructs a new instance of the ScribbleManager
class
Parameters
Name | Description |
---|---|
|
|
Properties
Set the scribble's next point.
addPoint: (id: ScribbleItem['id'], x: number, y: number) => ScribbleItem
Parameters
Name | Description |
---|---|
| The point to add. |
addScribble: (scribble: Partial<TLScribble>, id?: string) => ScribbleItem
scribbleItems: Map<string, ScribbleItem>
state: 'paused' | 'running'
Start stopping the scribble. The scribble won't be removed until its last point is cleared.
stop: (id: ScribbleItem['id']) => ScribbleItem
Update on each animation frame.
tick: (elapsed: number) => void
Parameters
Name | Description |
---|---|
| The number of milliseconds since the last tick. |
Methods
reset(): void