
    -eH                        d Z ddlmZ ddlZ ej        e          ZddlmZ ddl	m
Z
mZ ddlmZ d	Ze G d
 de                      Z G d de          Z G d de          Z G d de          ZdS )aO   Various kinds of markup (static content) widgets.

.. warning::
    The explicit purpose of these Bokeh Models is to embed *raw HTML text* for
    a browser to execute. If any portion of the text is derived from untrusted
    user inputs, then you must take appropriate care to sanitize the user input
    prior to passing to Bokeh.

    )annotationsN   )abstract)BoolString   )Widget)DivMarkup	ParagraphPreTextc                  X     e Zd ZdZd fdZ edd          Z edd	
          Z xZ	S )r   a   Base class for Bokeh models that represent HTML markup elements.

    Markups include e.g., ``<div>``, ``<p>``, and ``<pre>``.

    Content can be interpreted as `TeX and LaTeX input`_ when rendering as HTML.
    TeX/LaTeX processing can be disabled by setting ``disable_math`` to True.

    .. _`TeX and LaTeX input`: https://docs.mathjax.org/en/latest/basic/mathematics.html#tex-and-latex-input
    returnNonec                :     t                      j        |i | d S Nsuper__init__selfargskwargs	__class__s      <lib/python3.11/site-packages/bokeh/models/widgets/markups.pyr   zMarkup.__init__>   %    $)&)))))     a  
    The text or HTML contents of the widget.

    .. note::
        If the HTML content contains elements which size depends on
        on external, asynchronously loaded resources, the size of
        the widget may be computed incorrectly. This is in particular
        an issue with images (``<img>``). To remedy this problem, one
        either has to set explicit dimensions using CSS properties,
        HTML attributes or model's ``width`` and ``height`` properties,
        or inline images' contents using data URIs.
    )defaulthelpFzJ
    Whether the contents should not be processed as TeX/LaTeX input.
    r    r   r   )
__name__
__module____qualname____doc__r   r   textr   disable_math__classcell__r   s   @r   r   r   1   sy         * * * * * * 6" $ 	 	 	D 4 % 	 	 	LLLLLr   r   c                  (     e Zd ZdZd fdZdZ xZS )r   za A block (paragraph) of text.

    This Bokeh model corresponds to an HTML ``<p>`` element.

    r   r   c                :     t                      j        |i | d S r   r   r   s      r   r   zParagraph.__init__^   r   r   z)examples/interaction/widgets/paragraph.pyr"   r#   r$   r%   r&   r   __example__r)   r*   s   @r   r   r   V   sB         * * * * * * >KKKKKr   r   c                  B     e Zd ZdZd	 fdZdZ edd          Z xZS )
r
   z\ A block (div) of text.

    This Bokeh model corresponds to an HTML ``<div>`` element.
    r   r   c                :     t                      j        |i | d S r   r   r   s      r   r   zDiv.__init__j   r   r   z#examples/interaction/widgets/div.pyFz
    Whether the contents should be rendered as raw text or as interpreted HTML.
    The default value is False, meaning contents are rendered as HTML.
    r!   r"   )	r#   r$   r%   r&   r   r.   r   render_as_textr)   r*   s   @r   r
   r
   c   s_         * * * * * * 8KT% ' 	 	 	NNNNNr   r
   c                  (     e Zd ZdZd fdZdZ xZS )r   zq A block (paragraph) of pre-formatted text.

    This Bokeh model corresponds to an HTML ``<pre>`` element.

    r   r   c                :     t                      j        |i | d S r   r   r   s      r   r   zPreText.__init__|   r   r   z'examples/interaction/widgets/pretext.pyr"   r-   r*   s   @r   r   r   t   sB         * * * * * * <KKKKKr   r   )r&   
__future__r   logging	getLoggerr#   logcore.has_propsr   core.propertiesr   r   widgetr	   __all__r   r   r
   r    r   r   <module>r=      sB    # " " " " " g!! ' & & & & & + + + + + + + +       
	 	 	 	 	V 	 	 
	H> > > > > > > >	 	 	 	 	& 	 	 	"< < < < <i < < < < <r   