@363045841yyt/klinechart 0.2.12 → 0.2.13

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.
@@ -25,6 +25,8 @@ export declare class InteractionController {
25
25
  } | null;
26
26
  /** 十字线当前指向的 K 线索引 */
27
27
  crosshairIndex: number | null;
28
+ /** 十字线指向的价格(用于价格轴平移时跟随) */
29
+ crosshairPrice: number | null;
28
30
  /** 鼠标悬停的 K 线索引(命中 candle 时有效) */
29
31
  hoveredIndex: number | null;
30
32
  /** 当前活跃的 pane ID */
@@ -11,5 +11,7 @@ export declare function createCrosshairRendererPlugin(options: {
11
11
  } | null;
12
12
  activePaneId: string | null;
13
13
  isDragging: boolean;
14
+ /** 十字线指向的价格(用于价格轴平移时跟随) */
15
+ price: number | null;
14
16
  };
15
17
  }): RendererPlugin;
@@ -6,4 +6,8 @@ import { RendererPlugin } from '../../plugin';
6
6
  export declare function createYAxisRendererPlugin(options: {
7
7
  axisWidth: number;
8
8
  yPaddingPx: number;
9
+ getCrosshair?: () => {
10
+ y: number;
11
+ price: number;
12
+ } | null;
9
13
  }): RendererPlugin;
@@ -183,8 +183,8 @@ export declare const KST_COLORS: {
183
183
  * EXPMA 颜色
184
184
  */
185
185
  export declare const EXPMA_COLORS: {
186
- /** 快线颜色(黄色) */
187
- readonly FAST: "#FFD700";
186
+ /** 快线颜色(橙色,参考 RSI2) */
187
+ readonly FAST: "rgba(255, 152, 0, 1)";
188
188
  /** 慢线颜色(蓝色) */
189
189
  readonly SLOW: "rgba(69, 112, 249, 1)";
190
190
  };