@shopware-ag/dive 1.16.9 → 1.16.11
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 +6 -6
- package/build/dive.cjs.map +1 -1
- package/build/dive.js +6 -6
- package/build/dive.js.map +1 -1
- package/package.json +1 -1
- package/src/model/Model.ts +1 -1
- package/src/model/__test__/Model.test.ts +5 -3
- package/src/primitive/Primitive.ts +1 -1
- package/src/primitive/__test__/Primitive.test.ts +4 -3
- package/src/scene/root/Root.ts +3 -3
package/build/dive.cjs
CHANGED
|
@@ -1568,7 +1568,7 @@ var DIVEModel = class extends DIVENode {
|
|
|
1568
1568
|
var _a;
|
|
1569
1569
|
const worldPos = this.getWorldPosition(this._positionWorldBuffer);
|
|
1570
1570
|
const oldWorldPos = worldPos.clone();
|
|
1571
|
-
worldPos.y =
|
|
1571
|
+
worldPos.y = (this._boundingBox.max.y - this._boundingBox.min.y) / 2;
|
|
1572
1572
|
if (worldPos.y === oldWorldPos.y) return;
|
|
1573
1573
|
(_a = DIVECommunication.get(this.userData.id)) == null ? void 0 : _a.PerformAction(
|
|
1574
1574
|
"UPDATE_OBJECT",
|
|
@@ -1705,7 +1705,7 @@ var DIVEPrimitive = class extends DIVENode {
|
|
|
1705
1705
|
var _a;
|
|
1706
1706
|
const worldPos = this.getWorldPosition(this._positionWorldBuffer);
|
|
1707
1707
|
const oldWorldPos = worldPos.clone();
|
|
1708
|
-
worldPos.y =
|
|
1708
|
+
worldPos.y = (this._boundingBox.max.y - this._boundingBox.min.y) / 2;
|
|
1709
1709
|
if (worldPos.y === oldWorldPos.y) return;
|
|
1710
1710
|
(_a = DIVECommunication.get(this.userData.id)) == null ? void 0 : _a.PerformAction(
|
|
1711
1711
|
"UPDATE_OBJECT",
|
|
@@ -2273,7 +2273,7 @@ var DIVERoot = class extends import_three11.Object3D {
|
|
|
2273
2273
|
return;
|
|
2274
2274
|
}
|
|
2275
2275
|
this.detachTransformControls(sceneObject);
|
|
2276
|
-
|
|
2276
|
+
sceneObject.parent.remove(sceneObject);
|
|
2277
2277
|
}
|
|
2278
2278
|
deleteModel(model) {
|
|
2279
2279
|
const sceneObject = this.GetSceneObject(model);
|
|
@@ -2284,7 +2284,7 @@ var DIVERoot = class extends import_three11.Object3D {
|
|
|
2284
2284
|
return;
|
|
2285
2285
|
}
|
|
2286
2286
|
this.detachTransformControls(sceneObject);
|
|
2287
|
-
|
|
2287
|
+
sceneObject.parent.remove(sceneObject);
|
|
2288
2288
|
}
|
|
2289
2289
|
deletePrimitive(primitive) {
|
|
2290
2290
|
const sceneObject = this.GetSceneObject(primitive);
|
|
@@ -2295,7 +2295,7 @@ var DIVERoot = class extends import_three11.Object3D {
|
|
|
2295
2295
|
return;
|
|
2296
2296
|
}
|
|
2297
2297
|
this.detachTransformControls(sceneObject);
|
|
2298
|
-
|
|
2298
|
+
sceneObject.parent.remove(sceneObject);
|
|
2299
2299
|
}
|
|
2300
2300
|
deleteGroup(group) {
|
|
2301
2301
|
const sceneObject = this.GetSceneObject(group);
|
|
@@ -2929,7 +2929,7 @@ DIVEInfo._supportsWebXR = null;
|
|
|
2929
2929
|
// package.json
|
|
2930
2930
|
var package_default = {
|
|
2931
2931
|
name: "@shopware-ag/dive",
|
|
2932
|
-
version: "1.16.
|
|
2932
|
+
version: "1.16.11",
|
|
2933
2933
|
description: "Shopware Spatial Framework",
|
|
2934
2934
|
type: "module",
|
|
2935
2935
|
main: "./build/dive.cjs",
|