Selva Compute API Reference - v2.1.0
    Preparing search index...

    Interface MeasureOptions

    interface MeasureOptions {
        color?: ColorRepresentation;
        format?: (distance: number, delta: Vector3) => string;
        labelClassName?: string;
        snapPixels?: number;
    }
    Index

    Properties

    Marker + line color. Default yellow.

    format?: (distance: number, delta: Vector3) => string

    Format the measurement → label text. Receives the straight-line distance and the per-axis delta (|b − a| on each axis). May return multi-line text or HTML; the default renders the total plus a Δx/Δy/Δz breakdown. Old (distance) => string callbacks remain valid.

    labelClassName?: string

    CSS class applied to the distance label, for styling.

    snapPixels?: number

    Snap to a vertex when the cursor is within this many screen pixels of it. Default 12.