import { View } from '@antv/g2'; import { Options } from '../../types'; import { AreaOptions } from '../area'; import { BarOptions } from '../bar'; import { ColumnOptions } from '../column'; import { FunnelOptions } from '../funnel'; import { GaugeOptions } from '../gauge'; import { HistogramOptions } from '../histogram'; import { LineOptions } from '../line'; import { PieOptions } from '../pie'; import { ProgressOptions } from '../progress'; import { RingProgressOptions } from '../ring-progress'; import { ScatterOptions } from '../scatter'; import { StockOptions } from '../stock'; import { TinyAreaOptions } from '../tiny-area'; import { TinyColumnOptions } from '../tiny-column'; import { TinyLineOptions } from '../tiny-line'; /** * 移除 options 中的 width、height 设置, 将 options 的 data 设置为可选 */ type PlotOptions = Omit & Partial>; /** * multi-view 中的支持的 plots 类型(带 options 定义) */ export type IPlotTypes = { /** * plot 类型 */ readonly type: 'line'; /** * plot 配置 */ readonly options: PlotOptions; } | { readonly type: 'pie'; readonly options: PlotOptions; } | { readonly type: 'bar'; readonly options: PlotOptions; } | { readonly type: 'column'; readonly options: PlotOptions; } | { readonly type: 'area'; readonly options: PlotOptions; } | { readonly type: 'gauge'; readonly options: PlotOptions; } | { readonly type: 'tiny-line'; readonly options: PlotOptions; } | { readonly type: 'tiny-area'; readonly options: PlotOptions; } | { readonly type: 'tiny-column'; readonly options: PlotOptions; } | { readonly type: 'ring-progress'; readonly options: PlotOptions; } | { readonly type: 'progress'; readonly options: PlotOptions; } | { readonly type: 'histogram'; readonly options: PlotOptions; } | { readonly type: 'scatter'; readonly options: PlotOptions; } | { readonly type: 'funnel'; readonly options: PlotOptions; } | { readonly type: 'stock'; readonly options: PlotOptions; }; /** * 执行 plot 的 adaptor, 默认都带上 defaultOptions * @param {string} plot */ export declare function execPlotAdaptor(plot: T, view: View, options: IPlotTypes['options']): void; export {};