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.
32 lines
1.2 KiB
32 lines
1.2 KiB
export default TimeSeriesScale;
|
|
declare class TimeSeriesScale extends TimeScale {
|
|
/** @type {object[]} */
|
|
_table: object[];
|
|
/** @type {number} */
|
|
_minPos: number;
|
|
/** @type {number} */
|
|
_tableRange: number;
|
|
/**
|
|
* @protected
|
|
*/
|
|
protected initOffsets(): void;
|
|
/**
|
|
* Returns an array of {time, pos} objects used to interpolate a specific `time` or position
|
|
* (`pos`) on the scale, by searching entries before and after the requested value. `pos` is
|
|
* a decimal between 0 and 1: 0 being the start of the scale (left or top) and 1 the other
|
|
* extremity (left + width or top + height). Note that it would be more optimized to directly
|
|
* store pre-computed pixels, but the scale dimensions are not guaranteed at the time we need
|
|
* to create the lookup table. The table ALWAYS contains at least two items: min and max.
|
|
* @param {number[]} timestamps
|
|
* @return {object[]}
|
|
* @protected
|
|
*/
|
|
protected buildLookupTable(timestamps: number[]): object[];
|
|
/**
|
|
* Returns all timestamps
|
|
* @return {number[]}
|
|
* @private
|
|
*/
|
|
private _getTimestampsForTable;
|
|
}
|
|
import TimeScale from "./scale.time.js";
|