@giro3d/giro3d
Version:
A JS/WebGL framework for 3D geospatial data visualization
26 lines • 767 B
TypeScript
/**
* Trait for objects that need to handle rendering context loss and restoration.
*/
export default interface RenderingContextHandler {
/**
* Called when the rendering context has been lost.
* @param options - The options.
*/
onRenderingContextLost(options: {
/**
* The canvas holding the restored rendering context.
*/
canvas: HTMLCanvasElement;
}): void;
/**
* Called when the rendering context has been restored.
* @param options - The options.
*/
onRenderingContextRestored(options: {
/**
* The canvas holding the restored rendering context.
*/
canvas: HTMLCanvasElement;
}): void;
}
//# sourceMappingURL=RenderingContextHandler.d.ts.map