@shopware-ag/dive
Advanced tools
Comparing version 1.15.1 to 1.15.2
{ | ||
"name": "@shopware-ag/dive", | ||
"version": "1.15.1", | ||
"version": "1.15.2", | ||
"description": "Shopware Spatial Framework", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -28,3 +28,3 @@ import { DIVECommunication } from '../Communication'; | ||
import { type DIVERenderer } from '../../renderer/Renderer'; | ||
import { type COMEntity, type COMEntityType, type COMLight, type COMModel, type COMPov, type COMPrimitive } from '../types'; | ||
import { type COMGroup, type COMEntity, type COMEntityType, type COMLight, type COMModel, type COMPov, type COMPrimitive } from '../types'; | ||
import { type DIVESceneObject } from '../../types'; | ||
@@ -520,2 +520,10 @@ | ||
testCom.PerformAction('ADD_OBJECT', { | ||
entityType: "group", | ||
id: "group1", | ||
position: { x: 0, y: 0, z: 0 }, | ||
rotation: { x: 0, y: 0, z: 0 }, | ||
parent: null, | ||
} as COMGroup); | ||
const success = testCom.PerformAction('GET_ALL_SCENE_DATA', {}); | ||
@@ -558,2 +566,9 @@ expect(success).toStrictEqual({ | ||
}, | ||
groups: [{ | ||
entityType: "group", | ||
id: "group1", | ||
position: { x: 0, y: 0, z: 0 }, | ||
rotation: { x: 0, y: 0, z: 0 }, | ||
parent: null, | ||
}], | ||
}); | ||
@@ -560,0 +575,0 @@ }); |
@@ -7,3 +7,3 @@ import { Actions } from "./actions/index.ts"; | ||
import { type Color, type MeshStandardMaterial } from "three"; | ||
import { type COMLight, type COMModel, type COMEntity, type COMPov, type COMPrimitive } from "./types"; | ||
import { type COMLight, type COMModel, type COMEntity, type COMPov, type COMPrimitive, type COMGroup } from "./types"; | ||
import { type DIVEScene } from "../scene/Scene.ts"; | ||
@@ -244,2 +244,3 @@ import type DIVEToolbox from "../toolbox/Toolbox.ts"; | ||
primitives: Array.from(this.registered.values()).filter((object) => object.entityType === 'primitive') as COMPrimitive[], | ||
groups: Array.from(this.registered.values()).filter((object) => object.entityType === 'group') as COMGroup[], | ||
}; | ||
@@ -246,0 +247,0 @@ Object.assign(payload, sceneData); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
946322
14967