.. role:: ts-api-decorator

.. _cee.ViewLayoutMode:

##############
ViewLayoutMode
##############

.. js:module:: cee
   :noindex:

.. container:: ts-api-section

   Defines the method used to determine the position and size of ``Views`` within a ``Viewer``.

   Defaults to Auto.



.. container:: api-index-section

   .. rubric:: Enumeration Members

   .. rst-class:: api-index-list-item api-kind-enummember api-parent-kind-enum

   * :ref:`cee.ViewLayoutMode.Absolute`
   * :ref:`cee.ViewLayoutMode.Auto`





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

Enumeration Members
===================

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

.. _cee.ViewLayoutMode.Absolute:

Absolute
--------

The view layout is set manually by calling ``View.setViewport`` on each view. Note that a view will be invisible if no call to ``View.setViewport`` is made.

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

.. _cee.ViewLayoutMode.Auto:

Auto
----

The view layout is set automatically as views are added to the viewer. The first view is positioned on the left side, and subsequent
views are stacked on the right side.

Any calls to ``View.setViewport`` will throw an error while this mode is active.

