L iXddlmZddlmZddlmZmZedeee efZ eddGddZ eddGd d Z eddGd d Z y )) annotations) dataclass)AnyNewTypeStoreT)frozeneqcBeZdZUdZded<ded<ded<ed dZy ) IndexSelectionaP 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). strnamez list[int]valuerstorec|g}n7|jdijdg}|Dcgc] }|ddz  }}t|||Scc}w)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 vlPointor_vgsid_r rr)getr )r signalrindicespointsps \/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/altair/utils/selection.py from_vegazIndexSelection.from_vegas[& >GZZ 2.224F d&FFr&N)r r rzdict[str, list] | Nonerrrr%r&rr+r+]s- I  LGGr&r+N) __future__r dataclassesrtypingrrlistdictr rr r(r+r%r&rr2s"! d38n-. $4 'E'E!'ET $4 #D#D!#DL $4 $G$G!$Gr&