@barchart/chart-lib 2.219.0 → 2.220.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.
@@ -355,7 +355,8 @@ declare module "@barchart/chart-lib" {
355
355
  | "NHLAI"
356
356
  | "CMBCI"
357
357
  | "CMBCIF"
358
- | "CMBCIS";
358
+ | "CMBCIS"
359
+ | "COTI";
359
360
 
360
361
  export type GeneralFieldId =
361
362
  | "DateTime"
@@ -512,7 +513,8 @@ declare module "@barchart/chart-lib" {
512
513
  | "STC"
513
514
  | "MCCLO"
514
515
  | "NHLAI"
515
- | "CMBCI";
516
+ | "CMBCI"
517
+ | "COTI";
516
518
 
517
519
  export type PlotType =
518
520
  | "Symbol"
@@ -1174,7 +1176,7 @@ declare module "@barchart/chart-lib" {
1174
1176
  };
1175
1177
  };
1176
1178
 
1177
- type ExportImageOptions = {
1179
+ export type ExportImageOptions = {
1178
1180
  /** Override the width of the exported image (pixels). By default exports the chart's width as-is currently on the screen. */
1179
1181
  width?: number;
1180
1182
  /** Override the height of the exported image (pixels). By default exports the chart's height as-is currently on the screen. */
@@ -1183,7 +1185,7 @@ declare module "@barchart/chart-lib" {
1183
1185
  title?: TitleOptions;
1184
1186
  };
1185
1187
 
1186
- type ExportedImage = {
1188
+ export type ExportedImage = {
1187
1189
  /** Width of the exported image in pixels. */
1188
1190
  width: number;
1189
1191
  /** Height of the exported image in pixels. */
@@ -1813,7 +1815,7 @@ declare module "@barchart/chart-lib" {
1813
1815
  /** Exports all the data currently loaded in the chart as a CSV. Best viewed as a spreadsheet in, say, Microsoft Excel. */
1814
1816
  exportData(): string;
1815
1817
  /** Export the currently visible portion of the chart into a PNG image. */
1816
- exportImage(options: ExportImageOptions): ExportedImage;
1818
+ exportImage(options: ExportImageOptions): ExportedImage | null;
1817
1819
  /** Prints the chart, optionally adding a title (for the print-out only, reverts back to no title when the printing is over). */
1818
1820
  print(options: { title: TitleOptions }): void;
1819
1821
  /** Reserved for internal use. */