import type { CatalogStar, ObservedStar, Observer, SkyEngine, SkyOptions } from "../types.js"; import type { ConstellationLine } from "../constellations/types.js"; import type { ProjectedPoint, SkyProjection } from "./projection.js"; export interface CanvasSkyOptions extends Omit { readonly catalog: readonly CatalogStar[]; readonly observer: Observer; readonly date?: Date | (() => Date); readonly background?: string | null; readonly horizonColor?: string; readonly gridColor?: string; readonly labelColor?: string; readonly constellationColor?: string; readonly showGrid?: boolean; readonly showCardinalLabels?: boolean; readonly showStarLabels?: boolean; readonly labelMagnitudeLimit?: number; readonly constellationLines?: readonly ConstellationLine[]; readonly projection?: SkyProjection; readonly rotationDegrees?: number; readonly zoom?: number; readonly maxDpr?: number; readonly autoResize?: boolean; readonly updateIntervalMs?: number; } export interface CanvasHit { readonly star: ObservedStar; readonly point: ProjectedPoint; readonly distancePixels: number; } export interface CanvasSkyController { readonly canvas: HTMLCanvasElement; readonly sky: SkyEngine; readonly destroyed: boolean; render(date?: Date): void; resize(): void; start(): void; stop(): void; hitTest(x: number, y: number, radiusPixels?: number): CanvasHit | undefined; setView(view: { readonly rotationDegrees?: number; readonly zoom?: number; readonly projection?: SkyProjection; }): void; destroy(): void; } export interface CanvasSize { readonly width: number; readonly height: number; readonly dpr: number; } //# sourceMappingURL=types.d.ts.map