@candleview/core 2.9.9 → 3.0.1

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
@@ -747,17 +747,19 @@ export declare class CandleView {
747
747
  private currentTimezone;
748
748
  private chartType;
749
749
  private onTimeframeChangeCallback;
750
+ private isDataLoaded;
751
+ private pendingData;
750
752
  constructor(config: CandleViewConfig);
751
753
  private resolveContainer;
752
754
  private createAutoContainer;
753
755
  private initDOM;
754
756
  private initPanels;
755
757
  private handleTimeframeChange;
758
+ private handleTimezoneSelect;
756
759
  private handleChartTypeChange;
757
760
  private handleThemeToggle;
758
- private handleTimezoneSelect;
759
761
  private handleResize;
760
- setData(data: ICandleViewDataPoint[]): void;
762
+ setData(data: ICandleViewDataPoint[], showProgress?: boolean): void;
761
763
  updateData(newData: ICandleViewDataPoint[]): void;
762
764
  setTheme(themeType: 'light' | 'dark'): void;
763
765
  setLocale(locale: 'en' | 'zh-cn'): void;
@@ -906,13 +908,17 @@ declare class CandleViewChart {
906
908
  private i18n;
907
909
  private chartType;
908
910
  private title;
911
+ private loader;
909
912
  constructor(container: HTMLElement, theme: Theme, i18n: I18n, chartType: MainChartType, title: string);
913
+ showLoader(): void;
914
+ updateLoaderProgress(percent: number, textKey?: string): void;
915
+ hideLoader(): void;
916
+ updateTheme(theme: Theme): void;
917
+ updateI18n(i18n: I18n): void;
910
918
  init(preprocessedData: DataPreprocessResult): void;
911
919
  getChart(): Chart | null;
912
920
  setData(data: DataPreprocessResult): void;
913
921
  updateChartType(type: MainChartType): void;
914
- updateTheme(theme: Theme): void;
915
- updateI18n(i18n: I18n): void;
916
922
  destroy(): void;
917
923
  }
918
924
 
@@ -926,8 +932,8 @@ export declare interface CandleViewConfig {
926
932
  data?: ICandleViewDataPoint[];
927
933
  theme?: 'light' | 'dark';
928
934
  locale?: 'en' | 'zh-cn';
929
- showTopPanel?: boolean;
930
- showLeftPanel?: boolean;
935
+ technologyPanel?: boolean;
936
+ drawingPanel?: boolean;
931
937
  chartType?: MainChartType;
932
938
  activeTimeframe?: TimeframeEnum;
933
939
  currentTimezone?: TimezoneEnum;
@@ -6797,6 +6803,14 @@ export declare interface I18n {
6797
6803
  ai: {
6798
6804
  aliyun: string;
6799
6805
  };
6806
+ loader: {
6807
+ initializing: string;
6808
+ loadingPanels: string;
6809
+ loadingTools: string;
6810
+ renderingChart: string;
6811
+ loadingIndicators: string;
6812
+ ready: string;
6813
+ };
6800
6814
  t(key: string): string;
6801
6815
  setLocale(locale: 'en' | 'zh-cn'): void;
6802
6816
  }