Raxol.Animation.Animation (Raxol v2.0.1)

View Source

Animation framework stub for test compatibility.

This module provides a wrapper interface around the existing Framework to maintain compatibility with test expectations.

Summary

Functions

Gets the current state of the animation framework. Provides stub implementation for test compatibility.

Initializes the animation framework with the given configuration. Delegates to Framework.init/2 for actual implementation.

Starts an animation with the given parameters. Delegates to Framework functionality.

Stops the animation framework. Delegates to Framework.stop/0.

Stops a running animation. Delegates to Framework functionality.

Functions

get_state()

Gets the current state of the animation framework. Provides stub implementation for test compatibility.

init(config, preferences_module)

Initializes the animation framework with the given configuration. Delegates to Framework.init/2 for actual implementation.

Parameters

  • config: Animation configuration map
  • preferences_module: User preferences module name

Returns

:ok on success

start_animation(name, params)

Starts an animation with the given parameters. Delegates to Framework functionality.

stop()

Stops the animation framework. Delegates to Framework.stop/0.

stop_animation(name, element_id \\ nil)

Stops a running animation. Delegates to Framework functionality.