Skip to content

LinesMarkers3DLazy ​

Experimental

Variables ​

VariableDescription
DEFAULT_SPHERE_LIGHTING-

Functions ​

FunctionDescription
createLine3DEntry of the lazily loaded 3D line and marker chunk (plan E14.2, the render part of scatter3d): the only module lines-markers-3d-loader.ts imports, with a dynamic import(), so 2D charts (and the basic and core + scatter bundles) never load 3D line, sprite, sphere or depth-sorting code. Nothing else in the package imports these modules statically (the package exports only their types), which is what lets bundlers split them out.
createMarkers3DCreate Markers3D. Add markers.object to a 3D scene (or viewport.add(markers)).
createSpheresCreate a SphereSet. Add spheres.object to a 3D scene (or viewport.add(spheres)).
depthOrderWrite into order[0..count) the point indices sorted back to front (farthest first: ascending view depth, see viewDepthCoefficients). Points with a non-finite coordinate go first (they are not drawn). Stable: equal depths keep their data order.
viewDepthCoefficientsView-space z of a data point as an affine function of its coordinates: row 2 of the model-view matrix (column-major modelView, three.js Matrix4.elements) composed with the data → world transform.

References ​

Line3D ​

Re-exports Line3D


Markers3D ​

Re-exports Markers3D


SphereSet ​

Re-exports SphereSet

Released under the MIT License.