Skip to content

Commit

Permalink
feat: autogenerated typings 🎉
Browse files Browse the repository at this point in the history
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
  • Loading branch information
vinayakkulkarni committed Oct 26, 2022
1 parent d53ac9e commit 8a84247
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions types/mapbox-gl-interpolate-heatmap.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import mapboxgl, { CustomLayerInterface } from 'mapbox-gl';

declare type Options = {
id: string;
opacity?: number;
minValue?: number;
maxValue?: number;
p?: number;
framebufferFactor?: number;
data: {
lat: number;
lon: number;
val: number;
}[];
aoi?: {
lat: number;
lon: number;
}[];
valueToColor?: string;
};
declare class MapboxInterpolateHeatmapLayer implements CustomLayerInterface {
framebufferFactor: number;
id: string;
maxValue: number;
minValue: number;
opacity: number;
p: number;
data: {
lat: number;
lon: number;
val: number;
}[];
aoi?: {
lat: number;
lon: number;
}[];
textureCoverSameAreaAsROI: boolean;
valueToColor?: string;
valueToColor4?: string;
points: number[][];
aPositionComputation?: number;
aPositionDraw?: number;
canvas?: HTMLCanvasElement;
computationFramebuffer: WebGLFramebuffer | null;
computationProgram: WebGLProgram | null;
computationTexture: WebGLTexture | null;
computationVerticesBuffer: WebGLBuffer | null;
drawingVerticesBuffer: WebGLBuffer | null;
drawProgram: WebGLProgram | null;
framebufferHeight?: number;
framebufferWidth?: number;
indicesBuffer: WebGLBuffer | null;
indicesNumber: number | null;
renderingMode: '2d' | '3d';
resizeFramebuffer?: () => void;
type: 'custom';
uComputationTexture: WebGLUniformLocation | null;
uFramebufferSize: WebGLUniformLocation | null;
uMatrixComputation: WebGLUniformLocation | null;
uMatrixDraw: WebGLUniformLocation | null;
uOpacity: WebGLUniformLocation | null;
uP: WebGLUniformLocation | null;
uScreenSizeDraw: WebGLUniformLocation | null;
uUi: WebGLUniformLocation | null;
uXi: WebGLUniformLocation | null;
constructor(options: Options);
onAdd(map: mapboxgl.Map, gl: WebGLRenderingContext): void;
onRemove(map: mapboxgl.Map, gl: WebGLRenderingContext): void;
prerender(gl: WebGLRenderingContext, matrix: number[]): void;
render(gl: WebGLRenderingContext, matrix: number[]): void;
}

export {
MapboxInterpolateHeatmapLayer,
MapboxInterpolateHeatmapLayer as default,
};

0 comments on commit 8a84247

Please # to comment.