TimelineToolState
geovisto-map / TimelineToolState
Class: TimelineToolState
This class provide functions for using the state of the layer tool.
Author
Krystof Rykala
Extends
Implements
Constructors
new TimelineToolState()
new TimelineToolState(
tool
):TimelineToolState
It creates a tool state.
Parameters
• tool: ITimelineTool
\<ITimelineToolProps
, ITimelineToolDefaults
, ITimelineToolState
\<ITimelineToolProps
, ITimelineToolDefaults
, ITimelineToolConfig
, ITimelineToolDimensionsConfig
, object
>, ITimelineToolConfig
, IMapToolInitProps
\<ITimelineToolConfig
>>
Returns
Overrides
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:21
Properties
stories
private
stories:TimelineStoryConfig
[] =[]
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:16
Methods
createStory()
createStory(
name
):void
Parameters
• name: string
Returns
void
Implementation of
ITimelineToolState
.createStory
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:192
deserialize()
deserialize(
config
):void
The method takes config and deserializes the values.
Parameters
• config: ITimelineToolConfig
Returns
void
Implementation of
ITimelineToolState
.deserialize
Overrides
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:106
deserializeDimensions()
deserializeDimensions(
dimensionsConfig
):void
It sets the marker layer dimensions property of tool state.
Parameters
• dimensionsConfig: ITimelineToolDimensionsConfig
Returns
void
Implementation of
ITimelineToolState
.deserializeDimensions
Overrides
LayerToolState
.deserializeDimensions
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:60
getDimensions()
getDimensions():
object
It returns the map layer dimensions property of the tool state.
Returns
object
chartAggregationFn
chartAggregationFn:
IMapDomainDimension
\<IMapAggregationFunction
>
chartEnabled
chartEnabled:
IMapTypeDimension
\<boolean
,ITypeManager
\<boolean
>>
chartValuePath
chartValuePath:
IMapDomainDimension
\<IMapDataDomain
>
granularity
granularity:
IMapDomainDimension
\<ITimeGranularity
>
realTimeEnabled
realTimeEnabled:
IMapTypeDimension
\<boolean
,ITypeManager
\<boolean
>>
stepTimeLength
stepTimeLength:
IMapTypeDimension
\<number
,ITypeManager
\<number
>>
story
story:
IMapTypeDimension
\<string
,ITypeManager
\<string
>>
storyEnabled
storyEnabled:
IMapTypeDimension
\<boolean
,ITypeManager
\<boolean
>>
timePath
timePath:
IMapDomainDimension
\<IMapDataDomain
>
transitionDuration
transitionDuration:
IMapTypeDimension
\<number
,ITypeManager
\<number
>>
Implementation of
ITimelineToolState
.getDimensions
Overrides
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:158
getIcon()
getIcon():
string
It returns the icon property of the tool state.
Returns
string
Implementation of
Inherited from
Source
model/internal/tool/MapToolState.ts:120
getId()
getId():
string
It returns the id property of the tool state.
Returns
string
Implementation of
Inherited from
Source
model/internal/object/MapObjectState.ts:87
getLabel()
getLabel():
string
It returns the label property of the tool state.
Returns
string
Implementation of
Inherited from
Source
model/internal/tool/MapToolState.ts:104
getLayerItems()
getLayerItems():
undefined
|Layer
[]
It returns the layer items property of the tool state.
Returns
undefined
| Layer
[]
Implementation of
ITimelineToolState
.getLayerItems
Inherited from
Source
model/internal/layer/LayerToolState.ts:104
getLayerName()
getLayerName():
string
It returns the layer name property of the tool state.
Returns
string
Implementation of
ITimelineToolState
.getLayerName
Inherited from
Source
model/internal/layer/LayerToolState.ts:88
getMap()
getMap():
IMap
\<IMapProps
,IMapDefaults
,IMapState
\<IMapProps
,IMapDefaults
,IMapConfig
>,IMapConfig
,IMapInitProps
\<IMapConfig
>>
It returns the map property of the tool state.
Returns
IMap
\<IMapProps
, IMapDefaults
, IMapState
\<IMapProps
, IMapDefaults
, IMapConfig
>, IMapConfig
, IMapInitProps
\<IMapConfig
>>
Implementation of
Inherited from
Source
model/internal/tool/MapToolState.ts:136
getMapObject()
protected
getMapObject():IMapObject
\<IMapObjectProps
,IMapObjectDefaults
\<IMapObjectProps
,IMapObjectConfig
>,IMapObjectState
\<IMapObjectProps
,IMapObjectDefaults
\<IMapObjectProps
,IMapObjectConfig
>,IMapObjectConfig
,IMapObjectInitProps
\<IMapObjectConfig
>>,IMapObjectConfig
,IMapObjectInitProps
\<IMapObjectConfig
>>
It makes the map object visible to extended classes.
Returns
IMapObject
\<IMapObjectProps
, IMapObjectDefaults
\<IMapObjectProps
, IMapObjectConfig
>, IMapObjectState
\<IMapObjectProps
, IMapObjectDefaults
\<IMapObjectProps
, IMapObjectConfig
>, IMapObjectConfig
, IMapObjectInitProps
\<IMapObjectConfig
>>, IMapObjectConfig
, IMapObjectInitProps
\<IMapObjectConfig
>>
Inherited from
Source
model/internal/object/MapObjectState.ts:39
getStories()
getStories():
TimelineStoryConfig
[]
Returns
TimelineStoryConfig
[]
Implementation of
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:171
getStoryByName()
getStoryByName(
name
):undefined
|null
|TimelineStoryConfig
Parameters
• name: string
Returns
undefined
| null
| TimelineStoryConfig
Implementation of
ITimelineToolState
.getStoryByName
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:186
getType()
getType():
string
It returns the type property of the tool state.
Returns
string
Implementation of
Inherited from
Source
model/internal/object/MapObjectState.ts:80
initialize()
initialize(
defaults
,props
,initProps
):void
It resets state with respect to initial props.
Parameters
• defaults: ITimelineToolDefaults
• props: ITimelineToolProps
• initProps: IMapToolInitProps
\<ITimelineToolConfig
>
Returns
void
Implementation of
Overrides
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:32
isEnabled()
isEnabled():
boolean
It returns the enabled property of the tool state.
Returns
boolean
Implementation of
Inherited from
Source
model/internal/tool/MapToolState.ts:88
saveStory()
saveStory(
story
):void
Parameters
• story: TimelineStoryConfig
Returns
void
Implementation of
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:179
serialize()
serialize(
defaults
?):ITimelineToolConfig
The method serializes the tool state. Optionally, defaults can be set if property is undefined.
Parameters
• defaults?: ITimelineToolDefaults
Returns
Implementation of
Overrides
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:126
setDimensions()
setDimensions(
dimensions
):void
It sets the map layer dimensions property of tool state.
Parameters
• dimensions
• dimensions.chartAggregationFn: IMapDomainDimension
\<IMapAggregationFunction
>
• dimensions.chartEnabled: IMapTypeDimension
\<boolean
, ITypeManager
\<boolean
>>
• dimensions.chartValuePath: IMapDomainDimension
\<IMapDataDomain
>
• dimensions.granularity: IMapDomainDimension
\<ITimeGranularity
>
• dimensions.realTimeEnabled: IMapTypeDimension
\<boolean
, ITypeManager
\<boolean
>>
• dimensions.stepTimeLength: IMapTypeDimension
\<number
, ITypeManager
\<number
>>
• dimensions.story: IMapTypeDimension
\<string
, ITypeManager
\<string
>>
• dimensions.storyEnabled: IMapTypeDimension
\<boolean
, ITypeManager
\<boolean
>>
• dimensions.timePath: IMapDomainDimension
\<IMapDataDomain
>
• dimensions.transitionDuration: IMapTypeDimension
\<number
, ITypeManager
\<number
>>
Returns
void
Implementation of
ITimelineToolState
.setDimensions
Overrides
Source
tools/timeline/model/internal/tool/TimelineToolState.ts:167
setEnabled()
setEnabled(
enabled
):void
It sets the enabled property of tool state.
Parameters
• enabled: boolean
Returns
void
Implementation of
Inherited from
Source
model/internal/tool/MapToolState.ts:97
setIcon()
setIcon(
icon
):void
It sets the icon property of the tool state.
Parameters
• icon: string
Returns
void
Implementation of
Inherited from
Source
model/internal/tool/MapToolState.ts:129
setId()
setId(
id
):void
It sets the id property of the tool state.
Parameters
• id: string
Returns
void
Implementation of
Inherited from
Source
model/internal/object/MapObjectState.ts:96
setLabel()
setLabel(
label
):void
It sets the label property of the tool state.
Parameters
• label: string
Returns
void
Implementation of
Inherited from
Source
model/internal/tool/MapToolState.ts:113
setLayerItems()
setLayerItems(
layerItems
):void
It sets the layer items property of tool state.
Parameters
• layerItems: Layer
[]
Returns
void
Implementation of
ITimelineToolState
.setLayerItems
Inherited from
Source
model/internal/layer/LayerToolState.ts:113
setLayerName()
setLayerName(
layerName
):void
It sets the layer name property of the tool state.
Parameters
• layerName: string
Returns
void
Implementation of
ITimelineToolState
.setLayerName
Inherited from
Source
model/internal/layer/LayerToolState.ts:97
setMap()
protected
setMap(map
):void
It sets the map property of the tool state.
Parameters
• map: IMap
\<IMapProps
, IMapDefaults
, IMapState
\<IMapProps
, IMapDefaults
, IMapConfig
>, IMapConfig
, IMapInitProps
\<IMapConfig
>>
Returns
void
Inherited from
Source
model/internal/tool/MapToolState.ts:145
setStories()
setStories(
stories
):void
Parameters
• stories: TimelineStoryConfig
[]
Returns
void