import { type TgdCamera, TgdContext, TgdControllerCameraOrbit, type TgdControllerCameraOrbitOptions, TgdEvent } from "@tolokoban/tgd"; import { type ScalebarOptions } from "./scalebar"; export interface CanvasOptions extends WebGLContextAttributes { cameraController: Partial | null; name: string; } export declare abstract class AbstractCanvas { readonly eventPixelScaleChange: TgdEvent; readonly eventMouseWheelWithoutCtrl: TgdEvent; readonly name: string; private _camera; private previousCameraHeight; private previousCameraZoom; private previousViewportHeight; protected readonly options: CanvasOptions; orbiter: TgdControllerCameraOrbit | null; protected context: TgdContext | null; private _canvas; constructor(options: Partial); get camera(): TgdCamera; set camera(value: TgdCamera); refresh(): void; toggleFullscreen(): Promise; takeSnapshot(target: HTMLCanvasElement): void; get pixelScale(): number; computeScalebar(options?: Partial): { sizeInPixel: number; value: number; unit: string; } | null; get canvas(): HTMLCanvasElement | null; set canvas(canvas: HTMLCanvasElement | null); protected abstract init(): void; private readonly handleMouseWheel; private readonly handlePixelScaleDispatch; } //# sourceMappingURL=abstract-canvas.d.ts.map