Construction parameters for a single DistanceMeasurement.

Caller supplies the two world-space anchors; the plugin computes the length and the X/Y/Z component decomposition each frame.

interface DistanceMeasurementParams {
    axisVisible?: boolean;
    color?: string;
    id?: string;
    labelsVisible?: boolean;
    origin: Vec3;
    target: Vec3;
    visible?: boolean;
    wireVisible?: boolean;
}

Properties

axisVisible?: boolean

If false, hide the X/Y/Z axis-decomposition wires (red/green/ blue) and their length labels. Default true.

color?: string

CSS color for the diagonal length wire and its label background. Default "#FFA500" (orange).

id?: string

Optional id. If omitted, the plugin assigns one (numeric, monotonic).

labelsVisible?: boolean

If false, hide the numeric labels on the wires. Default true.

origin: Vec3

World-space anchor at the origin end of the measurement.

target: Vec3

World-space anchor at the target end of the measurement.

visible?: boolean

If false, the measurement is created hidden. Default true.

wireVisible?: boolean

If false, hide the diagonal length wire (the orange one between the two anchors). The axis-decomposition wires keep their own visibility flag. Default true.