
    -Ph&                     6    d dl mZ d dlZ G d de          ZdS )    )BaseTraceHierarchyTypeNc                   @    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ej        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ej        d             Zed             Zej        d             Zed             Z	 	 	 	 	 	 	 	 	 	 d fd	Z xZS )Fontcarpetzcarpet.font>	   sizecolorstylefamilyshadowweightvarianttextcaselinepositionc                     | d         S )a  
        The 'color' property is a color and may be specified as:
          - A hex string (e.g. '#ff0000')
          - An rgb/rgba string (e.g. 'rgb(255,0,0)')
          - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
          - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
          - A named CSS color: see https://plotly.com/python/css-colors/ for a list

        Returns
        -------
        str
        r    selfs    ^/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/carpet/_font.pyr   z
Font.color        G}    c                     || d<   d S )Nr   r   r   vals     r   r   z
Font.color(       Wr   c                     | d         S )a  
        HTML font family - the typeface that will be applied by the web
        browser. The web browser can only apply a font if it is
        available on the system where it runs. Provide multiple font
        families, separated by commas, to indicate the order in which
        to apply fonts if they aren't available.

        The 'family' property is a string and must be specified as:
          - A non-empty string

        Returns
        -------
        str
        r
   r   r   s    r   r
   zFont.family,         H~r   c                     || d<   d S )Nr
   r   r   s     r   r
   zFont.family>       Xr   c                     | d         S )a  
        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.

        The 'lineposition' property is a flaglist and may be specified
        as a string containing:
          - Any combination of ['under', 'over', 'through'] joined with '+' characters
            (e.g. 'under+over')
            OR exactly one of ['none'] (e.g. 'none')

        Returns
        -------
        Any
        r   r   r   s    r   r   zFont.linepositionB   s    " N##r   c                     || d<   d S )Nr   r   r   s     r   r   zFont.linepositionU   s    "^r   c                     | d         S )a  
        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.

        The 'shadow' 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Font.shadowY   r   r   c                     || d<   d S )Nr   r   r   s     r   r   zFont.shadowk   r   r   c                     | d         S )z
        The 'size' property is a number and may be specified as:
          - An int or float in the interval [1, inf]

        Returns
        -------
        int|float
        r   r   r   s    r   r   z	Font.sizeo   s     F|r   c                     || d<   d S )Nr   r   r   s     r   r   z	Font.size{   s    Vr   c                     | d         S )a=  
        Sets whether a font should be styled with a normal or italic
        face from its family.

        The 'style' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['normal', 'italic']

        Returns
        -------
        Any
        r	   r   r   s    r   r	   z
Font.style   r   r   c                     || d<   d S )Nr	   r   r   s     r   r	   z
Font.style   r   r   c                     | d         S )a  
        Sets capitalization of text. It can be used to make text appear
        in all-uppercase or all-lowercase, or with each word
        capitalized.

        The 'textcase' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['normal', 'word caps', 'upper', 'lower']

        Returns
        -------
        Any
        r   r   r   s    r   r   zFont.textcase   s     Jr   c                     || d<   d S )Nr   r   r   s     r   r   zFont.textcase   s    Zr   c                     | d         S )aU  
        Sets the variant of the font.

        The 'variant' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['normal', 'small-caps', 'all-small-caps',
                'all-petite-caps', 'petite-caps', 'unicase']

        Returns
        -------
        Any
        r   r   r   s    r   r   zFont.variant   s     Ir   c                     || d<   d S )Nr   r   r   s     r   r   zFont.variant   s    Yr   c                     | d         S )aM  
        Sets the weight (or boldness) of the font.

        The 'weight' property is a integer and may be specified as:
          - An int (or float that will be cast to an int)
            in the interval [1, 1000]
            OR exactly one of ['normal', 'bold'] (e.g. 'bold')

        Returns
        -------
        int
        r   r   r   s    r   r   zFont.weight   s     H~r   c                     || d<   d S )Nr   r   r   s     r   r   zFont.weight   r   r   c                     dS )Na          color

        family
            HTML font family - the typeface that will be applied by
            the web browser. The web browser can only apply a font
            if it is available on the system where it runs. Provide
            multiple font families, separated by commas, to
            indicate the order in which to apply fonts if they
            aren't available.
        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.
        r   r   s    r   _prop_descriptionszFont._prop_descriptions   s       r   Nc           	         t                                          d           d|v r|d         | _        dS |i }nct          || j                  r|                                }n9t          |t                    rt          j        |          }nt          d          |
                    dd          | _        |
                    dd          | _        |                     d	||           |                     d
||           |                     d||           |                     d||           |                     d||           |                     d||           |                     d||           |                     d||	           |                     d||
            | j        di t          |fi | d| _        dS )ah  
        Construct a new Font object

        The default font used for axis & tick labels on this carpet

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of :class:`plotly.graph_objs.carpet.Font`
        color

        family
            HTML font family - the typeface that will be applied by
            the web browser. The web browser can only apply a font
            if it is available on the system where it runs. Provide
            multiple font families, separated by commas, to
            indicate the order in which to apply fonts if they
            aren't available.
        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
        -------
        Font
        font_parentNzThe first argument to the plotly.graph_objs.carpet.Font
constructor must be a dict or
an instance of :class:`plotly.graph_objs.carpet.Font`skip_invalidF	_validateTr   r
   r   r   r   r	   r   r   r   r   )super__init__r1   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr3   _set_property_process_kwargs)r   argr   r
   r   r   r   r	   r   r   r   kwargsr7   s               r   r5   zFont.__init__   s   x 	   !),DLF;CCT^,, 
	$$&&CCT"" 	*S//CC9   $ZZ>>K667C///8S&111>3===8S&11163---7C///:sH5559c73338S&11133tC22622333"r   )
NNNNNNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr
   r   r   r   r	   r   r   r   r.   r5   __classcell__)r7   s   @r   r   r      s       I
 
 
L   X \  \   X" ]  ] $ $ X$$ # # #   X" ]  ] 	 	 X	 
[  [   X \  \     X   _  _   X ^  ^   X ]  ] ! ! X!J \# \# \# \# \# \# \# \# \# \#r   r   )plotly.basedatatypesr   _BaseTraceHierarchyTyper;   r:   r   r   r   r   <module>rN      se    S R R R R R    H# H# H# H# H#" H# H# H# H# H#r   