mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-05 09:40:02 +00:00
Add exportChartLocal function for HighCharts (#9194)
This commit is contained in:
committed by
Masahiro Wakame
parent
2eaeb872aa
commit
51baa79ead
@@ -2187,6 +2187,7 @@ function test_ChartObject() {
|
||||
chart.destroy();
|
||||
chart.drillUp();
|
||||
chart.exportChart(<HighchartsExportingOptions>{}, <HighchartsOptions>{});
|
||||
chart.exportChartLocal(<HighchartsExportingOptions>{}, <HighchartsOptions>{});
|
||||
var object = chart.get('axisIdOrSeriesIdOrPointId');
|
||||
var svg1 = chart.getSVG();
|
||||
var svg2 = chart.getSVG(<HighchartsOptions>{});
|
||||
|
||||
24
highcharts/highcharts.d.ts
vendored
24
highcharts/highcharts.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user