From 3dd13423f59f14e445f0822836711b809469f7c3 Mon Sep 17 00:00:00 2001 From: Alberico Date: Fri, 21 Oct 2022 12:04:23 +0200 Subject: [PATCH] fix(type): add overflow property to AxisLabelBaseOption interface. close #17363 Co-authored-by: Giulio Mazzanti --- src/coord/axisCommonTypes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coord/axisCommonTypes.ts b/src/coord/axisCommonTypes.ts index e3241cb02e..5cf6a8a916 100644 --- a/src/coord/axisCommonTypes.ts +++ b/src/coord/axisCommonTypes.ts @@ -22,6 +22,7 @@ import { AreaStyleOption, ComponentOption, ColorString, AnimationOptionMixin, Dictionary, ScaleDataValue, CommonAxisPointerOption } from '../util/types'; +import { TextStyleProps } from 'zrender/src/graphic/Text'; export const AXIS_TYPES = {value: 1, category: 1, time: 1, log: 1} as const; @@ -230,6 +231,7 @@ interface AxisLabelBaseOption extends Omit { hideOverlap?: boolean; // Color can be callback color?: ColorString | ((value?: string | number, index?: number) => ColorString) + overflow?: TextStyleProps['overflow'] } interface AxisLabelOption extends AxisLabelBaseOption { formatter?: LabelFormatters[TType]