(
extentList: number[][], kind: ScaleExtentKind, start: number, end: number
)
| 486 | }; |
| 487 | |
| 488 | function 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 ------ |
no test coverage detected
searching dependent graphs…