
    6Dh\                     `    S SK Jr   " S S5      r " S S5      r " S S5      r " S S	5      rg
)    )_list_repr_elidedc                       \ rS rSr SS jrS r\S 5       r\S 5       r\S 5       r	\S 5       r
\S	 5       r\S
 5       rSrg)InputDeviceState   Nc                 L    Xl         X l        X@l        X0l        XPl        X`l        g N)_ctrl_alt_meta_shift_button_buttons)selfctrlaltshiftmetabuttonbuttons_s           B/var/www/html/env/lib/python3.13/site-packages/plotly/callbacks.py__init__InputDeviceState.__init__   s"     
	
    c           
         SR                  [        U R                  5      [        U R                  5      [        U R                  5      [        U R
                  5      [        U R                  5      [        U R                  5      S9$ )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__InputDeviceState.__repr__   sb     !&diiTXXdiitzz"$& ! 
	
r   c                     U R                   $ )z/
Whether alt key pressed

Returns
-------
bool
)r
   r   s    r   r   InputDeviceState.alt!   s     yyr   c                     U R                   $ )z0
Whether ctrl key pressed

Returns
-------
bool
)r	   r   s    r   r   InputDeviceState.ctrl,        zzr   c                     U R                   $ )z1
Whether shift key pressed

Returns
-------
bool
)r   r   s    r   r   InputDeviceState.shift7   s     {{r   c                     U R                   $ )z0
Whether meta key pressed

Returns
-------
bool
)r   r   s    r   r   InputDeviceState.metaB   r%   r   c                     U R                   $ )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   InputDeviceState.buttonM   s    $ ||r   c                     U R                   $ )aW  
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   InputDeviceState.buttonsa   s    . }}r   )r
   r   r   r	   r   r   )NNNNNN)__name__
__module____qualname____firstlineno__r   r   propertyr   r   r   r   r   r   __static_attributes__ r   r   r   r      s    OS	 
"          &  r   r   c                   ~    \ rS rSr/ / / SS4S jrS r\S 5       r\S 5       r\S 5       r	\S 5       r
\S	 5       rS
rg)Points{   Nc                 @    Xl         X l        X0l        X@l        XPl        g r   )_point_inds_xs_ys_trace_name_trace_index)r   
point_indsxsys
trace_nametrace_indexs         r   r   Points.__init__|   s    %%'r   c           
         SR                  [        U R                  [        S5      S9[        U R                  [        S5      S9[        U R
                  [        S5      S9[        U R                  5      [        U R                  5      S9$ )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=)r>   r?   r@   rA   rB   )	r   r   r>   lenr?   r@   r   rA   rB   r   s    r   r   Points.__repr__   sv    %
 &,V(,@(A !\1BC \1BCDOO,T--. &, &
	
r   c                     U R                   $ )zM
List of selected indexes into the trace's points

Returns
-------
list[int]
)r9   r   s    r   r>   Points.point_inds        r   c                     U R                   $ )zG
List of x-coordinates of selected points

Returns
-------
list[float]
r:   r   s    r   r?   	Points.xs        xxr   c                     U R                   $ )zG
List of y-coordinates of selected points

Returns
-------
list[float]
r;   r   s    r   r@   	Points.ys   rO   r   c                     U R                   $ )z(
Name of the trace

Returns
-------
str
)r<   r   s    r   rA   Points.trace_name   rK   r   c                     U R                   $ )z7
Index of the trace in the figure

Returns
-------
int
)r=   r   s    r   rB   Points.trace_index   s        r   )r9   r=   r<   r:   r;   )r.   r/   r0   r1   r   r   r2   r>   r?   r@   rA   rB   r3   r4   r   r   r6   r6   {   s|    "$tQU (
              ! !r   r6   c                   T    \ rS rSrS	S jrS r\S 5       r\S 5       r\S 5       r	Sr
g)
BoxSelector   Nc                 *    SU l         Xl        X l        g )Nbox_type_xrange_yrange)r   xrangeyranger   s       r   r   BoxSelector.__init__   s    
r   c                 J    SR                  U R                  U R                  S9$ )Nz9BoxSelector(xrange={xrange},
            yrange={yrange}))r`   ra   )r   r`   ra   r   s    r   r   BoxSelector.__repr__   s(      &;;t{{ !' !
	
r   c                     U R                   $ z*
The selector's type

Returns
-------
str
r]   r   s    r   typeBoxSelector.type   r%   r   c                     U R                   $ )zK
x-axis range extents of the box selection

Returns
-------
(float, float)
)r^   r   s    r   r`   BoxSelector.xrange        ||r   c                     U R                   $ )zK
y-axis range extents of the box selection

Returns
-------
(float, float)
)r_   r   s    r   ra   BoxSelector.yrange   rl   r   r\   NN)r.   r/   r0   r1   r   r   r2   rh   r`   ra   r3   r4   r   r   rX   rX      sH    

      r   rX   c                   T    \ rS rSrS	S jrS r\S 5       r\S 5       r\S 5       r	Sr
g)
LassoSelector   Nc                 *    SU l         Xl        X l        g )Nlassor]   r:   r;   )r   r?   r@   r   s       r   r   LassoSelector.__init__   s    
r   c           	          SR                  [        U R                  [        S5      S9[        U R                  [        S5      S9S9$ )Nz-LassoSelector(xs={xs},
              ys={ys})zLassoSelector(xs=rE   z              ys=)r?   r@   )r   r   r?   rG   r@   r   s    r   r   LassoSelector.__repr__  sC     & 5H1IJ 5H1IJ ! 
	
r   c                     U R                   $ rf   rg   r   s    r   rh   LassoSelector.type	  r%   r   c                     U R                   $ )zg
list of x-axis coordinates of each point in the lasso selection
boundary

Returns
-------
list[float]
rM   r   s    r   r?   LassoSelector.xs       xxr   c                     U R                   $ )zg
list of y-axis coordinates of each point in the lasso selection
boundary

Returns
-------
list[float]
rQ   r   s    r   r@   LassoSelector.ys   r}   r   ru   ro   )r.   r/   r0   r1   r   r   r2   rh   r?   r@   r3   r4   r   r   rq   rq      sH    

   	 	 	 	r   rq   N)plotly.utilsr   r   r6   rX   rq   r4   r   r   <module>r      s7    *t tnN! N!b, ,^/ /r   