@oliasoft-open-source/charts-library 4.7.7-beta-3 → 4.7.7-beta-5
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 +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26629,12 +26629,13 @@ const handleAnnotationMouseUp = (isDragging2, activeAnnotation, chart2, canvas2,
|
|
|
26629
26629
|
}
|
|
26630
26630
|
console.log("Chart", chart2);
|
|
26631
26631
|
console.log("canvas", canvas2);
|
|
26632
|
-
|
|
26632
|
+
console.log("canvas.ownerDocument", canvas2.ownerDocument);
|
|
26633
|
+
if (!isNil(canvas2) && !isNil(canvas2.style)) {
|
|
26633
26634
|
canvas2.style.cursor = CursorStyle.Pointer;
|
|
26634
26635
|
}
|
|
26635
26636
|
setDraggingState(false, null);
|
|
26637
|
+
chart2.update();
|
|
26636
26638
|
}
|
|
26637
|
-
chart2.update();
|
|
26638
26639
|
}
|
|
26639
26640
|
};
|
|
26640
26641
|
const annotationLabel = (ctx, annotations, scales) => {
|
|
@@ -26770,12 +26771,13 @@ const annotationDraggerPlugin = {
|
|
|
26770
26771
|
);
|
|
26771
26772
|
handleAnnotationMouseMoveDebounce();
|
|
26772
26773
|
});
|
|
26773
|
-
canvas2.addEventListener(MouseEvents.MOUSEUP, () => {
|
|
26774
|
+
canvas2.addEventListener(MouseEvents.MOUSEUP, (event) => {
|
|
26775
|
+
const canvasEvent = event.currentTarget;
|
|
26774
26776
|
handleAnnotationMouseUp(
|
|
26775
26777
|
isDragging2,
|
|
26776
26778
|
activeAnnotation,
|
|
26777
26779
|
chart2,
|
|
26778
|
-
|
|
26780
|
+
canvasEvent,
|
|
26779
26781
|
setDraggingState
|
|
26780
26782
|
);
|
|
26781
26783
|
});
|