UNPKG

@allmaps/render

Version:

Render functions for WebGL and image buffers

22 lines (20 loc) 730 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>; static createFactory(): (fetchableTile: FetchableTile, fetchFn?: FetchFn) => CacheableImageBitmapTile; } /** * Class for cacheable tiles that have been fetched. */ export declare class CachedImageBitmapTile extends CacheableImageBitmapTile { data: ImageBitmap; }