UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

33 lines (32 loc) 1.17 kB
import OneDChartStyleService, { IOneDChartStyle } from '../one-d'; import { IChartStyleInitOption } from '../base'; import { IDataConfig, EColorMode } from '../../../../../constants/metric-panel-style'; export interface IMetricBasePanelStyle extends IOneDChartStyle { colorMode: EColorMode; titleFontSize: number; width: number; height: number; pageSize: number; autoplaySpeed: number; metricDataConfigs: IDataConfig[]; } export default abstract class MetricBasePanelStyleService<T extends IMetricBasePanelStyle> extends OneDChartStyleService<T> { static getChartInitStyle(option: IChartStyleInitOption, initFirst?: boolean): IKeyValues; colorMode: EColorMode; titleFontSize: number; width: number; height: number; pageSize: number; autoplaySpeed: number; metricDataConfigs: IDataConfig[]; getOptions(): T; setMetricDataConfigs(metricDataConfigs: IDataConfig[]): void; get contextOption(): { currentBuckets: string[]; currentMetrics: string[]; metrics: string[]; buckets: string[]; metricDataConfigs: IDataConfig[]; }; constructor(option: T); }