@inweb/viewer-visualize 26.12.0 → 26.12.2
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/viewer-visualize.js
CHANGED
|
@@ -16871,14 +16871,13 @@ js: import "konva/skia-backend";
|
|
|
16871
16871
|
});
|
|
16872
16872
|
};
|
|
16873
16873
|
this.pan = () => {
|
|
16874
|
-
this.
|
|
16875
|
-
markupObject.updateScreenCoordinates();
|
|
16876
|
-
});
|
|
16874
|
+
this.updateScreenCoordinatesForAll();
|
|
16877
16875
|
};
|
|
16878
16876
|
this.zoomAt = () => {
|
|
16879
|
-
this.
|
|
16880
|
-
|
|
16881
|
-
|
|
16877
|
+
this.updateScreenCoordinatesForAll();
|
|
16878
|
+
};
|
|
16879
|
+
this.changeCameraMode = () => {
|
|
16880
|
+
this.clearOverlay();
|
|
16882
16881
|
};
|
|
16883
16882
|
this.redirectToViewer = (event) => {
|
|
16884
16883
|
if (this._viewer)
|
|
@@ -16912,11 +16911,13 @@ js: import "konva/skia-backend";
|
|
|
16912
16911
|
this._viewer.addEventListener("changeactivedragger", this.changeActiveDragger);
|
|
16913
16912
|
this._viewer.addEventListener("pan", this.pan);
|
|
16914
16913
|
this._viewer.addEventListener("zoomat", this.zoomAt);
|
|
16914
|
+
this._viewer.addEventListener("changecameramode", this.changeCameraMode);
|
|
16915
16915
|
}
|
|
16916
16916
|
}
|
|
16917
16917
|
dispose() {
|
|
16918
16918
|
var _a, _b;
|
|
16919
16919
|
if (this._viewer) {
|
|
16920
|
+
this._viewer.removeEventListener("changecameramode", this.changeCameraMode);
|
|
16920
16921
|
this._viewer.removeEventListener("zoomat", this.zoomAt);
|
|
16921
16922
|
this._viewer.removeEventListener("pan", this.pan);
|
|
16922
16923
|
this._viewer.removeEventListener("changeactivedragger", this.changeActiveDragger);
|
|
@@ -17091,6 +17092,11 @@ js: import "konva/skia-backend";
|
|
|
17091
17092
|
ref.parent === this._groupGeometry ||
|
|
17092
17093
|
ref.parent === this._groupTexts);
|
|
17093
17094
|
}
|
|
17095
|
+
updateScreenCoordinatesForAll() {
|
|
17096
|
+
this.getObjects().forEach((markupObject) => {
|
|
17097
|
+
markupObject.updateScreenCoordinates();
|
|
17098
|
+
});
|
|
17099
|
+
}
|
|
17094
17100
|
initializeKonva() {
|
|
17095
17101
|
const stage = new Konva.Stage({
|
|
17096
17102
|
container: this._markupContainer,
|