@oliasoft-open-source/charts-library 5.16.0-beta-1 → 5.16.0-beta-2
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.js +23 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22509,7 +22509,7 @@ var useChartOptions = ({ chartRef, state, options, dispatch, generatedDatasets,
|
|
|
22509
22509
|
]);
|
|
22510
22510
|
const lineMarkersAnnotation = options?.annotations?.lineMarkersAnnotation ?? {};
|
|
22511
22511
|
const lineMarkersPluginEnabled = Boolean(options?.plugins?.lineMarkersPlugin?.enabled ?? lineMarkersAnnotation?.enabled);
|
|
22512
|
-
const plugins = {
|
|
22512
|
+
const plugins = useMemo(() => ({
|
|
22513
22513
|
datalabels,
|
|
22514
22514
|
annotationDraggerPlugin: { enabled: state?.enableDragAnnotation },
|
|
22515
22515
|
calloutConnectorPlugin: { enableCalloutAnnotation: options?.annotations.enableCalloutAnnotation },
|
|
@@ -22538,7 +22538,27 @@ var useChartOptions = ({ chartRef, state, options, dispatch, generatedDatasets,
|
|
|
22538
22538
|
lineHeight
|
|
22539
22539
|
},
|
|
22540
22540
|
...dragData
|
|
22541
|
-
}
|
|
22541
|
+
}), [
|
|
22542
|
+
annotation,
|
|
22543
|
+
customLegendPlugin,
|
|
22544
|
+
datalabels,
|
|
22545
|
+
dragData,
|
|
22546
|
+
fontSize,
|
|
22547
|
+
legend,
|
|
22548
|
+
lineHeight,
|
|
22549
|
+
lineMarkersPluginEnabled,
|
|
22550
|
+
maxWidth,
|
|
22551
|
+
options?.annotations.enableCalloutAnnotation,
|
|
22552
|
+
panOptions,
|
|
22553
|
+
position,
|
|
22554
|
+
showLabel,
|
|
22555
|
+
state?.enableDragAnnotation,
|
|
22556
|
+
text,
|
|
22557
|
+
tooltip,
|
|
22558
|
+
xOffset,
|
|
22559
|
+
yOffset,
|
|
22560
|
+
zoomOptions
|
|
22561
|
+
]);
|
|
22542
22562
|
return useMemo(() => ({
|
|
22543
22563
|
persistenceId,
|
|
22544
22564
|
layout: { padding: layoutPadding },
|
|
@@ -22566,6 +22586,7 @@ var useChartOptions = ({ chartRef, state, options, dispatch, generatedDatasets,
|
|
|
22566
22586
|
layoutPadding,
|
|
22567
22587
|
lineEnabled,
|
|
22568
22588
|
onAnimationComplete,
|
|
22589
|
+
onChartHover,
|
|
22569
22590
|
options?.annotations,
|
|
22570
22591
|
options?.chartStyling?.maintainAspectRatio,
|
|
22571
22592
|
options?.chartStyling?.performanceMode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/charts-library",
|
|
3
|
-
"version": "5.16.0-beta-
|
|
3
|
+
"version": "5.16.0-beta-2",
|
|
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": {
|