B
    &[_                  @   s(   d dl mZ d dlZG dd deZdS )    )BaseLayoutHierarchyTypeNc                   s   e Zd ZdZdZddddddhZed	d
 Zejdd
 Zedd Z	e	jdd Z	edd Z
e
jdd Z
edd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zd  fdd	Z  ZS )!Currentvaluezlayout.sliderzlayout.slider.currentvaluefontoffsetprefixsuffixvisiblexanchorc             C   s   | d S )a)  
        Sets the font of the current value label text.
    
        The 'font' property is an instance of Font
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.slider.currentvalue.Font`
          - A dict of string/value properties that will be passed
            to the Font constructor
    
            Supported dict properties:
                
                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".
                size

        Returns
        -------
        plotly.graph_objs.layout.slider.currentvalue.Font
        r    )selfr
   r
   Q/tmp/pip-install-l29rncou/plotly/plotly/graph_objs/layout/slider/_currentvalue.pyr      s    &zCurrentvalue.fontc             C   s   || d< d S )Nr   r
   )r   valr
   r
   r   r   7   s    c             C   s   | d S )a   
        The amount of space, in pixels, between the current value label
        and the slider.
    
        The 'offset' property is a number and may be specified as:
          - An int or float

        Returns
        -------
        int|float
        r   r
   )r   r
   r
   r   r   =   s    zCurrentvalue.offsetc             C   s   || d< d S )Nr   r
   )r   r   r
   r
   r   r   L   s    c             C   s   | d S )a"  
        When currentvalue.visible is true, this sets the prefix of the
        label.
    
        The 'prefix' 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   r
   r
   r   r   R   s    zCurrentvalue.prefixc             C   s   || d< d S )Nr   r
   )r   r   r
   r
   r   r   b   s    c             C   s   | d S )a"  
        When currentvalue.visible is true, this sets the suffix of the
        label.
    
        The 'suffix' 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   r
   r
   r   r   h   s    zCurrentvalue.suffixc             C   s   || d< d S )Nr   r
   )r   r   r
   r
   r   r   x   s    c             C   s   | d S )z
        Shows the currently-selected value above the slider.
    
        The 'visible' property must be specified as a bool
        (either True, or False)

        Returns
        -------
        bool
        r   r
   )r   r
   r
   r   r   ~   s    zCurrentvalue.visiblec             C   s   || d< d S )Nr   r
   )r   r   r
   r
   r   r      s    c             C   s   | d S )a@  
        The alignment of the value readout relative to the length of
        the slider.
    
        The 'xanchor' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['left', 'center', 'right']

        Returns
        -------
        Any
        r	   r
   )r   r
   r
   r   r	      s    zCurrentvalue.xanchorc             C   s   || d< d S )Nr	   r
   )r   r   r
   r
   r   r	      s    c             C   s   dS )Nac          font
            Sets the font of the current value label text.
        offset
            The amount of space, in pixels, between the current
            value label and the slider.
        prefix
            When currentvalue.visible is true, this sets the prefix
            of the label.
        suffix
            When currentvalue.visible is true, this sets the suffix
            of the label.
        visible
            Shows the currently-selected value above the slider.
        xanchor
            The alignment of the value readout relative to the
            length of the slider.
        r
   )r   r
   r
   r   _prop_descriptions   s    zCurrentvalue._prop_descriptionsNc       
         s  t t| d d|kr&|d | _dS |dkr4i }n4t|| jrJ| }nt|tr`t	|}nt
d|dd| _|dd| _|d	d}	|dk	r|n|	}	|	dk	r|	| d	< |d
d}	|dk	r|n|	}	|	dk	r|	| d
< |dd}	|dk	r|n|	}	|	dk	r
|	| d< |dd}	|dk	r$|n|	}	|	dk	r:|	| d< |dd}	|dk	rT|n|	}	|	dk	rj|	| d< |dd}	|dk	r|n|	}	|	dk	r|	| d< | jf t|f| d| _dS )a  
        Construct a new Currentvalue object
        
        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.layout.slider.Currentvalue`
        font
            Sets the font of the current value label text.
        offset
            The amount of space, in pixels, between the current
            value label and the slider.
        prefix
            When currentvalue.visible is true, this sets the prefix
            of the label.
        suffix
            When currentvalue.visible is true, this sets the suffix
            of the label.
        visible
            Shows the currently-selected value above the slider.
        xanchor
            The alignment of the value readout relative to the
            length of the slider.

        Returns
        -------
        Currentvalue
        Zcurrentvalue_parentNzThe first argument to the plotly.graph_objs.layout.slider.Currentvalue 
constructor must be a dict or 
an instance of :class:`plotly.graph_objs.layout.slider.Currentvalue`Zskip_invalidF	_validateTr   r   r   r   r   r	   )superr   __init__r   
isinstance	__class__Zto_plotly_jsondict_copycopy
ValueErrorpopZ_skip_invalidr   Z_process_kwargs)
r   argr   r   r   r   r   r	   kwargsZ_v)r   r
   r   r      sP    )






zCurrentvalue.__init__)NNNNNNN)__name__
__module____qualname__Z_parent_path_strZ	_path_strZ_valid_propspropertyr   setterr   r   r   r   r	   r   r   __classcell__r
   r
   )r   r   r      s.   (      r   )Zplotly.basedatatypesr   Z_BaseLayoutHierarchyTyper   r   r   r
   r
   r
   r   <module>   s   