vim-web 0.4.1-dev.1 → 0.4.1-dev.2
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/vim-web.js
CHANGED
|
@@ -45581,7 +45581,7 @@ let Element3D$1 = class Element3D {
|
|
|
45581
45581
|
}
|
|
45582
45582
|
/**
|
|
45583
45583
|
* Retrieves the bounding box of the object from cache or computes it if needed.
|
|
45584
|
-
* Returns undefined if the
|
|
45584
|
+
* Returns undefined if the element is abstract.
|
|
45585
45585
|
* @returns {THREE.Box3 | undefined} The bounding box of the object, or undefined if the object has no geometry.
|
|
45586
45586
|
*/
|
|
45587
45587
|
async getBoundingBox() {
|
|
@@ -60992,6 +60992,7 @@ class Element3D2 {
|
|
|
60992
60992
|
}
|
|
60993
60993
|
/**
|
|
60994
60994
|
* Computes and returns the bounding box of the element.
|
|
60995
|
+
* Returns undefined if the element is abstract.
|
|
60995
60996
|
* @returns A promise resolving to the element's bounding box.
|
|
60996
60997
|
*/
|
|
60997
60998
|
async getBoundingBox() {
|
|
@@ -75809,11 +75810,15 @@ function useSectionBox(adapter) {
|
|
|
75809
75810
|
adapter.setBox(newBox);
|
|
75810
75811
|
});
|
|
75811
75812
|
const sectionSelection2 = useFuncRef(async () => {
|
|
75813
|
+
const currentBox = boxRef.current.clone();
|
|
75812
75814
|
const box = await getSelectionBox.call() ?? await getSceneBox.call();
|
|
75815
|
+
if (!currentBox.equals(boxRef.current)) return;
|
|
75813
75816
|
sectionBox2.call(box);
|
|
75814
75817
|
});
|
|
75815
75818
|
const sectionScene = useFuncRef(async () => {
|
|
75819
|
+
const currentBox = boxRef.current.clone();
|
|
75816
75820
|
const box = await getSceneBox.call();
|
|
75821
|
+
if (!currentBox.equals(boxRef.current)) return;
|
|
75817
75822
|
sectionBox2.call(box);
|
|
75818
75823
|
});
|
|
75819
75824
|
return {
|