@allmaps/render
Version:
Render functions for WebGL and image buffers
25 lines (23 loc) • 849 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>;
applySprites(): Promise<void>;
spritesDataToCachedTiles(): never[];
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;
}