
    -Ph|                     6    d dl mZ d dlZ G d de          ZdS )    )BaseTraceHierarchyTypeNc                       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	 	 	 	 	 	 	 	 d fd	Z xZS )Lighting
streamtubezstreamtube.lighting>   ambientdiffusefresnelspecular	roughnessfacenormalsepsilonvertexnormalsepsilonc                     | d         S )a  
        Ambient light increases overall color visibility but can wash
        out the image.

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

        Returns
        -------
        int|float
        r    selfs    f/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/streamtube/_lighting.pyr   zLighting.ambient        I    c                     || d<   d S )Nr   r   r   vals     r   r   zLighting.ambient%       Yr   c                     | d         S )a  
        Represents the extent that incident rays are reflected in a
        range of angles.

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

        Returns
        -------
        int|float
        r   r   r   s    r   r   zLighting.diffuse)   r   r   c                     || d<   d S )Nr   r   r   s     r   r   zLighting.diffuse8   r   r   c                     | d         S )a)  
        Epsilon for face normals calculation avoids math issues arising
        from degenerate geometry.

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

        Returns
        -------
        int|float
        r   r   r   s    r   r   zLighting.facenormalsepsilon<   s     ())r   c                     || d<   d S )Nr   r   r   s     r   r   zLighting.facenormalsepsilonK   s    %(!"""r   c                     | d         S )au  
        Represents the reflectance as a dependency of the viewing
        angle; e.g. paper is reflective when viewing it from the edge
        of the paper (almost 90 degrees), causing shine.

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

        Returns
        -------
        int|float
        r	   r   r   s    r   r	   zLighting.fresnelO   s     Ir   c                     || d<   d S )Nr	   r   r   s     r   r	   zLighting.fresnel_   r   r   c                     | d         S )a#  
        Alters specular reflection; the rougher the surface, the wider
        and less contrasty the shine.

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

        Returns
        -------
        int|float
        r   r   r   s    r   r   zLighting.roughnessc   s     K  r   c                     || d<   d S )Nr   r   r   s     r   r   zLighting.roughnessr   s    [r   c                     | d         S )a!  
        Represents the level that incident rays are reflected in a
        single direction, causing shine.

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

        Returns
        -------
        int|float
        r
   r   r   s    r   r
   zLighting.specularv   s     Jr   c                     || d<   d S )Nr
   r   r   s     r   r
   zLighting.specular   s    Zr   c                     | d         S )a-  
        Epsilon for vertex normals calculation avoids math issues
        arising from degenerate geometry.

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

        Returns
        -------
        int|float
        r   r   r   s    r   r   zLighting.vertexnormalsepsilon   s     *++r   c                     || d<   d S )Nr   r   r   s     r   r   zLighting.vertexnormalsepsilon   s    '*#$$$r   c                     dS )Na          ambient
            Ambient light increases overall color visibility but
            can wash out the image.
        diffuse
            Represents the extent that incident rays are reflected
            in a range of angles.
        facenormalsepsilon
            Epsilon for face normals calculation avoids math issues
            arising from degenerate geometry.
        fresnel
            Represents the reflectance as a dependency of the
            viewing angle; e.g. paper is reflective when viewing it
            from the edge of the paper (almost 90 degrees), causing
            shine.
        roughness
            Alters specular reflection; the rougher the surface,
            the wider and less contrasty the shine.
        specular
            Represents the level that incident rays are reflected
            in a single direction, causing shine.
        vertexnormalsepsilon
            Epsilon for vertex normals calculation avoids math
            issues arising from degenerate geometry.
        r   r   s    r   _prop_descriptionszLighting._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||            | j        di t          |fi |	 d| _        dS )a,  
        Construct a new Lighting object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.streamtube.Lighting`
        ambient
            Ambient light increases overall color visibility but
            can wash out the image.
        diffuse
            Represents the extent that incident rays are reflected
            in a range of angles.
        facenormalsepsilon
            Epsilon for face normals calculation avoids math issues
            arising from degenerate geometry.
        fresnel
            Represents the reflectance as a dependency of the
            viewing angle; e.g. paper is reflective when viewing it
            from the edge of the paper (almost 90 degrees), causing
            shine.
        roughness
            Alters specular reflection; the rougher the surface,
            the wider and less contrasty the shine.
        specular
            Represents the level that incident rays are reflected
            in a single direction, causing shine.
        vertexnormalsepsilon
            Epsilon for vertex normals calculation avoids math
            issues arising from degenerate geometry.

        Returns
        -------
        Lighting
        lighting_parentNzThe first argument to the plotly.graph_objs.streamtube.Lighting
constructor must be a dict or
an instance of :class:`plotly.graph_objs.streamtube.Lighting`skip_invalidF	_validateTr   r   r   r	   r   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   r	   r   r
   r   kwargsr/   s             r   r-   zLighting.__init__   s   b 	$$$!),DLF;CCT^,, 
	$$&&CCT"" 	*S//CCA   $ZZ>>K669c73339c7333/6HIII9c7333;Y777:sH555138LMMM33tC22622333"r   )NNNNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr   r   r	   r   r
   r   r&   r-   __classcell__)r/   s   @r   r   r      s&       #%I  L   X ^  ^   X ^  ^ * * X* ) ) )   X ^  ^ ! ! X!           X  _  _ , , X,  + + ! +   X: !O# O# O# O# O# O# O# O# O# O#r   r   )plotly.basedatatypesr   _BaseTraceHierarchyTyper3   r2   r   r   r   r   <module>rF      se    S R R R R R    # # # # #& # # # # #r   