UNPKG

@giro3d/giro3d

Version:

A JS/WebGL framework for 3D geospatial data visualization

26 lines (25 loc) 714 B
/** * 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; }