vim-web 0.3.44-dev.20 → 0.3.44-dev.22
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/selection.d.ts +1 -0
- package/dist/types/react-viewers/index.d.ts +3 -0
- package/dist/types/react-viewers/ultra/index.d.ts +0 -1
- package/dist/types/react-viewers/ultra/ultraCameraState.d.ts +1 -1
- package/dist/types/react-viewers/webgl/webglCameraState.d.ts +1 -1
- package/dist/vim-web.iife.js +12 -8
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +12 -8
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -61373,7 +61373,7 @@ class ViewerSelection {
|
|
|
61373
61373
|
* @param node - A single node index or array of node indices to select.
|
|
61374
61374
|
*/
|
|
61375
61375
|
select(vim, node) {
|
|
61376
|
-
this.
|
|
61376
|
+
this._clear();
|
|
61377
61377
|
this.add(vim, node);
|
|
61378
61378
|
}
|
|
61379
61379
|
/**
|
|
@@ -61448,6 +61448,12 @@ class ViewerSelection {
|
|
|
61448
61448
|
* @param vim - Optional. If provided, only clears selections for the specified VIM.
|
|
61449
61449
|
*/
|
|
61450
61450
|
clear(vim) {
|
|
61451
|
+
const changed = this._clear(vim);
|
|
61452
|
+
if (changed) {
|
|
61453
|
+
this._onValueChanged.dispatch();
|
|
61454
|
+
}
|
|
61455
|
+
}
|
|
61456
|
+
_clear(vim) {
|
|
61451
61457
|
let changed = false;
|
|
61452
61458
|
this._selectedNodes.forEach((nodes, v) => {
|
|
61453
61459
|
if (vim === void 0 || v === vim) {
|
|
@@ -61456,9 +61462,7 @@ class ViewerSelection {
|
|
|
61456
61462
|
}
|
|
61457
61463
|
});
|
|
61458
61464
|
this._selectedNodes.clear();
|
|
61459
|
-
|
|
61460
|
-
this._onValueChanged.dispatch();
|
|
61461
|
-
}
|
|
61465
|
+
return changed;
|
|
61462
61466
|
}
|
|
61463
61467
|
/**
|
|
61464
61468
|
* Calculates the bounding box encompassing all selected nodes.
|
|
@@ -61480,8 +61484,7 @@ class ViewerSelection {
|
|
|
61480
61484
|
* Should be called when the selection manager is no longer needed.
|
|
61481
61485
|
*/
|
|
61482
61486
|
dispose() {
|
|
61483
|
-
this.
|
|
61484
|
-
this._selectedNodes = /* @__PURE__ */ new Map();
|
|
61487
|
+
this._clear();
|
|
61485
61488
|
}
|
|
61486
61489
|
}
|
|
61487
61490
|
class VimCollection {
|
|
@@ -75997,6 +76000,7 @@ function useWebglSectionBox(viewer) {
|
|
|
75997
76000
|
setVisible: (b) => {
|
|
75998
76001
|
viewer.gizmos.sectionBox.visible = b;
|
|
75999
76002
|
viewer.gizmos.sectionBox.interactive = b;
|
|
76003
|
+
viewer.gizmos.sectionBox.clip = b;
|
|
76000
76004
|
},
|
|
76001
76005
|
getBox: () => viewer.gizmos.sectionBox.box.clone(),
|
|
76002
76006
|
fitBox: (box) => viewer.gizmos.sectionBox.fitBox(box),
|
|
@@ -76004,7 +76008,6 @@ function useWebglSectionBox(viewer) {
|
|
|
76004
76008
|
getRendererBox: () => Promise.resolve(viewer.renderer.getBoundingBox()),
|
|
76005
76009
|
onSelectionChanged: viewer.selection.onValueChanged
|
|
76006
76010
|
};
|
|
76007
|
-
viewer.gizmos.sectionBox.clip = true;
|
|
76008
76011
|
return useSectionBox(vimAdapter);
|
|
76009
76012
|
}
|
|
76010
76013
|
function useCamera(adapter) {
|
|
@@ -76547,6 +76550,7 @@ function useUltraSectionBox(viewer) {
|
|
|
76547
76550
|
console.log("SetVisible!", b);
|
|
76548
76551
|
viewer.sectionBox.visible = b;
|
|
76549
76552
|
viewer.sectionBox.interactive = b;
|
|
76553
|
+
viewer.sectionBox.clip = b;
|
|
76550
76554
|
},
|
|
76551
76555
|
getBox: () => viewer.sectionBox.getBox().clone(),
|
|
76552
76556
|
fitBox: (box) => viewer.sectionBox.fitBox(box),
|
|
@@ -76672,11 +76676,11 @@ function patchLoad(viewer, modal) {
|
|
|
76672
76676
|
}
|
|
76673
76677
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76674
76678
|
__proto__: null,
|
|
76675
|
-
ControlBar: controlBar,
|
|
76676
76679
|
UltraComponent,
|
|
76677
76680
|
createUltraComponent
|
|
76678
76681
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
76679
76682
|
export {
|
|
76683
|
+
controlBar as ControlBar,
|
|
76680
76684
|
errorStyle as ErrorStyle,
|
|
76681
76685
|
errors as Errors,
|
|
76682
76686
|
icons as Icons,
|