Interface RenderingContextHandler
Methods
onRenderingContextLost
- onRenderingContextLost(options): void
Parameters
- options: {
canvas: HTMLCanvasElement;
}canvas: HTMLCanvasElement
Returns void
onRenderingContextRestored
- onRenderingContextRestored(options): void
Parameters
- options: {
canvas: HTMLCanvasElement;
}canvas: HTMLCanvasElement
Returns void
Trait for objects that need to handle rendering context loss and restoration.