@allmaps/render
Version:
Render functions for WebGL and image buffers
19 lines (17 loc) • 1.03 kB
TypeScript
import { GetImageDataValue, GetImageDataSize } from './types.js';
import { WarpedMapList } from '../maps/WarpedMapList.js';
import { WarpedMap } from '../maps/WarpedMap.js';
import { Viewport } from '../viewport/Viewport.js';
import { TileCache } from '../tilecache/TileCache.js';
/**
* Render to IntArray
*
* @param warpedMapList - WarpedMapList who's WarpedMaps will be rendered
* @param tileCache - TileCache who's tiles will be used
* @param viewport - Viewport to render to. This can be the entire image, or a single XYZ tile
* @param getImageDataValue - Function to access the data of the image, at a specific index
* @param getImageDataSize - Function to access the size of the image
* @param intArray - IntArray to render to
* @returns
*/
export declare function renderToIntArray<W extends WarpedMap, D>(warpedMapList: WarpedMapList<W>, tileCache: TileCache<D>, viewport: Viewport, getImageDataValue: GetImageDataValue<D>, getImageDataSize: GetImageDataSize<D>, intArray: Uint8ClampedArray): Promise<void>;