Table of Contents

Class SelectionPulseAnimation

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

Animates a selection highlight pulse effect.

public class SelectionPulseAnimation : IAnimation
Inheritance
SelectionPulseAnimation
Implements
Inherited Members

Constructors

SelectionPulseAnimation(double, Action<double>?, Action?)

Creates a new selection pulse animation.

public SelectionPulseAnimation(double duration = 0.4, Action<double>? onUpdate = null, Action? onComplete = null)

Parameters

duration double

Total duration in seconds.

onUpdate Action<double>

Callback with current intensity (0-1).

onComplete Action

Callback when animation completes.

Properties

CurrentIntensity

Gets the current pulse intensity (0-1).

public double CurrentIntensity { get; }

Property Value

double

IsComplete

Gets whether the animation has completed.

public bool IsComplete { get; }

Property Value

bool

Methods

Cancel()

Called when the animation completes or is cancelled.

public void Cancel()

Update(double)

Updates the animation with the elapsed time since the last frame.

public void Update(double deltaTime)

Parameters

deltaTime double

Time elapsed since last update in seconds.