UNPKG

@allmaps/render

Version:

Render functions for WebGL and image buffers

24 lines (22 loc) 806 B
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 ImageBitMap. */ export declare class CacheableImageBitmapTile extends CacheableTile<ImageBitmap> { /** * Fetch the tile and create its ImageBitMap. * @returns */ fetch(): Promise<ImageBitmap | undefined>; applySprites(): Promise<void>; spritesDataToCachedTiles(): never[]; static createFactory(): (fetchableTile: FetchableTile, fetchFn?: FetchFn) => CacheableImageBitmapTile; } /** * Class for cacheable tiles that have been fetched. */ export declare class CachedImageBitmapTile extends CacheableImageBitmapTile { data: ImageBitmap; }