@inweb/viewer-visualize 26.9.8 → 26.9.10
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
|
@@ -2622,6 +2622,7 @@
|
|
|
2622
2622
|
function resetView(viewer) {
|
|
2623
2623
|
if (!viewer.visualizeJs)
|
|
2624
2624
|
return;
|
|
2625
|
+
const reset = viewer.getComponent("ResetComponent");
|
|
2625
2626
|
viewer.executeCommand("setActiveDragger");
|
|
2626
2627
|
viewer.executeCommand("clearSlices");
|
|
2627
2628
|
viewer.executeCommand("clearOverlay");
|
|
@@ -2630,7 +2631,7 @@
|
|
|
2630
2631
|
viewer.executeCommand("showAll");
|
|
2631
2632
|
viewer.executeCommand("explode", 0);
|
|
2632
2633
|
viewer.executeCommand("zoomToExtents", true);
|
|
2633
|
-
|
|
2634
|
+
reset.resetCameraPosition();
|
|
2634
2635
|
viewer.emit({ type: "resetview" });
|
|
2635
2636
|
}
|
|
2636
2637
|
|
|
@@ -16511,6 +16512,9 @@
|
|
|
16511
16512
|
draggable: true,
|
|
16512
16513
|
});
|
|
16513
16514
|
this._ref.setAttr("wcsStart", this._worldTransformer.screenToWorld({ x: params.position.x, y: params.position.y }));
|
|
16515
|
+
if (params.position2) {
|
|
16516
|
+
this._ref.setAttr("wcsEnd", this._worldTransformer.screenToWorld({ x: params.position2.x, y: params.position2.y }));
|
|
16517
|
+
}
|
|
16514
16518
|
this._ref.on("transform", (e) => {
|
|
16515
16519
|
const attrs = e.target.attrs;
|
|
16516
16520
|
if (attrs.rotation !== this._ref.rotation())
|
|
@@ -18110,7 +18114,7 @@
|
|
|
18110
18114
|
return this._markup;
|
|
18111
18115
|
}
|
|
18112
18116
|
configure(params) {
|
|
18113
|
-
this._visualizeJsUrl = params.visualizeJsUrl || "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/
|
|
18117
|
+
this._visualizeJsUrl = params.visualizeJsUrl || "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/26.9/Visualize.js";
|
|
18114
18118
|
this._crossOrigin = params.crossOrigin;
|
|
18115
18119
|
return this;
|
|
18116
18120
|
}
|