@inweb/markup 26.12.0 → 26.12.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/markup.module.js
CHANGED
|
@@ -1377,14 +1377,13 @@ class KonvaMarkup {
|
|
|
1377
1377
|
});
|
|
1378
1378
|
};
|
|
1379
1379
|
this.pan = () => {
|
|
1380
|
-
this.
|
|
1381
|
-
markupObject.updateScreenCoordinates();
|
|
1382
|
-
});
|
|
1380
|
+
this.updateScreenCoordinatesForAll();
|
|
1383
1381
|
};
|
|
1384
1382
|
this.zoomAt = () => {
|
|
1385
|
-
this.
|
|
1386
|
-
|
|
1387
|
-
|
|
1383
|
+
this.updateScreenCoordinatesForAll();
|
|
1384
|
+
};
|
|
1385
|
+
this.changeCameraMode = () => {
|
|
1386
|
+
this.clearOverlay();
|
|
1388
1387
|
};
|
|
1389
1388
|
this.redirectToViewer = (event) => {
|
|
1390
1389
|
if (this._viewer)
|
|
@@ -1418,11 +1417,13 @@ class KonvaMarkup {
|
|
|
1418
1417
|
this._viewer.addEventListener("changeactivedragger", this.changeActiveDragger);
|
|
1419
1418
|
this._viewer.addEventListener("pan", this.pan);
|
|
1420
1419
|
this._viewer.addEventListener("zoomat", this.zoomAt);
|
|
1420
|
+
this._viewer.addEventListener("changecameramode", this.changeCameraMode);
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
1423
|
dispose() {
|
|
1424
1424
|
var _a, _b;
|
|
1425
1425
|
if (this._viewer) {
|
|
1426
|
+
this._viewer.removeEventListener("changecameramode", this.changeCameraMode);
|
|
1426
1427
|
this._viewer.removeEventListener("zoomat", this.zoomAt);
|
|
1427
1428
|
this._viewer.removeEventListener("pan", this.pan);
|
|
1428
1429
|
this._viewer.removeEventListener("changeactivedragger", this.changeActiveDragger);
|
|
@@ -1597,6 +1598,11 @@ class KonvaMarkup {
|
|
|
1597
1598
|
ref.parent === this._groupGeometry ||
|
|
1598
1599
|
ref.parent === this._groupTexts);
|
|
1599
1600
|
}
|
|
1601
|
+
updateScreenCoordinatesForAll() {
|
|
1602
|
+
this.getObjects().forEach((markupObject) => {
|
|
1603
|
+
markupObject.updateScreenCoordinates();
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1600
1606
|
initializeKonva() {
|
|
1601
1607
|
const stage = new Konva.Stage({
|
|
1602
1608
|
container: this._markupContainer,
|