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

    Interface DisplayItemBase

    Style fields every visible item can honour. Lines and points have no PBR (no metalness/roughness), so only color + opacity apply here; a future kind that needs richer material adds fields to its own variant rather than bloating this base.

    interface DisplayItemBase {
        color?: string;
        id: string;
        layer: string;
        metadata?: Record<string, string>;
        name: string;
        opacity?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    color?: string

    Hex/rgb/named color string, parsed by parseColor. Falls back to a viewer default.

    id: string

    Stable pick key. Both meshes and items synthesize it as ${sourceComponentId}:${originalIndex}.

    layer: string

    Layer path for grouping in the scene manager (e.g. "Structure/Walls").

    metadata?: Record<string, string>

    Arbitrary key-value pairs from the GH Metadata input.

    name: string

    Human label (e.g. "North wall"). Distinct from id — renaming must not change identity.

    opacity?: number

    Opacity 0–1. Omitted means fully opaque.