Class AnimatingNodesState
Input state active during node animations (position transitions, appear/disappear effects). Allows viewport interactions (pan/zoom) while blocking node interactions.
public class AnimatingNodesState : InputStateBase, IInputState
- Inheritance
-
AnimatingNodesState
- Implements
- Inherited Members
Constructors
AnimatingNodesState(IEnumerable<string>?, Action?, Action?)
Creates a new node animating state.
public AnimatingNodesState(IEnumerable<string>? animatingNodeIds = null, Action? cancelAnimation = null, Action? onExit = null)
Parameters
animatingNodeIdsIEnumerable<string>IDs of nodes currently being animated.
cancelAnimationActionAction to cancel the running node animations.
onExitActionOptional callback when exiting this state.
Properties
HasAnimatingNodes
Gets whether there are any nodes still animating.
public bool HasAnimatingNodes { get; }
Property Value
IsModal
Gets whether this state blocks other interactions.
public override bool IsModal { get; }
Property Value
Name
Gets the name of this state for debugging.
public override string Name { get; }
Property Value
Methods
AddAnimatingNode(string)
Adds a node ID to the animating set.
public void AddAnimatingNode(string nodeId)
Parameters
nodeIdstring
Exit(InputStateContext)
Called when exiting this state.
public override void Exit(InputStateContext context)
Parameters
contextInputStateContext
HandleKeyDown(InputStateContext, KeyEventArgs)
Handles key down events.
public override StateTransitionResult HandleKeyDown(InputStateContext context, KeyEventArgs e)
Parameters
contextInputStateContexteKeyEventArgs
Returns
HandlePointerMoved(InputStateContext, PointerEventArgs)
Handles pointer moved events.
public override StateTransitionResult HandlePointerMoved(InputStateContext context, PointerEventArgs e)
Parameters
contextInputStateContextePointerEventArgs
Returns
HandlePointerPressed(InputStateContext, PointerPressedEventArgs, Control?)
Handles pointer pressed events.
public override StateTransitionResult HandlePointerPressed(InputStateContext context, PointerPressedEventArgs e, Control? source)
Parameters
contextInputStateContextePointerPressedEventArgssourceControl
Returns
HandlePointerReleased(InputStateContext, PointerReleasedEventArgs)
Handles pointer released events.
public override StateTransitionResult HandlePointerReleased(InputStateContext context, PointerReleasedEventArgs e)
Parameters
contextInputStateContextePointerReleasedEventArgs
Returns
HandlePointerWheel(InputStateContext, PointerWheelEventArgs)
Handles pointer wheel events.
public override StateTransitionResult HandlePointerWheel(InputStateContext context, PointerWheelEventArgs e)
Parameters
contextInputStateContextePointerWheelEventArgs
Returns
IsNodeAnimating(string)
Gets whether a specific node is currently animating.
public bool IsNodeAnimating(string nodeId)
Parameters
nodeIdstring
Returns
RemoveAnimatingNode(string)
Removes a node ID from the animating set.
public void RemoveAnimatingNode(string nodeId)
Parameters
nodeIdstring