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

    Interface LabelHandle

    An HTML label layer that tracks 3D positions, via three's CSS2DRenderer. Labels are real DOM nodes (crisp text, CSS-stylable) positioned each frame to follow points in the scene — the foundation for measurement readouts, dimension annotations, and point tags.

    The CSS2D renderer draws into its own absolutely-positioned DOM overlay stacked on top of the WebGL canvas (pointer-events disabled so it never steals clicks from the viewer). The viewer owns one of these; features like the measure tool add/remove labels through it.

    interface LabelHandle {
        object: CSS2DObject;
        remove(): void;
        setPosition(position: Vector3): void;
        setText(text: string): void;
    }
    Index

    Properties

    Methods

    Properties

    object: CSS2DObject

    The CSS2DObject in the scene graph.

    Methods