@candleview/core 2.9.6 → 2.9.8

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/dist/index.d.ts CHANGED
@@ -884,6 +884,17 @@ export declare class CandleView {
884
884
  getStaticMarkCount(): number;
885
885
  getChart(): Chart | null;
886
886
  setTitle(title: string): void;
887
+ openMainChartIndicator(indicatorType: MainChartIndicatorType, params?: Record<string, any>): void;
888
+ closeMainChartIndicator(indicatorType: MainChartIndicatorType): void;
889
+ closeAllMainChartIndicators(): void;
890
+ openSubChartIndicator(indicatorType: SubChartIndicatorType, onOpenModal?: (type: SubChartIndicatorType) => void, onClose?: (type: SubChartIndicatorType) => void): void;
891
+ closeSubChartIndicator(indicatorType: SubChartIndicatorType): void;
892
+ closeAllSubChartIndicators(): void;
893
+ private syncSubChartIndicatorState;
894
+ isMainChartIndicatorEnabled(indicatorType: MainChartIndicatorType): boolean;
895
+ isSubChartIndicatorEnabled(indicatorType: SubChartIndicatorType): boolean;
896
+ getEnabledMainChartIndicators(): MainChartIndicatorType[];
897
+ getEnabledSubChartIndicators(): SubChartIndicatorType[];
887
898
  captureScreenshot(watermark?: string, watermarkOpacity?: number): Promise<string>;
888
899
  destroy(): void;
889
900
  }
@@ -1278,6 +1289,10 @@ declare class Chart {
1278
1289
  handleZoomOut(): void;
1279
1290
  addSubChart(indicatorType: SubChartIndicatorType, onSettingsClick: (type: SubChartIndicatorType) => void, onCloseClick: (type: SubChartIndicatorType) => void): void;
1280
1291
  removeSubChart(indicatorType: SubChartIndicatorType): void;
1292
+ getEnabledMainChartIndicators(): MainChartIndicatorType[];
1293
+ getEnabledSubChartIndicators(): SubChartIndicatorType[];
1294
+ isMainChartIndicatorEnabled(indicatorType: MainChartIndicatorType): boolean;
1295
+ isSubChartIndicatorEnabled(indicatorType: SubChartIndicatorType): boolean;
1281
1296
  private cleanupEvents;
1282
1297
  destroy(): void;
1283
1298
  }
@@ -1339,6 +1354,8 @@ declare class ChartIndicatorsManager {
1339
1354
  getVisibleTypes(): MainChartIndicatorType[];
1340
1355
  updateTheme(theme: ThemeConfig): void;
1341
1356
  destroy(): void;
1357
+ getEnabledIndicators(): MainChartIndicatorType[];
1358
+ isIndicatorEnabled(indicatorType: MainChartIndicatorType): boolean;
1342
1359
  }
1343
1360
 
1344
1361
  declare class ChartMarkManager {
@@ -1584,6 +1601,8 @@ declare class ChartPanesManager {
1584
1601
  handleMouseMove(poin: Point): void;
1585
1602
  handleMouseUp(poin: Point): void;
1586
1603
  handleCrosshairMoveEvent(event: MouseEventParams): void;
1604
+ getEnabledSubChartIndicators(): SubChartIndicatorType[];
1605
+ isSubChartIndicatorEnabled(indicatorType: SubChartIndicatorType): boolean;
1587
1606
  }
1588
1607
 
1589
1608
  declare interface ChartSeries {
@@ -5975,6 +5994,7 @@ declare class GraphMarkToolBar {
5975
5994
  private createColorPanel;
5976
5995
  private createLineSizePanel;
5977
5996
  private createLineStylePanel;
5997
+ private adjustPanelPosition;
5978
5998
  private bindEvents;
5979
5999
  private bindPanelEvents;
5980
6000
  updatePosition(position: Point): void;
@@ -7000,6 +7020,7 @@ declare class ImageUploadModal {
7000
7020
  private boundHandleMouseMove;
7001
7021
  private boundHandleMouseUp;
7002
7022
  constructor(options: ImageUploadModalOptions);
7023
+ private calculateInitialPosition;
7003
7024
  private handleFileSelect;
7004
7025
  private handleUrlChange;
7005
7026
  private handleConfirm;
@@ -7011,9 +7032,12 @@ declare class ImageUploadModal {
7011
7032
  private handleKeyPress;
7012
7033
  private updatePreview;
7013
7034
  private updateModalPosition;
7035
+ private getMaxModalHeight;
7036
+ private adjustModalPosition;
7014
7037
  private getStyles;
7015
7038
  private applyStyles;
7016
7039
  private createElement;
7040
+ private injectScrollbarStyles;
7017
7041
  private render;
7018
7042
  update(options: Partial<ImageUploadModalOptions>): void;
7019
7043
  destroy(): void;
@@ -7025,6 +7049,7 @@ declare interface ImageUploadModalOptions {
7025
7049
  onConfirm: (imageUrl: string) => void;
7026
7050
  theme: ThemeConfig;
7027
7051
  i18n: I18n;
7052
+ parentRef?: HTMLElement | null;
7028
7053
  }
7029
7054
 
7030
7055
  declare interface IMarkManager<T = any> {
@@ -7131,6 +7156,7 @@ declare class LeftPanel {
7131
7156
  destroy(): void;
7132
7157
  updateState(updates: Partial<LeftPanelState>): void;
7133
7158
  isMarkLocked(): boolean;
7159
+ private getContainerRect;
7134
7160
  getState(): LeftPanelState;
7135
7161
  }
7136
7162
 
@@ -7642,6 +7668,7 @@ declare class MainChartIndicatorsSettingModal {
7642
7668
  private updateIndicatorValue;
7643
7669
  private updateIndicatorColor;
7644
7670
  private updateIndicatorLineWidth;
7671
+ private shouldShowNumberInput;
7645
7672
  private handleConfirm;
7646
7673
  private handleCancel;
7647
7674
  private getIndicatorTypeName;
@@ -10351,7 +10378,10 @@ declare class TextMarkEditorModal {
10351
10378
  private getStyles;
10352
10379
  private applyStyles;
10353
10380
  private createElement;
10381
+ private getMaxModalHeight;
10354
10382
  private render;
10383
+ private adjustModalPosition;
10384
+ private injectScrollbarStyles;
10355
10385
  update(options: Partial<TextMarkEditorModalOptions>): void;
10356
10386
  destroy(): void;
10357
10387
  }
@@ -10362,6 +10392,7 @@ declare interface TextMarkEditorModalOptions {
10362
10392
  x: number;
10363
10393
  y: number;
10364
10394
  };
10395
+ parentRef?: HTMLElement | null;
10365
10396
  theme: ThemeConfig;
10366
10397
  initialText: string;
10367
10398
  initialColor: string;
@@ -10443,6 +10474,7 @@ declare class TextMarkToolBar {
10443
10474
  private getGraphLineStylePanelInnerHTML;
10444
10475
  private createColorPanel;
10445
10476
  private createFontSizePanel;
10477
+ private adjustPanelPosition;
10446
10478
  private createGraphColorPanel;
10447
10479
  private createGraphLineSizePanel;
10448
10480
  private createGraphLineStylePanel;