Skip to content

Commit d169591

Browse files
author
quao
committed
fix 配置项定义移入笛卡尔轴的类型定义
1 parent 03276b8 commit d169591

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/coord/axisCommonTypes.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ export interface AxisBaseOptionCommon extends ComponentOption,
129129
breakLabelLayout?: {
130130
moveOverlap?: 'auto' | boolean;
131131
}
132-
133-
// Whether to include marker data (markPoint, markLine, markArea) in axis extent calculation
134-
includeMarkerInExtent?: boolean;
135132
}
136133

137134
export interface NumericAxisBaseOptionCommon extends AxisBaseOptionCommon {

src/coord/cartesian/AxisModel.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export type CartesianAxisOption = AxisBaseOption & {
3737
// Offset is for multiple axis on the same position.
3838
offset?: number;
3939
categorySortInfo?: OrdinalSortInfo;
40+
// Whether to include marker data (markPoint, markLine, markArea) in axis extent calculation
41+
includeMarkerInExtent?: boolean;
4042
};
4143

4244
export type XAXisOption = CartesianAxisOption & {

src/coord/cartesian/Grid.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ class Grid implements CoordinateSystemMaster {
568568
axis: Axis2D,
569569
axisType: OptionAxisType,
570570
): void {
571-
// 检查该轴是否配置为包含 marker 数据
572571
const includeMarkerInExtent = axis.model.get('includeMarkerInExtent') ?? true;
573572
if (includeMarkerInExtent && value != null && typeof value !== 'string' && axisType !== 'category') {
574573
const val = axis.scale.parse(value);

0 commit comments

Comments
 (0)