Skip to content

Interface: PointSource2D ​

Experimental

A 2D point set the CPU picker can index. Coordinates live in the source's own space and map to the view's world space (2D: CSS px from the viewport rect's bottom-left) through world = v * scale + offset per axis.

Extended by ​

Properties ​

PropertyModifierTypeDescription
countreadonlynumberExperimental Number of points.
offsetXreadonlynumberExperimental
offsetYreadonlynumberExperimental
scaleXreadonlynumberExperimental
scaleYreadonlynumberExperimental
versionreadonlynumberExperimental Bumped whenever positions or count change; the index rebuilds on the next query.

Methods ​

readPositions() ​

ts
readPositions(xs, ys): void;

Experimental

Write source-space coordinates of points [0, count) into xs/ys; NaN for gaps.

Parameters ​

ParameterType
xsFloat64Array
ysFloat64Array

Returns ​

void

Released under the MIT License.