Skip to content

KBE3D / KBCore / Cesium / ClockViewModel

类: ClockViewModel

A view model which exposes a Clock for user interfaces.

参数

The clock object wrapped by this view model, if undefined a new instance will be created.

属性

systemTime

systemTime: JulianDate

Gets the current system time. This property is observable.


startTime

startTime: JulianDate

Gets or sets the start time of the clock. See Clock#startTime. This property is observable.


stopTime

stopTime: JulianDate

Gets or sets the stop time of the clock. See Clock#stopTime. This property is observable.


currentTime

currentTime: JulianDate

Gets or sets the current time. See Clock#currentTime. This property is observable.


multiplier

multiplier: number

Gets or sets the clock multiplier. See Clock#multiplier. This property is observable.


clockStep

clockStep: ClockStep

Gets or sets the clock step setting. See Clock#clockStep. This property is observable.


clockRange

clockRange: ClockRange

Gets or sets the clock range setting. See Clock#clockRange. This property is observable.


canAnimate

canAnimate: boolean

Gets or sets whether the clock can animate. See Clock#canAnimate. This property is observable.


shouldAnimate

shouldAnimate: boolean

Gets or sets whether the clock should animate. See Clock#shouldAnimate. This property is observable.


clock

clock: Clock

Gets the underlying Clock.

方法

synchronize()

synchronize(): void

Updates the view model with the contents of the underlying clock. Can be called to force an update of the viewModel if the underlying clock has changed and <code>Clock.tick</code> has not yet been called.

返回

void


isDestroyed()

isDestroyed(): boolean

返回

boolean

true if the object has been destroyed, false otherwise.


destroy()

destroy(): void

Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.

返回

void

构造函数

构造函数

new ClockViewModel(clock?: Clock): ClockViewModel

参数

clock?

Clock

返回

ClockViewModel

KBE3D @3.0.0 Copyright © 2024-present KBE3D