U
    cc                     @   s(   d dl mZ d dlZG dd deZdS )    )BaseTraceHierarchyTypeNc                       s   e Zd ZdZdZ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d fdd	Z  ZS )DomainZsankeyzsankey.domaincolumnrowxyc                 C   s   | d S )aX  
        If there is a layout grid, use the domain for this column in
        the grid for this sankey trace .

        The 'column' property is a integer and may be specified as:
          - An int (or float that will be cast to an int)
            in the interval [0, 9223372036854775807]

        Returns
        -------
        int
        r    selfr   r   Z/var/www/html/project/venv/lib/python3.8/site-packages/plotly/graph_objs/sankey/_domain.pyr      s    zDomain.columnc                 C   s   || d< d S )Nr   r   r
   valr   r   r   r      s    c                 C   s   | d S )aR  
        If there is a layout grid, use the domain for this row in the
        grid for this sankey trace .

        The 'row' property is a integer and may be specified as:
          - An int (or float that will be cast to an int)
            in the interval [0, 9223372036854775807]

        Returns
        -------
        int
        r   r   r	   r   r   r   r   %   s    z
Domain.rowc                 C   s   || d< d S )Nr   r   r   r   r   r   r   5   s    c                 C   s   | d S )a  
            Sets the horizontal domain of this sankey trace (in plot
            fraction).

            The 'x' property is an info array that may be specified as:

            * a list or tuple of 2 elements where:
        (0) The 'x[0]' property is a number and may be specified as:
              - An int or float in the interval [0, 1]
        (1) The 'x[1]' property is a number and may be specified as:
              - An int or float in the interval [0, 1]

            Returns
            -------
            list
        r   r   r	   r   r   r   r   ;   s    zDomain.xc                 C   s   || d< d S )Nr   r   r   r   r   r   r   O   s    c                 C   s   | d S )a  
            Sets the vertical domain of this sankey trace (in plot
            fraction).

            The 'y' property is an info array that may be specified as:

            * a list or tuple of 2 elements where:
        (0) The 'y[0]' property is a number and may be specified as:
              - An int or float in the interval [0, 1]
        (1) The 'y[1]' property is a number and may be specified as:
              - An int or float in the interval [0, 1]

            Returns
            -------
            list
        r   r   r	   r   r   r   r   U   s    zDomain.yc                 C   s   || d< d S )Nr   r   r   r   r   r   r   i   s    c                 C   s   dS )Na          column
            If there is a layout grid, use the domain for this
            column in the grid for this sankey trace .
        row
            If there is a layout grid, use the domain for this row
            in the grid for this sankey trace .
        x
            Sets the horizontal domain of this sankey trace (in
            plot fraction).
        y
            Sets the vertical domain of this sankey trace (in plot
            fraction).
        r   r	   r   r   r   _prop_descriptionso   s    zDomain._prop_descriptionsNc                    sX  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< | jf t|f| d| _dS )a  
        Construct a new Domain object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of :class:`plotly.graph_objs.sankey.Domain`
        column
            If there is a layout grid, use the domain for this
            column in the grid for this sankey trace .
        row
            If there is a layout grid, use the domain for this row
            in the grid for this sankey trace .
        x
            Sets the horizontal domain of this sankey trace (in
            plot fraction).
        y
            Sets the vertical domain of this sankey trace (in plot
            fraction).

        Returns
        -------
        Domain
        domain_parentNzThe first argument to the plotly.graph_objs.sankey.Domain
constructor must be a dict or
an instance of :class:`plotly.graph_objs.sankey.Domain`Zskip_invalidF	_validateTr   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   kwargs_vr   r   r   r      sB    


	

zDomain.__init__)NNNNN)__name__
__module____qualname__Z_parent_path_strZ	_path_strZ_valid_propspropertyr   setterr   r   r   r   r   __classcell__r   r   r   r   r      s,   








r   )Zplotly.basedatatypesr   Z_BaseTraceHierarchyTyper   r   r   r   r   r   r   <module>   s   