diff --git a/highcharts/highcharts-tests.ts b/highcharts/highcharts-tests.ts index ad57f8bc4c..499dfc9494 100644 --- a/highcharts/highcharts-tests.ts +++ b/highcharts/highcharts-tests.ts @@ -2187,6 +2187,7 @@ function test_ChartObject() { chart.destroy(); chart.drillUp(); chart.exportChart({}, {}); + chart.exportChartLocal({}, {}); var object = chart.get('axisIdOrSeriesIdOrPointId'); var svg1 = chart.getSVG(); var svg2 = chart.getSVG({}); diff --git a/highcharts/highcharts.d.ts b/highcharts/highcharts.d.ts index 16151be327..c7584f4e0d 100644 --- a/highcharts/highcharts.d.ts +++ b/highcharts/highcharts.d.ts @@ -5681,6 +5681,30 @@ interface HighchartsChartObject { * @since 2.0 */ exportChart(options: HighchartsExportingOptions, chartOptions: HighchartsOptions): void; + /** + * Export the chart to a PNG or SVG without sending it to a server. Requires + * modules/exporting.js and modules/offline-exporting.js. + * @since 2.0 + */ + exportChartLocal(): void; + /** + * Export the chart to a PNG or SVG without sending it to a server. Requires + * modules/exporting.js and modules/offline-exporting.js. + * @param {HighchartsExportingOptions} options Exporting options. Same as + * the exportChart params. + * @since 2.0 + */ + exportChartLocal(options: HighchartsExportingOptions): void; + /** + * Export the chart to a PNG or SVG without sending it to a server. + * Requires modules/exporting.js and modules/offline-exporting.js. + * @param {HighchartsExportingOptions} options Exporting options. Same as + * the exportChart params. + * @param {HighchartsOptions} chartOptions Additional chart options for the + * exported chart. Same as the exportChart params. + * @since 2.0 + */ + exportChartLocal(options: HighchartsExportingOptions, chartOptions: HighchartsOptions): void; /** * Get an axis, series or point by its id as given in the configuration options. * @param {string} id The id of the axis, series or point to get.