You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
567 B
16 lines
567 B
import type { Interval } from './types';
|
|
/**
|
|
* 时间格式化,为 Date 时,按照时间解析,为数字时按照序列解析
|
|
* @param time
|
|
* @param interval 时间间隔
|
|
* @returns
|
|
*/
|
|
export declare function labelFormatter(time: number): string;
|
|
export declare function labelFormatter(time: Date, interval: Interval): string;
|
|
export declare function parseByTime(time: Date, interval: Interval): string;
|
|
/**
|
|
* 按照序列数据解析,如第 1, 2, 3 秒
|
|
* @param time
|
|
* @param interval
|
|
*/
|
|
export declare function parseBySeries(time: number): string;
|
|
|