candleview 2.4.5 → 2.5.0

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.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  </table>
8
8
  </p>
9
9
  <h4 align="center">
10
- An AI-powered data visualization and charting engine designed for the financial industry.
10
+ An AI-driven financial time-series data visualization and rendering engine.
11
11
  </h4>
12
12
  <p align="center">
13
13
  <a href="https://https://github.com/0xhappyboy/candleview/LICENSE"><img src="https://img.shields.io/badge/License-AGPL3.0-d1d1f6.svg?style=flat&labelColor=1C2C2E&color=BEC5C9&logo=googledocs&label=license&logoColor=BEC5C9" alt="License"></a>
@@ -26,6 +26,12 @@ npm i candleview
26
26
  yarn add candleview
27
27
  ```
28
28
 
29
+ # 🌐 Link
30
+
31
+ | Website | Website(CN) | Emulator | Markets |
32
+ | ------------------------------------------------------------ | ---------------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------- |
33
+ | <a href="https://candleview-website.vercel.app/">Website</a> | <a href="https://www.candleview.cn/">Website(CN)</a> | <a href="https://candleview-website.vercel.app/application">Emulator</a> | <a href="https://candleview-website.vercel.app/markets">Markets</a> |
34
+
29
35
  # 🚀 Quick Start
30
36
 
31
37
  ```typescript
@@ -68,7 +74,7 @@ const App = () => {
68
74
  ai={true}
69
75
  timezone="America/New_York"
70
76
  timeframe="1m"
71
- isCloseInternalTimeFrameCalculation={false} // the internal timeframe calculation logic has been disabled.
77
+ isCloseInternalTimeFrameCalculation={true} // the internal timeframe calculation logic has been disabled.
72
78
  timeframeCallbacks={{
73
79
  "1m": () => {
74
80
  // Implement a custom data source switching mechanism for a 1m timeframe.
package/dist/index.d.ts CHANGED
@@ -51,6 +51,10 @@ declare class CandleView extends default_2.Component<CandleViewProps, CandleView
51
51
  private isDraggingTerminal;
52
52
  private startY;
53
53
  private startTerminalHeightRatio;
54
+ private aiMobilePanelResizeRef;
55
+ private isDraggingAiMobilePanel;
56
+ private startAiMobileY;
57
+ private startAiMobileHeightRatio;
54
58
  private preparedData;
55
59
  private originalData;
56
60
  private aiManager;
@@ -58,6 +62,8 @@ declare class CandleView extends default_2.Component<CandleViewProps, CandleView
58
62
  componentDidMount(): void;
59
63
  componentDidUpdate(prevProps: CandleViewProps, prevState: CandleViewState): void;
60
64
  componentWillUnmount(): void;
65
+ private handleAiMobileMouseMove;
66
+ private handleAiMobileMouseUp;
61
67
  private clearStaticMarks;
62
68
  private isIncrementalDataUpdate;
63
69
  private handleTerminalResizeMouseDown;
@@ -103,12 +109,13 @@ declare class CandleView extends default_2.Component<CandleViewProps, CandleView
103
109
  handleEmojiSelect: (emoji: string) => void;
104
110
  handleThemeToggle: () => void;
105
111
  handleMobileMenuToggle: () => void;
106
- handleClickOutside: (event: MouseEvent) => void;
112
+ handleClickOutside: (event: Event) => void;
107
113
  handleToolSelect: (tool: string) => void;
108
114
  handleChartTypeSelect: (mainChartType: MainChartType) => void;
109
115
  handleCloseChartTypeModal: () => void;
110
116
  handleCloseDrawing: () => void;
111
117
  handleTimeframeClick: () => void;
118
+ handleAIClick: () => void;
112
119
  handleChartTypeClick: () => void;
113
120
  handleIndicatorClick: () => void;
114
121
  handleTradeClick: () => void;
@@ -152,6 +159,8 @@ declare interface CandleViewProps {
152
159
  ai?: boolean;
153
160
  aiconfigs?: AIConfig[];
154
161
  terminal?: boolean;
162
+ isMobileMode?: boolean;
163
+ isOpenViewportSegmentation?: boolean;
155
164
  isCloseInternalTimeFrameCalculation?: boolean;
156
165
  timeframeCallbacks?: Partial<Record<TimeframeEnum, () => void>>;
157
166
  handleScreenshotCapture?: (imageData: {
@@ -170,6 +179,7 @@ declare interface CandleViewState {
170
179
  isChartTypeModalOpen: boolean;
171
180
  isSubChartModalOpen: boolean;
172
181
  isMobileMenuOpen: boolean;
182
+ isAIModalOpen: boolean;
173
183
  activeTool: string | null;
174
184
  currentTheme: ThemeConfig;
175
185
  currentI18N: I18n;
@@ -212,6 +222,7 @@ declare interface CandleViewState {
212
222
  terminalCommand: string;
213
223
  terminal: boolean;
214
224
  terminalHeightRatio: number;
225
+ mobileAiPanelHeightRatio: number;
215
226
  isResizingTerminal: boolean;
216
227
  markData: IStaticMarkData[];
217
228
  }