Class: Line3DLayer
Defined in: plot3d/line3d.ts:39
A 3D polyline / path (GL_LINE_STRIP).
Implements
Constructors
Constructor
ts
new Line3DLayer(gl, opts): Line3DLayer;Defined in: plot3d/line3d.ts:54
Parameters
| Parameter | Type |
|---|---|
gl | WebGL2RenderingContext |
opts | Line3DOptions |
Returns
Line3DLayer
Properties
colorCss
ts
readonly colorCss: string;Defined in: plot3d/line3d.ts:42
A solid CSS color for the legend swatch (solid-colored layers only).
Implementation of
id
ts
readonly id: string;Defined in: plot3d/line3d.ts:40
Implementation of
name?
ts
readonly optional name?: string;Defined in: plot3d/line3d.ts:41
Series name for the legend (optional).
Implementation of
Methods
bounds3()
ts
bounds3(): Bounds3 | null;Defined in: plot3d/line3d.ts:90
Returns
Bounds3 | null
Implementation of
dispose()
ts
dispose(): void;Defined in: plot3d/line3d.ts:123
Returns
void
Implementation of
draw()
ts
draw(gl, mvp): void;Defined in: plot3d/line3d.ts:113
Parameters
| Parameter | Type |
|---|---|
gl | WebGL2RenderingContext |
mvp | Mat4 |
Returns
void
Implementation of
pickData()
ts
pickData():
| {
positions: Float32Array<ArrayBufferLike>;
}
| null;Defined in: plot3d/line3d.ts:92
Data-space points for hover picking (xyz triples), with an optional per-point tooltip label builder. Null if the layer isn't pickable.
Returns
| { positions: Float32Array<ArrayBufferLike>; } | null
Implementation of
setData()
ts
setData(
x,
y,
z): void;Defined in: plot3d/line3d.ts:95
Stream a new path. Call plot.refresh() afterwards to re-fit + redraw.
Parameters
| Parameter | Type |
|---|---|
x | ArrayLike<number> |
y | ArrayLike<number> |
z | ArrayLike<number> |
Returns
void