@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
57 lines (56 loc) • 1.79 kB
TypeScript
import moment from 'moment';
import TimeLineStyleService from '../../../base-pandora-visualization/services/chart-style/charts/timeline/timeline';
import BaseChartStore from '../stores/base';
import 'moment/locale/zh-cn';
import 'moment/locale/en-gb';
export default class Store extends BaseChartStore<TimeLineStyleService> {
timeline: any;
get startFieldIndex(): number;
get durationFieldIndex(): number;
get labelFieldIndex(): number;
get chartDataset(): {
fields: import("@qn-pandora/app-sdk").IChartField[];
rows: import("@qn-pandora/app-sdk").TChartFieldDataItem[][];
};
get options(): {
groupOrder: string;
width: string;
height: string;
stack: boolean;
showCurrentTime: boolean;
limitSize: boolean;
horizontalScroll: boolean;
verticalScroll: boolean;
zoomKey: string;
orientation: {
axis: import("../../../constants").axisPosition;
item: string;
};
showTooltips: boolean;
tooltip: {
followMouse: boolean;
delay: number;
overflowMethod: string;
template: (params: any) => string;
};
moment(date: Date): moment.Moment;
zoomMin: number;
zoomMax: number;
start: string | number | moment.Moment;
end: string | number | moment.Moment;
};
get items(): {
id: number;
title: string;
content: string;
start: moment.Moment;
end: moment.Moment | null;
}[];
get itemStyle(): {
chartBackGround: string | undefined;
background: string;
borderColor: string | undefined;
color: string | undefined;
};
templateFormat(params: any): string;
}