@oliasoft-open-source/charts-library 4.7.7-beta-16 → 4.7.7-beta-18

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
@@ -26629,15 +26629,18 @@ const handleAnnotationMouseUp = (isDragging2, activeAnnotation, chart2, canvas2,
26629
26629
  if (activeAnnotation) {
26630
26630
  const annotationId = activeAnnotation == null ? void 0 : activeAnnotation.id;
26631
26631
  setAnnotationBorderWidth(chart2, annotationId, BORDER_WIDTH.ZERO);
26632
- calculateAnnotationMetricsInValues(activeAnnotation) ?? {};
26632
+ const { centerX = -1, centerY = -1 } = calculateAnnotationMetricsInValues(activeAnnotation) ?? {};
26633
26633
  if (!isNil(activeAnnotation == null ? void 0 : activeAnnotation.onDragEnd)) {
26634
26634
  console.log("onDragEnd");
26635
+ activeAnnotation == null ? void 0 : activeAnnotation.onDragEnd(
26636
+ { x: centerX, y: centerY },
26637
+ activeAnnotation
26638
+ );
26635
26639
  }
26636
26640
  if (!isNil(canvas2) && !isNil(canvas2.style)) {
26637
26641
  canvas2.style.cursor = CursorStyle.Pointer;
26638
26642
  }
26639
26643
  setDraggingState(false, null);
26640
- chart2 == null ? void 0 : chart2.update();
26641
26644
  }
26642
26645
  }
26643
26646
  };