* 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)
| 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() { |
no test coverage detected