
    -Ph\                     z    d dl mZ  G d d          Z G d d          Z G d d          Z G d d	          Zd
S )    )_list_repr_elidedc                       e Zd Z	 d
dZd Zed             Zed             Zed             Zed             Z	ed             Z
ed	             ZdS )InputDeviceStateNc                 Z    || _         || _        || _        || _        || _        || _        d S N)_ctrl_alt_meta_shift_button_buttons)selfctrlaltshiftmetabuttonbuttons_s           P/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/callbacks.py__init__zInputDeviceState.__init__   s2     
	
    c           
         d                     t          | j                  t          | j                  t          | j                  t          | j                  t          | j                  t          | j                            S )NzInputDeviceState(
    ctrl={ctrl},
    alt={alt},
    shift={shift},
    meta={meta},
    button={button},
    buttons={buttons}))r   r   r   r   r   r   )formatreprr   r   r   r   r   r   r   s    r   __repr__zInputDeviceState.__repr__   sj     !&diTXditz""$$&& ! 
 
	
r   c                     | j         S )zW
        Whether alt key pressed

        Returns
        -------
        bool
        )r	   r   s    r   r   zInputDeviceState.alt!   s     yr   c                     | j         S )zX
        Whether ctrl key pressed

        Returns
        -------
        bool
        )r   r   s    r   r   zInputDeviceState.ctrl,        zr   c                     | j         S )zY
        Whether shift key pressed

        Returns
        -------
        bool
        )r   r   s    r   r   zInputDeviceState.shift7   s     {r   c                     | j         S )zX
        Whether meta key pressed

        Returns
        -------
        bool
        )r
   r   s    r   r   zInputDeviceState.metaB   r    r   c                     | j         S )a&  
        Integer code for the button that was pressed on the mouse to trigger
        the event

        - 0: Main button pressed, usually the left button or the
             un-initialized state
        - 1: Auxiliary button pressed, usually the wheel button or the middle
             button (if present)
        - 2: Secondary button pressed, usually the right button
        - 3: Fourth button, typically the Browser Back button
        - 4: Fifth button, typically the Browser Forward button

        Returns
        -------
        int
        )r   r   s    r   r   zInputDeviceState.buttonM   s    $ |r   c                     | j         S )a  
        Integer code for which combination of buttons are pressed on the
        mouse when the event is triggered.

        -  0: No button or un-initialized
        -  1: Primary button (usually left)
        -  2: Secondary button (usually right)
        -  4: Auxilary button (usually middle or mouse wheel button)
        -  8: 4th button (typically the "Browser Back" button)
        - 16: 5th button (typically the "Browser Forward" button)

        Combinations of buttons are represented as the decimal form of the
        bitmask of the values above.

        For example, pressing both the primary (1) and auxilary (4) buttons
        will result in a code of 5

        Returns
        -------
        int
        )r   r   s    r   r   zInputDeviceState.buttonsa   s    . }r   )NNNNNN)__name__
__module____qualname__r   r   propertyr   r   r   r   r   r    r   r   r   r      s        OS	  	  	  	 
 
 
"   X   X   X   X   X&   X  r   r   c                       e Zd Zg g g ddfdZd Zed             Zed             Zed             Zed             Z	ed             Z
dS )	PointsNc                 L    || _         || _        || _        || _        || _        d S r   )_point_inds_xs_ys_trace_name_trace_index)r   
point_indsxsys
trace_nametrace_indexs         r   r   zPoints.__init__|   s.    %%'r   c           
      D   d                     t          | j        t          d                    t          | j        t          d                    t          | j        t          d                    t          | j                  t          | j                            S )NzPoints(point_inds={point_inds},
       xs={xs},
       ys={ys},
       trace_name={trace_name},
       trace_index={trace_index})zPoints(point_inds=indentz
       xs=z
       ys=)r2   r3   r4   r5   r6   )	r   r   r2   lenr3   r4   r   r5   r6   r   s    r   r   zPoints.__repr__   s    %
 &,V(,@(A(A   !\1B1BCCC \1B1BCCCDO,,T-.. &, &
 &
	
r   c                     | j         S )zu
        List of selected indexes into the trace's points

        Returns
        -------
        list[int]
        )r-   r   s    r   r2   zPoints.point_inds        r   c                     | j         S )zo
        List of x-coordinates of selected points

        Returns
        -------
        list[float]
        r.   r   s    r   r3   z	Points.xs        xr   c                     | j         S )zo
        List of y-coordinates of selected points

        Returns
        -------
        list[float]
        r/   r   s    r   r4   z	Points.ys   r?   r   c                     | j         S )zP
        Name of the trace

        Returns
        -------
        str
        )r0   r   s    r   r5   zPoints.trace_name   r<   r   c                     | j         S )z_
        Index of the trace in the figure

        Returns
        -------
        int
        )r1   r   s    r   r6   zPoints.trace_index   s       r   )r%   r&   r'   r   r   r(   r2   r3   r4   r5   r6   r)   r   r   r+   r+   {   s        "$tQU ( ( ( (
 
 
      X    X   X     X  ! ! X! ! !r   r+   c                   ^    e Zd ZddZd Zed             Zed             Zed             ZdS )BoxSelectorNc                 0    d| _         || _        || _        d S )Nbox)_type_xrange_yrange)r   xrangeyranger   s       r   r   zBoxSelector.__init__   s    
r   c                 D    d                     | j        | j                  S )Nz9BoxSelector(xrange={xrange},
            yrange={yrange}))rK   rL   )r   rK   rL   r   s    r   r   zBoxSelector.__repr__   s)      &;t{ !' !
 !
	
r   c                     | j         S zR
        The selector's type

        Returns
        -------
        str
        rH   r   s    r   typezBoxSelector.type   r    r   c                     | j         S )zs
        x-axis range extents of the box selection

        Returns
        -------
        (float, float)
        )rI   r   s    r   rK   zBoxSelector.xrange        |r   c                     | j         S )zs
        y-axis range extents of the box selection

        Returns
        -------
        (float, float)
        )rJ   r   s    r   rL   zBoxSelector.yrange   rS   r   NN)	r%   r&   r'   r   r   r(   rQ   rK   rL   r)   r   r   rE   rE      s           

 
 
   X   X   X  r   rE   c                   ^    e Zd ZddZd Zed             Zed             Zed             ZdS )LassoSelectorNc                 0    d| _         || _        || _        d S )Nlasso)rH   r.   r/   )r   r3   r4   r   s       r   r   zLassoSelector.__init__   s    
r   c           	          d                     t          | j        t          d                    t          | j        t          d                              S )Nz-LassoSelector(xs={xs},
              ys={ys})zLassoSelector(xs=r8   z              ys=)r3   r4   )r   r   r3   r:   r4   r   s    r   r   zLassoSelector.__repr__  sV     & 5H1I1IJJJ 5H1I1IJJJ ! 
 
	
r   c                     | j         S rO   rP   r   s    r   rQ   zLassoSelector.type	  r    r   c                     | j         S )z
        list of x-axis coordinates of each point in the lasso selection
        boundary

        Returns
        -------
        list[float]
        r>   r   s    r   r3   zLassoSelector.xs       xr   c                     | j         S )z
        list of y-axis coordinates of each point in the lasso selection
        boundary

        Returns
        -------
        list[float]
        rA   r   s    r   r4   zLassoSelector.ys   r]   r   rU   )	r%   r&   r'   r   r   r(   rQ   r3   r4   r)   r   r   rW   rW      s           

 
 
   X 	 	 X	 	 	 X	 	 	r   rW   N)plotly.utilsr   r   r+   rE   rW   r)   r   r   <module>r`      s    * * * * * *t t t t t t t tnN! N! N! N! N! N! N! N!b, , , , , , , ,^/ / / / / / / / / /r   