@shopware-ag/dive 1.16.0 → 1.16.1

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.
Files changed (143) hide show
  1. package/README.md +77 -40
  2. package/build/dive.cjs +564 -156
  3. package/build/dive.cjs.map +1 -1
  4. package/build/dive.d.cts +55 -55
  5. package/build/dive.d.ts +55 -55
  6. package/build/dive.js +603 -161
  7. package/build/dive.js.map +1 -1
  8. package/package.json +64 -60
  9. package/src/__test__/DIVE.test.ts +35 -31
  10. package/src/animation/AnimationSystem.ts +4 -4
  11. package/src/animation/__test__/AnimationSystem.test.ts +3 -3
  12. package/src/axiscamera/AxisCamera.ts +31 -11
  13. package/src/axiscamera/__test__/AxisCamera.test.ts +18 -10
  14. package/src/camera/PerspectiveCamera.ts +28 -13
  15. package/src/camera/__test__/PerspectiveCamera.test.ts +2 -2
  16. package/src/com/Communication.ts +282 -100
  17. package/src/com/__test__/Communication.test.ts +207 -141
  18. package/src/com/actions/camera/computeencompassingview.ts +7 -7
  19. package/src/com/actions/camera/getcameratransform.ts +7 -7
  20. package/src/com/actions/camera/movecamera.ts +15 -13
  21. package/src/com/actions/camera/resetcamera.ts +3 -3
  22. package/src/com/actions/camera/setcameralayer.ts +3 -3
  23. package/src/com/actions/camera/setcameratransform.ts +7 -7
  24. package/src/com/actions/camera/zoomcamera.ts +3 -3
  25. package/src/com/actions/index.ts +52 -52
  26. package/src/com/actions/media/generatemedia.ts +16 -13
  27. package/src/com/actions/object/addobject.ts +4 -4
  28. package/src/com/actions/object/deleteobject.ts +4 -4
  29. package/src/com/actions/object/deselectobject.ts +4 -4
  30. package/src/com/actions/object/getallobjects.ts +4 -4
  31. package/src/com/actions/object/getobjects.ts +4 -4
  32. package/src/com/actions/object/model/dropit.ts +3 -3
  33. package/src/com/actions/object/model/modelloaded.ts +3 -3
  34. package/src/com/actions/object/model/placeonfloor.ts +3 -3
  35. package/src/com/actions/object/selectobject.ts +4 -4
  36. package/src/com/actions/object/setparent.ts +7 -7
  37. package/src/com/actions/object/updateobject.ts +4 -4
  38. package/src/com/actions/scene/exportscene.ts +4 -4
  39. package/src/com/actions/scene/getallscenedata.ts +23 -18
  40. package/src/com/actions/scene/setbackground.ts +3 -3
  41. package/src/com/actions/scene/updatescene.ts +9 -9
  42. package/src/com/actions/toolbox/select/setgizmomode.ts +3 -3
  43. package/src/com/actions/toolbox/transform/setgizmovisible.ts +3 -3
  44. package/src/com/actions/toolbox/usetool.ts +4 -4
  45. package/src/com/types/COMBaseEntity.ts +2 -2
  46. package/src/com/types/COMEntity.ts +6 -6
  47. package/src/com/types/COMEntityType.ts +1 -1
  48. package/src/com/types/COMGeometry.ts +2 -2
  49. package/src/com/types/COMGroup.ts +3 -3
  50. package/src/com/types/COMLight.ts +3 -3
  51. package/src/com/types/COMMaterial.ts +2 -2
  52. package/src/com/types/COMModel.ts +4 -4
  53. package/src/com/types/COMPov.ts +3 -3
  54. package/src/com/types/COMPrimitive.ts +5 -5
  55. package/src/com/types/index.ts +10 -10
  56. package/src/constant/AxisHelperColors.ts +1 -1
  57. package/src/constant/GridColors.ts +1 -1
  58. package/src/controls/OrbitControls.ts +62 -29
  59. package/src/controls/__test__/OrbitControls.test.ts +133 -39
  60. package/src/dive.ts +82 -36
  61. package/src/gizmo/Gizmo.ts +21 -13
  62. package/src/gizmo/handles/AxisHandle.ts +40 -17
  63. package/src/gizmo/handles/RadialHandle.ts +39 -15
  64. package/src/gizmo/handles/ScaleHandle.ts +62 -25
  65. package/src/gizmo/plane/GizmoPlane.ts +5 -6
  66. package/src/gizmo/rotate/RotateGizmo.ts +58 -16
  67. package/src/gizmo/scale/ScaleGizmo.ts +37 -15
  68. package/src/gizmo/translate/TranslateGizmo.ts +34 -14
  69. package/src/grid/Grid.ts +13 -5
  70. package/src/grid/__test__/Grid.test.ts +5 -3
  71. package/src/group/Group.ts +9 -7
  72. package/src/group/__test__/Group.test.ts +8 -6
  73. package/src/helper/applyMixins/__test__/applyMixins.test.ts +9 -6
  74. package/src/helper/applyMixins/applyMixins.ts +6 -3
  75. package/src/helper/findInterface/__test__/findInterface.test.ts +28 -18
  76. package/src/helper/findInterface/findInterface.ts +7 -4
  77. package/src/helper/findSceneRecursive/__test__/findSceneRecursive.test.ts +1 -1
  78. package/src/helper/findSceneRecursive/findSceneRecursive.ts +1 -1
  79. package/src/helper/getObjectDelta/__test__/getObjectDelta.test.ts +43 -7
  80. package/src/helper/getObjectDelta/getObjectDelta.ts +13 -9
  81. package/src/helper/isInterface/__test__/implementsInterface.test.ts +1 -1
  82. package/src/helper/isInterface/implementsInterface.ts +6 -3
  83. package/src/info/Info.ts +20 -16
  84. package/src/info/__test__/Info.test.ts +67 -36
  85. package/src/interface/Draggable.ts +2 -2
  86. package/src/interface/Hoverable.ts +2 -2
  87. package/src/interface/Movable.ts +1 -1
  88. package/src/interface/Rotatable.ts +1 -1
  89. package/src/interface/Scalable.ts +1 -1
  90. package/src/io/IO.ts +21 -43
  91. package/src/io/__test__/IO.test.ts +16 -62
  92. package/src/io/gltf/GLTFIO.ts +34 -31
  93. package/src/io/gltf/__test__/GLTFIO.test.ts +88 -78
  94. package/src/light/PointLight.ts +42 -9
  95. package/src/light/SceneLight.ts +5 -5
  96. package/src/light/__test__/AmbientLight.test.ts +5 -4
  97. package/src/light/__test__/PointLight.test.ts +14 -10
  98. package/src/light/__test__/SceneLight.test.ts +19 -13
  99. package/src/loadingmanager/LoadingManager.ts +11 -6
  100. package/src/loadingmanager/__test__/LoadingManager.test.ts +14 -9
  101. package/src/math/__test__/DIVEMath.test.ts +1 -1
  102. package/src/math/ceil/__test__/ceilExp.test.ts +1 -1
  103. package/src/math/ceil/ceilExp.ts +2 -2
  104. package/src/math/floor/__test__/floorExp.test.ts +1 -1
  105. package/src/math/floor/floorExp.ts +2 -2
  106. package/src/math/helper/__test__/shift.test.ts +1 -1
  107. package/src/math/helper/shift.ts +1 -1
  108. package/src/math/index.ts +7 -7
  109. package/src/math/round/__test__/roundExp.test.ts +1 -1
  110. package/src/math/round/roundExp.ts +6 -3
  111. package/src/math/signedAngleTo/__test__/signedAngleTo.test.ts +10 -4
  112. package/src/math/signedAngleTo/signedAngleTo.ts +11 -4
  113. package/src/math/toFixed/__test__/toFixedExp.test.ts +9 -9
  114. package/src/math/toFixed/toFixedExp.ts +6 -3
  115. package/src/math/truncate/__test__/truncateExp.test.ts +1 -1
  116. package/src/math/truncate/truncateExp.ts +6 -3
  117. package/src/mediacreator/MediaCreator.ts +20 -10
  118. package/src/mediacreator/__test__/MediaCreator.test.ts +27 -12
  119. package/src/model/Model.ts +35 -7
  120. package/src/model/__test__/Model.test.ts +71 -44
  121. package/src/node/Node.ts +34 -12
  122. package/src/node/__test__/Node.test.ts +17 -13
  123. package/src/primitive/Primitive.ts +78 -13
  124. package/src/primitive/__test__/Primitive.test.ts +49 -38
  125. package/src/primitive/floor/Floor.ts +14 -3
  126. package/src/primitive/floor/__test__/Floor.test.ts +10 -4
  127. package/src/renderer/Renderer.ts +46 -15
  128. package/src/renderer/__test__/Renderer.test.ts +74 -24
  129. package/src/scene/Scene.ts +9 -3
  130. package/src/scene/__test__/Scene.test.ts +2 -2
  131. package/src/scene/root/Root.ts +142 -75
  132. package/src/scene/root/__test__/Root.test.ts +439 -111
  133. package/src/toolbox/BaseTool.ts +69 -33
  134. package/src/toolbox/Toolbox.ts +37 -17
  135. package/src/toolbox/__test__/BaseTool.test.ts +324 -160
  136. package/src/toolbox/__test__/Toolbox.test.ts +31 -14
  137. package/src/toolbox/select/SelectTool.ts +24 -19
  138. package/src/toolbox/select/__test__/SelectTool.test.ts +95 -59
  139. package/src/toolbox/transform/TransformTool.ts +40 -17
  140. package/src/toolbox/transform/__test__/TransformTool.test.ts +22 -15
  141. package/src/types/SceneObjects.ts +8 -8
  142. package/src/types/SceneType.ts +3 -3
  143. package/src/types/index.ts +3 -6
package/build/dive.d.cts CHANGED
@@ -141,51 +141,51 @@ declare class DIVEOrbitControls extends OrbitControls {
141
141
  }
142
142
 
143
143
  interface SET_BACKGROUND {
144
- 'PAYLOAD': {
144
+ PAYLOAD: {
145
145
  color: string | number;
146
146
  };
147
- 'RETURN': boolean;
147
+ RETURN: boolean;
148
148
  }
149
149
 
150
150
  interface RESET_CAMERA {
151
- 'PAYLOAD': {
151
+ PAYLOAD: {
152
152
  duration: number;
153
153
  };
154
- 'RETURN': boolean;
154
+ RETURN: boolean;
155
155
  }
156
156
 
157
157
  interface SET_CAMERA_LAYER {
158
- 'PAYLOAD': {
158
+ PAYLOAD: {
159
159
  layer: 'LIVE' | 'EDITOR';
160
160
  };
161
- 'RETURN': boolean;
161
+ RETURN: boolean;
162
162
  }
163
163
 
164
164
  interface ZOOM_CAMERA {
165
- 'PAYLOAD': {
165
+ PAYLOAD: {
166
166
  direction: 'IN' | 'OUT';
167
167
  by: number;
168
168
  };
169
- 'RETURN': boolean;
169
+ RETURN: boolean;
170
170
  }
171
171
 
172
172
  interface SET_GIZMO_MODE {
173
- 'PAYLOAD': {
173
+ PAYLOAD: {
174
174
  mode: 'translate' | 'rotate' | 'scale';
175
175
  };
176
- 'RETURN': boolean;
176
+ RETURN: boolean;
177
177
  }
178
178
 
179
179
  interface SET_CAMERA_TRANSFORM {
180
- 'PAYLOAD': {
180
+ PAYLOAD: {
181
181
  position: Vector3Like;
182
182
  target: Vector3Like;
183
183
  };
184
- 'RETURN': boolean;
184
+ RETURN: boolean;
185
185
  }
186
186
 
187
187
  interface MOVE_CAMERA {
188
- 'PAYLOAD': {
188
+ PAYLOAD: {
189
189
  position: Vector3Like;
190
190
  target: Vector3Like;
191
191
  locked: boolean;
@@ -195,14 +195,14 @@ interface MOVE_CAMERA {
195
195
  locked: boolean;
196
196
  duration: number;
197
197
  };
198
- 'RETURN': boolean;
198
+ RETURN: boolean;
199
199
  }
200
200
 
201
201
  interface PLACE_ON_FLOOR {
202
- 'PAYLOAD': {
202
+ PAYLOAD: {
203
203
  id: string;
204
204
  };
205
- 'RETURN': boolean;
205
+ RETURN: boolean;
206
206
  }
207
207
 
208
208
  type COMEntityType = 'pov' | 'light' | 'model' | 'primitive' | 'group';
@@ -274,56 +274,56 @@ type COMGroup = COMBaseEntity & {
274
274
  type COMEntity = COMPov | COMLight | COMModel | COMPrimitive | COMGroup;
275
275
 
276
276
  interface GET_ALL_OBJECTS {
277
- 'PAYLOAD': Map<string, COMEntity>;
278
- 'RETURN': Map<string, COMEntity>;
277
+ PAYLOAD: Map<string, COMEntity>;
278
+ RETURN: Map<string, COMEntity>;
279
279
  }
280
280
 
281
281
  interface GET_OBJECTS {
282
- 'PAYLOAD': {
282
+ PAYLOAD: {
283
283
  ids: string[];
284
284
  };
285
- 'RETURN': COMEntity[];
285
+ RETURN: COMEntity[];
286
286
  }
287
287
 
288
288
  interface ADD_OBJECT {
289
- 'PAYLOAD': COMEntity;
290
- 'RETURN': boolean;
289
+ PAYLOAD: COMEntity;
290
+ RETURN: boolean;
291
291
  }
292
292
 
293
293
  interface DELETE_OBJECT {
294
- 'PAYLOAD': Partial<COMEntity> & {
294
+ PAYLOAD: Partial<COMEntity> & {
295
295
  id: string;
296
296
  };
297
- 'RETURN': boolean;
297
+ RETURN: boolean;
298
298
  }
299
299
 
300
300
  interface UPDATE_OBJECT {
301
- 'PAYLOAD': Partial<COMEntity> & {
301
+ PAYLOAD: Partial<COMEntity> & {
302
302
  id: string;
303
303
  };
304
- 'RETURN': boolean;
304
+ RETURN: boolean;
305
305
  }
306
306
 
307
307
  interface MODEL_LOADED {
308
- 'PAYLOAD': {
308
+ PAYLOAD: {
309
309
  id: string;
310
310
  };
311
- 'RETURN': boolean;
311
+ RETURN: boolean;
312
312
  }
313
313
 
314
314
  interface UPDATE_SCENE {
315
- 'PAYLOAD': {
315
+ PAYLOAD: {
316
316
  name?: string;
317
317
  backgroundColor?: string | number;
318
318
  gridEnabled?: boolean;
319
319
  floorEnabled?: boolean;
320
320
  floorColor?: string | number;
321
321
  };
322
- 'RETURN': boolean;
322
+ RETURN: boolean;
323
323
  }
324
324
 
325
325
  interface GENERATE_MEDIA {
326
- 'PAYLOAD': ({
326
+ PAYLOAD: ({
327
327
  position: Vector3Like;
328
328
  target: Vector3Like;
329
329
  } | {
@@ -333,7 +333,7 @@ interface GENERATE_MEDIA {
333
333
  height: number;
334
334
  dataUri: string;
335
335
  };
336
- 'RETURN': boolean;
336
+ RETURN: boolean;
337
337
  }
338
338
 
339
339
  type SceneData = {
@@ -353,47 +353,47 @@ type SceneData = {
353
353
  primitives: COMPrimitive[];
354
354
  };
355
355
  interface GET_ALL_SCENE_DATA {
356
- 'PAYLOAD': object;
357
- 'RETURN': SceneData;
356
+ PAYLOAD: object;
357
+ RETURN: SceneData;
358
358
  }
359
359
 
360
360
  interface SELECT_OBJECT {
361
- 'PAYLOAD': Partial<COMEntity> & {
361
+ PAYLOAD: Partial<COMEntity> & {
362
362
  id: string;
363
363
  };
364
- 'RETURN': boolean;
364
+ RETURN: boolean;
365
365
  }
366
366
 
367
367
  interface DESELECT_OBJECT {
368
- 'PAYLOAD': Partial<COMEntity> & {
368
+ PAYLOAD: Partial<COMEntity> & {
369
369
  id: string;
370
370
  };
371
- 'RETURN': boolean;
371
+ RETURN: boolean;
372
372
  }
373
373
 
374
374
  interface GET_CAMERA_TRANSFORM {
375
- 'PAYLOAD': object;
376
- 'RETURN': {
375
+ PAYLOAD: object;
376
+ RETURN: {
377
377
  position: Vector3Like;
378
378
  target: Vector3Like;
379
379
  };
380
380
  }
381
381
 
382
382
  interface DROP_IT {
383
- 'PAYLOAD': {
383
+ PAYLOAD: {
384
384
  id: string;
385
385
  };
386
- 'RETURN': boolean;
386
+ RETURN: boolean;
387
387
  }
388
388
 
389
389
  interface SET_GIZMO_VISIBILITY {
390
- 'PAYLOAD': boolean;
391
- 'RETURN': boolean;
390
+ PAYLOAD: boolean;
391
+ RETURN: boolean;
392
392
  }
393
393
 
394
394
  interface COMPUTE_ENCOMPASSING_VIEW {
395
- 'PAYLOAD': object;
396
- 'RETURN': {
395
+ PAYLOAD: object;
396
+ RETURN: {
397
397
  position: Vector3Like;
398
398
  target: Vector3Like;
399
399
  };
@@ -568,7 +568,7 @@ declare class DIVEPrimitive extends DIVENode {
568
568
  type DIVESceneObject = DIVEModel | DIVEGroup | DIVEPrimitive | DIVEAmbientLight | DIVEPointLight | DIVESceneLight;
569
569
 
570
570
  type DIVESceneFileType = {
571
- 'glb': GLTF$1;
571
+ glb: GLTF$1;
572
572
  };
573
573
 
574
574
  /**
@@ -796,29 +796,29 @@ declare class DIVEToolbox {
796
796
  }
797
797
 
798
798
  interface USE_TOOL {
799
- 'PAYLOAD': {
799
+ PAYLOAD: {
800
800
  tool: ToolType;
801
801
  };
802
- 'RETURN': boolean;
802
+ RETURN: boolean;
803
803
  }
804
804
 
805
805
  interface SET_PARENT {
806
- 'PAYLOAD': {
806
+ PAYLOAD: {
807
807
  object: Partial<COMEntity> & {
808
808
  id: string;
809
809
  };
810
- parent: Partial<COMEntity> & {
810
+ parent: (Partial<COMEntity> & {
811
811
  id: string;
812
- } | null;
812
+ }) | null;
813
813
  };
814
- 'RETURN': boolean;
814
+ RETURN: boolean;
815
815
  }
816
816
 
817
817
  interface EXPORT_SCENE {
818
- 'PAYLOAD': {
818
+ PAYLOAD: {
819
819
  type: keyof DIVESceneFileType;
820
820
  };
821
- 'RETURN': Promise<string | null>;
821
+ RETURN: Promise<string | null>;
822
822
  }
823
823
 
824
824
  type Actions = {
package/build/dive.d.ts CHANGED
@@ -141,51 +141,51 @@ declare class DIVEOrbitControls extends OrbitControls {
141
141
  }
142
142
 
143
143
  interface SET_BACKGROUND {
144
- 'PAYLOAD': {
144
+ PAYLOAD: {
145
145
  color: string | number;
146
146
  };
147
- 'RETURN': boolean;
147
+ RETURN: boolean;
148
148
  }
149
149
 
150
150
  interface RESET_CAMERA {
151
- 'PAYLOAD': {
151
+ PAYLOAD: {
152
152
  duration: number;
153
153
  };
154
- 'RETURN': boolean;
154
+ RETURN: boolean;
155
155
  }
156
156
 
157
157
  interface SET_CAMERA_LAYER {
158
- 'PAYLOAD': {
158
+ PAYLOAD: {
159
159
  layer: 'LIVE' | 'EDITOR';
160
160
  };
161
- 'RETURN': boolean;
161
+ RETURN: boolean;
162
162
  }
163
163
 
164
164
  interface ZOOM_CAMERA {
165
- 'PAYLOAD': {
165
+ PAYLOAD: {
166
166
  direction: 'IN' | 'OUT';
167
167
  by: number;
168
168
  };
169
- 'RETURN': boolean;
169
+ RETURN: boolean;
170
170
  }
171
171
 
172
172
  interface SET_GIZMO_MODE {
173
- 'PAYLOAD': {
173
+ PAYLOAD: {
174
174
  mode: 'translate' | 'rotate' | 'scale';
175
175
  };
176
- 'RETURN': boolean;
176
+ RETURN: boolean;
177
177
  }
178
178
 
179
179
  interface SET_CAMERA_TRANSFORM {
180
- 'PAYLOAD': {
180
+ PAYLOAD: {
181
181
  position: Vector3Like;
182
182
  target: Vector3Like;
183
183
  };
184
- 'RETURN': boolean;
184
+ RETURN: boolean;
185
185
  }
186
186
 
187
187
  interface MOVE_CAMERA {
188
- 'PAYLOAD': {
188
+ PAYLOAD: {
189
189
  position: Vector3Like;
190
190
  target: Vector3Like;
191
191
  locked: boolean;
@@ -195,14 +195,14 @@ interface MOVE_CAMERA {
195
195
  locked: boolean;
196
196
  duration: number;
197
197
  };
198
- 'RETURN': boolean;
198
+ RETURN: boolean;
199
199
  }
200
200
 
201
201
  interface PLACE_ON_FLOOR {
202
- 'PAYLOAD': {
202
+ PAYLOAD: {
203
203
  id: string;
204
204
  };
205
- 'RETURN': boolean;
205
+ RETURN: boolean;
206
206
  }
207
207
 
208
208
  type COMEntityType = 'pov' | 'light' | 'model' | 'primitive' | 'group';
@@ -274,56 +274,56 @@ type COMGroup = COMBaseEntity & {
274
274
  type COMEntity = COMPov | COMLight | COMModel | COMPrimitive | COMGroup;
275
275
 
276
276
  interface GET_ALL_OBJECTS {
277
- 'PAYLOAD': Map<string, COMEntity>;
278
- 'RETURN': Map<string, COMEntity>;
277
+ PAYLOAD: Map<string, COMEntity>;
278
+ RETURN: Map<string, COMEntity>;
279
279
  }
280
280
 
281
281
  interface GET_OBJECTS {
282
- 'PAYLOAD': {
282
+ PAYLOAD: {
283
283
  ids: string[];
284
284
  };
285
- 'RETURN': COMEntity[];
285
+ RETURN: COMEntity[];
286
286
  }
287
287
 
288
288
  interface ADD_OBJECT {
289
- 'PAYLOAD': COMEntity;
290
- 'RETURN': boolean;
289
+ PAYLOAD: COMEntity;
290
+ RETURN: boolean;
291
291
  }
292
292
 
293
293
  interface DELETE_OBJECT {
294
- 'PAYLOAD': Partial<COMEntity> & {
294
+ PAYLOAD: Partial<COMEntity> & {
295
295
  id: string;
296
296
  };
297
- 'RETURN': boolean;
297
+ RETURN: boolean;
298
298
  }
299
299
 
300
300
  interface UPDATE_OBJECT {
301
- 'PAYLOAD': Partial<COMEntity> & {
301
+ PAYLOAD: Partial<COMEntity> & {
302
302
  id: string;
303
303
  };
304
- 'RETURN': boolean;
304
+ RETURN: boolean;
305
305
  }
306
306
 
307
307
  interface MODEL_LOADED {
308
- 'PAYLOAD': {
308
+ PAYLOAD: {
309
309
  id: string;
310
310
  };
311
- 'RETURN': boolean;
311
+ RETURN: boolean;
312
312
  }
313
313
 
314
314
  interface UPDATE_SCENE {
315
- 'PAYLOAD': {
315
+ PAYLOAD: {
316
316
  name?: string;
317
317
  backgroundColor?: string | number;
318
318
  gridEnabled?: boolean;
319
319
  floorEnabled?: boolean;
320
320
  floorColor?: string | number;
321
321
  };
322
- 'RETURN': boolean;
322
+ RETURN: boolean;
323
323
  }
324
324
 
325
325
  interface GENERATE_MEDIA {
326
- 'PAYLOAD': ({
326
+ PAYLOAD: ({
327
327
  position: Vector3Like;
328
328
  target: Vector3Like;
329
329
  } | {
@@ -333,7 +333,7 @@ interface GENERATE_MEDIA {
333
333
  height: number;
334
334
  dataUri: string;
335
335
  };
336
- 'RETURN': boolean;
336
+ RETURN: boolean;
337
337
  }
338
338
 
339
339
  type SceneData = {
@@ -353,47 +353,47 @@ type SceneData = {
353
353
  primitives: COMPrimitive[];
354
354
  };
355
355
  interface GET_ALL_SCENE_DATA {
356
- 'PAYLOAD': object;
357
- 'RETURN': SceneData;
356
+ PAYLOAD: object;
357
+ RETURN: SceneData;
358
358
  }
359
359
 
360
360
  interface SELECT_OBJECT {
361
- 'PAYLOAD': Partial<COMEntity> & {
361
+ PAYLOAD: Partial<COMEntity> & {
362
362
  id: string;
363
363
  };
364
- 'RETURN': boolean;
364
+ RETURN: boolean;
365
365
  }
366
366
 
367
367
  interface DESELECT_OBJECT {
368
- 'PAYLOAD': Partial<COMEntity> & {
368
+ PAYLOAD: Partial<COMEntity> & {
369
369
  id: string;
370
370
  };
371
- 'RETURN': boolean;
371
+ RETURN: boolean;
372
372
  }
373
373
 
374
374
  interface GET_CAMERA_TRANSFORM {
375
- 'PAYLOAD': object;
376
- 'RETURN': {
375
+ PAYLOAD: object;
376
+ RETURN: {
377
377
  position: Vector3Like;
378
378
  target: Vector3Like;
379
379
  };
380
380
  }
381
381
 
382
382
  interface DROP_IT {
383
- 'PAYLOAD': {
383
+ PAYLOAD: {
384
384
  id: string;
385
385
  };
386
- 'RETURN': boolean;
386
+ RETURN: boolean;
387
387
  }
388
388
 
389
389
  interface SET_GIZMO_VISIBILITY {
390
- 'PAYLOAD': boolean;
391
- 'RETURN': boolean;
390
+ PAYLOAD: boolean;
391
+ RETURN: boolean;
392
392
  }
393
393
 
394
394
  interface COMPUTE_ENCOMPASSING_VIEW {
395
- 'PAYLOAD': object;
396
- 'RETURN': {
395
+ PAYLOAD: object;
396
+ RETURN: {
397
397
  position: Vector3Like;
398
398
  target: Vector3Like;
399
399
  };
@@ -568,7 +568,7 @@ declare class DIVEPrimitive extends DIVENode {
568
568
  type DIVESceneObject = DIVEModel | DIVEGroup | DIVEPrimitive | DIVEAmbientLight | DIVEPointLight | DIVESceneLight;
569
569
 
570
570
  type DIVESceneFileType = {
571
- 'glb': GLTF$1;
571
+ glb: GLTF$1;
572
572
  };
573
573
 
574
574
  /**
@@ -796,29 +796,29 @@ declare class DIVEToolbox {
796
796
  }
797
797
 
798
798
  interface USE_TOOL {
799
- 'PAYLOAD': {
799
+ PAYLOAD: {
800
800
  tool: ToolType;
801
801
  };
802
- 'RETURN': boolean;
802
+ RETURN: boolean;
803
803
  }
804
804
 
805
805
  interface SET_PARENT {
806
- 'PAYLOAD': {
806
+ PAYLOAD: {
807
807
  object: Partial<COMEntity> & {
808
808
  id: string;
809
809
  };
810
- parent: Partial<COMEntity> & {
810
+ parent: (Partial<COMEntity> & {
811
811
  id: string;
812
- } | null;
812
+ }) | null;
813
813
  };
814
- 'RETURN': boolean;
814
+ RETURN: boolean;
815
815
  }
816
816
 
817
817
  interface EXPORT_SCENE {
818
- 'PAYLOAD': {
818
+ PAYLOAD: {
819
819
  type: keyof DIVESceneFileType;
820
820
  };
821
- 'RETURN': Promise<string | null>;
821
+ RETURN: Promise<string | null>;
822
822
  }
823
823
 
824
824
  type Actions = {