@barchart/chart-lib 2.220.0 → 2.220.2
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.
- chart-lib/barchart.chart.d.ts +4 -4
- chart-lib/barchart.chart.js +1 -1
- chart-lib/package.json +1 -1
chart-lib/barchart.chart.d.ts
CHANGED
|
@@ -1176,7 +1176,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1176
1176
|
};
|
|
1177
1177
|
};
|
|
1178
1178
|
|
|
1179
|
-
type ExportImageOptions = {
|
|
1179
|
+
export type ExportImageOptions = {
|
|
1180
1180
|
/** Override the width of the exported image (pixels). By default exports the chart's width as-is currently on the screen. */
|
|
1181
1181
|
width?: number;
|
|
1182
1182
|
/** Override the height of the exported image (pixels). By default exports the chart's height as-is currently on the screen. */
|
|
@@ -1185,7 +1185,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1185
1185
|
title?: TitleOptions;
|
|
1186
1186
|
};
|
|
1187
1187
|
|
|
1188
|
-
type ExportedImage = {
|
|
1188
|
+
export type ExportedImage = {
|
|
1189
1189
|
/** Width of the exported image in pixels. */
|
|
1190
1190
|
width: number;
|
|
1191
1191
|
/** Height of the exported image in pixels. */
|
|
@@ -1815,7 +1815,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1815
1815
|
/** Exports all the data currently loaded in the chart as a CSV. Best viewed as a spreadsheet in, say, Microsoft Excel. */
|
|
1816
1816
|
exportData(): string;
|
|
1817
1817
|
/** Export the currently visible portion of the chart into a PNG image. */
|
|
1818
|
-
exportImage(options: ExportImageOptions): ExportedImage;
|
|
1818
|
+
exportImage(options: ExportImageOptions): ExportedImage | null;
|
|
1819
1819
|
/** Prints the chart, optionally adding a title (for the print-out only, reverts back to no title when the printing is over). */
|
|
1820
1820
|
print(options: { title: TitleOptions }): void;
|
|
1821
1821
|
/** Reserved for internal use. */
|
|
@@ -2240,7 +2240,7 @@ declare module "@barchart/chart-lib" {
|
|
|
2240
2240
|
marginBottom?: number;
|
|
2241
2241
|
}
|
|
2242
2242
|
|
|
2243
|
-
interface StudyDefaults {
|
|
2243
|
+
export interface StudyDefaults {
|
|
2244
2244
|
source?: string;
|
|
2245
2245
|
inputs?: StudyInput[];
|
|
2246
2246
|
curves: Curve[];
|