
    ~i                     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d fd	Z xZS )
Hoverlabelzlayout.annotationzlayout.annotation.hoverlabel>   fontbgcolorbordercolorc                     | d         S )a<  
        Sets the background color of the hover label. By default uses
        the annotation's `bgcolor` made opaque, or white if it was
        transparent.

        The 'bgcolor' 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    c/home/jrussi/.local/lib/python3.11/site-packages/plotly/graph_objs/layout/annotation/_hoverlabel.pyr   zHoverlabel.bgcolor   s    $ I    c                     || d<   d S )Nr   r
   r   vals     r   r   zHoverlabel.bgcolor!   s    Yr   c                     | d         S )a?  
        Sets the border color of the hover label. By default uses
        either dark grey or white, for maximum contrast with
        `hoverlabel.bgcolor`.

        The 'bordercolor' 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Hoverlabel.bordercolor%   s    $ M""r   c                     || d<   d S )Nr   r
   r   s     r   r   zHoverlabel.bordercolor9   s    !]r   c                     | d         S )a  
        Sets the hover label text font. By default uses the global
        hover font and size, with color from `hoverlabel.bordercolor`.

        The 'font' property is an instance of Font
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.annotation.hoverlabel.Font`
          - A dict of string/value properties that will be passed
            to the Font constructor

        Returns
        -------
        plotly.graph_objs.layout.annotation.hoverlabel.Font
        r   r
   r   s    r   r   zHoverlabel.font=   s      F|r   c                     || d<   d S )Nr   r
   r   s     r   r   zHoverlabel.fontO   s    Vr   c                     dS )Na*          bgcolor
            Sets the background color of the hover label. By
            default uses the annotation's `bgcolor` made opaque, or
            white if it was transparent.
        bordercolor
            Sets the border color of the hover label. By default
            uses either dark grey or white, for maximum contrast
            with `hoverlabel.bgcolor`.
        font
            Sets the hover label text font. By default uses the
            global hover font and size, with color from
            `hoverlabel.bordercolor`.
        r
   r   s    r   _prop_descriptionszHoverlabel._prop_descriptionsS   s     r   Nc           	      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
||           |                     d||            | j        di t          |fi | d| _        dS )a^  
        Construct a new Hoverlabel object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.layout.annotation.Hoverlabel`
        bgcolor
            Sets the background color of the hover label. By
            default uses the annotation's `bgcolor` made opaque, or
            white if it was transparent.
        bordercolor
            Sets the border color of the hover label. By default
            uses either dark grey or white, for maximum contrast
            with `hoverlabel.bgcolor`.
        font
            Sets the hover label text font. By default uses the
            global hover font and size, with color from
            `hoverlabel.bordercolor`.

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