candleview 2.4.6 → 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 +7 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +63 -52
- package/dist/index.mjs +9012 -8345
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
</table>
|
|
8
8
|
</p>
|
|
9
9
|
<h4 align="center">
|
|
10
|
-
An AI-
|
|
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
|
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:
|
|
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,7 @@ declare interface CandleViewProps {
|
|
|
152
159
|
ai?: boolean;
|
|
153
160
|
aiconfigs?: AIConfig[];
|
|
154
161
|
terminal?: boolean;
|
|
162
|
+
isMobileMode?: boolean;
|
|
155
163
|
isOpenViewportSegmentation?: boolean;
|
|
156
164
|
isCloseInternalTimeFrameCalculation?: boolean;
|
|
157
165
|
timeframeCallbacks?: Partial<Record<TimeframeEnum, () => void>>;
|
|
@@ -171,6 +179,7 @@ declare interface CandleViewState {
|
|
|
171
179
|
isChartTypeModalOpen: boolean;
|
|
172
180
|
isSubChartModalOpen: boolean;
|
|
173
181
|
isMobileMenuOpen: boolean;
|
|
182
|
+
isAIModalOpen: boolean;
|
|
174
183
|
activeTool: string | null;
|
|
175
184
|
currentTheme: ThemeConfig;
|
|
176
185
|
currentI18N: I18n;
|
|
@@ -213,6 +222,7 @@ declare interface CandleViewState {
|
|
|
213
222
|
terminalCommand: string;
|
|
214
223
|
terminal: boolean;
|
|
215
224
|
terminalHeightRatio: number;
|
|
225
|
+
mobileAiPanelHeightRatio: number;
|
|
216
226
|
isResizingTerminal: boolean;
|
|
217
227
|
markData: IStaticMarkData[];
|
|
218
228
|
}
|