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

    Owns the slider-sync lifecycle: registers an animation-complete listener and a play-after-delay timeout, and tears both down cleanly. Pulled into its own class because the panel had two mirrored half-states (syncCompleteHandler, syncPlayTimeout) each needing its own cleanup branch.

    Index
    completeHandler: (() => void) | null = null
    playTimeout: Timeout | null = null
    • Snap the dimension to its minimum value, register the "play complete → onComplete()" listener, then schedule the actual play call after a short delay so the snap propagates before playback starts.

      playDelayMs defaults to 100 ms. isAlive is consulted right before play() so a dispose during the delay window short-circuits cleanly.

      Parameters

      • dimIndex: number
      • animationManager: DimensionAnimationManager
      • onComplete: () => void
      • isAlive: () => boolean
      • playDelayMs: number = 100

      Returns void