视图模型为 The view model for the
Animation widget.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
clockViewModel |
ClockViewModel | 要使用的 ClockViewModel 实例。 The ClockViewModel instance to use. |
另见: See:
成员 Members
static Cesium.AnimationViewModel.defaultDateFormatter : AnimationViewModel.DateFormatter
获取或设置新实例使用的默认日期格式化程序。 Gets or sets the default date formatter used by new instances.
获取或设置与穿梭环的新实例关联的已知时钟乘法器的默认数组。 Gets or sets the default array of known clock multipliers associated with new instances of the shuttle ring.
static Cesium.AnimationViewModel.defaultTimeFormatter : AnimationViewModel.TimeFormatter
获取或设置新实例使用的默认时间格式化程序。 Gets or sets the default time formatter used by new instances.
clockViewModel : ClockViewModel
获取时钟视图模型。 Gets the clock view model.
获取或设置格式化显示日期的函数。 Gets or sets the function which formats a date for display.
-
默认值: Default Value:
AnimationViewModel.defaultDateFormatter
获取当前日期的字符串表示形式。这个性质是可以观察到的。 Gets the string representation of the current date. This property is observable.
获取提高动画速度的命令。 Gets a command that increases the speed of animation.
获取当前乘数的字符串表示形式。这个性质是可以观察到的。 Gets the string representation of the current multiplier. This property is observable.
pauseViewModel : ToggleButtonViewModel
获取暂停切换按钮视图模型。 Gets the pause toggle button view model.
playForwardViewModel : ToggleButtonViewModel
获取播放切换按钮视图模型。 Gets the play toggle button view model.
playRealtimeViewModel : ToggleButtonViewModel
获取实时切换按钮视图模型。 Gets the realtime toggle button view model.
playReverseViewModel : ToggleButtonViewModel
获取反向切换按钮视图模型。 Gets the reverse toggle button view model.
获取或设置当前梭环角度。这个性质是可以观察到的。 Gets or sets the current shuttle ring angle. This property is observable.
获取或设置梭环当前是否正在被拖动。这个性质是可以观察到的。 Gets or sets whether the shuttle ring is currently being dragged. This property is observable.
-
默认值: Default Value:
false
获取降低动画速度的命令。 Gets a command that decreases the speed of animation.
获取或设置拖动梭环是否应导致乘数捕捉到定义的刻度值而不是在它们之间进行插值。这个性质是可以观察到的。 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.
-
默认值: Default Value:
false
获取或设置格式化显示时间的函数。 Gets or sets the function which formats a time for display.
-
默认值: Default Value:
AnimationViewModel.defaultTimeFormatter
获取当前时间的字符串表示形式。这个性质是可以观察到的。 Gets the string representation of the current time. This property is observable.
方法 Methods
获取正已知时钟乘法器数组的副本以与穿梭环关联。 Gets a copy of the array of positive known clock multipliers to associate with the shuttle ring.
返回: Returns:
与梭环相关联的已知时钟乘法器阵列。 The array of known clock multipliers associated with the shuttle ring.
设置正已知时钟乘法器的数组以与梭环关联。这些值将具有为其创建的负当量,并设置梭环值的最小和最大范围以及单击时捕捉到的值。这些值不需要按顺序排列,因为它们会自动排序,并且重复的值将被删除。 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.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
positiveTicks |
Array.<number> | 与穿梭环关联的已知正时钟乘数的列表。 The list of known positive clock multipliers to associate with the shuttle ring. |
类型定义 Type Definitions
格式化日期以供显示的函数。 A function that formats a date for display.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
date |
JulianDate | 要格式化的日期 The date to be formatted |
viewModel |
AnimationViewModel | 请求格式化的 AnimationViewModel 实例。 The AnimationViewModel instance requesting formatting. |
返回: Returns:
所提供日期的日历日期部分的字符串表示形式。 The string representation of the calendar date portion of the provided date.
格式化显示时间的函数。 A function that formats a time for display.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
date |
JulianDate | 要格式化的日期 The date to be formatted |
viewModel |
AnimationViewModel | 请求格式化的 AnimationViewModel 实例。 The AnimationViewModel instance requesting formatting. |
返回: Returns:
所提供日期的时间部分的字符串表示形式。 The string representation of the time portion of the provided date.
