未验证 提交 817b84dc 编写于 作者: W Wenli Zhang 提交者: GitHub

Merge pull request #17808 from breizh24/fix-17363

fix(type): add overflow property to AxisLabelBaseOption interface. close #17363
......@@ -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<TextCommonOption, 'color'> {
hideOverlap?: boolean;
// Color can be callback
color?: ColorString | ((value?: string | number, index?: number) => ColorString)
overflow?: TextStyleProps['overflow']
}
interface AxisLabelOption<TType extends OptionAxisType> extends AxisLabelBaseOption {
formatter?: LabelFormatters[TType]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册