funhi-chart 1.3.8 → 1.4.1

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.
@@ -5,7 +5,7 @@ export interface ChartProps {
5
5
  tokenName?: string;
6
6
  socket?: any;
7
7
  isConnected?: boolean;
8
- currentMarketCap?: number;
8
+ currentPrice?: number;
9
9
  analyticsConnected?: boolean;
10
10
  analyticsLoading?: boolean;
11
11
  }
@@ -29,7 +29,7 @@ export declare class CandleManager {
29
29
  */
30
30
  private updateCandlePrice;
31
31
  /**
32
- * Builds a new candle with minimum body size enforcement
32
+ * Builds a new candle with exact price (no minimum body size enforcement)
33
33
  */
34
34
  private buildNewCandle;
35
35
  /**
@@ -58,9 +58,17 @@ export declare class FunhiChartController {
58
58
  */
59
59
  resize(): void;
60
60
  /**
61
- * Checks for gaps in candles and loads missing ones from database
61
+ * Checks for gaps in candles and loads missing ones from database for current timeframe
62
62
  */
63
63
  private checkAndFillGaps;
64
+ /**
65
+ * Checks for gaps in candles and loads missing ones from database for a specific timeframe
66
+ */
67
+ private checkAndFillGapsForTimeframe;
68
+ /**
69
+ * Checks for gaps in all timeframes and loads missing candles
70
+ */
71
+ private checkAndFillGapsForAllTimeframes;
64
72
  /**
65
73
  * Starts periodic gap checking
66
74
  */
@@ -9,6 +9,7 @@ export declare class CandleValidator {
9
9
  private static readonly MIN_BODY_PERCENTAGE;
10
10
  /**
11
11
  * Absolute minimum body size in price units
12
+ * Set to 0 to display exact prices without any modifications
12
13
  */
13
14
  private static readonly MIN_BODY_ABSOLUTE;
14
15
  /**
@@ -17,6 +18,7 @@ export declare class CandleValidator {
17
18
  static validate(candle: CandleData): boolean;
18
19
  /**
19
20
  * Ensures candle has minimum body size for visibility
21
+ * DISABLED: Returns candle as-is to display exact prices without modifications
20
22
  */
21
23
  static ensureMinimumBodySize(candle: CandleData, minBodySize?: number): CandleData;
22
24
  /**
@@ -33,6 +35,7 @@ export declare class CandleValidator {
33
35
  static validatePrice(price: number): boolean;
34
36
  /**
35
37
  * Calculates minimum body size for a given price
38
+ * Returns 0 to prevent any price modifications
36
39
  */
37
40
  static calculateMinBodySize(price: number): number;
38
41
  }
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ interface ChartProps {
8
8
  tokenName?: string;
9
9
  socket?: any;
10
10
  isConnected?: boolean;
11
- currentMarketCap?: number;
11
+ currentPrice?: number;
12
12
  analyticsConnected?: boolean;
13
13
  analyticsLoading?: boolean;
14
14
  }