candleview 2.5.4 → 2.8.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
@@ -38,17 +38,6 @@ yarn add candleview
38
38
  | ------------------------------------------------------------ | ---------------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------- |
39
39
  | <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> |
40
40
 
41
- # 📚 Directory
42
-
43
- | **directory** | **describe** |
44
- | :------------------- | :------------------------------------------------------------------------------------------------------------------- |
45
- | **core** | CandleView Engine Core. |
46
- | **website** | Global official website. |
47
- | **components** | A front-end component library developed based on CandleView. |
48
- | **ai-proxy-service** | This is the scaffolding project for CandleView AI services, which you can use to develop AI services for CandleView. |
49
- | **docs** | Documents. |
50
- | **assets** | Asset Directory. |
51
-
52
41
  # 🚀 Quick Start
53
42
 
54
43
  ```typescript
package/dist/index.d.ts CHANGED
@@ -135,6 +135,10 @@ declare class CandleView extends default_2.Component<CandleViewProps, CandleView
135
135
  handleRefreshClick: () => void;
136
136
  handleZoomIn: () => void;
137
137
  handleZoomOut: () => void;
138
+ handleOpenScriptEditor: (id: string, type: ScriptType, script?: string, name?: string) => void;
139
+ private handleCloseScriptEditor;
140
+ private handleSaveScript;
141
+ private handleRunScript;
138
142
  handleAIFunctionSelect: (aiTooleId: string) => void;
139
143
  private handleTerminalCommand;
140
144
  openTerminal: () => void;
@@ -163,6 +167,9 @@ declare interface CandleViewProps {
163
167
  isOpenViewportSegmentation?: boolean;
164
168
  isCloseInternalTimeFrameCalculation?: boolean;
165
169
  timeframeCallbacks?: Partial<Record<TimeframeEnum, () => void>>;
170
+ isFullScreen?: boolean;
171
+ isScreenshot?: boolean;
172
+ isThemeSelection?: boolean;
166
173
  handleScreenshotCapture?: (imageData: {
167
174
  dataUrl: string;
168
175
  blob: Blob;
@@ -225,6 +232,11 @@ declare interface CandleViewState {
225
232
  mobileAiPanelHeightRatio: number;
226
233
  isResizingTerminal: boolean;
227
234
  markData: IStaticMarkData[];
235
+ isScriptEditorOpen: boolean;
236
+ currentScript: string;
237
+ scriptName: string;
238
+ currentScriptType: ScriptType;
239
+ currentScriptMarkId: string;
228
240
  }
229
241
 
230
242
  declare interface I18n {
@@ -373,6 +385,11 @@ declare interface I18n {
373
385
  clickToPlace: string;
374
386
  };
375
387
  leftPanel: {
388
+ scriptTools: string;
389
+ timeEvent: string;
390
+ timeEventDesc: string;
391
+ priceEvent: string;
392
+ priceEventDesc: string;
376
393
  cursorCrosshair: string;
377
394
  cursorCrosshairDesc: string;
378
395
  cursorCircle: string;
@@ -759,6 +776,12 @@ declare enum MainChartType {
759
776
  HLCArea = "HLCArea"
760
777
  }
761
778
 
779
+ declare enum ScriptType {
780
+ Time = "time",
781
+ Price = "price",
782
+ None = "none"
783
+ }
784
+
762
785
  declare enum SubChartIndicatorType {
763
786
  RSI = "RSI",
764
787
  MACD = "MACD",