@oliasoft-open-source/charts-library 4.7.3-beta-2 → 4.7.3-beta-3

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
@@ -26526,7 +26526,7 @@ const handleAnnotationMouseDown = (event, canvas2, scales, annotations, setDragg
26526
26526
  const dragStartY = y2 - metrics.centerY;
26527
26527
  setDraggingState(true, annotation2, dragStartX, dragStartY);
26528
26528
  if (annotation2 == null ? void 0 : annotation2.onDragStart) {
26529
- annotation2.onDragStart({ x: x2, y: y2 }, cloneDeep(annotation2));
26529
+ annotation2.onDragStart({ x: x2, y: y2 }, annotation2);
26530
26530
  }
26531
26531
  }
26532
26532
  };
@@ -26544,9 +26544,7 @@ const handleAnnotationMouseMove = (event, canvas2, scales, isDragging2, activeAn
26544
26544
  xScaleID,
26545
26545
  yScaleID
26546
26546
  );
26547
- console.log("Mouse Coordinates:", x2, y2);
26548
26547
  const metrics = calculateAnnotationMetricsInValues(activeAnnotation);
26549
- console.log("Metrics:", metrics);
26550
26548
  let newCenterX = x2 - dragStartX;
26551
26549
  let newCenterY = y2 - dragStartY;
26552
26550
  if (dragAxis !== DragAxis.Y) {
@@ -26575,7 +26573,7 @@ const handleAnnotationMouseMove = (event, canvas2, scales, isDragging2, activeAn
26575
26573
  }
26576
26574
  chart2.update();
26577
26575
  if (activeAnnotation == null ? void 0 : activeAnnotation.onDrag) {
26578
- activeAnnotation.onDrag({ x: x2, y: y2 }, cloneDeep(activeAnnotation));
26576
+ activeAnnotation.onDrag({ x: x2, y: y2 }, activeAnnotation);
26579
26577
  }
26580
26578
  const { ctx, width, height } = chart2;
26581
26579
  const { centerX, centerY } = calculateAnnotationMetricsInValues(activeAnnotation) ?? {};
@@ -26617,7 +26615,7 @@ const handleAnnotationMouseUp = (isDragging2, activeAnnotation, chart2, setDragg
26617
26615
  if (activeAnnotation == null ? void 0 : activeAnnotation.onDragEnd) {
26618
26616
  activeAnnotation.onDragEnd(
26619
26617
  { x: centerX, y: centerY },
26620
- cloneDeep(activeAnnotation)
26618
+ activeAnnotation
26621
26619
  );
26622
26620
  }
26623
26621
  chart2.canvas.style.cursor = CursorStyle.Pointer;