@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
79 lines (78 loc) • 2.12 kB
TypeScript
import OneDChartStore from '../stores/one-d';
import MetricPanelStyleService from '../../../base-pandora-visualization/services/chart-style/charts/metric-panel/metric';
import { SingleTextLayout } from '../../../constants/single-style';
interface ITitle {
text: string;
icon?: string;
color?: string;
width: number;
}
export interface IPanel {
key: string;
titles: ITitle[];
contents: Array<{
label: string;
value: any;
prefix: string;
prefixStyle: any;
suffix: string;
suffixStyle: any;
valueStyle: any;
valueColor: string;
showLabel: boolean;
}>;
originRow: any[][];
}
export default class MetricPanelChartStore extends OneDChartStore<MetricPanelStyleService> {
transfromValue(value: any, index: number): any;
get chunkSize(): number;
get carouselSpeed(): number | undefined;
get autoplay(): boolean;
get titleStyle(): {
fontSize: number;
lineHeight: string;
height: string;
color: string;
};
get showBackgroundColor(): boolean;
get panelStyle(): {
borderColor: string;
borderRadius: number;
borderWidth: number;
width: number;
height: number;
};
get contentStyle(): {
prefix: string;
suffix: string;
prefixStyle: {
fontSize: number;
color: string;
layout: SingleTextLayout;
display: string;
};
suffixStyle: {
fontSize: number;
color: string;
layout: SingleTextLayout;
display: string;
};
valueStyle: {
fontSize: number | undefined;
};
showLabel: boolean;
}[];
get data(): import("@qn-pandora/app-sdk").TChartFieldDataItem[][];
get series(): IPanel[];
handleDrillDown(params: {
titles: string[];
contents: Array<{
label: string;
value: any;
prefix: string;
suffix: string;
}>;
originRow: any[][];
}): void;
}
export {};