An animation for the stripes in an ITable.
Type Details
- yfiles module
- view-table
- yfiles-umd modules
- view-table, view
- Legacy UMD name
- yfiles.view.TableAnimation
Constructors
Initializes a new instance of the TableAnimation class for the given table, the column widths, and row heights.
Remarks
Parameters
A map of options to pass to the method.
- table - ITable
- The table to animate.
- columnLayout - number[]
- The sizes of the leaf columns, in natural order.
- rowLayout - number[]
- The sizes of the leaf rows, in natural order.
Properties
Gets or sets the preferred duration of the animation.
Implements
Methods
Does the animation according to the relative animation time.
Remarks
Parameters
A map of options to pass to the method.
- time - number
- The animation time in [0,1].
Implements
Cleans up after an animation has finished.
Implements
Creates a delayed animation instance from this instance.
Remarks
delay
longer than the existing one.Parameters
A map of options to pass to the method.
- delay - TimeSpan
- The delay to wait before the provided animation starts.
Returns
- ↪IAnimation
- A new animation that will first wait before the animation starts.
Defined in
Creates an eased animation for the given base animation.
Remarks
The animation speed linearly increases up to a easeIn
and linearly decreases from easeOut
. Between those two points, the animation speed is constant.
The duration of the ease in and ease out is determined by a mapping [0,1] → [0,1]. The mapping has to be increasing to preserve the order of the frames in the decorated animation. In general, we consider continuously differentiable functions f where integral of f′ equals 1 a suitable choice for the mapping.
Parameters
A map of options to pass to the method.
- easeIn - number
- The ratio for the ease-in time [0,1] where 0 is the start of the animation and 1 the end.
0.5
is the default value. - easeOut - number
- The ratio for the ease-out time [0,1] where 0 is the start of the animation and 1 the end.
0.5
is the default value.
See Also
Defined in
Create the animation for a single IStripe
Parameters
A map of options to pass to the method.
- stripe - IStripe
- The stripe
- targetSize - number
- The target size of the stripe
Returns
- ↪IAnimation
- An animation that morphs the stripe size
Initializes the animation.