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

Method filter

packages/sanddance/src/viewer.ts:712–722  ·  view source on GitHub ↗

* Filter the data and animate. * @param search Filter expression, see https://vega.github.io/vega/docs/expressions/ * @param rebase Optional flag to apply to entire dataset. A false value will apply the filter upon any existing filter.

(search: Search, rebase = false)

Source from the content-addressed store, hash-verified

710 * @param rebase Optional flag to apply to entire dataset. A false value will apply the filter upon any existing filter.
711 */
712 filter(search: Search, rebase = false) {
713 const u = this._dataScope.createUserSelection(search, false, rebase);
714 return new Promise<void>((resolve, reject) => {
715 this._animator.filter(search, u.included, u.excluded, rebase).then(() => {
716 this._details.clear();
717 this._details.clearSelection();
718 this._details.populate(this._dataScope.selection);
719 resolve();
720 });
721 });
722 }
723
724 /**
725 * Remove any filtration and animate.

Callers 15

renderMethod · 0.95
classListFunction · 0.45
deepMergeFunction · 0.45
getCubeLayerFunction · 0.45
allTruthyFunction · 0.45
constructorMethod · 0.45
handleActionMethod · 0.45
applySignalValuesFunction · 0.45
axisSelectionLayerFunction · 0.45
classListFunction · 0.45

Calls 5

clearMethod · 0.65
resolveFunction · 0.50
createUserSelectionMethod · 0.45
clearSelectionMethod · 0.45
populateMethod · 0.45

Tested by

no test coverage detected