Skip to content

KBE3D / KBCore / Cesium / AnimationViewModel

类: AnimationViewModel

The view model for the Animation widget.

参数

The ClockViewModel instance to use.

属性

defaultDateFormatter

static defaultDateFormatter: DateFormatter

Gets or sets the default date formatter used by new instances.


defaultTicks

static defaultTicks: number[]

Gets or sets the default array of known clock multipliers associated with new instances of the shuttle ring.


defaultTimeFormatter

static defaultTimeFormatter: TimeFormatter

Gets or sets the default time formatter used by new instances.


shuttleRingDragging

shuttleRingDragging: boolean

Gets or sets whether the shuttle ring is currently being dragged. This property is observable.


snapToTicks

snapToTicks: boolean

Gets or sets whether dragging the shuttle ring should cause the multiplier to snap to the defined tick values rather than interpolating between them. This property is observable.


timeLabel

timeLabel: string

Gets the string representation of the current time. This property is observable.


dateLabel

dateLabel: string

Gets the string representation of the current date. This property is observable.


multiplierLabel

multiplierLabel: string

Gets the string representation of the current multiplier. This property is observable.


shuttleRingAngle

shuttleRingAngle: number

Gets or sets the current shuttle ring angle. This property is observable.


slower

slower: Command

Gets a command that decreases the speed of animation.


faster

faster: Command

Gets a command that increases the speed of animation.


clockViewModel

clockViewModel: ClockViewModel

Gets the clock view model.


pauseViewModel

pauseViewModel: ToggleButtonViewModel

Gets the pause toggle button view model.


playReverseViewModel

playReverseViewModel: ToggleButtonViewModel

Gets the reverse toggle button view model.


playForwardViewModel

playForwardViewModel: ToggleButtonViewModel

Gets the play toggle button view model.


playRealtimeViewModel

playRealtimeViewModel: ToggleButtonViewModel

Gets the realtime toggle button view model.


dateFormatter

dateFormatter: DateFormatter

Gets or sets the function which formats a date for display.


timeFormatter

timeFormatter: TimeFormatter

Gets or sets the function which formats a time for display.

方法

getShuttleRingTicks()

getShuttleRingTicks(): number[]

Gets a copy of the array of positive known clock multipliers to associate with the shuttle ring.

返回

number[]

The array of known clock multipliers associated with the shuttle ring.


setShuttleRingTicks()

setShuttleRingTicks(positiveTicks: number[]): void

Sets the array of positive known clock multipliers to associate with the shuttle ring. These values will have negative equivalents created for them and sets both the minimum and maximum range of values for the shuttle ring as well as the values that are snapped to when a single click is made. The values need not be in order, as they will be sorted automatically, and duplicate values will be removed.

参数

positiveTicks

number[]

The list of known positive clock multipliers to associate with the shuttle ring.

返回

void

构造函数

构造函数

new AnimationViewModel(clockViewModel: ClockViewModel): AnimationViewModel

参数

clockViewModel

ClockViewModel

返回

AnimationViewModel

KBE3D @3.0.0 Copyright © 2024-present KBE3D