Skip to main content

Interface: SelectionPatch<Row>

Defined in: packages/sdvplot/src/selection.ts:42

A partial update for SelectionStore.set: an absent field keeps its value. Each id goes through toId: a number is stringified (12 and "12" are the same id) and null, undefined, NaN and "" are dropped. A bare string throws InputError rather than being split into letters: pass ["KC"], not "KC".

Type Parameters​

Row​

Row = unknown

Properties​

cursor?​

readonly optional cursor?: Cursor | null

Defined in: packages/sdvplot/src/selection.ts:50

The new hover value; null clears it. An equal cursor (same field, same value) is a no-op.


hover?​

readonly optional hover?: Iterable<string, any, any>

Defined in: packages/sdvplot/src/selection.ts:44

The new hover ids (replaces the set; [] clears it).


predicate?​

readonly optional predicate?: RowFilter<Row> | null

Defined in: packages/sdvplot/src/selection.ts:48

The new brush region; null clears it.


selected?​

readonly optional selected?: Iterable<string, any, any>

Defined in: packages/sdvplot/src/selection.ts:46

The new selected ids (replaces the set; [] clears it).