Table of Contents

Class AnimationManager

Namespace
FlowGraph.Avalonia.Animation
Assembly
FlowGraph.Avalonia.dll

Manages running animations and coordinates frame updates.

public class AnimationManager : IDisposable
Inheritance
AnimationManager
Implements
Inherited Members

Properties

ActiveCategories

Gets the currently active animation categories.

public IReadOnlySet<AnimationCategory> ActiveCategories { get; }

Property Value

IReadOnlySet<AnimationCategory>

AnimatingNodeIds

Gets the IDs of all nodes currently being animated.

public IReadOnlySet<string> AnimatingNodeIds { get; }

Property Value

IReadOnlySet<string>

HasAnimations

Gets whether any animations are currently running.

public bool HasAnimations { get; }

Property Value

bool

HasGroupAnimations

Checks if group animations are running.

public bool HasGroupAnimations { get; }

Property Value

bool

HasNodeAnimations

Checks if node position or appearance animations are running.

public bool HasNodeAnimations { get; }

Property Value

bool

HasViewportAnimations

Checks if viewport animations are running.

public bool HasViewportAnimations { get; }

Property Value

bool

TargetFps

Target frames per second for animation updates.

public int TargetFps { get; set; }

Property Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

HasCategory(AnimationCategory)

Checks if a specific animation category is currently active.

public bool HasCategory(AnimationCategory category)

Parameters

category AnimationCategory

Returns

bool

Start(IAnimation)

Starts an animation.

public void Start(IAnimation animation)

Parameters

animation IAnimation

Start(IAnimation, AnimationCategory, IEnumerable<string>?)

Starts an animation with category information.

public void Start(IAnimation animation, AnimationCategory category, IEnumerable<string>? affectedNodeIds = null)

Parameters

animation IAnimation
category AnimationCategory
affectedNodeIds IEnumerable<string>

Stop(IAnimation)

Stops and removes an animation.

public void Stop(IAnimation animation)

Parameters

animation IAnimation

StopAll()

Stops all running animations.

public void StopAll()

StopCategory(AnimationCategory)

Stops all animations of a specific category.

public void StopCategory(AnimationCategory category)

Parameters

category AnimationCategory

StopNodeAnimations()

Stops all node animations.

public void StopNodeAnimations()

StopViewportAnimations()

Stops all viewport animations.

public void StopViewportAnimations()

Events

CategoriesChanged

Event raised when the set of active animation categories changes.

public event EventHandler<AnimationCategoriesChangedEventArgs>? CategoriesChanged

Event Type

EventHandler<AnimationCategoriesChangedEventArgs>

FrameUpdated

Event raised after each animation frame update.

public event EventHandler? FrameUpdated

Event Type

EventHandler