Node-Red configuration
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.

scale.timeseries.d.ts 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. export default TimeSeriesScale;
  2. declare class TimeSeriesScale extends TimeScale {
  3. /** @type {object[]} */
  4. _table: object[];
  5. /** @type {number} */
  6. _minPos: number;
  7. /** @type {number} */
  8. _tableRange: number;
  9. /**
  10. * @protected
  11. */
  12. protected initOffsets(): void;
  13. /**
  14. * Returns an array of {time, pos} objects used to interpolate a specific `time` or position
  15. * (`pos`) on the scale, by searching entries before and after the requested value. `pos` is
  16. * a decimal between 0 and 1: 0 being the start of the scale (left or top) and 1 the other
  17. * extremity (left + width or top + height). Note that it would be more optimized to directly
  18. * store pre-computed pixels, but the scale dimensions are not guaranteed at the time we need
  19. * to create the lookup table. The table ALWAYS contains at least two items: min and max.
  20. * @param {number[]} timestamps
  21. * @return {object[]}
  22. * @protected
  23. */
  24. protected buildLookupTable(timestamps: number[]): object[];
  25. /**
  26. * Generates all timestamps defined in the data.
  27. * Important: this method can return ticks outside the min and max range, it's the
  28. * responsibility of the calling code to clamp values if needed.
  29. * @protected
  30. */
  31. protected _generate(): any;
  32. /**
  33. * Returns all timestamps
  34. * @return {number[]}
  35. * @private
  36. */
  37. private _getTimestampsForTable;
  38. }
  39. import TimeScale from "./scale.time.js";