Skip to content

Class: ContourLayer ​

Defined in: layers/contour.ts:55

A drawable data series backed by GPU buffers.

Implements ​

Constructors ​

Constructor ​

ts
new ContourLayer(gl, opts): ContourLayer;

Defined in: layers/contour.ts:78

Parameters ​

ParameterType
glWebGL2RenderingContext
optsContourOptions

Returns ​

ContourLayer

Properties ​

id ​

ts
readonly id: string;

Defined in: layers/contour.ts:56

Implementation of ​

Layer.id


yAxis ​

ts
readonly yAxis: string;

Defined in: layers/contour.ts:57

The y axis this layer is bound to.

Implementation of ​

Layer.yAxis

Methods ​

bounds() ​

ts
bounds(): {
  x: Range;
  y: Range;
};

Defined in: layers/contour.ts:181

Data-space bounds of this layer, for autoscaling. null if empty.

Returns ​

ts
{
  x: Range;
  y: Range;
}
x ​
ts
x: Range;
y ​
ts
y: Range;

Implementation of ​

Layer.bounds


colorInfo() ​

ts
colorInfo(): ColorInfo | null;

Defined in: layers/contour.ts:177

Colormap + value range, when this layer maps values to colours — the plot uses it to draw a colorbar. null/absent for solid-coloured layers.

Returns ​

ColorInfo | null

Implementation of ​

Layer.colorInfo


dispose() ​

ts
dispose(): void;

Defined in: layers/contour.ts:195

Returns ​

void

Implementation of ​

Layer.dispose


draw() ​

ts
draw(state): void;

Defined in: layers/contour.ts:185

Parameters ​

ParameterType
stateDrawState

Returns ​

void

Implementation of ​

Layer.draw


setData() ​

ts
setData(
   values, 
   cols?, 
   rows?): void;

Defined in: layers/contour.ts:169

Replace the scalar field and recompute the iso lines (for streaming).

Parameters ​

ParameterType
valuesArrayLike<number>
colsnumber
rowsnumber

Returns ​

void

MIT licensed. WebGL2 required.