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