UNPKG

@shopware-ag/dive

Version:

Shopware Spatial Framework

24 lines (23 loc) 697 B
type ResizeHandler = (width: number, height: number) => void; export type DIVECanvasLayout = { width: number; height: number; }; export declare class DIVECanvasLifecycleManager { private _onResize; readonly isDIVECanvasLifecycleManager: true; private _resizeObserver; private _width; private _height; private _canvas; private _disposed; private _pollCanvasParent; private _healthyCanvasPromise; constructor(canvas: HTMLCanvasElement, _onResize: ResizeHandler); tick(): void; setCanvas(canvas: HTMLCanvasElement): void; waitForHealthyCanvas(): Promise<DIVECanvasLayout | null>; dispose(): void; private _applyResize; } export {};