
    chX                        S SK Jr  S SKJr  S SKJrJr  \" S\\\	\4      5      r
\" SSS9 " S S5      5       r\" SSS9 " S	 S
5      5       r\" SSS9 " S S5      5       rg)    )annotations)	dataclass)AnyNewTypeStoreT)frozeneqc                  L    \ rS rSr% SrS\S'   S\S'   S\S'   \SS	 j5       rS
rg)IndexSelection   a8  
Represents the state of an alt.selection_point() when neither the fields nor encodings arguments are specified.

The value field is a list of zero-based indices into the
selected dataset.

Note: These indices only apply to the input DataFrame
for charts that do not include aggregations (e.g. a scatter chart).
strnamez	list[int]valuer   storec                    Uc  / nO9UR                  S0 5      R                  S/ 5      nU Vs/ s H
  oUS   S-
  PM     nn[        XUS9$ s  snf )a  
Construct an IndexSelection from the raw Vega signal and dataset values.

Parameters
----------
name: str
    The selection's name
signal: dict or None
    The value of the Vega signal corresponding to the selection
store: list
    The value of the Vega dataset corresponding to the selection.
    This dataset is named "{name}_store" in the Vega view.

Returns
-------
IndexSelection
vlPointor_vgsid_   r   r   r   )getr   )r   signalr   indicespointsps         iC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\altair/utils/selection.py	from_vegaIndexSelection.from_vega   sX    & >GZZ	2.224<F178A|a'G84eDD 9s   A
 Nr   r   r   zdict[str, dict] | Noner   r   	__name__
__module____qualname____firstlineno____doc____annotations__staticmethodr   __static_attributes__r       r   r   r      s-     ILE Er*   r   c                  L    \ rS rSr% SrS\S'   S\S'   S\S'   \SS	 j5       rS
rg)PointSelection6   a@  
Represents the state of an alt.selection_point() when the fields or encodings arguments are specified.

The value field is a list of dicts of the form:
    [{"dim1": 1, "dim2": "A"}, {"dim1": 2, "dim2": "BB"}]

where "dim1" and "dim2" are dataset columns and the dict values
correspond to the specific selected values.
r   r   zlist[dict[str, Any]]r   r   r   c                d    Uc  / O!UR                  S0 5      R                  S/ 5      n[        XUS9$ )a  
Construct a PointSelection from the raw Vega signal and dataset values.

Parameters
----------
name: str
    The selection's name
signal: dict or None
    The value of the Vega signal corresponding to the selection
store: list
    The value of the Vega dataset corresponding to the selection.
    This dataset is named "{name}_store" in the Vega view.

Returns
-------
PointSelection
r   r   r   )r   r,   )r   r   r   r   s       r   r   PointSelection.from_vegaF   s4    & ~6::i+D+H+Hr+R4UCCr*   r   Nr    r!   r   r*   r   r,   r,   6   s-     ILD Dr*   r,   c                  L    \ rS rSr% SrS\S'   S\S'   S\S'   \SS	 j5       rS
rg)IntervalSelection]   z
Represents the state of an alt.selection_interval().

The value field is a dict of the form:
    {"dim1": [0, 10], "dim2": ["A", "BB", "CCC"]}

where "dim1" and "dim2" are dataset columns and the dict values
correspond to the selected range.
r   r   zdict[str, list]r   r   r   c                     Uc  0 n[        XUS9$ )a  
Construct an IntervalSelection from the raw Vega signal and dataset values.

Parameters
----------
name: str
    The selection's name
signal: dict or None
    The value of the Vega signal corresponding to the selection
store: list
    The value of the Vega dataset corresponding to the selection.
    This dataset is named "{name}_store" in the Vega view.

Returns
-------
PointSelection
r   )r1   )r   r   r   s      r   r   IntervalSelection.from_vegam   s    & >F dFFr*   r   N)r   r   r   zdict[str, list] | Noner   r   r!   r   r*   r   r1   r1   ]   s-     ILG Gr*   r1   N)
__future__r   dataclassesr   typingr   r   listdictr   r   r   r,   r1   r   r*   r   <module>r:      s    " !  	d38n-. $4 'E 'E !'ET $4 #D #D !#DL $4 $G $G !$Gr*   