MCPcopy Create free account
hub / github.com/apache/echarts / getScaleExtentForMappingUnsafe

Function getScaleExtentForMappingUnsafe

src/scale/scaleMapper.ts:355–362  ·  view source on GitHub ↗
(
    mapper: ScaleMapper,
    // NullUndefined means the outermost space.
    depth: ScaleMapperDepthOpt['depth'] | NullUndefined
)

Source from the content-addressed store, hash-verified

353}
354
355export function getScaleExtentForMappingUnsafe(
356 mapper: ScaleMapper,
357 // NullUndefined means the outermost space.
358 depth: ScaleMapperDepthOpt['depth'] | NullUndefined
359): number[] {
360 return mapper.getExtentUnsafe(SCALE_EXTENT_KIND_MAPPING, depth)
361 || mapper.getExtentUnsafe(SCALE_EXTENT_KIND_EFFECTIVE, depth);
362}
363
364export function getScaleLinearSpanForMapping(mapper: ScaleMapper): number {
365 const extent = getScaleExtentForMappingUnsafe(mapper, SCALE_MAPPER_DEPTH_INNERMOST);

Callers 4

calcAffineTransformMethod · 0.90
containFunction · 0.85

Calls 1

getExtentUnsafeMethod · 0.65

Tested by

no test coverage detected