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

Interface LinearScaleMapper

src/scale/scaleMapper.ts:384–399  ·  view source on GitHub ↗

* 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.

Source from the content-addressed store, hash-verified

382 * due to possible polymorphism - use `getExtentUnsafe()` instead.
383 */
384interface 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
401export function initLinearScaleMapper(
402 // If input `null/undefined`, a mapper will be created.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…