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

Function determineRequireContainShape

src/coord/scaleRawExtentInfo.ts:725–743  ·  view source on GitHub ↗
(
    scale: Scale,
    axis: Axis,
    model: AxisBaseModel,
)

Source from the content-addressed store, hash-verified

723}
724
725function determineRequireContainShape(
726 scale: Scale,
727 axis: Axis,
728 model: AxisBaseModel,
729): boolean {
730 const onBand = isAxisOnBand(scale, model);
731 let modelContainShape = model.get('containShape', true);
732 if (modelContainShape == null && !onBand) {
733 modelContainShape = true;
734 }
735 if (!modelContainShape) {
736 return false;
737 }
738 let requireContainShape = false;
739 eachKeyOnAxis(axis, function (axisStatKey) {
740 requireContainShape = !!axisContainShapeHandlerMap.get(axisStatKey) || requireContainShape;
741 });
742 return requireContainShape;
743}
744
745/**
746 * This implements ec option `someAxis.containShape`. That is, expand scale extent slightly to

Callers 1

Calls 3

isAxisOnBandFunction · 0.90
eachKeyOnAxisFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…