Skip to main content

ConnectionLayerToolSelectionChangeAdapter

geovisto-mapReadme | API


geovisto-map / ConnectionLayerToolSelectionChangeAdapter

Class: ConnectionLayerToolSelectionChangeAdapter

This class provides Selection tool change event adapter.

Author

Jiri Hynek

Constructors

new ConnectionLayerToolSelectionChangeAdapter()

new ConnectionLayerToolSelectionChangeAdapter(tool): ConnectionLayerToolSelectionChangeAdapter

Parameters

tool: IConnectionLayerTool\<IConnectionLayerToolProps, IConnectionLayerToolDefaults, IConnectionLayerToolState\<IConnectionLayerToolProps, IConnectionLayerToolDefaults, IConnectionLayerToolConfig, object, object>, IConnectionLayerToolConfig, IMapToolInitProps\<IConnectionLayerToolConfig>>

Returns

ConnectionLayerToolSelectionChangeAdapter

Source

tools/layers/connection/model/internal/adapters/SelectionChangeAdapter.ts:32

Properties

selectionToolAPI?

private optional selectionToolAPI: ISelectionToolAPI

Source

tools/layers/connection/model/internal/adapters/SelectionChangeAdapter.ts:28


tool

private tool: IConnectionLayerTool\<IConnectionLayerToolProps, IConnectionLayerToolDefaults, IConnectionLayerToolState\<IConnectionLayerToolProps, IConnectionLayerToolDefaults, IConnectionLayerToolConfig, object, object>, IConnectionLayerToolConfig, IMapToolInitProps\<IConnectionLayerToolConfig>>

Source

tools/layers/connection/model/internal/adapters/SelectionChangeAdapter.ts:30

Methods

getSelectionTool()

private getSelectionTool(): undefined | ISelectionToolAPI

Help function which acquires and returns the selection tool if available.

Returns

undefined | ISelectionToolAPI

Source

tools/layers/connection/model/internal/adapters/SelectionChangeAdapter.ts:39


handleEvent()

handleEvent(event): void

This function is called when a custom event is invoked.

Parameters

event: IMapEvent\<IMapObject\<IMapObjectProps, IMapObjectDefaults\<IMapObjectProps, IMapObjectConfig>, IMapObjectState\<IMapObjectProps, IMapObjectDefaults\<IMapObjectProps, IMapObjectConfig>, IMapObjectConfig, IMapObjectInitProps\<IMapObjectConfig>>, IMapObjectConfig, IMapObjectInitProps\<IMapObjectConfig>>>

Returns

void

Source

tools/layers/connection/model/internal/adapters/SelectionChangeAdapter.ts:53


setSelection()

setSelection(selection): void

This function updates styles according to the given selection.

Parameters

selection: undefined | null | IMapSelection

Returns

void

Source

tools/layers/connection/model/internal/adapters/SelectionChangeAdapter.ts:71


updateSelection()

updateSelection(): void

This function acquires current selection and updates styles according to the given selection.

Returns

void

Source

tools/layers/connection/model/internal/adapters/SelectionChangeAdapter.ts:62