vim-web 0.3.44-dev.38 → 0.3.44-dev.39
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/types/core-viewers/ultra/viewer/sectionBox.d.ts +1 -1
- package/dist/types/core-viewers/webgl/viewer/gizmos/sectionBox/sectionBox.d.ts +4 -5
- package/dist/types/react-viewers/state/sectionBoxState.d.ts +1 -1
- package/dist/vim-web.iife.js +15 -14
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +15 -14
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -55717,12 +55717,12 @@ let SectionBox$1 = class SectionBox {
|
|
|
55717
55717
|
// Public Properties
|
|
55718
55718
|
// -------------------------------------------------------------------------
|
|
55719
55719
|
/**
|
|
55720
|
-
*
|
|
55721
|
-
*
|
|
55722
|
-
* To programmatically update the box, see {@link fitBox}.
|
|
55720
|
+
* Returns a copy of the current section box.
|
|
55721
|
+
* To programmatically update the box, see {@link setBox}.
|
|
55723
55722
|
*/
|
|
55724
|
-
|
|
55725
|
-
|
|
55723
|
+
getBox() {
|
|
55724
|
+
var _a2;
|
|
55725
|
+
return (_a2 = this.section.box) == null ? void 0 : _a2.clone();
|
|
55726
55726
|
}
|
|
55727
55727
|
/**
|
|
55728
55728
|
* Determines whether the section gizmo applies clipping planes to the model.
|
|
@@ -55784,12 +55784,12 @@ let SectionBox$1 = class SectionBox {
|
|
|
55784
55784
|
* @param box - The bounding box to match (required).
|
|
55785
55785
|
* @param padding - The scalar amount by which to expand the bounding box. Default is `1`.
|
|
55786
55786
|
*/
|
|
55787
|
-
|
|
55787
|
+
setBox(box) {
|
|
55788
55788
|
if (!box) return;
|
|
55789
55789
|
box = safeBox(box);
|
|
55790
55790
|
this._gizmos.fitBox(box);
|
|
55791
55791
|
this.renderer.section.fitBox(box);
|
|
55792
|
-
this._onBoxConfirm.dispatch(
|
|
55792
|
+
this._onBoxConfirm.dispatch(box);
|
|
55793
55793
|
this.renderer.needsUpdate = true;
|
|
55794
55794
|
}
|
|
55795
55795
|
/**
|
|
@@ -55798,7 +55798,7 @@ let SectionBox$1 = class SectionBox {
|
|
|
55798
55798
|
* Call this if the renderer's section box is changed by code outside this class.
|
|
55799
55799
|
*/
|
|
55800
55800
|
update() {
|
|
55801
|
-
this.
|
|
55801
|
+
this.setBox(this.section.box);
|
|
55802
55802
|
this.renderer.needsUpdate = true;
|
|
55803
55803
|
}
|
|
55804
55804
|
/**
|
|
@@ -61910,7 +61910,8 @@ class SectionBox2 {
|
|
|
61910
61910
|
this.scheduleUpdate();
|
|
61911
61911
|
}
|
|
61912
61912
|
getBox() {
|
|
61913
|
-
|
|
61913
|
+
var _a2;
|
|
61914
|
+
return (_a2 = this._box) == null ? void 0 : _a2.clone();
|
|
61914
61915
|
}
|
|
61915
61916
|
dispose() {
|
|
61916
61917
|
clearInterval(this._interval);
|
|
@@ -75922,7 +75923,7 @@ function useSectionBox(adapter) {
|
|
|
75922
75923
|
if (baseBox === void 0) return;
|
|
75923
75924
|
boxRef.current = baseBox;
|
|
75924
75925
|
const newBox = addBox(baseBox, offsetsToBox3(topOffset.get(), sideOffset.get(), bottomOffset.get()));
|
|
75925
|
-
adapter.
|
|
75926
|
+
adapter.setBox(newBox);
|
|
75926
75927
|
});
|
|
75927
75928
|
const sectionSelection = useFuncRef(async () => {
|
|
75928
75929
|
try {
|
|
@@ -75979,8 +75980,8 @@ function useWebglSectionBox(viewer) {
|
|
|
75979
75980
|
viewer.gizmos.sectionBox.visible = b;
|
|
75980
75981
|
viewer.gizmos.sectionBox.interactive = b;
|
|
75981
75982
|
},
|
|
75982
|
-
getBox: () => viewer.gizmos.sectionBox.
|
|
75983
|
-
|
|
75983
|
+
getBox: () => viewer.gizmos.sectionBox.getBox(),
|
|
75984
|
+
setBox: (box) => viewer.gizmos.sectionBox.setBox(box),
|
|
75984
75985
|
getSelectionBox: () => Promise.resolve(viewer.selection.getBoundingBox()),
|
|
75985
75986
|
getRendererBox: () => Promise.resolve(viewer.renderer.getBoundingBox()),
|
|
75986
75987
|
onSelectionChanged: viewer.selection.onValueChanged
|
|
@@ -76540,8 +76541,8 @@ function useUltraSectionBox(viewer) {
|
|
|
76540
76541
|
viewer.sectionBox.visible = b;
|
|
76541
76542
|
viewer.sectionBox.interactive = b;
|
|
76542
76543
|
},
|
|
76543
|
-
getBox: () => viewer.sectionBox.getBox()
|
|
76544
|
-
|
|
76544
|
+
getBox: () => viewer.sectionBox.getBox(),
|
|
76545
|
+
setBox: (box) => viewer.sectionBox.fitBox(box),
|
|
76545
76546
|
getSelectionBox: () => viewer.selection.getBoundingBox(),
|
|
76546
76547
|
getRendererBox: () => viewer.renderer.getBoundingBox(),
|
|
76547
76548
|
onSelectionChanged: viewer.selection.onValueChanged
|