UNPKG

@giro3d/giro3d

Version:

A JS/WebGL framework for 3D geospatial data visualization

43 lines 1.54 kB
import { Color } from 'three'; import type Extent from '../core/geographic/Extent'; import type { CustomContainsFn, GetImageOptions } from './ImageSource'; import ImageSource, { ImageResult } from './ImageSource'; export default class DebugSource extends ImageSource { readonly isDebugSource: boolean; readonly type: "DebugSource"; private readonly _delay; private readonly _extent; private readonly _opacity; private readonly _subdivisions; private readonly _color; /** * @param options - options */ constructor(options: { /** The extent. */ extent: Extent; /** The delay before loading the images, in milliseconds. */ delay?: number | (() => number); /** The opacity of the images. */ opacity?: number; /** The color of the images. */ color?: Color | ((options: GetImageOptions) => Color); /** How many images per tile are served. */ subdivisions?: number; /** The custom function to test if a given extent is contained in this source. */ containsFn?: CustomContainsFn; }); adjustExtentAndPixelSize(requestExtent: Extent, requestWidth: number, requestHeight: number): { extent: Extent; width: number; height: number; } | null; private getImage; getCrs(): string; getExtent(): Extent; getImages(options: GetImageOptions): { id: string; request: () => Promise<ImageResult>; }[]; } //# sourceMappingURL=DebugSource.d.ts.map