.. role:: ts-api-decorator

#################
MarkupTypeManager
#################

.. container:: ts-api-section

   .. js:class:: MarkupTypeManager

      The markup manager exports JSON data for markup in the scene. By default, it will export "views", "notes", "measurement", and "lines".
      To add a custom markup class to be exported and imported along with other markup items, you can register a custom markup type manager.

      The custom markup manager needs two functions:
      - exportMarkup creates an array of JSON markup data.
      - loadData takes an array of JSON markup data and creates markup items.



.. container:: api-index-section

   .. rubric:: Constructors

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

   * :js:meth:`~MarkupTypeManager.constructor`



.. container:: api-index-section

   .. rubric:: Methods

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

   * :js:meth:`~MarkupTypeManager.exportMarkup`
   * :js:meth:`~MarkupTypeManager.loadData`





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

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

.. container:: ts-api-section

   .. js:function:: MarkupTypeManager.constructor()



      :rtype: MarkupTypeManager



Methods
=======

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

exportMarkup
------------

.. js:method:: MarkupTypeManager.exportMarkup()





   :returns: JSON Array containing markup data.


   :rtype: [object]

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

loadData
--------

.. js:method:: MarkupTypeManager.loadData( _)

   :param _: None
   :type _: [any]


   Loads JSON markup data


   :rtype: Promise <[boolean]>

