Documentation
    Preparing search index...

    Store interface combining all base state slices. This represents the raw, mutable state managed by Zustand.

    interface Store {
        _forceVisibility: boolean;
        _measurements: ObserveAnnotationMeasurementResult;
        _setAdvancedDetails: (visible: boolean) => void;
        _setCreationType: (type: AnnotationMeasurementType) => void;
        _setCreationTypePlanar: (type: CreationTypePlanar) => void;
        _setCursorCoordinates: (visible: boolean) => void;
        _setDraftMeasurement: (draft: AnnotationMeasurementPending) => void;
        _setDraftTargetOrientation: (
            orientation: TargetOrientation<
                Vector3Geocentric
                | Vector3NonReferenced,
            >,
        ) => void;
        _setDraftThumbnail: (blob: Blob | undefined) => void;
        _setEnoughDepthDataLoaded: (enough: boolean) => void;
        _setForceVisibility: (visible: boolean) => void;
        _setHoveredMeasurement: (
            id: AnnotationMeasurement.AnnotationMeasurementId | undefined,
        ) => void;
        _setMeasurementToDelete: (
            id: AnnotationMeasurement.AnnotationMeasurementId | undefined,
        ) => void;
        _setMeasurementVisible: (
            id: AnnotationMeasurement.AnnotationMeasurementId,
            visible: boolean,
        ) => void;
        _setSelectedMeasurement: (
            id: AnnotationMeasurement.AnnotationMeasurementId | undefined,
        ) => void;
        _setUnitSystem: (unitSystem: UnitSystem) => void;
        _startListMode: () => void;
        _startMeasurementCreation: () => void;
        _startMeasurementEdit: (
            id: AnnotationMeasurement.AnnotationMeasurementId,
        ) => void;
        _ui: UIModeInternal;
        _updateDraftMeasurementPoints: (
            points: (Vector3Geocentric | Vector3NonReferenced)[],
            attributes: MeasurementAttributes,
        ) => void;
        _visibleMeasurementIds: AnnotationMeasurement.AnnotationMeasurementId[];
        advancedDetails: boolean;
        creationType: AnnotationMeasurementType;
        creationTypePlanar: CreationTypePlanar;
        cursorCoordinates: boolean;
        enoughDepthDataLoaded: boolean;
        filterQuery: string;
        setFilterQuery: (query: string) => void;
        unitSystem: UnitSystem;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _forceVisibility: boolean

    Whether visibility is being forced for all measurements, overriding individual visibility settings.

    All measurements loaded from the service, wrapped in a DeferredResult

    _setAdvancedDetails: (visible: boolean) => void
    _setCreationType: (type: AnnotationMeasurementType) => void
    _setCreationTypePlanar: (type: CreationTypePlanar) => void
    _setCursorCoordinates: (visible: boolean) => void
    _setDraftMeasurement: (draft: AnnotationMeasurementPending) => void
    _setDraftTargetOrientation: (
        orientation: TargetOrientation<Vector3Geocentric | Vector3NonReferenced>,
    ) => void
    _setDraftThumbnail: (blob: Blob | undefined) => void
    _setEnoughDepthDataLoaded: (enough: boolean) => void
    _setForceVisibility: (visible: boolean) => void

    Set whether visibility is being forced for all measurements.

    _setHoveredMeasurement: (
        id: AnnotationMeasurement.AnnotationMeasurementId | undefined,
    ) => void

    Set the currently hovered measurement ID. Only works in 'view' and 'list' modes.

    _setMeasurementToDelete: (
        id: AnnotationMeasurement.AnnotationMeasurementId | undefined,
    ) => void

    Set the measurement ID to delete. Only works in 'view' and 'list' modes. Will retain or switch modes as appropriate when setting or unsetting the ID.

    _setMeasurementVisible: (
        id: AnnotationMeasurement.AnnotationMeasurementId,
        visible: boolean,
    ) => void

    Set the visibility of a specific measurement by ID. Will only work for measurements that exist and pass the current search filter.

    _setSelectedMeasurement: (
        id: AnnotationMeasurement.AnnotationMeasurementId | undefined,
    ) => void

    Set the currently selected measurement ID. Setting to undefined unselects any selection. On selection, switches to 'view' mode; on unselection, switches to 'list' mode.

    _setUnitSystem: (unitSystem: UnitSystem) => void
    _startListMode: () => void

    Set the UI to list mode regardless of current mode.

    _startMeasurementCreation: () => void
    _startMeasurementEdit: (
        id: AnnotationMeasurement.AnnotationMeasurementId,
    ) => void

    Start editing the measurement with the given ID. Only works from 'view' or 'list' modes. Switches to 'edit' mode.

    _updateDraftMeasurementPoints: (
        points: (Vector3Geocentric | Vector3NonReferenced)[],
        attributes: MeasurementAttributes,
    ) => void

    List of measurement IDs that are explicitly set to be visible.

    advancedDetails: boolean

    Whether advanced details are shown in the measurement UI.

    The type of measurement being created (orthogonal, planar, etc.).

    creationTypePlanar: CreationTypePlanar

    The planar creation type for when creationType is planar (projection or raycast).

    cursorCoordinates: boolean

    Whether cursor coordinates are shown in the measurement UI.

    enoughDepthDataLoaded: boolean

    Whether enough depth data has been loaded to facilitate accurate measurement creation.

    filterQuery: string

    User's search/filter query string

    setFilterQuery: (query: string) => void

    Set the user's search/filter query string

    unitSystem: UnitSystem

    The unit system used for measurements (metric or imperial).