
    -PhE                     6    d dl mZ d dlZ G d de          ZdS )    )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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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 )&Newshapelayoutzlayout.newshape>   linenamelabellayerlegendopacityvisiblefillrule	fillcolor
legendrank
showlegendlegendgrouplegendwidthdrawdirectionlegendgrouptitlec                     | d         S )a}  
        When `dragmode` is set to "drawrect", "drawline" or
        "drawcircle" this limits the drag to be horizontal, vertical or
        diagonal. Using "diagonal" there is no limit e.g. in drawing
        lines in any direction. "ortho" limits the draw to be either
        horizontal or vertical. "horizontal" allows horizontal extend.
        "vertical" allows vertical extend.

        The 'drawdirection' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['ortho', 'horizontal', 'vertical', 'diagonal']

        Returns
        -------
        Any
        r    selfs    b/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/layout/_newshape.pyr   zNewshape.drawdirection   s    $ O$$    c                     || d<   d S )Nr   r   r   vals     r   r   zNewshape.drawdirection2   s     #_r   c                     | d         S )a  
        Sets the color filling new shapes' interior. Please note that
        if using a fillcolor with alpha greater than half, drag inside
        the active shape starts moving the shape underneath, otherwise
        a new shape could be started over.

        The 'fillcolor' 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   r   r   s    r   r   zNewshape.fillcolor6   s    & K  r   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.fillcolorK   s    [r   c                     | d         S )ax  
        Determines the path's interior. For more info please visit
        https://developer.mozilla.org/en-
        US/docs/Web/SVG/Attribute/fill-rule

        The 'fillrule' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['evenodd', 'nonzero']

        Returns
        -------
        Any
        r   r   r   s    r   r   zNewshape.fillruleO   s     Jr   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.fillrule`   s    Zr   c                     | d         S )ad  
        The 'label' property is an instance of Label
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.newshape.Label`
          - A dict of string/value properties that will be passed
            to the Label constructor

        Returns
        -------
        plotly.graph_objs.layout.newshape.Label
        r	   r   r   s    r   r	   zNewshape.labeld   s     G}r   c                     || d<   d S )Nr	   r   r   s     r   r	   zNewshape.labels       Wr   c                     | d         S )a  
        Specifies whether new shapes are drawn below gridlines
        ("below"), between gridlines and traces ("between") or above
        traces ("above").

        The 'layer' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['below', 'above', 'between']

        Returns
        -------
        Any
        r
   r   r   s    r   r
   zNewshape.layerw   s     G}r   c                     || d<   d S )Nr
   r   r   s     r   r
   zNewshape.layer   r%   r   c                     | d         S )a.  
        Sets the reference to a legend to show new shape in. References
        to these legends are "legend", "legend2", "legend3", etc.
        Settings for these legends are set in the layout, under
        `layout.legend`, `layout.legend2`, etc.

        The 'legend' property is an identifier of a particular
        subplot, of type 'legend', that may be specified as the string 'legend'
        optionally followed by an integer >= 1
        (e.g. 'legend', 'legend1', 'legend2', 'legend3', etc.)

        Returns
        -------
        str
        r   r   r   s    r   r   zNewshape.legend   s    " H~r   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.legend   s    Xr   c                     | d         S )aq  
        Sets the legend group for new shape. Traces and shapes part of
        the same legend group hide/show at the same time when toggling
        legend items.

        The 'legendgroup' 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Newshape.legendgroup   s     M""r   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.legendgroup       !]r   c                     | d         S )a  
        The 'legendgrouptitle' property is an instance of Legendgrouptitle
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.newshape.Legendgrouptitle`
          - A dict of string/value properties that will be passed
            to the Legendgrouptitle constructor

        Returns
        -------
        plotly.graph_objs.layout.newshape.Legendgrouptitle
        r   r   r   s    r   r   zNewshape.legendgrouptitle   s     &''r   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.legendgrouptitle   s    #&   r   c                     | d         S )a7  
        Sets the legend rank for new shape. Items and groups with
        smaller ranks are presented on top/left side while with
        "reversed" `legend.traceorder` they are on bottom/right side.
        The default legendrank is 1000, so that you can use ranks less
        than 1000 to place certain items before all unranked items, and
        ranks greater than 1000 to go after all unranked items.

        The 'legendrank' property is a number and may be specified as:
          - An int or float

        Returns
        -------
        int|float
        r   r   r   s    r   r   zNewshape.legendrank   s    " L!!r   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.legendrank        \r   c                     | d         S )a  
        Sets the width (in px or fraction) of the legend for new shape.

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

        Returns
        -------
        int|float
        r   r   r   s    r   r   zNewshape.legendwidth   s     M""r   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.legendwidth   r,   r   c                     | d         S )a_  
        The 'line' property is an instance of Line
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.newshape.Line`
          - A dict of string/value properties that will be passed
            to the Line constructor

        Returns
        -------
        plotly.graph_objs.layout.newshape.Line
        r   r   r   s    r   r   zNewshape.line        F|r   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.line      Vr   c                     | d         S )a  
        Sets new shape name. The name appears as the legend item.

        The 'name' 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Newshape.name  r5   r   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.name  r7   r   c                     | d         S )z
        Sets the opacity of new shapes.

        The 'opacity' property is a number and may be specified as:
          - An int or float in the interval [0, 1]

        Returns
        -------
        int|float
        r   r   r   s    r   r   zNewshape.opacity  s     Ir   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.opacity(      Yr   c                     | d         S )z
        Determines whether or not new shape is shown in the legend.

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

        Returns
        -------
        bool
        r   r   r   s    r   r   zNewshape.showlegend,  s     L!!r   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.showlegend:  r1   r   c                     | d         S )a  
        Determines whether or not new shape is visible. If
        "legendonly", the shape is not drawn, but can appear as a
        legend item (provided that the legend itself is visible).

        The 'visible' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                [True, False, 'legendonly']

        Returns
        -------
        Any
        r   r   r   s    r   r   zNewshape.visible>  s     Ir   c                     || d<   d S )Nr   r   r   s     r   r   zNewshape.visibleO  r<   r   c                     dS )Na          drawdirection
            When `dragmode` is set to "drawrect", "drawline" or
            "drawcircle" this limits the drag to be horizontal,
            vertical or diagonal. Using "diagonal" there is no
            limit e.g. in drawing lines in any direction. "ortho"
            limits the draw to be either horizontal or vertical.
            "horizontal" allows horizontal extend. "vertical"
            allows vertical extend.
        fillcolor
            Sets the color filling new shapes' interior. Please
            note that if using a fillcolor with alpha greater than
            half, drag inside the active shape starts moving the
            shape underneath, otherwise a new shape could be
            started over.
        fillrule
            Determines the path's interior. For more info please
            visit https://developer.mozilla.org/en-
            US/docs/Web/SVG/Attribute/fill-rule
        label
            :class:`plotly.graph_objects.layout.newshape.Label`
            instance or dict with compatible properties
        layer
            Specifies whether new shapes are drawn below gridlines
            ("below"), between gridlines and traces ("between") or
            above traces ("above").
        legend
            Sets the reference to a legend to show new shape in.
            References to these legends are "legend", "legend2",
            "legend3", etc. Settings for these legends are set in
            the layout, under `layout.legend`, `layout.legend2`,
            etc.
        legendgroup
            Sets the legend group for new shape. Traces and shapes
            part of the same legend group hide/show at the same
            time when toggling legend items.
        legendgrouptitle
            :class:`plotly.graph_objects.layout.newshape.Legendgrou
            ptitle` instance or dict with compatible properties
        legendrank
            Sets the legend rank for new shape. Items and groups
            with smaller ranks are presented on top/left side while
            with "reversed" `legend.traceorder` they are on
            bottom/right side. The default legendrank is 1000, so
            that you can use ranks less than 1000 to place certain
            items before all unranked items, and ranks greater than
            1000 to go after all unranked items.
        legendwidth
            Sets the width (in px or fraction) of the legend for
            new shape.
        line
            :class:`plotly.graph_objects.layout.newshape.Line`
            instance or dict with compatible properties
        name
            Sets new shape name. The name appears as the legend
            item.
        opacity
            Sets the opacity of new shapes.
        showlegend
            Determines whether or not new shape is shown in the
            legend.
        visible
            Determines whether or not new shape is visible. If
            "legendonly", the shape is not drawn, but can appear as
            a legend item (provided that the legend itself is
            visible).
        r   r   s    r   _prop_descriptionszNewshape._prop_descriptionsS  s    B B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||
           |                     d||           |                     d||           |                     d||           |                     d||           |                     d||           |                     d||            | j        di t          |fi | d| _        dS )a3  
        Construct a new Newshape object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.layout.Newshape`
        drawdirection
            When `dragmode` is set to "drawrect", "drawline" or
            "drawcircle" this limits the drag to be horizontal,
            vertical or diagonal. Using "diagonal" there is no
            limit e.g. in drawing lines in any direction. "ortho"
            limits the draw to be either horizontal or vertical.
            "horizontal" allows horizontal extend. "vertical"
            allows vertical extend.
        fillcolor
            Sets the color filling new shapes' interior. Please
            note that if using a fillcolor with alpha greater than
            half, drag inside the active shape starts moving the
            shape underneath, otherwise a new shape could be
            started over.
        fillrule
            Determines the path's interior. For more info please
            visit https://developer.mozilla.org/en-
            US/docs/Web/SVG/Attribute/fill-rule
        label
            :class:`plotly.graph_objects.layout.newshape.Label`
            instance or dict with compatible properties
        layer
            Specifies whether new shapes are drawn below gridlines
            ("below"), between gridlines and traces ("between") or
            above traces ("above").
        legend
            Sets the reference to a legend to show new shape in.
            References to these legends are "legend", "legend2",
            "legend3", etc. Settings for these legends are set in
            the layout, under `layout.legend`, `layout.legend2`,
            etc.
        legendgroup
            Sets the legend group for new shape. Traces and shapes
            part of the same legend group hide/show at the same
            time when toggling legend items.
        legendgrouptitle
            :class:`plotly.graph_objects.layout.newshape.Legendgrou
            ptitle` instance or dict with compatible properties
        legendrank
            Sets the legend rank for new shape. Items and groups
            with smaller ranks are presented on top/left side while
            with "reversed" `legend.traceorder` they are on
            bottom/right side. The default legendrank is 1000, so
            that you can use ranks less than 1000 to place certain
            items before all unranked items, and ranks greater than
            1000 to go after all unranked items.
        legendwidth
            Sets the width (in px or fraction) of the legend for
            new shape.
        line
            :class:`plotly.graph_objects.layout.newshape.Line`
            instance or dict with compatible properties
        name
            Sets new shape name. The name appears as the legend
            item.
        opacity
            Sets the opacity of new shapes.
        showlegend
            Determines whether or not new shape is shown in the
            legend.
        visible
            Determines whether or not new shape is visible. If
            "legendonly", the shape is not drawn, but can appear as
            a legend item (provided that the legend itself is
            visible).

        Returns
        -------
        Newshape
        newshape_parentNzThe first argument to the plotly.graph_objs.layout.Newshape
constructor must be a dict or
an instance of :class:`plotly.graph_objs.layout.Newshape`skip_invalidF	_validateTr   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   )super__init__rE   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidrG   _set_property_process_kwargs)r   argr   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   kwargsrK   s                     r   rI   zNewshape.__init__  ss   F 	$$$!),DLF;CCT^,, 
	$$&&CCT"" 	*S//CC=   $ZZ>>K66?C???;Y777:sH5557C///7C///8S&111=#{;;;-s4DEEE<j999=#{;;;63---63---9c7333<j9999c733333tC22622333"r   )NNNNNNNNNNNNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr   r   r	   r
   r   r   r   r   r   r   r   r   r   r   rB   rI   __classcell__)rK   s   @r   r   r      s
       !I  L$ % % X%& $ $ $ ! ! X!(           X   _  _   X \  \   X  \  \   X$ ]  ] # # X#  " " " ( ( X( ' ' ' " " X"$ ! ! ! # # X# " " "   X 
[  [   X 
[  [   X ^  ^ " " X" ! ! !   X  ^  ^ C C XCN #I# I# I# I# I# I# I# I# I# I#r   r   )plotly.basedatatypesr   _BaseLayoutHierarchyTyperO   rN   r   r   r   r   <module>rb      se    U T T T T T    Z# Z# Z# Z# Z#' Z# Z# Z# Z# Z#r   