.. role:: ts-api-decorator

###############
CameraAnimation
###############

.. js:module:: cee
   :noindex:

.. container:: ts-api-section

   .. js:class:: CameraAnimation

      Interface for camera animations that can be used with a Viewer



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-interface

   * :js:meth:`~cee.CameraAnimation.isAbortableByUserNavigation`
   * :js:meth:`~cee.CameraAnimation.isAnimationDone`
   * :js:meth:`~cee.CameraAnimation.updateCamera`





------------

Methods
=======

.. rst-class:: ts-api-section

isAbortableByUserNavigation
---------------------------

.. js:method:: CameraAnimation.isAbortableByUserNavigation()



   Whether this camera animation should be aborted if user navigation/interaction is detected


   :rtype: boolean

.. rst-class:: ts-api-section

isAnimationDone
---------------

.. js:method:: CameraAnimation.isAnimationDone()



   Query if the camera animation is finished. Return true to signal that the camera animation is
   finished and that the Viewer should release the camera animation object.


   :rtype: boolean

.. rst-class:: ts-api-section

updateCamera
------------

.. js:method:: CameraAnimation.updateCamera( highResTimestamp_ms, isResumingAfterPause)

   :param highResTimestamp_ms: None
   :type highResTimestamp_ms: number
   :param isResumingAfterPause: None
   :type isResumingAfterPause: boolean


   Called to update the camera. Return true if camera changed and a redraw should be triggered


   :rtype: boolean

