@oliasoft-open-source/charts-library 4.7.7-beta-2 → 4.7.7-beta-4

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;
@@ -26628,8 +26628,9 @@ const handleAnnotationMouseUp = (isDragging2, activeAnnotation, chart2, setDragg
26628
26628
  );
26629
26629
  }
26630
26630
  console.log("Chart", chart2);
26631
- if (!isNil(chart2) && !isNil(chart2 == null ? void 0 : chart2.canvas) && !isNil(chart2 == null ? void 0 : chart2.canvas.style)) {
26632
- chart2.canvas.style.cursor = CursorStyle.Pointer;
26631
+ console.log("canvas", canvas2);
26632
+ if (!isNil(canvas2) && !isNil(canvas2.style)) {
26633
+ canvas2.style.cursor = CursorStyle.Pointer;
26633
26634
  }
26634
26635
  setDraggingState(false, null);
26635
26636
  }
@@ -26774,6 +26775,7 @@ const annotationDraggerPlugin = {
26774
26775
  isDragging2,
26775
26776
  activeAnnotation,
26776
26777
  chart2,
26778
+ canvas2,
26777
26779
  setDraggingState
26778
26780
  );
26779
26781
  });