@allmaps/render
Version:
Render functions for WebGL and image buffers
23 lines (21 loc) • 773 B
TypeScript
import { FetchableTile } from './FetchableTile.js';
import { CacheableTile } from './CacheableTile.js';
import { FetchFn } from '@allmaps/types';
/**
* Class for tiles that can be cached, and whose data can be processed to an ImageData object.
*/
export declare class CacheableImageDataTile extends CacheableTile<ImageData> {
/**
* Fetch the tile and create its ImageData object.
*
* @returns
*/
fetch(): Promise<ImageData | undefined>;
static createFactory(): (fetchableTile: FetchableTile, fetchFn?: FetchFn) => CacheableImageDataTile;
}
/**
* Class for tiles that is cached, and whose data has been processed to an ImageData object.
*/
export declare class CachedImageDataTile extends CacheableImageDataTile {
data: ImageData;
}