@oliasoft-open-source/charts-library 4.7.7-beta-11 → 4.7.7-beta-12

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
@@ -26621,12 +26621,9 @@ const handleAnnotationMouseUp = (isDragging2, activeAnnotation, chart2, canvas2,
26621
26621
  const annotationId = activeAnnotation == null ? void 0 : activeAnnotation.id;
26622
26622
  setAnnotationBorderWidth(chart2, annotationId, BORDER_WIDTH.ZERO);
26623
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
- }
26624
+ console.log(centerX, centerY);
26625
+ setDraggingState(false, null);
26626
+ chart2 == null ? void 0 : chart2.update();
26630
26627
  }
26631
26628
  }
26632
26629
  };
@@ -26764,11 +26761,13 @@ const annotationDraggerPlugin = {
26764
26761
  handleAnnotationMouseMoveDebounce();
26765
26762
  });
26766
26763
  canvas2.addEventListener(MouseEvents.MOUSEUP, (event) => {
26767
- event.currentTarget;
26764
+ const canvasEvent = event.currentTarget;
26768
26765
  handleAnnotationMouseUp(
26769
26766
  isDragging2,
26770
26767
  activeAnnotation,
26771
- chart2
26768
+ chart2,
26769
+ canvasEvent,
26770
+ setDraggingState
26772
26771
  );
26773
26772
  });
26774
26773
  canvas2.dataset.annotationDraggerInitialized = "true";