Documentation
    Preparing search index...

    Slice managing the state related to the creation flow of measurements.

    interface CreationSlice {
        _setCreationType: (type: AnnotationMeasurementType) => void;
        _setCreationTypePlanar: (type: CreationTypePlanar) => void;
        _setDraftMeasurement: (draft: AnnotationMeasurementPending) => void;
        _setDraftTargetOrientation: (
            orientation: TargetOrientation<
                Vector3Geocentric
                | Vector3NonReferenced,
            >,
        ) => void;
        _setDraftThumbnail: (blob: Blob | undefined) => void;
        _setEnoughDepthDataLoaded: (enough: boolean) => void;
        _startMeasurementCreation: () => void;
        _updateDraftMeasurementPoints: (
            points: (Vector3Geocentric | Vector3NonReferenced)[],
            attributes: MeasurementAttributes,
        ) => void;
        creationType: AnnotationMeasurementType;
        creationTypePlanar: CreationTypePlanar;
        enoughDepthDataLoaded: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _setCreationType: (type: AnnotationMeasurementType) => void
    _setCreationTypePlanar: (type: CreationTypePlanar) => void
    _setDraftMeasurement: (draft: AnnotationMeasurementPending) => void
    _setDraftTargetOrientation: (
        orientation: TargetOrientation<Vector3Geocentric | Vector3NonReferenced>,
    ) => void
    _setDraftThumbnail: (blob: Blob | undefined) => void
    _setEnoughDepthDataLoaded: (enough: boolean) => void
    _startMeasurementCreation: () => void
    _updateDraftMeasurementPoints: (
        points: (Vector3Geocentric | Vector3NonReferenced)[],
        attributes: MeasurementAttributes,
    ) => void

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

    creationTypePlanar: CreationTypePlanar

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

    enoughDepthDataLoaded: boolean

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