UNPKG

echarts

Version:

Apache ECharts is a powerful, interactive charting and data visualization library for browser

47 lines (46 loc) 1.52 kB
import { ComponentOption, BoxLayoutOptionMixin, ZRTextAlign, ZRTextVerticalAlign, ZRColor, BorderOptionMixin, LabelOption, ComponentOnCalendarOptionMixin, ComponentOnMatrixOptionMixin } from '../../util/types.js'; import { EChartsExtensionInstallRegisters } from '../../extension.js'; interface TitleTextStyleOption extends LabelOption { width?: number; } export interface TitleOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin, ComponentOnCalendarOptionMixin, ComponentOnMatrixOptionMixin { mainType?: 'title'; show?: boolean; text?: string; /** * Link to url */ link?: string; target?: 'self' | 'blank'; subtext?: string; sublink?: string; subtarget?: 'self' | 'blank'; textAlign?: ZRTextAlign; textVerticalAlign?: ZRTextVerticalAlign; /** * @deprecated Use textVerticalAlign instead */ textBaseline?: ZRTextVerticalAlign; backgroundColor?: ZRColor; /** * Padding between text and border. * Support to be a single number or an array. */ padding?: number | number[]; /** * Gap between text and subtext */ itemGap?: number; textStyle?: TitleTextStyleOption; subtextStyle?: TitleTextStyleOption; /** * If trigger mouse or touch event */ triggerEvent?: boolean; /** * Radius of background border. */ borderRadius?: number | number[]; } export declare function install(registers: EChartsExtensionInstallRegisters): void; export {};