MCPcopy
hub / github.com/microsoft/SandDance / getSelection

Method getSelection

packages/sanddance/src/viewer.ts:765–773  ·  view source on GitHub ↗

* Gets the current selection.

()

Source from the content-addressed store, hash-verified

763 * Gets the current selection.
764 */
765 getSelection() {
766 if (!this._dataScope) return null;
767 const selectionState: SelectionState = {
768 search: (this._dataScope.selection && this._dataScope.selection.search) || null,
769 selectedData: (this._dataScope.selection && this._dataScope.selection.included) || null,
770 active: this._dataScope.active,
771 };
772 return selectionState;
773 }
774
775 /**
776 * Set one data row to the active state.

Callers 7

onDataChangedMethod · 0.95
onCubeClickMethod · 0.95
getBestDataScopeIdMethod · 0.45
toggleableSearchMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected