@shopware-ag/dive 1.16.11 → 1.16.13
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/build/dive.cjs +15 -6
- package/build/dive.cjs.map +1 -1
- package/build/dive.d.cts +1 -0
- package/build/dive.d.ts +1 -0
- package/build/dive.js +15 -6
- package/build/dive.js.map +1 -1
- package/package.json +3 -3
- package/src/com/Communication.ts +7 -0
- package/src/dive.ts +1 -1
- package/src/group/Group.ts +5 -1
- package/src/scene/root/Root.ts +3 -3
- package/src/scene/root/__test__/Root.test.ts +8 -0
package/build/dive.cjs
CHANGED
|
@@ -1120,6 +1120,11 @@ var _DIVECommunication = class _DIVECommunication {
|
|
|
1120
1120
|
if (!deletedObject) return false;
|
|
1121
1121
|
Object.assign(payload, deletedObject);
|
|
1122
1122
|
this.registered.delete(payload.id);
|
|
1123
|
+
Array.from(this.registered.values()).forEach((object) => {
|
|
1124
|
+
if (!object.parentId) return;
|
|
1125
|
+
if (object.parentId !== payload.id) return;
|
|
1126
|
+
object.parentId = null;
|
|
1127
|
+
});
|
|
1123
1128
|
this.scene.DeleteSceneObject(deletedObject);
|
|
1124
1129
|
return true;
|
|
1125
1130
|
}
|
|
@@ -1889,6 +1894,10 @@ var DIVEGroup = class extends DIVENode {
|
|
|
1889
1894
|
this._members = [];
|
|
1890
1895
|
this._lines = [];
|
|
1891
1896
|
}
|
|
1897
|
+
// children objects
|
|
1898
|
+
get members() {
|
|
1899
|
+
return this._members;
|
|
1900
|
+
}
|
|
1892
1901
|
SetPosition(position) {
|
|
1893
1902
|
super.SetPosition(position);
|
|
1894
1903
|
this._members.forEach((member) => {
|
|
@@ -2306,8 +2315,8 @@ var DIVERoot = class extends import_three11.Object3D {
|
|
|
2306
2315
|
return;
|
|
2307
2316
|
}
|
|
2308
2317
|
this.detachTransformControls(sceneObject);
|
|
2309
|
-
for (let i = sceneObject.
|
|
2310
|
-
this.attach(sceneObject.
|
|
2318
|
+
for (let i = sceneObject.members.length - 1; i >= 0; i--) {
|
|
2319
|
+
this.attach(sceneObject.members[i]);
|
|
2311
2320
|
}
|
|
2312
2321
|
sceneObject.parent.remove(sceneObject);
|
|
2313
2322
|
}
|
|
@@ -2929,7 +2938,7 @@ DIVEInfo._supportsWebXR = null;
|
|
|
2929
2938
|
// package.json
|
|
2930
2939
|
var package_default = {
|
|
2931
2940
|
name: "@shopware-ag/dive",
|
|
2932
|
-
version: "1.16.
|
|
2941
|
+
version: "1.16.13",
|
|
2933
2942
|
description: "Shopware Spatial Framework",
|
|
2934
2943
|
type: "module",
|
|
2935
2944
|
main: "./build/dive.cjs",
|
|
@@ -2984,8 +2993,8 @@ var package_default = {
|
|
|
2984
2993
|
"typescript-eslint": "^7.7.1"
|
|
2985
2994
|
},
|
|
2986
2995
|
scripts: {
|
|
2987
|
-
build: "tsup",
|
|
2988
|
-
dev: "tsup --watch",
|
|
2996
|
+
build: "tsup --env.DIVE_NODE_ENV production",
|
|
2997
|
+
dev: "tsup --watch --env.DIVE_NODE_ENV development",
|
|
2989
2998
|
lint: "eslint",
|
|
2990
2999
|
"lint:actions": "yarn lint:actions:transpile && yarn lint:actions:check && yarn lint:actions:cleanup",
|
|
2991
3000
|
"lint:actions:transpile": "yarn tsc --resolveJsonModule --esModuleInterop ci/lint/lint-actions.ts && mv ci/lint/lint-actions.js ci/lint/lint-actions.cjs",
|
|
@@ -3227,7 +3236,7 @@ var DIVE = class _DIVE {
|
|
|
3227
3236
|
}
|
|
3228
3237
|
};
|
|
3229
3238
|
console.log(
|
|
3230
|
-
`DIVE ${package_default.version} initialized ${
|
|
3239
|
+
`DIVE ${package_default.version} initialized ${false ? "in development mode" : ""}`
|
|
3231
3240
|
);
|
|
3232
3241
|
}
|
|
3233
3242
|
Dispose() {
|