vim-web 0.3.44-dev.21 → 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.
|
@@ -82,6 +82,7 @@ export declare class ViewerSelection implements IViewerSelection {
|
|
|
82
82
|
* @param vim - Optional. If provided, only clears selections for the specified VIM.
|
|
83
83
|
*/
|
|
84
84
|
clear(vim?: Vim): void;
|
|
85
|
+
private _clear;
|
|
85
86
|
/**
|
|
86
87
|
* Calculates the bounding box encompassing all selected nodes.
|
|
87
88
|
* @returns Promise resolving to a Box3 representing the bounds of all selected nodes,
|
package/dist/vim-web.iife.js
CHANGED
|
@@ -61389,7 +61389,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
61389
61389
|
* @param node - A single node index or array of node indices to select.
|
|
61390
61390
|
*/
|
|
61391
61391
|
select(vim, node) {
|
|
61392
|
-
this.
|
|
61392
|
+
this._clear();
|
|
61393
61393
|
this.add(vim, node);
|
|
61394
61394
|
}
|
|
61395
61395
|
/**
|
|
@@ -61464,6 +61464,12 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
61464
61464
|
* @param vim - Optional. If provided, only clears selections for the specified VIM.
|
|
61465
61465
|
*/
|
|
61466
61466
|
clear(vim) {
|
|
61467
|
+
const changed = this._clear(vim);
|
|
61468
|
+
if (changed) {
|
|
61469
|
+
this._onValueChanged.dispatch();
|
|
61470
|
+
}
|
|
61471
|
+
}
|
|
61472
|
+
_clear(vim) {
|
|
61467
61473
|
let changed = false;
|
|
61468
61474
|
this._selectedNodes.forEach((nodes, v) => {
|
|
61469
61475
|
if (vim === void 0 || v === vim) {
|
|
@@ -61472,9 +61478,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
61472
61478
|
}
|
|
61473
61479
|
});
|
|
61474
61480
|
this._selectedNodes.clear();
|
|
61475
|
-
|
|
61476
|
-
this._onValueChanged.dispatch();
|
|
61477
|
-
}
|
|
61481
|
+
return changed;
|
|
61478
61482
|
}
|
|
61479
61483
|
/**
|
|
61480
61484
|
* Calculates the bounding box encompassing all selected nodes.
|
|
@@ -61496,8 +61500,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
61496
61500
|
* Should be called when the selection manager is no longer needed.
|
|
61497
61501
|
*/
|
|
61498
61502
|
dispose() {
|
|
61499
|
-
this.
|
|
61500
|
-
this._selectedNodes = /* @__PURE__ */ new Map();
|
|
61503
|
+
this._clear();
|
|
61501
61504
|
}
|
|
61502
61505
|
}
|
|
61503
61506
|
class VimCollection {
|
|
@@ -76013,6 +76016,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
76013
76016
|
setVisible: (b) => {
|
|
76014
76017
|
viewer.gizmos.sectionBox.visible = b;
|
|
76015
76018
|
viewer.gizmos.sectionBox.interactive = b;
|
|
76019
|
+
viewer.gizmos.sectionBox.clip = b;
|
|
76016
76020
|
},
|
|
76017
76021
|
getBox: () => viewer.gizmos.sectionBox.box.clone(),
|
|
76018
76022
|
fitBox: (box) => viewer.gizmos.sectionBox.fitBox(box),
|
|
@@ -76020,7 +76024,6 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
76020
76024
|
getRendererBox: () => Promise.resolve(viewer.renderer.getBoundingBox()),
|
|
76021
76025
|
onSelectionChanged: viewer.selection.onValueChanged
|
|
76022
76026
|
};
|
|
76023
|
-
viewer.gizmos.sectionBox.clip = true;
|
|
76024
76027
|
return useSectionBox(vimAdapter);
|
|
76025
76028
|
}
|
|
76026
76029
|
function useCamera(adapter) {
|
|
@@ -76563,6 +76566,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
76563
76566
|
console.log("SetVisible!", b);
|
|
76564
76567
|
viewer.sectionBox.visible = b;
|
|
76565
76568
|
viewer.sectionBox.interactive = b;
|
|
76569
|
+
viewer.sectionBox.clip = b;
|
|
76566
76570
|
},
|
|
76567
76571
|
getBox: () => viewer.sectionBox.getBox().clone(),
|
|
76568
76572
|
fitBox: (box) => viewer.sectionBox.fitBox(box),
|