U
    cc                     @   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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d fdd	Z  ZS )
TransitionZlayoutzlayout.transitiondurationeasingorderingc                 C   s   | d S )a#  
        The duration of the transition, in milliseconds. If equal to
        zero, updates are synchronous.

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

        Returns
        -------
        int|float
        r    selfr   r   ^/var/www/html/project/venv/lib/python3.8/site-packages/plotly/graph_objs/layout/_transition.pyr      s    zTransition.durationc                 C   s   || d< d S )Nr   r   r	   valr   r   r
   r      s    c                 C   s   | d S )a9  
        The easing function used for the transition

        The 'easing' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['linear', 'quad', 'cubic', 'sin', 'exp', 'circle',
                'elastic', 'back', 'bounce', 'linear-in', 'quad-in',
                'cubic-in', 'sin-in', 'exp-in', 'circle-in', 'elastic-in',
                'back-in', 'bounce-in', 'linear-out', 'quad-out',
                'cubic-out', 'sin-out', 'exp-out', 'circle-out',
                'elastic-out', 'back-out', 'bounce-out', 'linear-in-out',
                'quad-in-out', 'cubic-in-out', 'sin-in-out', 'exp-in-out',
                'circle-in-out', 'elastic-in-out', 'back-in-out',
                'bounce-in-out']

        Returns
        -------
        Any
        r   r   r   r   r   r
   r   $   s    zTransition.easingc                 C   s   || d< d S )Nr   r   r   r   r   r
   r   ;   s    c                 C   s   | d S )a  
        Determines whether the figure's layout or traces smoothly
        transitions during updates that make both traces and layout
        change.

        The 'ordering' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['layout first', 'traces first']

        Returns
        -------
        Any
        r   r   r   r   r   r
   r   A   s    zTransition.orderingc                 C   s   || d< d S )Nr   r   r   r   r   r
   r   R   s    c                 C   s   dS )Na          duration
            The duration of the transition, in milliseconds. If
            equal to zero, updates are synchronous.
        easing
            The easing function used for the transition
        ordering
            Determines whether the figure's layout or traces
            smoothly transitions during updates that make both
            traces and layout change.
        r   r   r   r   r
   _prop_descriptionsX   s    zTransition._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< | jf t|f| d| _dS )a  
        Construct a new Transition object

        Sets transition options used during Plotly.react updates.

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.layout.Transition`
        duration
            The duration of the transition, in milliseconds. If
            equal to zero, updates are synchronous.
        easing
            The easing function used for the transition
        ordering
            Determines whether the figure's layout or traces
            smoothly transitions during updates that make both
            traces and layout change.

        Returns
        -------
        Transition
        Z
transition_parentNzThe first argument to the plotly.graph_objs.layout.Transition
constructor must be a dict or
an instance of :class:`plotly.graph_objs.layout.Transition`Zskip_invalidF	_validateTr   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   kwargs_vr   r   r
   r   f   s:    


	
zTransition.__init__)NNNN)__name__
__module____qualname__Z_parent_path_strZ	_path_strZ_valid_propspropertyr   setterr   r   r   r   __classcell__r   r   r   r
   r      s$   







r   )Zplotly.basedatatypesr   Z_BaseLayoutHierarchyTyper   r   r   r   r   r   r
   <module>   s   