(
scale: Scale,
axis: Axis,
model: AxisBaseModel,
)
| 723 | } |
| 724 | |
| 725 | function 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 |
no test coverage detected
searching dependent graphs…