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

Function getScaleLinearSpanForMapping

src/scale/scaleMapper.ts:364–367  ·  view source on GitHub ↗
(mapper: ScaleMapper)

Source from the content-addressed store, hash-verified

362}
363
364export function getScaleLinearSpanForMapping(mapper: ScaleMapper): number {
365 const extent = getScaleExtentForMappingUnsafe(mapper, SCALE_MAPPER_DEPTH_INNERMOST);
366 return extent[1] - extent[0];
367}
368
369export function getScaleLinearSpanEffective(mapper: ScaleMapper): number {
370 const extent = mapper.getExtentUnsafe(SCALE_EXTENT_KIND_EFFECTIVE, SCALE_MAPPER_DEPTH_INNERMOST);

Callers 1

calcBandWidthFunction · 0.90

Calls 1

Tested by

no test coverage detected