a
    ADf4                     @  s   d Z ddlmZ ddlZeeZddlmZ ddl	m
Z
mZmZmZmZmZmZ ddlmZ dZeG d	d
 d
eZeG dd deZG dd deZG dd deZG dd deZG dd deZdS )z Text-related models
    )annotationsN   )abstract)BoolDictEitherIntRequiredStringTuple)Model)AsciiMathMLMathText	PlainTextTeXc                      s2   e Zd ZdZdd fddZeeddZ  ZS )BaseTextzD
    Base class for renderers of text content of various kinds.
    Nonereturnc                   s6   t |dkr d|vr |d |d< t jf i | d S )N   textr   )lensuper__init__selfargskwargs	__class__ ^/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/site-packages/bokeh/models/text.pyr   9   s    zBaseText.__init__z#
    The text value to render.
    help)	__name__
__module____qualname____doc__r   r	   r
   r   __classcell__r!   r!   r   r"   r   3   s   r   c                      s&   e Zd ZdZdd fddZ  ZS )r   z8 Base class for renderers of mathematical content.

    r   r   c                   s   t  j|i | d S Nr   r   r   r   r!   r"   r   J   s    zMathText.__init__r%   r&   r'   r(   r   r)   r!   r!   r   r"   r   C   s   r   c                      s&   e Zd ZdZdd fddZ  ZS )r   z[ Render mathematical content using `AsciiMath <http://asciimath.org/>`_
    notation.

    r   r   c                   s   t  j|i | d S r*   r+   r   r   r!   r"   r   T   s    zAscii.__init__r,   r!   r!   r   r"   r   M   s   r   c                      s&   e Zd ZdZdd fddZ  ZS )r   z Render mathematical content using `MathML <https://www.w3.org/Math/>`_
    notation.

    See :ref:`ug_styling_mathtext` in the |user guide| for more information.

    r   r   c                   s   t  j|i | d S r*   r+   r   r   r!   r"   r   `   s    zMathML.__init__r,   r!   r!   r   r"   r   W   s   r   c                      sL   e Zd ZdZdd fddZeeeeeee	ddZ
edd	d
Z  ZS )r   a   Render mathematical content using `LaTeX <https://www.latex-project.org/>`_
    notation.

    See :ref:`ug_styling_mathtext` in the |user guide| for more information.

    .. note::
        Bokeh uses `MathJax <https://www.mathjax.org>`_ to render text
        containing mathematical notation.

        MathJax only supports math-mode macros (no text-mode macros). You
        can see more about differences between standard TeX/LaTeX and MathJax
        here: https://docs.mathjax.org/en/latest/input/tex/differences.html

    r   r   c                   s   t  j|i | d S r*   r+   r   r   r!   r"   r   t   s    zTeX.__init__aD  
    User defined TeX macros.

    This is a mapping from control sequence names (without leading backslash) to
    either replacement strings or tuples of a replacement string and a number
    of arguments.

    Example:

    .. code-block:: python

        TeX(text=r"\R \rightarrow \R^2", macros={"RR": r"{\bf R}"})

    r#   Fz[
    Whether the math text is inline display or not (for TeX input). Default is False.
    )defaultr$   )r%   r&   r'   r(   r   r   r
   r   r   r   macrosr   inliner)   r!   r!   r   r"   r   c   s   r   c                      s&   e Zd ZdZdd fddZ  ZS )r   zG Represents plain text in contexts where text parsing is allowed.

    r   r   c                   s   t  j|i | d S r*   r+   r   r   r!   r"   r      s    zPlainText.__init__r,   r!   r!   r   r"   r      s   r   )r(   
__future__r   logging	getLoggerr%   logZcore.has_propsr   Zcore.propertiesr   r   r   r   r	   r
   r   modelr   __all__r   r   r   r   r   r   r!   r!   r!   r"   <module>   s   
$		
'