@oliasoft-open-source/charts-library 4.3.3-beta-4 → 4.3.3-beta-5
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 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26283,12 +26283,13 @@ const annotationDraggerPlugin = {
|
|
|
26283
26283
|
afterUpdate(chart2) {
|
|
26284
26284
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
26285
26285
|
const { canvas: canvas2, scales, hoveredAnnotationId } = chart2;
|
|
26286
|
+
console.log(cloneDeep(chart2));
|
|
26286
26287
|
const pluginOptions = ((_b2 = (_a2 = chart2 == null ? void 0 : chart2.options) == null ? void 0 : _a2.plugins) == null ? void 0 : _b2.annotationDraggerPlugin) || {
|
|
26287
26288
|
enabled: false
|
|
26288
26289
|
};
|
|
26289
26290
|
const typedScales = { x: scales.x, y: scales.y };
|
|
26290
26291
|
let annotations = ((_e2 = (_d2 = (_c2 = chart2 == null ? void 0 : chart2.options) == null ? void 0 : _c2.plugins) == null ? void 0 : _d2.annotation) == null ? void 0 : _e2.annotations) ?? {};
|
|
26291
|
-
if (!
|
|
26292
|
+
if (!annotations)
|
|
26292
26293
|
return;
|
|
26293
26294
|
let isDragging2 = false;
|
|
26294
26295
|
let dragStartX, dragStartY;
|
|
@@ -26302,7 +26303,7 @@ const annotationDraggerPlugin = {
|
|
|
26302
26303
|
}
|
|
26303
26304
|
};
|
|
26304
26305
|
if (!((_f2 = canvas2 == null ? void 0 : canvas2.dataset) == null ? void 0 : _f2.annotationDraggerInitialized) && (pluginOptions == null ? void 0 : pluginOptions.enabled) && hoveredAnnotationId) {
|
|
26305
|
-
if (!isNil(canvas2)) {
|
|
26306
|
+
if (!isNil(canvas2) && !isEmpty(canvas2)) {
|
|
26306
26307
|
console.log(cloneDeep(canvas2));
|
|
26307
26308
|
canvas2 == null ? void 0 : canvas2.addEventListener(MouseEvents.MOUSEDOWN, (event) => {
|
|
26308
26309
|
var _a3, _b3, _c3;
|