geoview-core - v2.2.0
    Preparing search index...

    Interface IDrawerState

    Represents the Drawer plugin state managed by the Zustand store.

    interface IDrawerState {
        actions: {
            setActiveGeom: (geomType: string) => void;
            setFillColor: (fillColor: string) => void;
            setHideMeasurements: (hideMeasurements: boolean) => void;
            setIconSize: (iconSize: number) => void;
            setIconSrc: (iconSrc: string) => void;
            setIsDrawing: (isDrawing: boolean) => void;
            setIsEditing: (isEditing: boolean) => void;
            setIsSnapping: (isSnapping: boolean) => void;
            setRedoDisabled: (redoDisabled: boolean) => void;
            setSelectedDrawingType: (drawingType: string | undefined) => void;
            setStrokeColor: (strokeColor: string) => void;
            setStrokeWidth: (strokeWidth: number) => void;
            setStyle: (style: StyleProps) => void;
            setTextBold: (textBold: boolean) => void;
            setTextColor: (textColor: string) => void;
            setTextFont: (textFont: string) => void;
            setTextHaloColor: (textHaloColor: string) => void;
            setTextHaloWidth: (textHaloWidth: number) => void;
            setTextItalic: (textItalic: boolean) => void;
            setTextRotation: (textRotation: number) => void;
            setTextSize: (textSize: number) => void;
            setTextValue: (text: string | string[]) => void;
            setUndoDisabled: (undoDisabled: boolean) => void;
            updateStateStyle: (style: StyleProps) => void;
        };
        activeGeom: string;
        geomTypes: string[];
        hideMeasurements: boolean;
        iconSrc: string;
        isDrawing: boolean;
        isEditing: boolean;
        isSnapping: boolean;
        redoDisabled: boolean;
        selectedDrawingType: string
        | undefined;
        setDefaultConfigValues: (config: TypeMapFeaturesConfig) => void;
        style: StyleProps;
        undoDisabled: boolean;
    }
    Index

    Properties

    actions: {
        setActiveGeom: (geomType: string) => void;
        setFillColor: (fillColor: string) => void;
        setHideMeasurements: (hideMeasurements: boolean) => void;
        setIconSize: (iconSize: number) => void;
        setIconSrc: (iconSrc: string) => void;
        setIsDrawing: (isDrawing: boolean) => void;
        setIsEditing: (isEditing: boolean) => void;
        setIsSnapping: (isSnapping: boolean) => void;
        setRedoDisabled: (redoDisabled: boolean) => void;
        setSelectedDrawingType: (drawingType: string | undefined) => void;
        setStrokeColor: (strokeColor: string) => void;
        setStrokeWidth: (strokeWidth: number) => void;
        setStyle: (style: StyleProps) => void;
        setTextBold: (textBold: boolean) => void;
        setTextColor: (textColor: string) => void;
        setTextFont: (textFont: string) => void;
        setTextHaloColor: (textHaloColor: string) => void;
        setTextHaloWidth: (textHaloWidth: number) => void;
        setTextItalic: (textItalic: boolean) => void;
        setTextRotation: (textRotation: number) => void;
        setTextSize: (textSize: number) => void;
        setTextValue: (text: string | string[]) => void;
        setUndoDisabled: (undoDisabled: boolean) => void;
        updateStateStyle: (style: StyleProps) => void;
    }

    Actions to mutate the Drawer state.

    activeGeom: string

    The currently active geometry type for drawing.

    geomTypes: string[]

    The list of available geometry types.

    hideMeasurements: boolean

    Whether measurement overlays are hidden.

    iconSrc: string

    The icon source URL for point drawings.

    isDrawing: boolean

    Whether the drawer is currently drawing.

    isEditing: boolean

    Whether the drawer is in editing mode.

    isSnapping: boolean

    Whether snapping is enabled.

    redoDisabled: boolean

    Whether the redo action is disabled.

    selectedDrawingType: string | undefined

    The currently selected drawing type.

    setDefaultConfigValues: (config: TypeMapFeaturesConfig) => void

    Sets default drawer configuration values from the map features config.

    style: StyleProps

    The current drawing style properties.

    undoDisabled: boolean

    Whether the undo action is disabled.