Interface: AnimationCanvasInstance
Defined in: dom/src/canvas/animation.ts:91
Properties
destroy
destroy: () => void;
Defined in: dom/src/canvas/animation.ts:107
Returns
void
redraw
redraw: () => void;
Defined in: dom/src/canvas/animation.ts:105
Draw one frame now, whether or not animate is on.
Returns
void
update
update: (options) => void;
Defined in: dom/src/canvas/animation.ts:102
Replace the given options. Lets a wrapper feed a fresh draw in on every
render without restarting the animation, so the frame count and the
elapsed time keep running.
resizable and contextAttributes are fixed for the lifetime of the
instance and are ignored here.
While animate is off this also draws a frame, since nothing else would.
Parameters
| Parameter | Type |
|---|---|
options | Partial<AnimationCanvasOptions> |
Returns
void