ShapeAnimationScope

class ShapeAnimationScope(node: Shape) : AnimationScope<Shape>

Shape animations configurator interface for ParallelTransition and SequentialTransition.

Constructors

Link copied to clipboard
constructor(node: Shape)

Properties

Link copied to clipboard
val animations: MutableList<Animation>

collection of animations within this scope.

Link copied to clipboard
val node: Shape

node that the animations belong to.

Functions

Link copied to clipboard
fun build(): Array<Animation>

Return array of animations based on current configuration.

Link copied to clipboard
inline fun fade(duration: Duration = 400.0.ms, configuration: FadeTransition.() -> Unit): FadeTransition

Append a FadeTransition.

Link copied to clipboard
inline fun fill(duration: Duration = 400.0.ms, fromValue: Color? = null, toValue: Color? = null, configuration: FillTransition.() -> Unit): FillTransition

Append a FillTransition.

Link copied to clipboard
inline fun path(duration: Duration = 400.0.ms, path: Shape? = null, configuration: PathTransition.() -> Unit): PathTransition

Append a PathTransition.

Link copied to clipboard
inline fun rotate(duration: Duration = 400.0.ms, configuration: RotateTransition.() -> Unit): RotateTransition

Append a RotateTransition.

Link copied to clipboard
inline fun scale(duration: Duration = 400.0.ms, configuration: ScaleTransition.() -> Unit): ScaleTransition

Append a ScaleTransition.

Link copied to clipboard
inline fun stroke(duration: Duration = 400.0.ms, fromValue: Color? = null, toValue: Color? = null, configuration: StrokeTransition.() -> Unit): StrokeTransition

Append a StrokeTransition.

Link copied to clipboard
inline fun translate(duration: Duration = 400.0.ms, configuration: TranslateTransition.() -> Unit): TranslateTransition

Append a TranslateTransition.