
    g                     .    d dl mZ d dlZ G d de      Zy)    )BaseLayoutHierarchyTypeNc                        e Zd ZdZdZh dZed        Zej                  d        Zed        Z	e	j                  d        Z	ed        Z
e
j                  d	        Z
ed
        Zd fd	Z xZS )Titlezlayout.legendzlayout.legend.title>   fontsidetextc                     | d   S )a}
  
        Sets this legend's title font. Defaults to `legend.font` with
        its size increased about 20%.

        The 'font' property is an instance of Font
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.legend.title.Font`
          - A dict of string/value properties that will be passed
            to the Font constructor

            Supported dict properties:

                color

                family
                    HTML font family - the typeface that will be
                    applied by the web browser. The web browser
                    will only be able to apply a font if it is
                    available on the system which it operates.
                    Provide multiple font families, separated by
                    commas, to indicate the preference in which to
                    apply fonts if they aren't available on the
                    system. The Chart Studio Cloud (at
                    https://chart-studio.plotly.com or on-premise)
                    generates images on a server, where only a
                    select number of fonts are installed and
                    supported. These include "Arial", "Balto",
                    "Courier New", "Droid Sans", "Droid Serif",
                    "Droid Sans Mono", "Gravitas One", "Old
                    Standard TT", "Open Sans", "Overpass", "PT Sans
                    Narrow", "Raleway", "Times New Roman".
                lineposition
                    Sets the kind of decoration line(s) with text,
                    such as an "under", "over" or "through" as well
                    as combinations e.g. "under+over", etc.
                shadow
                    Sets the shape and color of the shadow behind
                    text. "auto" places minimal shadow and applies
                    contrast text font color. See
                    https://developer.mozilla.org/en-
                    US/docs/Web/CSS/text-shadow for additional
                    options.
                size

                style
                    Sets whether a font should be styled with a
                    normal or italic face from its family.
                textcase
                    Sets capitalization of text. It can be used to
                    make text appear in all-uppercase or all-
                    lowercase, or with each word capitalized.
                variant
                    Sets the variant of the font.
                weight
                    Sets the weight (or boldness) of the font.

        Returns
        -------
        plotly.graph_objs.layout.legend.title.Font
        r    selfs    c/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/plotly/graph_objs/layout/legend/_title.pyr   z
Title.font   s    | F|    c                     || d<   y )Nr   r
   r   vals     r   r   z
Title.fontO       Vr   c                     | d   S )aT  
        Determines the location of legend's title with respect to the
        legend items. Defaulted to "top" with `orientation` is "h".
        Defaulted to "left" with `orientation` is "v". The *top left*
        options could be used to expand top center and top right are
        for horizontal alignment legend area in both x and y sides.

        The 'side' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['top', 'left', 'top left', 'top center', 'top right']

        Returns
        -------
        Any
        r   r
   r   s    r   r   z
Title.sideU   s    " F|r   c                     || d<   y )Nr   r
   r   s     r   r   z
Title.sideh   r   r   c                     | d   S )z
        Sets the title of the legend.

        The 'text' property is a string and must be specified as:
          - A string
          - A number that will be converted to a string

        Returns
        -------
        str
        r   r
   r   s    r   r   z
Title.textn   s     F|r   c                     || d<   y )Nr   r
   r   s     r   r   z
Title.text}   r   r   c                      y)NaF          font
            Sets this legend's title font. Defaults to
            `legend.font` with its size increased about 20%.
        side
            Determines the location of legend's title with respect
            to the legend items. Defaulted to "top" with
            `orientation` is "h". Defaulted to "left" with
            `orientation` is "v". The *top left* options could be
            used to expand top center and top right are for
            horizontal alignment legend area in both x and y sides.
        text
            Sets the title of the legend.
        r
   r   s    r   _prop_descriptionszTitle._prop_descriptions   s    r   c           	      `   t         t        |   d       d|v r|d   | _        y|i }nXt	        || j
                        r|j                         }n1t	        |t              rt        j                  |      }nt        d      |j                  dd      | _        |j                  dd      | _        |j                  d	d      }||n|}||| d	<   |j                  d
d      }||n|}||| d
<   |j                  dd      }||n|}||| d<    | j                  di t        |fi | d| _        y)ag  
        Construct a new Title object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.layout.legend.Title`
        font
            Sets this legend's title font. Defaults to
            `legend.font` with its size increased about 20%.
        side
            Determines the location of legend's title with respect
            to the legend items. Defaulted to "top" with
            `orientation` is "h". Defaulted to "left" with
            `orientation` is "v". The *top left* options could be
            used to expand top center and top right are for
            horizontal alignment legend area in both x and y sides.
        text
            Sets the title of the legend.

        Returns
        -------
        Title
        title_parentNzThe first argument to the plotly.graph_objs.layout.legend.Title
constructor must be a dict or
an instance of :class:`plotly.graph_objs.layout.legend.Title`skip_invalidF	_validateTr   r   r   r
   )superr   __init__r   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr   _process_kwargs)r   argr   r   r   kwargs_vr!   s          r   r   zTitle.__init__   sM   6 	eT#G,!),DL ;CT^^,$$&CT"**S/CA  $ZZ>K6 WWVT"%T2>DLWWVT"%T2>DLWWVT"%T2>DL 	3tC2623 #r   )NNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr   r   r   r   __classcell__)r!   s   @r   r   r      s     '%I+L = =~ 
[[ 
  $ 
[[ 
   
[[ 
   K# K#r   r   )plotly.basedatatypesr   _BaseLayoutHierarchyTyper%   r$   r   r
   r   r   <module>r8      s    T Z#$ Z#r   