Skip to main content

Struct ChartAnimationTimeline

Namespace: VelloSharp.ChartEngine
Assembly: VelloSharp.ChartEngine.dll

Describes a single animation timeline configuration.

public readonly record struct ChartAnimationTimeline : IEquatable<ChartAnimationTimeline>

Implements

IEquatable<ChartAnimationTimeline>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

ChartAnimationTimeline(TimeSpan, TimelineEasing, TimelineRepeat)

public ChartAnimationTimeline(TimeSpan duration, TimelineEasing easing, TimelineRepeat repeat = TimelineRepeat.Once)

Parameters

duration TimeSpan

easing TimelineEasing

repeat TimelineRepeat

Properties

Duration

Length of the timeline. Non-positive values disable the animation.

public TimeSpan Duration { get; init; }

Property Value

TimeSpan

Easing

Easing curve applied across the timeline.

public TimelineEasing Easing { get; init; }

Property Value

TimelineEasing

IsEnabled

Indicates whether the timeline should produce interpolated samples.

public bool IsEnabled { get; }

Property Value

bool

Repeat

Repeat behaviour for the timeline (looping, ping-pong, etc.).

public TimelineRepeat Repeat { get; init; }

Property Value

TimelineRepeat