
    -Ph}                     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ddh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 )Newselectionlayoutzlayout.newselectionlinemodec                     | d         S )ag  
        The 'line' property is an instance of Line
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.newselection.Line`
          - A dict of string/value properties that will be passed
            to the Line constructor

        Returns
        -------
        plotly.graph_objs.layout.newselection.Line
        r    selfs    f/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/layout/_newselection.pyr   zNewselection.line   s     F|    c                     || d<   d S )Nr   r
   r   vals     r   r   zNewselection.line       Vr   c                     | d         S )a'  
        Describes how a new selection is created. If `immediate`, a new
        selection is created after first mouse up. If `gradual`, a new
        selection is not created after first mouse. By adding to and
        subtracting from the initial selection, this option allows
        declaring extra outlines of the selection.

        The 'mode' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['immediate', 'gradual']

        Returns
        -------
        Any
        r   r
   r   s    r   r   zNewselection.mode!   s    " F|r   c                     || d<   d S )Nr   r
   r   s     r   r   zNewselection.mode4   r   r   c                     dS )Na          line
            :class:`plotly.graph_objects.layout.newselection.Line`
            instance or dict with compatible properties
        mode
            Describes how a new selection is created. If
            `immediate`, a new selection is created after first
            mouse up. If `gradual`, a new selection is not created
            after first mouse. By adding to and subtracting from
            the initial selection, this option allows declaring
            extra outlines of the selection.
        r
   r   s    r   _prop_descriptionszNewselection._prop_descriptions8   s     r   Nc           	      F   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
||            | j        di t          |fi | d| _        dS )a6  
        Construct a new Newselection object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.layout.Newselection`
        line
            :class:`plotly.graph_objects.layout.newselection.Line`
            instance or dict with compatible properties
        mode
            Describes how a new selection is created. If
            `immediate`, a new selection is created after first
            mouse up. If `gradual`, a new selection is not created
            after first mouse. By adding to and subtracting from
            the initial selection, this option allows declaring
            extra outlines of the selection.

        Returns
        -------
        Newselection
        newselection_parentNzThe first argument to the plotly.graph_objs.layout.Newselection
constructor must be a dict or
an instance of :class:`plotly.graph_objs.layout.Newselection`skip_invalidF	_validateTr   r   r
   )super__init__r   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr   _set_property_process_kwargs)r   argr   r   kwargsr   s        r   r   zNewselection.__init__G   s9   2 	(((!),DLF;CCT^,, 
	$$&&CCT"" 	*S//CCA   $ZZ>>K6663---63---33tC22622333"r   )NNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr   r   r   __classcell__)r   s   @r   r   r      s        %IF#L  X 
[  [   X$ 
[  [   X2# 2# 2# 2# 2# 2# 2# 2# 2# 2#r   r   )plotly.basedatatypesr   _BaseLayoutHierarchyTyper#   r"   r   r
   r   r   <module>r6      se    U T T T T T    q# q# q# q# q#+ q# q# q# q# q#r   