Lines Matching full:selection
11 // For example, if the selection is {bb="BB4", elt="BB4.6" iter="BB4:2"}:
13 // - re-render templates within these sections (if selection changed)
15 let selection = {}; variable
17 Object.assign(selection, changes);
20 data.selection = selection;
21 for (root of document.querySelectorAll('[data-selection]'))
28 // Given <section data-selection="x,y">:
32 let changed = root.selection == null;
33 root.selection ||= {};
34 for (key of root.dataset.selection.split(',')) {
36 if (data.selection[key] != root.selection[key]) {
37 root.selection[key] = data.selection[key];
40 if (data.selection[key] == null) {
125 // This might end up changing the hover state or the selection state.
128 // targetToID specifies how to determine the selection from it:
133 // If an entry is missing, the selection is unmodified.
134 // If an entry is null, the selection is always cleared.
162 …iter: e => (selection.iter && selection.bb == e.dataset.bb) ? selection.iter : lastIter(e.dataset.…