Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

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; mods is { ctrl?, shift? }; current is the current selected-index array; anchor is the current anchor or nil.

Notes

  • Pure functions, no engine calls — unit-tested in the editor_dataview suite.
  • Callers translate the returned indices into selection-service refs.