MCPcopy Index your code
hub / github.com/apache/echarts / isValidNumberForExtent

Function isValidNumberForExtent

src/util/model.ts:1270–1274  ·  view source on GitHub ↗
(val: number | NullUndefined)

Source from the content-addressed store, hash-verified

1268 * special handling and it will not be supported until required. So we simply ignore it here.
1269 */
1270export function isValidNumberForExtent(val: number | NullUndefined): boolean {
1271 // Considered that number could be `NaN` and `Infinity` and should not write into the extent.
1272 // Note that `Infinity` is the initialized value from `initExtentForUnion` and may be inputted.
1273 return val != null && isFinite(val);
1274}
1275
1276export function isValidBoundsForExtent(start: number, end: number): boolean {
1277 return isValidNumberForExtent(start) && isValidNumberForExtent(end) && start <= end;

Callers 6

constructorMethod · 0.90
unionExtentFromNumberFunction · 0.85
unionExtentEndFromNumberFunction · 0.85
isValidBoundsForExtentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…