@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
34 lines (33 loc) • 855 B
TypeScript
import { RangePreset, IRelativeTime, IQuarterTime } from '@qn-pandora/pandora-component';
export declare const enum ChartTimeType {
Custom = "custom",
Global = "global"
}
export declare const ChartTimeTypeOptions: {
value: ChartTimeType;
item: string;
}[];
export declare enum TimeShiftUnit {
Second = "seconds",
Minute = "minutes",
Hour = "hours",
Day = "days",
Month = "months",
Year = "years"
}
export declare const TimeShiftUnitOptions: {
value: TimeShiftUnit;
text: string;
}[];
export interface ITimeRange {
relative?: IRelativeTime;
preset?: string;
timeShift?: string;
global?: boolean;
from?: string | null;
to?: string | null;
rangePreset?: RangePreset;
quarterTime?: IQuarterTime;
onlyTradingDay?: boolean;
}
export declare const defaultTimeRange: ITimeRange;