
    -Ph &                     6    d dl mZ d dlZ G d de          ZdS )    )BaseTraceHierarchyTypeNc                   x    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	 	 	 	 	 	 	 	 	 	 	 d fd	Z xZS )Clusterscattermapboxzscattermapbox.cluster>
   sizestepcolorenabledmaxzoomopacitysizesrcstepsrccolorsrc
opacitysrcc                     | d         S )a  
        Sets the color for each cluster step.

        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
          - A list or array of any of the above

        Returns
        -------
        str|numpy.ndarray
        r	    selfs    h/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/scattermapbox/_cluster.pyr	   zCluster.color   s    " G}    c                     || d<   d S )Nr	   r   r   vals     r   r	   zCluster.color,   s    Wr   c                     | d         S )z
        Sets the source reference on Chart Studio Cloud for `color`.

        The 'colorsrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        r   r   r   s    r   r   zCluster.colorsrc0   s     Jr   c                     || d<   d S )Nr   r   r   s     r   r   zCluster.colorsrc>   s    Zr   c                     | d         S )z
        Determines whether clustering is enabled or disabled.

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

        Returns
        -------
        bool
        r
   r   r   s    r   r
   zCluster.enabledB        Ir   c                     || d<   d S )Nr
   r   r   s     r   r
   zCluster.enabledP       Yr   c                     | d         S )a0  
        Sets the maximum zoom level. At zoom levels equal to or greater
        than this, points will never be clustered.

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

        Returns
        -------
        int|float
        r   r   r   s    r   r   zCluster.maxzoomT        Ir   c                     || d<   d S )Nr   r   r   s     r   r   zCluster.maxzoomc   r   r   c                     | d         S )a*  
        Sets the marker opacity.

        The 'opacity' property is a number and may be specified as:
          - An int or float in the interval [0, 1]
          - A tuple, list, or one-dimensional numpy array of the above

        Returns
        -------
        int|float|numpy.ndarray
        r   r   r   s    r   r   zCluster.opacityg   r!   r   c                     || d<   d S )Nr   r   r   s     r   r   zCluster.opacityv   r   r   c                     | d         S )z
        Sets the source reference on Chart Studio Cloud for `opacity`.

        The 'opacitysrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        r   r   r   s    r   r   zCluster.opacitysrcz   s     L!!r   c                     || d<   d S )Nr   r   r   s     r   r   zCluster.opacitysrc   s     \r   c                     | d         S )a5  
        Sets the size for each cluster step.

        The 'size' property is a number and may be specified as:
          - An int or float in the interval [0, inf]
          - A tuple, list, or one-dimensional numpy array of the above

        Returns
        -------
        int|float|numpy.ndarray
        r   r   r   s    r   r   zCluster.size   s     F|r   c                     || d<   d S )Nr   r   r   s     r   r   zCluster.size       Vr   c                     | d         S )z
        Sets the source reference on Chart Studio Cloud for `size`.

        The 'sizesrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        r   r   r   s    r   r   zCluster.sizesrc   r   r   c                     || d<   d S )Nr   r   r   s     r   r   zCluster.sizesrc   r   r   c                     | d         S )aY  
        Sets how many points it takes to create a cluster or advance to
        the next cluster step. Use this in conjunction with arrays for
        `size` and / or `color`. If an integer, steps start at
        multiples of this number. If an array, each step extends from
        the given value until one less than the next value.

        The 'step' property is a number and may be specified as:
          - An int or float in the interval [-1, inf]
          - A tuple, list, or one-dimensional numpy array of the above

        Returns
        -------
        int|float|numpy.ndarray
        r   r   r   s    r   r   zCluster.step   s    " F|r   c                     || d<   d S )Nr   r   r   s     r   r   zCluster.step   r)   r   c                     | d         S )z
        Sets the source reference on Chart Studio Cloud for `step`.

        The 'stepsrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        r   r   r   s    r   r   zCluster.stepsrc   r   r   c                     || d<   d S )Nr   r   r   s     r   r   zCluster.stepsrc   r   r   c                     dS )Na          color
            Sets the color for each cluster step.
        colorsrc
            Sets the source reference on Chart Studio Cloud for
            `color`.
        enabled
            Determines whether clustering is enabled or disabled.
        maxzoom
            Sets the maximum zoom level. At zoom levels equal to or
            greater than this, points will never be clustered.
        opacity
            Sets the marker opacity.
        opacitysrc
            Sets the source reference on Chart Studio Cloud for
            `opacity`.
        size
            Sets the size for each cluster step.
        sizesrc
            Sets the source reference on Chart Studio Cloud for
            `size`.
        step
            Sets how many points it takes to create a cluster or
            advance to the next cluster step. Use this in
            conjunction with arrays for `size` and / or `color`. If
            an integer, steps start at multiples of this number. If
            an array, each step extends from the given value until
            one less than the next value.
        stepsrc
            Sets the source reference on Chart Studio Cloud for
            `step`.
        r   r   s    r   _prop_descriptionszCluster._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||
           |                     d||            | j        di t          |fi | d| _        dS )a  
        Construct a new Cluster object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.scattermapbox.Cluster`
        color
            Sets the color for each cluster step.
        colorsrc
            Sets the source reference on Chart Studio Cloud for
            `color`.
        enabled
            Determines whether clustering is enabled or disabled.
        maxzoom
            Sets the maximum zoom level. At zoom levels equal to or
            greater than this, points will never be clustered.
        opacity
            Sets the marker opacity.
        opacitysrc
            Sets the source reference on Chart Studio Cloud for
            `opacity`.
        size
            Sets the size for each cluster step.
        sizesrc
            Sets the source reference on Chart Studio Cloud for
            `size`.
        step
            Sets how many points it takes to create a cluster or
            advance to the next cluster step. Use this in
            conjunction with arrays for `size` and / or `color`. If
            an integer, steps start at multiples of this number. If
            an array, each step extends from the given value until
            one less than the next value.
        stepsrc
            Sets the source reference on Chart Studio Cloud for
            `step`.

        Returns
        -------
        Cluster
        cluster_parentNzThe first argument to the plotly.graph_objs.scattermapbox.Cluster
constructor must be a dict or
an instance of :class:`plotly.graph_objs.scattermapbox.Cluster`skip_invalidF	_validateTr	   r   r
   r   r   r   r   r   r   r   r   )super__init__r4   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr6   _set_property_process_kwargs)r   argr	   r   r
   r   r   r   r   r   r   r   kwargsr:   s                r   r8   zCluster.__init__   s   v 	###!),DLF;CCT^,, 
	$$&&CCT"" 	*S//CCC   $ZZ>>K667C///:sH5559c73339c73339c7333<j99963---9c733363---9c733333tC22622333"r   )NNNNNNNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr	   setterr   r
   r   r   r   r   r   r   r   r1   r8   __classcell__)r:   s   @r   r   r      s       &'I  L   X$ \  \     X  _  _   X ^  ^   X ^  ^   X ^  ^ " " X" ! ! !   X 
[  [   X ^  ^   X$ 
[  [   X ^  ^     X H \# \# \# \# \# \# \# \# \# \#r   r   )plotly.basedatatypesr   _BaseTraceHierarchyTyper>   r=   r   r   r   r   <module>rQ      se    S R R R R R    Q# Q# Q# Q# Q#% Q# Q# Q# Q# Q#r   