mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-24 00:41:52 +02:00
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
|
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";
|