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
| Parameter | Type |
|---|---|
gl | WebGL2RenderingContext |
opts | ContourOptions |
Returns
ContourLayer
Properties
id
ts
readonly id: string;Defined in: layers/contour.ts:56
Implementation of
yAxis
ts
readonly yAxis: string;Defined in: layers/contour.ts:57
The y axis this layer is bound to.
Implementation of
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
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
dispose()
ts
dispose(): void;Defined in: layers/contour.ts:195
Returns
void
Implementation of
draw()
ts
draw(state): void;Defined in: layers/contour.ts:185
Parameters
| Parameter | Type |
|---|---|
state | DrawState |
Returns
void
Implementation of
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
| Parameter | Type |
|---|---|
values | ArrayLike<number> |
cols | number |
rows | number |
Returns
void