@oliasoft-open-source/charts-library 4.7.7-beta-1 → 4.7.7-beta-3
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
|
@@ -26615,7 +26615,7 @@ const handleAnnotationMouseMove = (event, canvas2, scales, isDragging2, activeAn
|
|
|
26615
26615
|
}
|
|
26616
26616
|
}
|
|
26617
26617
|
};
|
|
26618
|
-
const handleAnnotationMouseUp = (isDragging2, activeAnnotation, chart2, setDraggingState) => {
|
|
26618
|
+
const handleAnnotationMouseUp = (isDragging2, activeAnnotation, chart2, canvas2, setDraggingState) => {
|
|
26619
26619
|
if (isDragging2) {
|
|
26620
26620
|
if (activeAnnotation) {
|
|
26621
26621
|
const annotationId = activeAnnotation == null ? void 0 : activeAnnotation.id;
|
|
@@ -26627,8 +26627,10 @@ const handleAnnotationMouseUp = (isDragging2, activeAnnotation, chart2, setDragg
|
|
|
26627
26627
|
activeAnnotation
|
|
26628
26628
|
);
|
|
26629
26629
|
}
|
|
26630
|
-
|
|
26631
|
-
|
|
26630
|
+
console.log("Chart", chart2);
|
|
26631
|
+
console.log("canvas", canvas2);
|
|
26632
|
+
if (!isNil(canvas2) && !isNil(chart2 == null ? void 0 : chart2.canvas.style)) {
|
|
26633
|
+
canvas2.style.cursor = CursorStyle.Pointer;
|
|
26632
26634
|
}
|
|
26633
26635
|
setDraggingState(false, null);
|
|
26634
26636
|
}
|
|
@@ -26773,6 +26775,7 @@ const annotationDraggerPlugin = {
|
|
|
26773
26775
|
isDragging2,
|
|
26774
26776
|
activeAnnotation,
|
|
26775
26777
|
chart2,
|
|
26778
|
+
canvas2,
|
|
26776
26779
|
setDraggingState
|
|
26777
26780
|
);
|
|
26778
26781
|
});
|