From a35315874edeba5815903a360cb4845e6a5cd8bd Mon Sep 17 00:00:00 2001 From: liihuu Date: Mon, 23 Sep 2024 00:50:24 +0800 Subject: [PATCH] fix: fix default axis --- src/extension/x-axis/index.ts | 2 +- src/extension/x-axis/normal.ts | 6 +++--- src/extension/y-axis/index.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/extension/x-axis/index.ts b/src/extension/x-axis/index.ts index 3d6388b24..0af4a9521 100644 --- a/src/extension/x-axis/index.ts +++ b/src/extension/x-axis/index.ts @@ -26,7 +26,7 @@ function registerXAxis (axis: AxisTemplate): void { } function getXAxisClass (name: string): XAxisConstructor { - return xAxises[name] ?? xAxises.default + return xAxises[name] ?? xAxises.normal } export { diff --git a/src/extension/x-axis/normal.ts b/src/extension/x-axis/normal.ts index b1fcbb536..1798c30ab 100644 --- a/src/extension/x-axis/normal.ts +++ b/src/extension/x-axis/normal.ts @@ -14,8 +14,8 @@ import type { AxisTemplate } from '../../component/Axis' -const defaultXAxis: AxisTemplate = { - name: 'default' +const normal: AxisTemplate = { + name: 'normal' } -export default defaultXAxis +export default normal diff --git a/src/extension/y-axis/index.ts b/src/extension/y-axis/index.ts index 1c5927eb2..43975c966 100644 --- a/src/extension/y-axis/index.ts +++ b/src/extension/y-axis/index.ts @@ -30,7 +30,7 @@ function registerYAxis (axis: AxisTemplate): void { } function getYAxisClass (name: string): YAxisConstructor { - return yAxises[name] ?? yAxises.default + return yAxises[name] ?? yAxises.normal } export {