Skip to main content

SidebarToolThemeChangeAdapter

geovisto-mapReadme | API


geovisto-map / SidebarToolThemeChangeAdapter

Class: SidebarToolThemeChangeAdapter

This class provides Theme change event adapter.

Author

Jiri Hynek

Constructors

new SidebarToolThemeChangeAdapter()

new SidebarToolThemeChangeAdapter(tool): SidebarToolThemeChangeAdapter

Parameters

tool: ISidebarTool\<ISidebarToolProps, ISidebarToolDefaults, ISidebarToolState\<ISidebarToolProps, ISidebarToolDefaults, ISidebarToolConfig>, ISidebarToolConfig, IMapToolInitProps\<ISidebarToolConfig>>

Returns

SidebarToolThemeChangeAdapter

Source

tools/sidebar/model/internal/adapters/ThemeChangeAdapter.ts:27

Properties

themesToolAPI?

private optional themesToolAPI: IThemesToolAPI

Source

tools/sidebar/model/internal/adapters/ThemeChangeAdapter.ts:23


tool

private tool: ISidebarTool\<ISidebarToolProps, ISidebarToolDefaults, ISidebarToolState\<ISidebarToolProps, ISidebarToolDefaults, ISidebarToolConfig>, ISidebarToolConfig, IMapToolInitProps\<ISidebarToolConfig>>

Source

tools/sidebar/model/internal/adapters/ThemeChangeAdapter.ts:25

Methods

getThemesTool()

private getThemesTool(): undefined | IThemesToolAPI

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

Returns

undefined | IThemesToolAPI

Source

tools/sidebar/model/internal/adapters/ThemeChangeAdapter.ts:34


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/sidebar/model/internal/adapters/ThemeChangeAdapter.ts:49