Skip to content

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 ​

ParameterType
glWebGL2RenderingContext
optsLine3DOptions

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 ​

Layer3D.colorCss


id ​

ts
readonly id: string;

Defined in: plot3d/line3d.ts:40

Implementation of ​

Layer3D.id


name? ​

ts
readonly optional name?: string;

Defined in: plot3d/line3d.ts:41

Series name for the legend (optional).

Implementation of ​

Layer3D.name

Methods ​

bounds3() ​

ts
bounds3(): Bounds3 | null;

Defined in: plot3d/line3d.ts:90

Returns ​

Bounds3 | null

Implementation of ​

Layer3D.bounds3


dispose() ​

ts
dispose(): void;

Defined in: plot3d/line3d.ts:123

Returns ​

void

Implementation of ​

Layer3D.dispose


draw() ​

ts
draw(gl, mvp): void;

Defined in: plot3d/line3d.ts:113

Parameters ​

ParameterType
glWebGL2RenderingContext
mvpMat4

Returns ​

void

Implementation of ​

Layer3D.draw


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 ​

Layer3D.pickData


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 ​

ParameterType
xArrayLike<number>
yArrayLike<number>
zArrayLike<number>

Returns ​

void

MIT licensed. WebGL2 required.