From 34ee0d363a9561f50496aa5793d04ecacebe5f0c Mon Sep 17 00:00:00 2001 From: Alberico Date: Fri, 21 Oct 2022 12:04:23 +0200 Subject: [PATCH] fix(type): extend correct interface on AxisLabelBaseOption. close #17363 Co-authored-by: Giulio Mazzanti --- src/coord/axisCommonTypes.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/coord/axisCommonTypes.ts b/src/coord/axisCommonTypes.ts index e3241cb02e9..6d1005f7f99 100644 --- a/src/coord/axisCommonTypes.ts +++ b/src/coord/axisCommonTypes.ts @@ -20,7 +20,7 @@ import { TextCommonOption, LineStyleOption, OrdinalRawValue, ZRColor, AreaStyleOption, ComponentOption, ColorString, - AnimationOptionMixin, Dictionary, ScaleDataValue, CommonAxisPointerOption + AnimationOptionMixin, Dictionary, ScaleDataValue, CommonAxisPointerOption, LabelOption } from '../util/types'; @@ -213,17 +213,14 @@ type LabelFormatters = { time: TimeAxisLabelFormatterOption }; -interface AxisLabelBaseOption extends Omit { - show?: boolean, +interface AxisLabelBaseOption extends Omit { // Whether axisLabel is inside the grid or outside the grid. inside?: boolean, - rotate?: number, // true | false | null/undefined (auto) showMinLabel?: boolean, // true | false | null/undefined (auto) showMaxLabel?: boolean, margin?: number, - rich?: Dictionary /** * If hide overlapping labels. */