U
    /e                     @  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NonNullable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                   s2   t |dkr d|kr |d |d< t jf | d S )N   textr   )lensuper__init__)selfargskwargs	__class__ 5/tmp/pip-unpacked-wheel-f5fndrjf/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S )r   z;
    Base class for renderers of mathematical content.
    Nr#   r$   r%   r&   r   r   r   r    r   C   s   r   c                   @  s   e Zd ZdZdS )r   z^
    Render mathematical content using `AsciiMath <http://asciimath.org/>`_
    notation.
    Nr(   r   r   r   r    r   I   s   r   c                   @  s   e Zd ZdZdS )r   z
    Render mathematical content using `MathML <https://www.w3.org/Math/>`_
    notation. See :ref:`userguide_styling_math` in the |user guide| for more
    information.
    Nr(   r   r   r   r    r   O   s   r   c                   @  s6   e Zd ZdZeeeeeeeddZ	e
dddZdS )r   a  
    Render mathematical content using `LaTeX <https://www.latex-project.org/>`_
    notation. See :ref:`userguide_styling_math` 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
    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"   N)r#   r$   r%   r&   r   r
   r   r   r   macrosr   inliner   r   r   r    r   V   s   r   c                   @  s   e Zd ZdZdS )r   zJ
    Represents plain text in contexts where text parsing is allowed.
    Nr(   r   r   r   r    r   x   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   
$	"