DeepZoom scripting
    Preparing search index...

    Function transport

    • Play or stop the animation.

      If both play and rewind are true, the animation is rewound and then played.

      Parameters

      • json: { play: boolean; rewind: boolean } = ...
        • play: boolean

          boolean: true plays the animation, false stops it

        • rewind: boolean

          boolean: true resets the animation to the beginning (optional)

      Returns void

      // play from the beginning
      {"play": true, "rewind": true}

      // stop
      {"play": false}