From 78c072cc36c11d75f28319940334ba68aefe7ba3 Mon Sep 17 00:00:00 2001 From: Ovilia Date: Tue, 13 Aug 2024 15:49:45 +0800 Subject: [PATCH] fix(custom): import type --- src/chart/custom/customSeriesRegister.ts | 2 +- src/core/echarts.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chart/custom/customSeriesRegister.ts b/src/chart/custom/customSeriesRegister.ts index ade51c183b..3edfe64f2d 100644 --- a/src/chart/custom/customSeriesRegister.ts +++ b/src/chart/custom/customSeriesRegister.ts @@ -1,4 +1,4 @@ -import { CustomSeriesRenderItem } from './CustomSeries'; +import type { CustomSeriesRenderItem } from './CustomSeries'; const customRenderers: {[type: string]: CustomSeriesRenderItem} = {}; diff --git a/src/core/echarts.ts b/src/core/echarts.ts index 7683afa421..05e37913bc 100644 --- a/src/core/echarts.ts +++ b/src/core/echarts.ts @@ -51,7 +51,7 @@ import ComponentModel from '../model/Component'; import SeriesModel from '../model/Series'; import ComponentView, {ComponentViewConstructor} from '../view/Component'; import ChartView, {ChartViewConstructor} from '../view/Chart'; -import {CustomSeriesRenderItem} from '../chart/custom/CustomSeries'; +import type {CustomSeriesRenderItem} from '../chart/custom/CustomSeries'; import * as graphic from '../util/graphic'; import {getECData} from '../util/innerStore'; import {