▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofmodule dataView.module·originates fromworld 07158574-5…
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.
by·posted 2mo ago
What it does
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.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.