@oliasoft-open-source/charts-library 4.3.3-beta-6 → 4.3.3-beta-7

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
@@ -26303,7 +26303,7 @@ const annotationDraggerPlugin = {
26303
26303
  }
26304
26304
  };
26305
26305
  if (!((_f2 = canvas2 == null ? void 0 : canvas2.dataset) == null ? void 0 : _f2.annotationDraggerInitialized) && (pluginOptions == null ? void 0 : pluginOptions.enabled) && hoveredAnnotationId) {
26306
- if (!isNil(canvas2) && !isEmpty(canvas2)) {
26306
+ if (!isNil(canvas2) && !isEmpty(canvas2) && (canvas2 == null ? void 0 : canvas2.addEventListener)) {
26307
26307
  console.log(cloneDeep(canvas2));
26308
26308
  canvas2 == null ? void 0 : canvas2.addEventListener(MouseEvents.MOUSEDOWN, (event) => {
26309
26309
  var _a3, _b3, _c3;