Web Viewer - v0.43.2
    Preparing search index...

    Type Alias SelectedItem

    SelectedItem:
        | {
            entityPath: string;
            instance?: bigint;
            type: "entity";
            viewId?: Uuid;
        }
        | { component: string; entityPath: string; type: "component" }
        | { type: "view"; viewId: Uuid }
        | { containerId: Uuid; type: "container" }
        | { storeId: StoreId; type: "recording" }

    One selected item.

    Type Declaration

    • { entityPath: string; instance?: bigint; type: "entity"; viewId?: Uuid }
      • entityPath: string
      • Optionalinstance?: bigint

        The index of the selected instance, e.g. one point of a point cloud. Absent when the whole entity is selected.

      • type: "entity"
      • OptionalviewId?: Uuid

        The view it was selected in, as a viewId from WebViewer.getState. Absent when selected outside of a view.

    • { component: string; entityPath: string; type: "component" }
      • component: string

        The component, e.g. Points3D:positions.

      • entityPath: string
      • type: "component"
    • { type: "view"; viewId: Uuid }
    • { containerId: Uuid; type: "container" }
    • { storeId: StoreId; type: "recording" }