Class: HexbinLayer
Defined in: layers/hexbin.ts:63
A drawable data series backed by GPU buffers.
Implements
Constructors
Constructor
ts
new HexbinLayer(gl, opts): HexbinLayer;Defined in: layers/hexbin.ts:86
Parameters
| Parameter | Type |
|---|---|
gl | WebGL2RenderingContext |
opts | HexbinOptions |
Returns
HexbinLayer
Properties
id
ts
readonly id: string;Defined in: layers/hexbin.ts:64
Implementation of
yAxis
ts
readonly yAxis: string;Defined in: layers/hexbin.ts:65
The y axis this layer is bound to.
Implementation of
Methods
bounds()
ts
bounds():
| {
x: Range;
y: Range;
}
| null;Defined in: layers/hexbin.ts:194
Data-space bounds of this layer, for autoscaling. null if empty.
Returns
| { x: Range; y: Range; } | null
Implementation of
colorInfo()
ts
colorInfo(): ColorInfo | null;Defined in: layers/hexbin.ts:190
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/hexbin.ts:210
Returns
void
Implementation of
draw()
ts
draw(state): void;Defined in: layers/hexbin.ts:199
Parameters
| Parameter | Type |
|---|---|
state | DrawState |
Returns
void
Implementation of
setData()
ts
setData(x, y): void;Defined in: layers/hexbin.ts:181
Replace the point arrays, re-bin and re-upload the cells (for streaming).
Parameters
| Parameter | Type |
|---|---|
x | ArrayLike<number> |
y | ArrayLike<number> |
Returns
void