@oliasoft-open-source/charts-library 4.7.7-beta-18 → 4.7.8
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
CHANGED
|
@@ -22476,10 +22476,7 @@ const reducer$1 = (state, action) => {
|
|
|
22476
22476
|
}
|
|
22477
22477
|
case RESET_AXES_RANGES: {
|
|
22478
22478
|
const { initialAxesRanges } = draft;
|
|
22479
|
-
draft.axes = initialAxesRanges
|
|
22480
|
-
id: axis.id,
|
|
22481
|
-
...axis.unit && { unit: axis.unit }
|
|
22482
|
-
}));
|
|
22479
|
+
draft.axes = [...initialAxesRanges];
|
|
22483
22480
|
break;
|
|
22484
22481
|
}
|
|
22485
22482
|
case TOGGLE_DRAG_POINTS: {
|
|
@@ -26207,7 +26204,6 @@ const useChartState = ({
|
|
|
26207
26204
|
return () => {
|
|
26208
26205
|
if (chartRef == null ? void 0 : chartRef.current) {
|
|
26209
26206
|
const chart2 = chartRef == null ? void 0 : chartRef.current;
|
|
26210
|
-
console.log("DESTROY");
|
|
26211
26207
|
chart2 == null ? void 0 : chart2.destroy();
|
|
26212
26208
|
}
|
|
26213
26209
|
};
|
|
@@ -26631,7 +26627,6 @@ const handleAnnotationMouseUp = (isDragging2, activeAnnotation, chart2, canvas2,
|
|
|
26631
26627
|
setAnnotationBorderWidth(chart2, annotationId, BORDER_WIDTH.ZERO);
|
|
26632
26628
|
const { centerX = -1, centerY = -1 } = calculateAnnotationMetricsInValues(activeAnnotation) ?? {};
|
|
26633
26629
|
if (!isNil(activeAnnotation == null ? void 0 : activeAnnotation.onDragEnd)) {
|
|
26634
|
-
console.log("onDragEnd");
|
|
26635
26630
|
activeAnnotation == null ? void 0 : activeAnnotation.onDragEnd(
|
|
26636
26631
|
{ x: centerX, y: centerY },
|
|
26637
26632
|
activeAnnotation
|