* Optimize for the scenario that data is filtered by a given extent. * Consider that if data amount is more than hundreds of thousand, * extent calculation will cost more than 10ms and the cache will * be erased because of the filtering.
(
dim: SeriesDimensionLoose,
filter: DataSanitizationFilter | NullUndefined
)
| 679 | * be erased because of the filtering. |
| 680 | */ |
| 681 | getApproximateExtent( |
| 682 | dim: SeriesDimensionLoose, |
| 683 | filter: DataSanitizationFilter | NullUndefined |
| 684 | ): [number, number] { |
| 685 | return this._approximateExtent[dim] || this._store.getDataExtent(this._getStoreDimIndex(dim), filter); |
| 686 | } |
| 687 | |
| 688 | /** |
| 689 | * NOTICE: `_approximateExtent` does not support filter. Callers must ensure the input extent |
no test coverage detected