@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
27 lines (26 loc) • 1.07 kB
TypeScript
import MetricBasePanelStyleService, { IMetricBasePanelStyle } from './base';
import { ChartType } from '../../../../../constants/chart-style';
import { ILevel, IRule } from '../../../../../constants/metric-panel-style';
export interface IStatusPanelStyle extends IMetricBasePanelStyle {
levels: ILevel[];
rules: IRule[];
contentFontSize: number;
contentColor: string;
panelAutoSort: boolean;
metricAutoSort: boolean;
showMetricName?: boolean;
}
export default abstract class StatusPanelStyleService extends MetricBasePanelStyleService<IStatusPanelStyle> {
chartType: ChartType;
levels: ILevel[];
rules: IRule[];
contentFontSize: number;
contentColor: string;
panelAutoSort: boolean;
metricAutoSort: boolean;
showMetricName: boolean;
setOptInit(width: number, height: number, titleFontSize: number, contentFontSize: number, contentColor: string): void;
setContentFontSize(contentFontSize: number): void;
setContentColor(contentColor: string): void;
constructor(option: IStatusPanelStyle);
}