UNPKG

@echarts-component/vue

Version:
10 lines (9 loc) 587 B
import { AxisOption, LineStyleOption, AreaStyleOption, ZRColor } from '../components/type'; export type AxisType = "axisLine" | "axisTick" | "minorTick" | "splitLine" | "minorSplitLine" | "splitArea"; export interface AxisContext { defaultAxisLineStyle?: LineStyleOption<ZRColor | ZRColor[]>; defaultAxisAreaStyle?: AreaStyleOption<ZRColor | ZRColor[]>; updateAxisStyle: (name: AxisType, data: AxisOption) => void; updateAxisLineStyle: (data: LineStyleOption<ZRColor | ZRColor[]>) => void; updateAxisAreaStyle: (data: AreaStyleOption<ZRColor | ZRColor[]>) => void; }