Class: UIWLState

UIWLState

Manages the global state of the Remote Sensing User Interface (RSUI). This class provides static methods to interact with the state, allowing retrieval and update of various properties related to the application, such as selected plots, top navigation data, and information container details.

new UIWLState()

Layers/GoWaterLeakRemoteSensing/clases/UI/state/index.ts, line 10

Methods

staticUIWLState.dispatch(action)

Layers/GoWaterLeakRemoteSensing/clases/UI/state/index.ts, line 60

Dispatches an action to update the global state. The method handles different action types and updates the state accordingly.

Name Type Description
action IWLSStateAction

The action object containing the type and payload (if any) for the state update.

staticUIWLState.get(key){unknown}

Layers/GoWaterLeakRemoteSensing/clases/UI/state/index.ts, line 42

Retrieves a specific value from the global state using a key.

Name Type Description
key string

The key of the state value to retrieve.

Returns:
Type Description
unknown The value associated with the specified key.

staticUIWLState.getState(){IWLSState}

Layers/GoWaterLeakRemoteSensing/clases/UI/state/index.ts, line 25

Retrieves the entire state object.

Returns:
Type Description
IWLSState The current global state of the RSUI.

staticUIWLState.set(key, value)

Layers/GoWaterLeakRemoteSensing/clases/UI/state/index.ts, line 51

Sets a specific value in the global state.

Name Type Description
key string

The key of the state value to update.

value unknown

The new value to set for the specified key.

staticUIWLState.setState(state)

Layers/GoWaterLeakRemoteSensing/clases/UI/state/index.ts, line 33

Updates the global state with the provided state object.

Name Type Description
state IWLSState

The new state to be merged into the current state.