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

Method filter

docs/app/js/sanddance-app.js:9874–9884  ·  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, rebase = false)

Source from the content-addressed store, hash-verified

9872 * @param search Filter expression, see https://vega.github.io/vega/docs/expressions/
9873 * @param rebase Optional flag to apply to entire dataset. A false value will apply the filter upon any existing filter.
9874 */ filter(search, rebase = false) {
9875 const u = this._dataScope.createUserSelection(search, false, rebase);
9876 return new Promise((resolve, reject)=>{
9877 this._animator.filter(search, u.included, u.excluded, rebase).then(()=>{
9878 this._details.clear();
9879 this._details.clearSelection();
9880 this._details.populate(this._dataScope.selection);
9881 resolve();
9882 });
9883 });
9884 }
9885 /**
9886 * Remove any filtration and animate.
9887 */ reset() {

Callers 15

renderMethod · 0.95
getVscodeThemeClassNameFunction · 0.45
sanddance-app.jsFile · 0.45
filterColumnListFunction · 0.45
getColumnMapOptionsFunction · 0.45
ColumnMapFunction · 0.45
DropdownFunction · 0.45
getColumnByNameFunction · 0.45
validateMethod · 0.45
addScalesFunction · 0.45
addOffsetsFunction · 0.45
buildMethod · 0.45

Calls 5

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

Tested by

no test coverage detected