@inweb/viewer-visualize 26.7.2 → 26.7.6
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
|
@@ -16706,7 +16706,7 @@
|
|
|
16706
16706
|
const attrs = e.target.attrs;
|
|
16707
16707
|
if (attrs.rotation !== this._ref.rotation()) this._ref.rotation(attrs.rotation);
|
|
16708
16708
|
}));
|
|
16709
|
-
this._ref.on("transformend", (
|
|
16709
|
+
this._ref.on("transformend", (() => {
|
|
16710
16710
|
const absoluteTransform = this._ref.getAbsoluteTransform();
|
|
16711
16711
|
const wcsPoints = [];
|
|
16712
16712
|
const points = this._ref.points();
|
|
@@ -16728,7 +16728,7 @@
|
|
|
16728
16728
|
}
|
|
16729
16729
|
this._ref.setAttr("wcsPoints", wcsPoints);
|
|
16730
16730
|
}));
|
|
16731
|
-
this._ref.on("dragend", (
|
|
16731
|
+
this._ref.on("dragend", (() => {
|
|
16732
16732
|
const absoluteTransform = this._ref.getAbsoluteTransform();
|
|
16733
16733
|
const wcsPoints = [];
|
|
16734
16734
|
const points = this._ref.points();
|
|
@@ -16918,7 +16918,7 @@
|
|
|
16918
16918
|
});
|
|
16919
16919
|
this._ref.setAttr("wcsStart", this._worldTransformer.screenToWorld(position));
|
|
16920
16920
|
}));
|
|
16921
|
-
this._ref.on("dragend", (
|
|
16921
|
+
this._ref.on("dragend", (() => {
|
|
16922
16922
|
const absoluteTransform = this._ref.getStage().getAbsoluteTransform();
|
|
16923
16923
|
const position = absoluteTransform.point({
|
|
16924
16924
|
x: this._ref.x(),
|
|
@@ -17106,7 +17106,7 @@
|
|
|
17106
17106
|
y: position.y + this._ref.height()
|
|
17107
17107
|
}));
|
|
17108
17108
|
}));
|
|
17109
|
-
this._ref.on("dragend", (
|
|
17109
|
+
this._ref.on("dragend", (() => {
|
|
17110
17110
|
const absoluteTransform = this._ref.getStage().getAbsoluteTransform();
|
|
17111
17111
|
const position = absoluteTransform.point({
|
|
17112
17112
|
x: this._ref.x(),
|
|
@@ -17331,7 +17331,7 @@
|
|
|
17331
17331
|
y: 1
|
|
17332
17332
|
});
|
|
17333
17333
|
}));
|
|
17334
|
-
this._ref.on("transformend", (
|
|
17334
|
+
this._ref.on("transformend", (() => {
|
|
17335
17335
|
const absoluteTransform = this._ref.getStage().getAbsoluteTransform();
|
|
17336
17336
|
const position = absoluteTransform.point({
|
|
17337
17337
|
x: this._ref.x(),
|
|
@@ -17349,7 +17349,7 @@
|
|
|
17349
17349
|
});
|
|
17350
17350
|
this._ref.setAttr("wcsRadiusY", this._worldTransformer.screenToWorld(radiusY));
|
|
17351
17351
|
}));
|
|
17352
|
-
this._ref.on("dragend", (
|
|
17352
|
+
this._ref.on("dragend", (() => {
|
|
17353
17353
|
const absoluteTransform = this._ref.getStage().getAbsoluteTransform();
|
|
17354
17354
|
const position = absoluteTransform.point({
|
|
17355
17355
|
x: this._ref.x(),
|
|
@@ -17763,7 +17763,7 @@
|
|
|
17763
17763
|
y: 1
|
|
17764
17764
|
});
|
|
17765
17765
|
}));
|
|
17766
|
-
this._ref.on("transformend", (
|
|
17766
|
+
this._ref.on("transformend", (() => {
|
|
17767
17767
|
const absoluteTransform = this._ref.getStage().getAbsoluteTransform();
|
|
17768
17768
|
const position = absoluteTransform.point({
|
|
17769
17769
|
x: this._ref.x(),
|
|
@@ -17775,7 +17775,7 @@
|
|
|
17775
17775
|
y: position.y + this._ref.height()
|
|
17776
17776
|
}));
|
|
17777
17777
|
}));
|
|
17778
|
-
this._ref.on("dragend", (
|
|
17778
|
+
this._ref.on("dragend", (() => {
|
|
17779
17779
|
const absoluteTransform = this._ref.getStage().getAbsoluteTransform();
|
|
17780
17780
|
const position = absoluteTransform.point({
|
|
17781
17781
|
x: this._ref.x(),
|
|
@@ -18064,7 +18064,7 @@
|
|
|
18064
18064
|
y: position.y + this._ref.height()
|
|
18065
18065
|
}));
|
|
18066
18066
|
}));
|
|
18067
|
-
this._ref.on("dragend", (
|
|
18067
|
+
this._ref.on("dragend", (() => {
|
|
18068
18068
|
const absoluteTransform = this._ref.getStage().getAbsoluteTransform();
|
|
18069
18069
|
const position = absoluteTransform.point({
|
|
18070
18070
|
x: this._ref.x(),
|
|
@@ -18266,12 +18266,12 @@
|
|
|
18266
18266
|
markupObject.updateScreenCoordinates();
|
|
18267
18267
|
}));
|
|
18268
18268
|
};
|
|
18269
|
-
this.pan =
|
|
18269
|
+
this.pan = () => {
|
|
18270
18270
|
this.getObjects().forEach((markupObject => {
|
|
18271
18271
|
markupObject.updateScreenCoordinates();
|
|
18272
18272
|
}));
|
|
18273
18273
|
};
|
|
18274
|
-
this.zoomAt =
|
|
18274
|
+
this.zoomAt = () => {
|
|
18275
18275
|
this.getObjects().forEach((markupObject => {
|
|
18276
18276
|
markupObject.updateScreenCoordinates();
|
|
18277
18277
|
}));
|
|
@@ -18534,7 +18534,7 @@
|
|
|
18534
18534
|
lastLine = this.addLine([ pos.x, pos.y, pos.x, pos.y ]);
|
|
18535
18535
|
}
|
|
18536
18536
|
}));
|
|
18537
|
-
stage.on("mouseup touchend", (
|
|
18537
|
+
stage.on("mouseup touchend", (() => {
|
|
18538
18538
|
if (!this._markupIsActive) return;
|
|
18539
18539
|
if (isPaint) {
|
|
18540
18540
|
const pos = this.getRelativePointerPosition(stage);
|
|
@@ -18576,7 +18576,7 @@
|
|
|
18576
18576
|
lastObj = undefined;
|
|
18577
18577
|
isPaint = false;
|
|
18578
18578
|
}));
|
|
18579
|
-
stage.on("mousemove touchmove", (
|
|
18579
|
+
stage.on("mousemove touchmove", (() => {
|
|
18580
18580
|
if (!this._markupIsActive) return;
|
|
18581
18581
|
if (!isPaint) {
|
|
18582
18582
|
return;
|
|
@@ -18956,7 +18956,7 @@
|
|
|
18956
18956
|
y: this._imageInputPos.y
|
|
18957
18957
|
}, null, base64.toString(), 0, 0);
|
|
18958
18958
|
};
|
|
18959
|
-
this._imageInputRef.oncancel =
|
|
18959
|
+
this._imageInputRef.oncancel = () => {
|
|
18960
18960
|
this.removeImageInput();
|
|
18961
18961
|
};
|
|
18962
18962
|
document.body.appendChild(this._imageInputRef);
|