MCPcopy
hub / github.com/apache/echarts / writeExtent

Function writeExtent

src/scale/scaleMapper.ts:488–504  ·  view source on GitHub ↗
(
    extentList: number[][], kind: ScaleExtentKind, start: number, end: number
)

Source from the content-addressed store, hash-verified

486};
487
488function writeExtent(
489 extentList: number[][], kind: ScaleExtentKind, start: number, end: number
490): void {
491 // NOTE: `NaN` should be excluded. e.g., `scaleRawExtentInfo.resultMinMax` may be `[NaN, NaN]`.
492 if (isValidBoundsForExtent(start, end)) {
493 extentList[kind][0] = start;
494 extentList[kind][1] = end;
495 }
496 else {
497 if (__DEV__) {
498 // PENDING: should use `assert` after fixing all invalid calls.
499 if (start != null && end != null && start <= end) {
500 error(`Invalid setExtent call - start: ${start}, end: ${end}`);
501 }
502 }
503 }
504}
505
506// ------ END: Linear Scale Mapper ------

Callers 2

setExtentFunction · 0.85
setExtent2Function · 0.85

Calls 2

isValidBoundsForExtentFunction · 0.90
errorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…