funhi-chart 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,9 @@ export declare class ChartRenderer {
14
14
  private series;
15
15
  private container;
16
16
  private options;
17
+ private lastCandleTime;
18
+ private lastFullUpdate;
19
+ private readonly FULL_UPDATE_INTERVAL;
17
20
  constructor(container: HTMLDivElement, options: ChartOptions);
18
21
  /**
19
22
  * Initializes the chart
@@ -21,12 +24,17 @@ export declare class ChartRenderer {
21
24
  initialize(): void;
22
25
  /**
23
26
  * Updates chart data
27
+ * Uses incremental updates for performance and to prevent rendering issues over time
24
28
  */
25
29
  updateData(candles: CandleData[]): void;
26
30
  /**
27
31
  * Sets the current timeframe (for future use if needed)
28
32
  */
29
33
  setTimeframe(timeframe: TimeFrame): void;
34
+ /**
35
+ * Forces a full data refresh (useful when switching timeframes or after long periods)
36
+ */
37
+ forceFullUpdate(): void;
30
38
  /**
31
39
  * Resizes the chart
32
40
  */