Builtin Library
README.md
dataView.selectionModel
Pure selection-interaction algebra for Z.dataView. Maps a row click plus
modifier state to a new selected-index set and anchor, following the standard
desktop model: plain click replaces, ctrl toggles, shift selects the contiguous
range from the anchor.
Exports
M.resolveClick(index, mods, current, anchor) -> { selected: { number }, anchor: number }— 1-based indices;modsis{ ctrl?, shift? };currentis the current selected-index array;anchoris the current anchor or nil.
Notes
- Pure functions, no engine calls — unit-tested in the
editor_dataviewsuite. - Callers translate the returned indices into selection-service refs.