@oliasoft-open-source/charts-library 4.7.3-beta-1 → 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 +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 },
|
|
26529
|
+
annotation2.onDragStart({ x: x2, y: y2 }, annotation2);
|
|
26530
26530
|
}
|
|
26531
26531
|
}
|
|
26532
26532
|
};
|
|
@@ -26573,7 +26573,7 @@ const handleAnnotationMouseMove = (event, canvas2, scales, isDragging2, activeAn
|
|
|
26573
26573
|
}
|
|
26574
26574
|
chart2.update();
|
|
26575
26575
|
if (activeAnnotation == null ? void 0 : activeAnnotation.onDrag) {
|
|
26576
|
-
activeAnnotation.onDrag({ x: x2, y: y2 },
|
|
26576
|
+
activeAnnotation.onDrag({ x: x2, y: y2 }, activeAnnotation);
|
|
26577
26577
|
}
|
|
26578
26578
|
const { ctx, width, height } = chart2;
|
|
26579
26579
|
const { centerX, centerY } = calculateAnnotationMetricsInValues(activeAnnotation) ?? {};
|
|
@@ -26615,7 +26615,7 @@ const handleAnnotationMouseUp = (isDragging2, activeAnnotation, chart2, setDragg
|
|
|
26615
26615
|
if (activeAnnotation == null ? void 0 : activeAnnotation.onDragEnd) {
|
|
26616
26616
|
activeAnnotation.onDragEnd(
|
|
26617
26617
|
{ x: centerX, y: centerY },
|
|
26618
|
-
|
|
26618
|
+
activeAnnotation
|
|
26619
26619
|
);
|
|
26620
26620
|
}
|
|
26621
26621
|
chart2.canvas.style.cursor = CursorStyle.Pointer;
|