From 4dcf75518d1ea1840b456f458e15e914456dcf9a Mon Sep 17 00:00:00 2001 From: plainheart Date: Tue, 15 Nov 2022 14:10:21 +0800 Subject: [PATCH] fix(type): add `string` & `number` type into the `center` option of pie series --- src/chart/pie/PieSeries.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/chart/pie/PieSeries.ts b/src/chart/pie/PieSeries.ts index aa6db80e28..ed427bfff0 100644 --- a/src/chart/pie/PieSeries.ts +++ b/src/chart/pie/PieSeries.ts @@ -100,7 +100,7 @@ export interface PieDataItemOption extends export interface PieSeriesOption extends Omit, ExtraStateOption>, 'labelLine'>, PieStateOption, - CircleLayoutOptionMixin, + Omit, BoxLayoutOptionMixin, SeriesEncodeOptionMixin { @@ -108,6 +108,8 @@ export interface PieSeriesOption extends roseType?: 'radius' | 'area' + center?: string | number | (string | number)[] + clockwise?: boolean startAngle?: number minAngle?: number