.. role:: ts-api-decorator

###############
OverlayViewport
###############

.. js:module:: Overlay
   :noindex:

.. container:: ts-api-section

   .. js:class:: OverlayViewport

      This class is used to store overlay viewport information set via the OverlayManager so that we can retrieve it
      later



.. container:: api-index-section

   .. rubric:: Constructors

   .. rst-class:: api-index-list-item api-kind-constructor api-parent-kind-class

   * :js:meth:`~Overlay.OverlayViewport.constructor`



.. container:: api-index-section

   .. rubric:: Methods

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

   * :js:meth:`~Overlay.OverlayViewport.getAnchor`
   * :js:meth:`~Overlay.OverlayViewport.getPosition`
   * :js:meth:`~Overlay.OverlayViewport.getSize`





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

Constructors
============

.. container:: ts-api-section

   .. js:function:: OverlayViewport.constructor( anchor, position, size)

      :param anchor: None
      :type anchor: OverlayAnchor
      :param position: None
      :type position: OverlayUnitPoint
      :param size: None
      :type size: OverlayUnitPoint


      :rtype: OverlayViewport



Methods
=======

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

getAnchor
---------

.. js:method:: OverlayViewport.getAnchor()



   :rtype: OverlayAnchor

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

getPosition
-----------

.. js:method:: OverlayViewport.getPosition()



   :rtype: OverlayUnitPoint

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

getSize
-------

.. js:method:: OverlayViewport.getSize()



   :rtype: OverlayUnitPoint

