From a198f05bfb49c095fcb3d96457b6e67d4429aea0 Mon Sep 17 00:00:00 2001 From: PaulDalek Date: Fri, 15 Nov 2024 15:12:44 +0100 Subject: [PATCH] Re-added the integrity and crossorigin properties for the scripts and linted. --- lib/highcharts.js | 6 +- public/index.html | 186 ++++++++++++++++++++++++++-------------------- 2 files changed, 108 insertions(+), 84 deletions(-) diff --git a/lib/highcharts.js b/lib/highcharts.js index c366b8a6..57fb58c0 100644 --- a/lib/highcharts.js +++ b/lib/highcharts.js @@ -124,11 +124,7 @@ export async function triggerExport(chartOptions, options, displayErrors) { let constr = options.export.constr || 'chart'; constr = typeof Highcharts[constr] !== 'undefined' ? constr : 'chart'; - Highcharts[constr]( - 'container', - finalOptions, - finalCallback - ); + Highcharts[constr]('container', finalOptions, finalCallback); // Get the current global options const defaultOptions = getOptions(); diff --git a/public/index.html b/public/index.html index 6c2b6544..8b1324da 100644 --- a/public/index.html +++ b/public/index.html @@ -1,42 +1,70 @@ + + Highcharts Export Server + - - Highcharts Export Server - + + + - - - + + + + + - - - - - + +
+
+
+

Highcharts Export Server

- -
-
-
-

Highcharts Export Server

+

+ This page allows you to experiment with different options for the + export server. If you use the public Export Server at + https://export.highcharts.com + you should read our + Terms of use and Fair Usage Policy. +

-

- This page allows you to experiment with different options for the - export server. If you use the public Export Server at - https://export.highcharts.com - you should read our Terms of use and Fair Usage Policy. -

- - -
Your Highcharts configuration object.
-
- - - + + - -
- The exact pixel width of the exported image. Defaults to chart.width - or 600px. Maximum width is 2000px. -
- + +
+ The exact pixel width of the exported image. Defaults to chart.width + or 600px. Maximum width is 2000px. +
+ - -
- A scaling factor for a higher image resolution. Maximum scaling is - set to 4x. Remember that the width parameter has a higher precedence - over scaling. -
- + +
+ A scaling factor for a higher image resolution. Maximum scaling is + set to 4x. Remember that the width parameter has a higher precedence + over scaling. +
+ - -
- Either a chart, stockChart, mapChart, or a ganttChart (depending on what product you use). + +
+ Either a chart, stockChart, mapChart, or a ganttChart (depending on + what product you use). +
+
-
-
-
-
-

Result Preview

-
-
Click the Preview button to see a preview.
+
+
+

Result Preview

+
+
Click the Preview button to see a preview.
+
-
-
- - +
+ + +
-
- -
- - +
+ - \ No newline at end of file + +