@oliasoft-open-source/charts-library 5.11.0-beta-1 → 5.11.1-beta-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.
package/dist/index.d.ts CHANGED
@@ -1202,15 +1202,15 @@ declare module 'chart.js' {
1202
1202
 
1203
1203
  declare module 'chart.js' {
1204
1204
  interface PluginOptionsByType<TType extends ChartType> {
1205
- calloutConnectorPlugin?: {
1206
- enableCalloutAnnotation?: boolean;
1207
- };
1205
+ annotationDraggerPlugin?: AnnotationDraggerPluginOptions;
1208
1206
  }
1209
1207
  }
1210
1208
 
1211
1209
 
1212
1210
  declare module 'chart.js' {
1213
1211
  interface PluginOptionsByType<TType extends ChartType> {
1214
- annotationDraggerPlugin?: AnnotationDraggerPluginOptions;
1212
+ calloutConnectorPlugin?: {
1213
+ enableCalloutAnnotation?: boolean;
1214
+ };
1215
1215
  }
1216
1216
  }
package/dist/index.js CHANGED
@@ -19480,11 +19480,14 @@ var downloadPgn = (chartRef) => {
19480
19480
  ctx.fillRect(0, 0, chart.width, chart.height);
19481
19481
  ctx.restore();
19482
19482
  const fileName = getChartFileName(getAxesLabelsFromChart(chart));
19483
- toPng(canvasElement, { skipFonts: navigator.userAgent.includes("Firefox") }).then((dataUrl) => {
19484
- triggerBase64Download(dataUrl, fileName);
19485
- }).catch((e) => {
19486
- console.error("Could not parse the html: ", e);
19487
- });
19483
+ const toPngOptions = { skipFonts: navigator.userAgent.includes("Firefox") };
19484
+ setTimeout(() => {
19485
+ toPng(canvasElement, toPngOptions).then((dataUrl) => {
19486
+ triggerBase64Download(dataUrl, fileName);
19487
+ }).catch((e) => {
19488
+ console.error("Could not parse the html: ", e);
19489
+ });
19490
+ }, 0);
19488
19491
  };
19489
19492
  //#endregion
19490
19493
  //#region src/components/line-chart/utils/line-chart-utils.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "5.11.0-beta-1",
3
+ "version": "5.11.1-beta-1",
4
4
  "description": "React Chart Library (based on Chart.js and react-chart-js-2)",
5
5
  "homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
6
6
  "bugs": {