@oliasoft-open-source/charts-library 4.7.7-beta-7 → 4.7.7-beta-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
@@ -26615,27 +26615,6 @@ const handleAnnotationMouseMove = (event, canvas2, scales, isDragging2, activeAn
26615
26615
  }
26616
26616
  }
26617
26617
  };
26618
- const handleAnnotationMouseUp = (isDragging2, activeAnnotation, chart2, canvas2, setDraggingState) => {
26619
- if (isDragging2) {
26620
- if (activeAnnotation) {
26621
- const annotationId = activeAnnotation == null ? void 0 : activeAnnotation.id;
26622
- setAnnotationBorderWidth(chart2, annotationId, BORDER_WIDTH.ZERO);
26623
- const { centerX = -1, centerY = -1 } = calculateAnnotationMetricsInValues(activeAnnotation) ?? {};
26624
- if (activeAnnotation == null ? void 0 : activeAnnotation.onDragEnd) {
26625
- activeAnnotation.onDragEnd(
26626
- { x: centerX, y: centerY },
26627
- activeAnnotation
26628
- );
26629
- }
26630
- if (!isNil(canvas2) && !isNil(canvas2.style)) {
26631
- canvas2.style.cursor = CursorStyle.Pointer;
26632
- }
26633
- setDraggingState(false, null);
26634
- console.log(" chart?.update", chart2 == null ? void 0 : chart2.update);
26635
- chart2 == null ? void 0 : chart2.update();
26636
- }
26637
- }
26638
- };
26639
26618
  const annotationLabel = (ctx, annotations, scales) => {
26640
26619
  Object.values(annotations).forEach((annotation2) => {
26641
26620
  var _a2;
@@ -26770,14 +26749,7 @@ const annotationDraggerPlugin = {
26770
26749
  handleAnnotationMouseMoveDebounce();
26771
26750
  });
26772
26751
  canvas2.addEventListener(MouseEvents.MOUSEUP, (event) => {
26773
- const canvasEvent = event.currentTarget;
26774
- handleAnnotationMouseUp(
26775
- isDragging2,
26776
- activeAnnotation,
26777
- chart2,
26778
- canvasEvent,
26779
- setDraggingState
26780
- );
26752
+ event.currentTarget;
26781
26753
  });
26782
26754
  canvas2.dataset.annotationDraggerInitialized = "true";
26783
26755
  }