@oliasoft-open-source/charts-library 5.11.0 → 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
@@ -1193,24 +1193,24 @@ export { }
1193
1193
 
1194
1194
  declare module 'chart.js' {
1195
1195
  interface PluginOptionsByType<TType extends ChartType> {
1196
- annotationDraggerPlugin?: AnnotationDraggerPluginOptions;
1196
+ lineMarkersPlugin?: {
1197
+ enabled?: boolean;
1198
+ } | TLineMarkersOptions;
1197
1199
  }
1198
1200
  }
1199
1201
 
1200
1202
 
1201
1203
  declare module 'chart.js' {
1202
1204
  interface PluginOptionsByType<TType extends ChartType> {
1203
- calloutConnectorPlugin?: {
1204
- enableCalloutAnnotation?: boolean;
1205
- };
1205
+ annotationDraggerPlugin?: AnnotationDraggerPluginOptions;
1206
1206
  }
1207
1207
  }
1208
1208
 
1209
1209
 
1210
1210
  declare module 'chart.js' {
1211
1211
  interface PluginOptionsByType<TType extends ChartType> {
1212
- lineMarkersPlugin?: {
1213
- enabled?: boolean;
1214
- } | TLineMarkersOptions;
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",
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": {