Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function waitForAnimationStep

    • Wait for an animation step on a specific dimension

      Records the current slice position for the given dimension index and waits until the position changes, indicating an animation step has completed. This replaces post-animation-key timeouts where a dimension value is expected to change (e.g., after pressing ] or starting an animation with k).

      Parameters

      • page: Page

        Playwright page

      • dimIndex: number

        The dimension index to monitor for position changes

      • timeout: number = 3000

        Maximum wait time in ms (default: 3000)

      Returns Promise<void>