
    [6gQ'                     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	 	 	 	 	 	 d fd	Z xZS )Pathbartreemapztreemap.pathbar>   sidevisibletextfont	edgeshape	thicknessc                     | d         S )a6  
        Determines which shape is used for edges between `barpath`
        labels.

        The 'edgeshape' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['>', '<', '|', '/', '\']

        Returns
        -------
        Any
        r
    selfs    a/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/plotly/graph_objs/treemap/_pathbar.pyr
   zPathbar.edgeshape        K      c                     || d<   d S )Nr
   r   r   vals     r   r
   zPathbar.edgeshape       [r   c                     | d         S )a5  
        Determines on which side of the the treemap the `pathbar`
        should be presented.

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

        Returns
        -------
        Any
        r   r   r   s    r   r   zPathbar.side%   s     F|r   c                     || d<   d S )Nr   r   r   s     r   r   zPathbar.side5   s    Vr   c                     | d         S )a  
        Sets the font used inside `pathbar`.

        The 'textfont' property is an instance of Textfont
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.treemap.pathbar.Textfont`
          - A dict of string/value properties that will be passed
            to the Textfont constructor

            Supported dict properties:

                color

                colorsrc
                    Sets the source reference on Chart Studio Cloud
                    for `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".
                familysrc
                    Sets the source reference on Chart Studio Cloud
                    for `family`.
                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.
                linepositionsrc
                    Sets the source reference on Chart Studio Cloud
                    for `lineposition`.
                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.
                shadowsrc
                    Sets the source reference on Chart Studio Cloud
                    for `shadow`.
                size

                sizesrc
                    Sets the source reference on Chart Studio Cloud
                    for `size`.
                style
                    Sets whether a font should be styled with a
                    normal or italic face from its family.
                stylesrc
                    Sets the source reference on Chart Studio Cloud
                    for `style`.
                textcase
                    Sets capitalization of text. It can be used to
                    make text appear in all-uppercase or all-
                    lowercase, or with each word capitalized.
                textcasesrc
                    Sets the source reference on Chart Studio Cloud
                    for `textcase`.
                variant
                    Sets the variant of the font.
                variantsrc
                    Sets the source reference on Chart Studio Cloud
                    for `variant`.
                weight
                    Sets the weight (or boldness) of the font.
                weightsrc
                    Sets the source reference on Chart Studio Cloud
                    for `weight`.

        Returns
        -------
        plotly.graph_objs.treemap.pathbar.Textfont
        r	   r   r   s    r   r	   zPathbar.textfont;   s    p Jr   c                     || d<   d S )Nr	   r   r   s     r   r	   zPathbar.textfont   s    Zr   c                     | d         S )aY  
        Sets the thickness of `pathbar` (in px). If not specified the
        `pathbar.textfont.size` is used with 3 pixles extra padding on
        each side.

        The 'thickness' property is a number and may be specified as:
          - An int or float in the interval [12, inf]

        Returns
        -------
        int|float
        r   r   r   s    r   r   zPathbar.thickness   r   r   c                     || d<   d S )Nr   r   r   s     r   r   zPathbar.thickness   r   r   c                     | d         S )z
        Determines if the path bar is drawn i.e. outside the trace
        `domain` and with one pixel gap.

        The 'visible' property must be specified as a bool
        (either True, or False)

        Returns
        -------
        bool
        r   r   r   s    r   r   zPathbar.visible   s     Ir   c                     || d<   d S )Nr   r   r   s     r   r   zPathbar.visible   s    Yr   c                     dS )Nam          edgeshape
            Determines which shape is used for edges between
            `barpath` labels.
        side
            Determines on which side of the the treemap the
            `pathbar` should be presented.
        textfont
            Sets the font used inside `pathbar`.
        thickness
            Sets the thickness of `pathbar` (in px). If not
            specified the `pathbar.textfont.size` is used with 3
            pixles extra padding on each side.
        visible
            Determines if the path bar is drawn i.e. outside the
            trace `domain` and with one pixel gap.
        r   r   s    r   _prop_descriptionszPathbar._prop_descriptions   s     r   Nc           	      V   t          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          }||n|}||| d	<   |                    d
d          }||n|}||| d
<   |                    dd          }||n|}||| d<   |                    dd          }||n|}||| d<   |                    dd          }||n|}||| d<    | j        di t          |fi | d| _        dS )a  
        Construct a new Pathbar object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.treemap.Pathbar`
        edgeshape
            Determines which shape is used for edges between
            `barpath` labels.
        side
            Determines on which side of the the treemap the
            `pathbar` should be presented.
        textfont
            Sets the font used inside `pathbar`.
        thickness
            Sets the thickness of `pathbar` (in px). If not
            specified the `pathbar.textfont.size` is used with 3
            pixles extra padding on each side.
        visible
            Determines if the path bar is drawn i.e. outside the
            trace `domain` and with one pixel gap.

        Returns
        -------
        Pathbar
        pathbar_parentNzThe first argument to the plotly.graph_objs.treemap.Pathbar
constructor must be a dict or
an instance of :class:`plotly.graph_objs.treemap.Pathbar`skip_invalidF	_validateTr
   r   r	   r   r   r   )superr   __init__r#   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr%   _process_kwargs)
r   argr
   r   r	   r   r   kwargs_vr)   s
            r   r'   zPathbar.__init__   s   N 	gt%%i000!),DLF ;CCT^,, 
	$$&&CCT"" 	*S//CC=   $ZZ>>K66 WW[$''#/YYR> "DWWVT""%TT2>DLWWZ&&!-XX2>!DWW[$''#/YYR> "DWWY%%+WW> DO 	33tC22622333 #r   )NNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr
   setterr   r	   r   r   r    r'   __classcell__)r)   s   @r   r   r      s        !!ILLLL ! ! X!      
   X 
[  [
 W  W  XW r _  _
 ! ! X!      
   X ^  ^
   X* _# _# _# _# _# _# _# _# _# _#r   r   )plotly.basedatatypesr   _BaseTraceHierarchyTyper-   r,   r   r   r   r   <module>r@      sb    R R R R R R    t# t# t# t# t#% t# t# t# t# t#r   