@oliasoft-open-source/charts-library 4.3.0 → 4.3.1-beta-1

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
@@ -26242,7 +26242,7 @@ const annotationDraggerPlugin = {
26242
26242
  };
26243
26243
  const typedScales = { x: scales.x, y: scales.y };
26244
26244
  let annotations = ((_d2 = (_c2 = chart2.options.plugins) == null ? void 0 : _c2.annotation) == null ? void 0 : _d2.annotations) ?? {};
26245
- if (!annotations)
26245
+ if (!chart2 && !annotations)
26246
26246
  return;
26247
26247
  let isDragging2 = false;
26248
26248
  let dragStartX, dragStartY;
@@ -26257,11 +26257,12 @@ const annotationDraggerPlugin = {
26257
26257
  };
26258
26258
  if (!canvas2.dataset.annotationDraggerInitialized && pluginOptions.enabled && hoveredAnnotationId) {
26259
26259
  canvas2.addEventListener(MouseEvents.MOUSEDOWN, (event) => {
26260
+ var _a3, _b3, _c3;
26260
26261
  handleAnnotationMouseDown(
26261
26262
  event,
26262
26263
  canvas2,
26263
26264
  typedScales,
26264
- annotations,
26265
+ (_c3 = (_b3 = (_a3 = chart2 == null ? void 0 : chart2.options) == null ? void 0 : _a3.plugins) == null ? void 0 : _b3.annotation) == null ? void 0 : _c3.annotations,
26265
26266
  setDraggingState,
26266
26267
  chart2.hoveredAnnotationId
26267
26268
  );