* Generally, no need to export `LinearScaleMapper` and not recommended * to visit `_extent` directly outside, otherwise it may be incorrect * due to possible polymorphism - use `getExtentUnsafe()` instead.
| 382 | * due to possible polymorphism - use `getExtentUnsafe()` instead. |
| 383 | */ |
| 384 | interface LinearScaleMapper extends ScaleMapper { |
| 385 | /** |
| 386 | * [CAVEAT]: |
| 387 | * - Should update only by `setExtent` or `setExtent2`! |
| 388 | * - The caller of `setExtent()` should ensure `extent[0] <= extent[1]`, |
| 389 | * but it is initialized as `[Infinity, -Infinity]`. |
| 390 | * With these restriction, `extent` can only be either: |
| 391 | * + `extent[0] < extent[1]` and both finite, or |
| 392 | * + `extent[0] === extent[1]` and both finite, or |
| 393 | * + `extent[0] === Infinity && extent[1] === -Infinity` |
| 394 | * |
| 395 | * Structure: `_extent[ScaleExtentKind][]` |
| 396 | */ |
| 397 | readonly _extents: number[][]; |
| 398 | readonly _frozen: boolean; |
| 399 | } |
| 400 | |
| 401 | export function initLinearScaleMapper( |
| 402 | // If input `null/undefined`, a mapper will be created. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…