AnimationViewModel

external class AnimationViewModel(var clockViewModel: ClockViewModel)(source)

The view model for the Animation widget.

See also

Constructors

Link copied to clipboard
constructor(clockViewModel: ClockViewModel)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The ClockViewModel instance to use.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Gets a command that increases the speed of animation.

Link copied to clipboard

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

Link copied to clipboard

Gets the pause toggle button view model.

Link copied to clipboard

Gets the play toggle button view model.

Link copied to clipboard

Gets the realtime toggle button view model.

Link copied to clipboard

Gets the reverse toggle button view model.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Gets a command that decreases the speed of animation.

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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

Functions

Link copied to clipboard

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

Link copied to clipboard

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.