@adatechnology/game-items-three 0.6.0 → 0.6.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/index.global.js +605 -484
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -7171,6 +7171,7 @@ function renderItemThumbnail(T, renderer, item, options = {}) {
|
|
|
7171
7171
|
}
|
|
7172
7172
|
|
|
7173
7173
|
// src/area.ts
|
|
7174
|
+
import { discardObject3D } from "@adatechnology/game-shapes-three";
|
|
7174
7175
|
import { markKitOrigin as markKitOrigin2 } from "@adatechnology/game-contracts";
|
|
7175
7176
|
import { furnitureSpec } from "@adatechnology/game-floorplan-three";
|
|
7176
7177
|
import { rng } from "@adatechnology/game-interactables";
|
|
@@ -7564,9 +7565,7 @@ function createItemsTestModule(options) {
|
|
|
7564
7565
|
}
|
|
7565
7566
|
};
|
|
7566
7567
|
const clearBoxes = () => {
|
|
7567
|
-
|
|
7568
|
-
box2.parent?.remove(box2);
|
|
7569
|
-
}
|
|
7568
|
+
discardObject3D(boxes);
|
|
7570
7569
|
boxes = [];
|
|
7571
7570
|
};
|
|
7572
7571
|
const applyBoxes = () => {
|
|
@@ -7585,7 +7584,7 @@ function createItemsTestModule(options) {
|
|
|
7585
7584
|
};
|
|
7586
7585
|
const clearFinds = () => {
|
|
7587
7586
|
if (findsGroup) {
|
|
7588
|
-
|
|
7587
|
+
discardObject3D(findsGroup);
|
|
7589
7588
|
findsGroup = null;
|
|
7590
7589
|
}
|
|
7591
7590
|
};
|
|
@@ -7843,7 +7842,9 @@ function createItemsTestModule(options) {
|
|
|
7843
7842
|
latestTHREE = lent.THREE;
|
|
7844
7843
|
const offChange = lent.bench?.onChange(onChange);
|
|
7845
7844
|
const offFrame = lent.onFrame((dt) => {
|
|
7846
|
-
for (
|
|
7845
|
+
for (let i = entries2.length - 1; i >= 0; i--) if (!entries2[i].root.parent) entries2.splice(i, 1);
|
|
7846
|
+
for (let i = shelfRoots.length - 1; i >= 0; i--) if (!shelfRoots[i].parent) shelfRoots.splice(i, 1);
|
|
7847
|
+
for (const entry of entries2) if (entry.group === "showcase") entry.root.rotation.y += dt * SPIN;
|
|
7847
7848
|
});
|
|
7848
7849
|
return () => {
|
|
7849
7850
|
offChange?.();
|