Interface: Layer3D
Defined in: plot3d/layer3d.ts:15
A drawable in the 3D scene. Positions are in world space; Plot3D supplies the MVP.
Properties
colorCss?
readonly optional colorCss?: string;Defined in: plot3d/layer3d.ts:20
A solid CSS color for the legend swatch (solid-colored layers only).
id
readonly id: string;Defined in: plot3d/layer3d.ts:16
name?
readonly optional name?: string;Defined in: plot3d/layer3d.ts:18
Series name for the legend (optional).
Methods
bounds3()
bounds3(): Bounds3 | null;Defined in: plot3d/layer3d.ts:21
Returns
Bounds3 | null
colorInfo()?
optional colorInfo(): ColorInfo | null;Defined in: plot3d/layer3d.ts:23
Colormap + value range for a colorbar, if this layer is colormapped.
Returns
ColorInfo | null
dispose()
dispose(): void;Defined in: plot3d/layer3d.ts:30
Returns
void
draw()
draw(gl, mvp): void;Defined in: plot3d/layer3d.ts:29
Parameters
| Parameter | Type |
|---|---|
gl | WebGL2RenderingContext |
mvp | Mat4 |
Returns
void
pickData()?
optional pickData():
| {
label?: (i) => string;
positions: Float32Array;
}
| null;Defined in: plot3d/layer3d.ts:28
Data-space points for hover picking (xyz triples), with an optional per-point tooltip label builder. Null if the layer isn't pickable.
Returns
| { label?: (i) => string; positions: Float32Array; } | null