@shopware-ag/dive 1.19.1-beta.0 → 1.19.1-beta.10

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 (416) hide show
  1. package/README.md +45 -483
  2. package/build/chunks/AssetLoader-BdYPac5u.cjs +2 -0
  3. package/build/chunks/AssetLoader-oPgCU9ZZ.mjs +1948 -0
  4. package/build/chunks/MediaCreator-BlYNy7LU.mjs +59 -0
  5. package/build/chunks/MediaCreator-DdjURG4G.cjs +1 -0
  6. package/build/chunks/SelectTool-BqLz-UL1.mjs +728 -0
  7. package/build/chunks/SelectTool-kPSa4nt3.cjs +1 -0
  8. package/build/chunks/State-DKVvDtWu.mjs +4317 -0
  9. package/build/chunks/State-D_1zrq4o.cjs +27 -0
  10. package/build/chunks/SystemInfo-BME6iEuf.mjs +142 -0
  11. package/build/chunks/SystemInfo-DSXFfmeD.cjs +1 -0
  12. package/build/chunks/VisibilityLayerMask-BAKNt1Mg.mjs +9 -0
  13. package/build/chunks/VisibilityLayerMask-DKmSVS5g.cjs +1 -0
  14. package/build/chunks/fflate.module-CK2avau9.mjs +615 -0
  15. package/build/chunks/fflate.module-CQrdFCK2.cjs +6 -0
  16. package/build/index.cjs +30 -0
  17. package/build/index.d.ts +2 -0
  18. package/build/index.mjs +1756 -0
  19. package/build/src/{primitive → components}/floor/Floor.d.ts +1 -1
  20. package/build/src/{gizmo → components/gizmo}/Gizmo.d.ts +3 -3
  21. package/build/src/{gizmo → components/gizmo}/handles/AxisHandle.d.ts +3 -3
  22. package/build/src/{gizmo → components/gizmo}/handles/RadialHandle.d.ts +3 -3
  23. package/build/src/{gizmo → components/gizmo}/handles/ScaleHandle.d.ts +3 -3
  24. package/build/src/{gizmo → components/gizmo}/rotate/RotateGizmo.d.ts +3 -3
  25. package/build/src/{gizmo → components/gizmo}/scale/ScaleGizmo.d.ts +4 -4
  26. package/build/src/{gizmo → components/gizmo}/translate/TranslateGizmo.d.ts +3 -3
  27. package/build/src/{group → components/group}/Group.d.ts +8 -3
  28. package/build/src/components/index.d.ts +9 -0
  29. package/build/src/{light → components/light}/AmbientLight.d.ts +1 -1
  30. package/build/src/{light → components/light}/PointLight.d.ts +3 -3
  31. package/build/src/{light → components/light}/SceneLight.d.ts +1 -1
  32. package/build/src/components/light/index.d.ts +3 -0
  33. package/build/src/{model → components/model}/Model.d.ts +1 -1
  34. package/build/src/{node → components/node}/Node.d.ts +3 -3
  35. package/build/src/{primitive → components/primitive}/Primitive.d.ts +2 -2
  36. package/build/src/{scene → components}/root/Root.d.ts +6 -3
  37. package/build/src/constants/index.d.ts +3 -0
  38. package/build/src/core/Dive.d.ts +40 -0
  39. package/build/src/core/index.d.ts +1 -0
  40. package/build/src/engine/Engine.d.ts +31 -0
  41. package/build/src/{camera → engine/camera}/PerspectiveCamera.d.ts +7 -4
  42. package/build/src/engine/clock/Clock.d.ts +19 -0
  43. package/build/src/engine/index.d.ts +1 -0
  44. package/build/src/engine/renderer/Renderer.d.ts +38 -0
  45. package/build/src/engine/resize/ResizeManager.d.ts +9 -0
  46. package/build/src/{scene → engine/scene}/Scene.d.ts +6 -15
  47. package/build/src/{scene → engine/scene}/xrroot/XRRoot.d.ts +3 -3
  48. package/build/src/{scene → engine/scene}/xrroot/xrlightroot/XRLightRoot.d.ts +2 -2
  49. package/build/src/error/ar-compatibility/ar-compatibility-error.d.ts +12 -0
  50. package/build/src/error/file-type/file-type-error.d.ts +4 -0
  51. package/build/src/error/index.d.ts +4 -0
  52. package/build/src/error/network/network-error.d.ts +5 -0
  53. package/build/src/error/parse/parse-error.d.ts +4 -0
  54. package/build/src/{helper → helpers}/findSceneRecursive/findSceneRecursive.d.ts +1 -1
  55. package/build/src/helpers/getFileTypeFromUri/getFileTypeFromUri.d.ts +6 -0
  56. package/build/src/helpers/index.d.ts +8 -0
  57. package/build/src/helpers/isFileTypeSupported/isFileTypeSupported.d.ts +7 -0
  58. package/build/src/index.d.ts +11 -0
  59. package/build/src/{interface → interfaces}/Draggable.d.ts +1 -1
  60. package/build/src/interfaces/index.d.ts +6 -0
  61. package/build/src/modules/_system/ModuleImporter.d.ts +46 -0
  62. package/build/src/modules/animation/AnimationSystem.cjs +1 -0
  63. package/build/src/modules/animation/AnimationSystem.d.ts +36 -0
  64. package/build/src/modules/animation/AnimationSystem.mjs +96 -0
  65. package/build/src/modules/animation/animator/Animator.d.ts +26 -0
  66. package/build/src/modules/animation/types/AnimatorParameters.d.ts +7 -0
  67. package/build/src/modules/ar/ARSystem.cjs +1 -0
  68. package/build/src/{ar/AR.d.ts → modules/ar/ARSystem.d.ts} +27 -0
  69. package/build/src/modules/ar/ARSystem.mjs +163 -0
  70. package/build/src/{ar → modules/ar}/arquicklook/ARQuickLook.d.ts +2 -1
  71. package/build/src/{ar → modules/ar}/sceneviewer/SceneViewer.d.ts +1 -1
  72. package/build/src/{ar → modules/ar}/webxr/WebXR.d.ts +3 -4
  73. package/build/src/{ar → modules/ar}/webxr/controller/WebXRController.d.ts +3 -3
  74. package/build/src/{ar → modules/ar}/webxr/origin/WebXROrigin.d.ts +2 -2
  75. package/build/src/{ar → modules/ar}/webxr/raycaster/WebXRRaycaster.d.ts +4 -4
  76. package/build/src/{ar → modules/ar}/webxr/raycaster/ar/WebXRRaycasterAR.d.ts +2 -2
  77. package/build/src/{ar → modules/ar}/webxr/raycaster/three/WebXRRaycasterTHREE.d.ts +3 -3
  78. package/build/src/{ar → modules/ar}/webxr/touchscreencontrols/WebXRTouchscreenControls.d.ts +1 -1
  79. package/build/src/modules/asset/converter/AssetConverter.cjs +1 -0
  80. package/build/src/modules/asset/converter/AssetConverter.d.ts +30 -0
  81. package/build/src/modules/asset/converter/AssetConverter.mjs +22 -0
  82. package/build/src/modules/asset/exporter/AssetExporter.cjs +164 -0
  83. package/build/src/modules/asset/exporter/AssetExporter.d.ts +46 -0
  84. package/build/src/modules/asset/exporter/AssetExporter.mjs +1621 -0
  85. package/build/src/modules/asset/loader/AssetLoader.cjs +1 -0
  86. package/build/src/modules/asset/loader/AssetLoader.d.ts +29 -0
  87. package/build/src/modules/asset/loader/AssetLoader.mjs +7 -0
  88. package/build/src/modules/axiscamera/AxisCamera.d.ts +21 -0
  89. package/build/src/modules/controller/orbit/OrbitController.d.ts +30 -0
  90. package/build/src/modules/index.d.ts +2 -0
  91. package/build/src/modules/mediacreator/MediaCreator.cjs +1 -0
  92. package/build/src/modules/mediacreator/MediaCreator.d.ts +44 -0
  93. package/build/src/modules/mediacreator/MediaCreator.mjs +5 -0
  94. package/build/src/modules/state/ActionRegistry.d.ts +26 -0
  95. package/build/src/modules/state/State.cjs +1 -0
  96. package/build/src/modules/state/State.d.ts +53 -0
  97. package/build/src/modules/state/State.mjs +40 -0
  98. package/build/src/modules/state/actions/action.d.ts +36 -0
  99. package/build/src/modules/state/actions/ar/index.d.ts +1 -0
  100. package/build/src/modules/state/actions/ar/launchar.d.ts +15 -0
  101. package/build/src/modules/state/actions/camera/computeencompassingview.d.ts +12 -0
  102. package/build/src/modules/state/actions/camera/getcameratransform.d.ts +12 -0
  103. package/build/src/modules/state/actions/camera/index.d.ts +6 -0
  104. package/build/src/modules/state/actions/camera/lockcamera.d.ts +8 -0
  105. package/build/src/modules/state/actions/camera/movecamera.d.ts +29 -0
  106. package/build/src/modules/state/actions/camera/setcameralayer.d.ts +12 -0
  107. package/build/src/modules/state/actions/camera/setcameratransform.d.ts +15 -0
  108. package/build/src/modules/state/actions/camera/zoomcamera.d.ts +14 -0
  109. package/build/src/modules/state/actions/index.d.ts +7 -0
  110. package/build/src/modules/state/actions/media/generatemedia.d.ts +25 -0
  111. package/build/src/modules/state/actions/media/index.d.ts +1 -0
  112. package/build/src/modules/state/actions/object/addobject.d.ts +9 -0
  113. package/build/src/modules/state/actions/object/deleteobject.d.ts +13 -0
  114. package/build/src/modules/state/actions/object/deselectobject.d.ts +13 -0
  115. package/build/src/modules/state/actions/object/dropit.d.ts +12 -0
  116. package/build/src/modules/state/actions/object/getallobjects.d.ts +9 -0
  117. package/build/src/modules/state/actions/object/getobjects.d.ts +13 -0
  118. package/build/src/modules/state/actions/object/index.d.ts +11 -0
  119. package/build/src/modules/state/actions/object/modelloaded.d.ts +12 -0
  120. package/build/src/modules/state/actions/object/placeonfloor.d.ts +12 -0
  121. package/build/src/modules/state/actions/object/selectobject.d.ts +13 -0
  122. package/build/src/modules/state/actions/object/setparent.d.ts +23 -0
  123. package/build/src/modules/state/actions/object/updateobject.d.ts +13 -0
  124. package/build/src/modules/state/actions/renderer/index.d.ts +1 -0
  125. package/build/src/modules/state/actions/renderer/startrender.d.ts +8 -0
  126. package/build/src/modules/state/actions/scene/exportscene.d.ts +13 -0
  127. package/build/src/modules/state/actions/scene/getallscenedata.d.ts +9 -0
  128. package/build/src/modules/state/actions/scene/index.d.ts +4 -0
  129. package/build/src/modules/state/actions/scene/setbackground.d.ts +12 -0
  130. package/build/src/modules/state/actions/scene/updatescene.d.ts +20 -0
  131. package/build/src/modules/state/actions/toolbox/index.d.ts +4 -0
  132. package/build/src/modules/state/actions/toolbox/setgizmomode.d.ts +12 -0
  133. package/build/src/modules/state/actions/toolbox/setgizmoscalelinked.d.ts +8 -0
  134. package/build/src/modules/state/actions/toolbox/setgizmovisible.d.ts +8 -0
  135. package/build/src/modules/state/actions/toolbox/usetool.d.ts +13 -0
  136. package/build/src/modules/state/actions/types.d.ts +19 -0
  137. package/build/src/modules/state/types/ActionTypes.d.ts +19 -0
  138. package/build/src/{com → modules/state}/types/COMGroup.d.ts +2 -0
  139. package/build/src/{com → modules/state}/types/COMLight.d.ts +2 -0
  140. package/build/src/{com → modules/state}/types/COMModel.d.ts +2 -0
  141. package/build/src/{com → modules/state}/types/COMPov.d.ts +2 -0
  142. package/build/src/{com → modules/state}/types/COMPrimitive.d.ts +2 -0
  143. package/build/src/modules/state/types/index.d.ts +11 -0
  144. package/build/src/modules/systeminfo/SystemInfo.cjs +1 -0
  145. package/build/src/{info/Info.d.ts → modules/systeminfo/SystemInfo.d.ts} +39 -7
  146. package/build/src/modules/systeminfo/SystemInfo.mjs +5 -0
  147. package/build/src/{toolbox → modules/toolbox}/BaseTool.d.ts +6 -6
  148. package/build/src/modules/toolbox/Toolbox.cjs +1 -0
  149. package/build/src/{toolbox → modules/toolbox}/Toolbox.d.ts +12 -8
  150. package/build/src/modules/toolbox/Toolbox.mjs +100 -0
  151. package/build/src/{toolbox → modules/toolbox}/select/SelectTool.d.ts +6 -6
  152. package/build/src/{toolbox → modules/toolbox}/transform/TransformTool.d.ts +6 -6
  153. package/build/src/types/SceneData.d.ts +1 -1
  154. package/build/src/types/SceneObjects.d.ts +6 -6
  155. package/build/src/types/UUID.d.ts +1 -0
  156. package/build/src/types/file/FileTypes.d.ts +16 -0
  157. package/build/src/types/file/index.d.ts +1 -0
  158. package/build/src/types/index.d.ts +7 -8
  159. package/package.json +64 -27
  160. package/build/dive.cjs +0 -3862
  161. package/build/dive.cjs.map +0 -1
  162. package/build/dive.d.ts +0 -6
  163. package/build/dive.js +0 -3862
  164. package/build/dive.js.map +0 -1
  165. package/build/dive.mjs +0 -26111
  166. package/build/dive.mjs.map +0 -1
  167. package/build/src/animation/AnimationSystem.d.ts +0 -16
  168. package/build/src/axiscamera/AxisCamera.d.ts +0 -18
  169. package/build/src/com/Communication.d.ts +0 -74
  170. package/build/src/com/actions/camera/computeencompassingview.d.ts +0 -9
  171. package/build/src/com/actions/camera/getcameratransform.d.ts +0 -9
  172. package/build/src/com/actions/camera/movecamera.d.ts +0 -15
  173. package/build/src/com/actions/camera/resetcamera.d.ts +0 -7
  174. package/build/src/com/actions/camera/setcameralayer.d.ts +0 -7
  175. package/build/src/com/actions/camera/setcameratransform.d.ts +0 -9
  176. package/build/src/com/actions/camera/zoomcamera.d.ts +0 -8
  177. package/build/src/com/actions/index.d.ts +0 -60
  178. package/build/src/com/actions/media/generatemedia.d.ts +0 -14
  179. package/build/src/com/actions/object/addobject.d.ts +0 -6
  180. package/build/src/com/actions/object/deleteobject.d.ts +0 -8
  181. package/build/src/com/actions/object/deselectobject.d.ts +0 -8
  182. package/build/src/com/actions/object/getallobjects.d.ts +0 -6
  183. package/build/src/com/actions/object/getobjects.d.ts +0 -8
  184. package/build/src/com/actions/object/model/dropit.d.ts +0 -7
  185. package/build/src/com/actions/object/model/modelloaded.d.ts +0 -7
  186. package/build/src/com/actions/object/model/placeonfloor.d.ts +0 -7
  187. package/build/src/com/actions/object/selectobject.d.ts +0 -8
  188. package/build/src/com/actions/object/setparent.d.ts +0 -13
  189. package/build/src/com/actions/object/updateobject.d.ts +0 -8
  190. package/build/src/com/actions/renderer/startrender.d.ts +0 -5
  191. package/build/src/com/actions/scene/exportscene.d.ts +0 -8
  192. package/build/src/com/actions/scene/getallscenedata.d.ts +0 -6
  193. package/build/src/com/actions/scene/launchar.d.ts +0 -9
  194. package/build/src/com/actions/scene/setbackground.d.ts +0 -7
  195. package/build/src/com/actions/scene/updatescene.d.ts +0 -11
  196. package/build/src/com/actions/toolbox/select/setgizmomode.d.ts +0 -7
  197. package/build/src/com/actions/toolbox/transform/setgizmoscalelinked.d.ts +0 -5
  198. package/build/src/com/actions/toolbox/transform/setgizmovisible.d.ts +0 -5
  199. package/build/src/com/actions/toolbox/usetool.d.ts +0 -8
  200. package/build/src/com/types/index.d.ts +0 -11
  201. package/build/src/controls/OrbitControls.d.ts +0 -38
  202. package/build/src/converter/Converter.d.ts +0 -21
  203. package/build/src/dive.d.ts +0 -65
  204. package/build/src/exporter/Exporter.d.ts +0 -11
  205. package/build/src/io/IO.d.ts +0 -10
  206. package/build/src/io/gltf/GLTFIO.d.ts +0 -12
  207. package/build/src/loader/Loader.d.ts +0 -11
  208. package/build/src/mediacreator/MediaCreator.d.ts +0 -17
  209. package/build/src/module/Module.d.ts +0 -8
  210. package/build/src/renderer/Renderer.d.ts +0 -69
  211. package/build/src/types/ExporterOptions.d.ts +0 -15
  212. package/build/src/types/FileTypes.d.ts +0 -27
  213. package/src/__test__/DIVE.test.ts +0 -274
  214. package/src/animation/AnimationSystem.ts +0 -34
  215. package/src/animation/__test__/AnimationSystem.test.ts +0 -40
  216. package/src/ar/AR.ts +0 -101
  217. package/src/ar/__test__/AR.test.ts +0 -276
  218. package/src/ar/arquicklook/ARQuickLook.ts +0 -53
  219. package/src/ar/arquicklook/__test__/ARQuickLook.test.ts +0 -144
  220. package/src/ar/sceneviewer/SceneViewer.ts +0 -119
  221. package/src/ar/sceneviewer/__test__/SceneViewer.test.ts +0 -190
  222. package/src/ar/webxr/WebXR.ts +0 -177
  223. package/src/ar/webxr/controller/WebXRController.ts +0 -340
  224. package/src/ar/webxr/crosshair/WebXRCrosshair.ts +0 -35
  225. package/src/ar/webxr/origin/WebXROrigin.ts +0 -192
  226. package/src/ar/webxr/overlay/Overlay.ts +0 -50
  227. package/src/ar/webxr/raycaster/WebXRRaycaster.ts +0 -131
  228. package/src/ar/webxr/raycaster/ar/WebXRRaycasterAR.ts +0 -102
  229. package/src/ar/webxr/raycaster/three/WebXRRaycasterTHREE.ts +0 -49
  230. package/src/ar/webxr/touchscreencontrols/WebXRTouchscreenControls.ts +0 -356
  231. package/src/axiscamera/AxisCamera.ts +0 -108
  232. package/src/axiscamera/__test__/AxisCamera.test.ts +0 -150
  233. package/src/camera/PerspectiveCamera.ts +0 -63
  234. package/src/camera/__test__/PerspectiveCamera.test.ts +0 -36
  235. package/src/com/Communication.ts +0 -806
  236. package/src/com/__test__/Communication.test.ts +0 -1030
  237. package/src/com/actions/camera/computeencompassingview.ts +0 -10
  238. package/src/com/actions/camera/getcameratransform.ts +0 -10
  239. package/src/com/actions/camera/movecamera.ts +0 -18
  240. package/src/com/actions/camera/resetcamera.ts +0 -5
  241. package/src/com/actions/camera/setcameralayer.ts +0 -5
  242. package/src/com/actions/camera/setcameratransform.ts +0 -10
  243. package/src/com/actions/camera/zoomcamera.ts +0 -5
  244. package/src/com/actions/index.ts +0 -61
  245. package/src/com/actions/media/generatemedia.ts +0 -18
  246. package/src/com/actions/object/addobject.ts +0 -7
  247. package/src/com/actions/object/deleteobject.ts +0 -7
  248. package/src/com/actions/object/deselectobject.ts +0 -7
  249. package/src/com/actions/object/getallobjects.ts +0 -7
  250. package/src/com/actions/object/getobjects.ts +0 -7
  251. package/src/com/actions/object/model/dropit.ts +0 -5
  252. package/src/com/actions/object/model/modelloaded.ts +0 -5
  253. package/src/com/actions/object/model/placeonfloor.ts +0 -5
  254. package/src/com/actions/object/selectobject.ts +0 -7
  255. package/src/com/actions/object/setparent.ts +0 -10
  256. package/src/com/actions/object/updateobject.ts +0 -7
  257. package/src/com/actions/renderer/startrender.ts +0 -5
  258. package/src/com/actions/scene/exportscene.ts +0 -7
  259. package/src/com/actions/scene/getallscenedata.ts +0 -7
  260. package/src/com/actions/scene/launchar.ts +0 -7
  261. package/src/com/actions/scene/setbackground.ts +0 -5
  262. package/src/com/actions/scene/updatescene.ts +0 -11
  263. package/src/com/actions/toolbox/select/setgizmomode.ts +0 -5
  264. package/src/com/actions/toolbox/transform/setgizmoscalelinked.ts +0 -5
  265. package/src/com/actions/toolbox/transform/setgizmovisible.ts +0 -5
  266. package/src/com/actions/toolbox/usetool.ts +0 -7
  267. package/src/com/types/COMBaseEntity.ts +0 -9
  268. package/src/com/types/COMEntity.ts +0 -7
  269. package/src/com/types/COMEntityType.ts +0 -1
  270. package/src/com/types/COMGeometry.ts +0 -8
  271. package/src/com/types/COMGeometryType.ts +0 -9
  272. package/src/com/types/COMGroup.ts +0 -9
  273. package/src/com/types/COMLight.ts +0 -11
  274. package/src/com/types/COMMaterial.ts +0 -12
  275. package/src/com/types/COMModel.ts +0 -12
  276. package/src/com/types/COMPov.ts +0 -8
  277. package/src/com/types/COMPrimitive.ts +0 -12
  278. package/src/com/types/index.ts +0 -23
  279. package/src/constant/AxisHelperColors.ts +0 -7
  280. package/src/constant/GridColors.ts +0 -2
  281. package/src/constant/VisibilityLayerMask.ts +0 -5
  282. package/src/controls/OrbitControls.ts +0 -211
  283. package/src/controls/__test__/OrbitControls.test.ts +0 -256
  284. package/src/converter/Converter.ts +0 -117
  285. package/src/dive.ts +0 -363
  286. package/src/events/EventExecutor.ts +0 -35
  287. package/src/exporter/Exporter.ts +0 -75
  288. package/src/gizmo/Gizmo.ts +0 -144
  289. package/src/gizmo/handles/AxisHandle.ts +0 -153
  290. package/src/gizmo/handles/RadialHandle.ts +0 -149
  291. package/src/gizmo/handles/ScaleHandle.ts +0 -195
  292. package/src/gizmo/plane/GizmoPlane.ts +0 -84
  293. package/src/gizmo/rotate/RotateGizmo.ts +0 -143
  294. package/src/gizmo/scale/ScaleGizmo.ts +0 -125
  295. package/src/gizmo/translate/TranslateGizmo.ts +0 -114
  296. package/src/grid/Grid.ts +0 -34
  297. package/src/grid/__test__/Grid.test.ts +0 -28
  298. package/src/group/Group.ts +0 -184
  299. package/src/group/__test__/Group.test.ts +0 -212
  300. package/src/helper/applyMixins/__test__/applyMixins.test.ts +0 -30
  301. package/src/helper/applyMixins/applyMixins.ts +0 -70
  302. package/src/helper/findInterface/__test__/findInterface.test.ts +0 -63
  303. package/src/helper/findInterface/findInterface.ts +0 -13
  304. package/src/helper/findSceneRecursive/__test__/findSceneRecursive.test.ts +0 -40
  305. package/src/helper/findSceneRecursive/findSceneRecursive.ts +0 -16
  306. package/src/helper/getObjectDelta/__test__/getObjectDelta.test.ts +0 -186
  307. package/src/helper/getObjectDelta/getObjectDelta.ts +0 -105
  308. package/src/helper/isInterface/__test__/implementsInterface.test.ts +0 -19
  309. package/src/helper/isInterface/implementsInterface.ts +0 -9
  310. package/src/info/Info.ts +0 -178
  311. package/src/info/__test__/Info.test.ts +0 -346
  312. package/src/interface/Draggable.ts +0 -14
  313. package/src/interface/Hoverable.ts +0 -14
  314. package/src/interface/Movable.ts +0 -12
  315. package/src/interface/Rotatable.ts +0 -10
  316. package/src/interface/Scalable.ts +0 -10
  317. package/src/interface/Selectable.ts +0 -11
  318. package/src/io/IO.ts +0 -62
  319. package/src/io/__test__/IO.test.ts +0 -116
  320. package/src/io/gltf/GLTFIO.ts +0 -56
  321. package/src/io/gltf/__test__/GLTFIO.test.ts +0 -108
  322. package/src/light/AmbientLight.ts +0 -39
  323. package/src/light/PointLight.ts +0 -115
  324. package/src/light/SceneLight.ts +0 -63
  325. package/src/light/__test__/AmbientLight.test.ts +0 -29
  326. package/src/light/__test__/PointLight.test.ts +0 -74
  327. package/src/light/__test__/SceneLight.test.ts +0 -47
  328. package/src/loader/Loader.ts +0 -48
  329. package/src/math/__test__/DIVEMath.test.ts +0 -12
  330. package/src/math/ceil/__test__/ceilExp.test.ts +0 -12
  331. package/src/math/ceil/ceilExp.ts +0 -6
  332. package/src/math/degToRad/__test__/degToRad.test.ts +0 -172
  333. package/src/math/degToRad/degToRad.ts +0 -5
  334. package/src/math/floor/__test__/floorExp.test.ts +0 -14
  335. package/src/math/floor/floorExp.ts +0 -6
  336. package/src/math/helper/__test__/shift.test.ts +0 -12
  337. package/src/math/helper/shift.ts +0 -4
  338. package/src/math/index.ts +0 -28
  339. package/src/math/radToDeg/__test__/radToDeg.test.ts +0 -155
  340. package/src/math/radToDeg/radToDeg.ts +0 -5
  341. package/src/math/round/__test__/roundExp.test.ts +0 -14
  342. package/src/math/round/roundExp.ts +0 -10
  343. package/src/math/signedAngleTo/__test__/signedAngleTo.test.ts +0 -20
  344. package/src/math/signedAngleTo/signedAngleTo.ts +0 -20
  345. package/src/math/toFixed/__test__/toFixedExp.test.ts +0 -14
  346. package/src/math/toFixed/toFixedExp.ts +0 -9
  347. package/src/math/truncate/__test__/truncateExp.test.ts +0 -14
  348. package/src/math/truncate/truncateExp.ts +0 -9
  349. package/src/mediacreator/MediaCreator.ts +0 -75
  350. package/src/mediacreator/__test__/MediaCreator.test.ts +0 -155
  351. package/src/model/Model.ts +0 -190
  352. package/src/model/__test__/Model.test.ts +0 -215
  353. package/src/module/Module.ts +0 -45
  354. package/src/module/__test__/Module.test.ts +0 -54
  355. package/src/node/Node.ts +0 -100
  356. package/src/node/__test__/Node.test.ts +0 -120
  357. package/src/primitive/Primitive.ts +0 -299
  358. package/src/primitive/__test__/Primitive.test.ts +0 -281
  359. package/src/primitive/floor/Floor.ts +0 -45
  360. package/src/primitive/floor/__test__/Floor.test.ts +0 -24
  361. package/src/renderer/Renderer.ts +0 -215
  362. package/src/renderer/__test__/Renderer.test.ts +0 -228
  363. package/src/scene/Scene.ts +0 -106
  364. package/src/scene/__test__/Scene.test.ts +0 -124
  365. package/src/scene/root/Root.ts +0 -426
  366. package/src/scene/root/__test__/Root.test.ts +0 -903
  367. package/src/scene/xrroot/XRRoot.ts +0 -56
  368. package/src/scene/xrroot/xrlightroot/XRLightRoot.ts +0 -80
  369. package/src/toolbox/BaseTool.ts +0 -319
  370. package/src/toolbox/Toolbox.ts +0 -129
  371. package/src/toolbox/__test__/BaseTool.test.ts +0 -627
  372. package/src/toolbox/__test__/Toolbox.test.ts +0 -143
  373. package/src/toolbox/select/SelectTool.ts +0 -92
  374. package/src/toolbox/select/__test__/SelectTool.test.ts +0 -237
  375. package/src/toolbox/transform/TransformTool.ts +0 -166
  376. package/src/toolbox/transform/__test__/TransformTool.test.ts +0 -147
  377. package/src/types/ExporterOptions.ts +0 -14
  378. package/src/types/FileTypes.ts +0 -37
  379. package/src/types/SceneData.ts +0 -26
  380. package/src/types/SceneObjects.ts +0 -14
  381. package/src/types/SceneType.ts +0 -14
  382. package/src/types/index.ts +0 -31
  383. package/src/types/info/index.ts +0 -76
  384. /package/build/src/{gizmo → components/gizmo}/plane/GizmoPlane.d.ts +0 -0
  385. /package/build/src/{grid → components/grid}/Grid.d.ts +0 -0
  386. /package/build/src/{constant → constants}/AxisHelperColors.d.ts +0 -0
  387. /package/build/src/{constant → constants}/GridColors.d.ts +0 -0
  388. /package/build/src/{constant → constants}/VisibilityLayerMask.d.ts +0 -0
  389. /package/build/src/{helper → helpers}/applyMixins/applyMixins.d.ts +0 -0
  390. /package/build/src/{helper → helpers}/findInterface/findInterface.d.ts +0 -0
  391. /package/build/src/{helper → helpers}/getObjectDelta/getObjectDelta.d.ts +0 -0
  392. /package/build/src/{helper/isInterface → helpers/implementsInterface}/implementsInterface.d.ts +0 -0
  393. /package/build/src/{math → helpers/math}/ceil/ceilExp.d.ts +0 -0
  394. /package/build/src/{math → helpers/math}/degToRad/degToRad.d.ts +0 -0
  395. /package/build/src/{math → helpers/math}/floor/floorExp.d.ts +0 -0
  396. /package/build/src/{math → helpers/math}/helper/shift.d.ts +0 -0
  397. /package/build/src/{math → helpers/math}/index.d.ts +0 -0
  398. /package/build/src/{math → helpers/math}/radToDeg/radToDeg.d.ts +0 -0
  399. /package/build/src/{math → helpers/math}/round/roundExp.d.ts +0 -0
  400. /package/build/src/{math → helpers/math}/signedAngleTo/signedAngleTo.d.ts +0 -0
  401. /package/build/src/{math → helpers/math}/toFixed/toFixedExp.d.ts +0 -0
  402. /package/build/src/{math → helpers/math}/truncate/truncateExp.d.ts +0 -0
  403. /package/build/src/{interface → interfaces}/Hoverable.d.ts +0 -0
  404. /package/build/src/{interface → interfaces}/Movable.d.ts +0 -0
  405. /package/build/src/{interface → interfaces}/Rotatable.d.ts +0 -0
  406. /package/build/src/{interface → interfaces}/Scalable.d.ts +0 -0
  407. /package/build/src/{interface → interfaces}/Selectable.d.ts +0 -0
  408. /package/build/src/{ar → modules/ar}/webxr/crosshair/WebXRCrosshair.d.ts +0 -0
  409. /package/build/src/{ar → modules/ar}/webxr/overlay/Overlay.d.ts +0 -0
  410. /package/build/src/{events → modules/events}/EventExecutor.d.ts +0 -0
  411. /package/build/src/{com → modules/state}/types/COMBaseEntity.d.ts +0 -0
  412. /package/build/src/{com → modules/state}/types/COMEntity.d.ts +0 -0
  413. /package/build/src/{com → modules/state}/types/COMEntityType.d.ts +0 -0
  414. /package/build/src/{com → modules/state}/types/COMGeometry.d.ts +0 -0
  415. /package/build/src/{com → modules/state}/types/COMGeometryType.d.ts +0 -0
  416. /package/build/src/{com → modules/state}/types/COMMaterial.d.ts +0 -0
package/README.md CHANGED
@@ -1,12 +1,3 @@
1
- <!--
2
-
3
-
4
- This file is automatically generated
5
- You can find the template in ci/readme/template/TEMPLATE_README.md
6
-
7
-
8
- -->
9
-
10
1
  <p align="center">
11
2
  <img alt="DIVE logo" src="./assets/svg/dive.svg" style="width: 100%; height: auto; max-height: 500px;">
12
3
  </p>
@@ -28,23 +19,23 @@ You can find the template in ci/readme/template/TEMPLATE_README.md
28
19
 
29
20
  ## Table of Contents
30
21
 
31
- 1. [About](#about)
32
- 2. [Installation](#installation)
33
- 3. [Local development](#local-development)
34
- 4. [Setup in Shopware](#setup-in-shopware)
35
- 5. [Usage](#usage)
36
- 6. [Unit Tests](#unit-tests)
37
- 7. [Formatting](#formatting)
22
+ - [Table of Contents](#table-of-contents)
23
+ - [About](#about)
24
+ - [Installation](#installation)
25
+ - [Getting Started](#getting-started)
26
+ - [Basic Setup](#basic-setup)
27
+ - [Quick View](#quick-view)
28
+ - [Modules](#modules)
29
+ - [Documentation](#documentation)
38
30
 
39
31
  ## About
40
32
 
41
- DIVE is a spatial framework made by and optimized for Shopware. It can be used
42
- directly integrated in a Shopware frontend such as Storefront or in any other
43
- frontend you want to use it in, it is not tied to Shopware.
33
+ DIVE is a spatial framework made by and optimized for Shopware. It can be used directly integrated
34
+ in a Shopware frontend such as Storefront or in any other frontend you want to use it in, it is not
35
+ tied to Shopware.
44
36
 
45
- DIVE supplies your frontend application with all needed tooling to set up a
46
- basic 3D application with event-based controls called "Actions". For further
47
- information, see [Getting started](#getting-started).
37
+ DIVE supplies your frontend application with all needed tooling to set up a basic 3D application
38
+ with event-based controls called "Actions".
48
39
 
49
40
  ## Installation
50
41
 
@@ -58,492 +49,63 @@ or
58
49
  yarn add @shopware-ag/dive
59
50
  ```
60
51
 
61
- ## Local development
62
-
63
- ### with devenv
64
-
65
- If you are using `devenv`, you have to make sure that you are in the correct shell while linking. `nix` (what `devenv` is
66
- based on) uses it's own instances of `npm` so we need to make sure that the `npm link` get's executed within the correct `devenv` environment a.k.a `nix/store`.
67
- To make sure you are using the correct instance of `npm` you have to browse to your `devenv` project:
68
-
69
- ```bash
70
- cd path/to/your/devenv.nix
71
- ```
72
-
73
- #### with direnv
74
-
75
- If you use `direnv` you should be launched into the correct shell automatically.
76
-
77
- #### without direnv
78
-
79
- If you don't use `direnv` you can start the correct shell manually by running
80
-
81
- ```bash
82
- devenv shell
83
- ```
84
-
85
- Within the `devenv shell` you have to browse to your DIVE folder
52
+ For local development setup, see [Local Development Guide](./docs/local-development.md).
86
53
 
87
- ```bash
88
- cd path/to/@shopware-ag/dive
89
- ```
90
-
91
- ### without devenv
54
+ ## Getting Started
92
55
 
93
- You don't have to do anything special if you don't use `devenv`.
56
+ ### Basic Setup
94
57
 
95
- ### npm link
96
-
97
- If you want to link DIVE package locally after checking out, you can to that in the package's project folder:
98
-
99
- ```bash
100
- cd path/to/@shopware-ag/dive
101
- npm link
102
- ```
103
-
104
- After registering the package in npm, you can use the sym-link in your project:
105
-
106
- ```bash
107
- cd path/to/your/package.json
108
- npm link @shopware-ag/dive
109
- ```
110
-
111
- After successfully linking DIVE into your project you will find the according sym-link in your `node_modules`.
112
-
113
- ## Setup in Shopware
114
-
115
- Don't forget to include DIVE in your `webpack.config.js`:
116
-
117
- ```js
118
- const path = require('path');
119
-
120
- module.exports = () => {
121
- return {
122
- // Other configurations...
123
- resolve: {
124
- extensions: [
125
- '.ts',
126
- '.cjs',
127
- '.js',
128
- ],
129
- alias: {
130
- three: path.resolve(__dirname, 'path/to/node_modules/three'),
131
- '@shopware-ag/dive': path.resolve(
132
- __dirname,
133
- 'path/to/node_modules/@shopware-ag/dive',
134
- ),
135
- },
136
- },
137
- module: {
138
- rules: [
139
- // Other rules...
140
- {
141
- test: /\.(js|ts)$/,
142
- loader: 'swc-loader',
143
- include: [
144
- path.resolve(__dirname, 'path/to/node_modules/three'),
145
- path.resolve(
146
- __dirname,
147
- 'path/to/node_modules/@shopware-ag/dive',
148
- ),
149
- ],
150
- options: {
151
- jsc: {
152
- parser: {
153
- syntax: 'typescript',
154
- },
155
- target: 'es2022',
156
- },
157
- },
158
- },
159
- // Other rules...
160
- ],
161
- },
162
- };
163
- };
164
- ```
165
-
166
- ## Usage
167
-
168
- ### Quick View
169
-
170
- QuickView is used to quickly display your assets with as few lines of code as
171
- possible. Simply call the static `QuickView()` method, with your data URI as a
172
- parameter, to create an instance of DIVE with your asset to use in further code.
58
+ To get started with DIVE, import and instantiate it:
173
59
 
174
60
  ```ts
175
61
  import { DIVE } from '@shopware-ag/dive';
176
62
 
177
- const dive = DIVE.QuickView('your/asset/uri.glb'); // <-- call QuickView()
178
-
63
+ // Create a DIVE instance
64
+ const dive = new DIVE();
179
65
  const myCanvasWrapper = document.createElement('div');
180
- myCanvasWrapper.appendChild(dive.Canvas);
66
+ myCanvasWrapper.appendChild(dive.canvas);
181
67
  ```
182
68
 
183
- ### Example with Error Handling:
184
-
185
- ```ts
186
- import { DIVE } from '@shopware-ag/dive';
187
-
188
- try {
189
- const dive = DIVE.QuickView('your/asset/uri.glb'); // <-- call QuickView()
190
-
191
- const myCanvasWrapper = document.createElement('div');
192
- myCanvasWrapper.appendChild(dive.Canvas);
193
- } catch (error) {
194
- console.error('Failed to load asset:', error);
195
- }
196
- ```
197
-
198
- ### Getting started
199
-
200
- #### Import:
201
-
202
- ```ts
203
- import { DIVE } from '@shopware-ag/dive'; // <-- import DIVE
204
- ```
69
+ ### Quick View
205
70
 
206
- #### Instantiate:
71
+ For a simpler setup, you can use QuickView to quickly display your assets within a basic default
72
+ scene setup:
207
73
 
208
74
  ```ts
209
75
  import { DIVE } from '@shopware-ag/dive';
210
76
 
211
- const dive = new DIVE(); // <-- instantiate DIVE
212
- ```
213
-
214
- DIVE supplies your application with a HTMLCanvasElement that it uses as a render
215
- target. After instantiating, you can use the supplied canvas within your frontend
216
- code to attach it to your DOM.
217
-
218
- ```ts
219
- const dive = new DIVE();
220
-
221
- const myCanvasWrapper = document.createElement('div'); // <-- create wrapper element
222
- myCanvasWrapper.appendChild(dive.Canvas); // <-- reference DIVE canvas
223
- ```
224
-
225
- To interact with your newly created DIVE instance you have to perform actions
226
- via DIVECommunication. For further information, see [Actions](#actions).
227
-
228
- ```ts
229
- const dive = new DIVE();
230
-
77
+ // Use static QuickView method to instantiate DIVE
78
+ const dive = await DIVE.QuickView('your/asset/uri.glb');
231
79
  const myCanvasWrapper = document.createElement('div');
232
- myCanvasWrapper.appendChild(dive.Canvas);
233
-
234
- const com = dive.Communication; // <-- reference DIVECommunication
235
-
236
- com.PerformAction('SET_CAMERA_TRANSFORM', {
237
- // <-- perform action on DIVECommunication
238
- position: { x: 0, y: 2, z: 2 },
239
- target: { x: 0, y: 0.5, z: 0 },
240
- });
80
+ myCanvasWrapper.appendChild(dive.canvas);
241
81
  ```
242
82
 
243
- ### Actions
244
-
245
- Actions symbolize the communication between frontend and 3D space. All actions
246
- can be performed anywhere, no matter if you are in frontend or 3D.
247
-
248
- In addition to the impact that specific actions have, every action can be
249
- subscribed to.
83
+ ## Modules
250
84
 
251
- ```ts
252
- const myCanvasWrapper = document.createElement('div');
253
- const dive = new DIVE();
254
-
255
- myCanvasWrapper.appendChild(dive.Canvas);
256
-
257
- const com = dive.Communication;
258
-
259
- com.Subscribe('SET_CAMERA_TRANSFORM', () => {
260
- // <-- add subscription
261
- // do something
262
- });
263
-
264
- com.PerformAction('SET_CAMERA_TRANSFORM', {
265
- position: { x: 0, y: 2, z: 2 },
266
- target: { x: 0, y: 0.5, z: 0 },
267
- });
268
- ```
269
-
270
- Subscribing to an action returns a `unsubscribe()`-callback that should be
271
- executed when not needed anymore.
85
+ DIVE comes with several built-in modules that provide specific functionality. Served modules are
86
+ independent and can be accessed directly from the modules directory:
272
87
 
273
88
  ```ts
274
- const myCanvasWrapper = document.createElement('div');
275
- const dive = new DIVE();
276
-
277
- myCanvasWrapper.appendChild(dive.Canvas);
278
-
279
- const com = dive.Communication;
89
+ import { ARSystem } from '@shopware-ag/dive/modules/ARSystem';
280
90
 
281
- const unsubscribe = com.Subscribe('SET_CAMERA_TRANSFORM', () => {
282
- // <-- save unsubscribe callback
283
- // do something
91
+ // Initialize AR with options
92
+ const arSystem = new ARSystem();
93
+ await arSystem.launch('path/to/model.glb', {
94
+ arPlacement: 'horizontal', // or 'vertical'
95
+ arScale: 'auto' // or 'fixed'
284
96
  });
285
-
286
- com.PerformAction('SET_CAMERA_TRANSFORM', {
287
- position: { x: 0, y: 2, z: 2 },
288
- target: { x: 0, y: 0.5, z: 0 },
289
- });
290
-
291
- unsubscribe(); // <-- execute unsubscribe callback when done
292
97
  ```
293
98
 
294
- #### Actions List
295
-
296
- In the following you find a list of all available actions to perform on
297
- DIVECommunication class via
298
- [`com.PerformAction()`](https://github.com/shopware/dive/blob/2e193c58843939ce07a1d35bfbd5b3c9d26eeeca/src/com/Communication.ts#L85).
299
-
300
- <table>
301
- <tr>
302
- <th>Actions</th>
303
- <th>Description</th>
304
- </tr>
305
- <tr>
306
- <td>
307
- <a href="src/com/actions/object/addobject.ts"> ADD_OBJECT </a>
308
- </td>
309
- <td>
310
- Adds an object to the scene.
311
- </td>
312
- </tr>
313
- <tr>
314
- <td>
315
- <a href="src/com/actions/camera/computeencompassingview.ts"> COMPUTE_ENCOMPASSING_VIEW </a>
316
- </td>
317
- <td>
318
- Calculates the camera position and target to view the whole scene. (experimental)
319
- </td>
320
- </tr>
321
- <tr>
322
- <td>
323
- <a href="src/com/actions/object/deleteobject.ts"> DELETE_OBJECT </a>
324
- </td>
325
- <td>
326
- Deletes an object from the scene.
327
- </td>
328
- </tr>
329
- <tr>
330
- <td>
331
- <a href="src/com/actions/object/deselectobject.ts"> DESELECT_OBJECT </a>
332
- </td>
333
- <td>
334
- Deselects an existing object.
335
- </td>
336
- </tr>
337
- <tr>
338
- <td>
339
- <a href="src/com/actions/object/model/dropit.ts"> DROP_IT </a>
340
- </td>
341
- <td>
342
- Places an object on top of an underlying object or the floor.
343
- </td>
344
- </tr>
345
- <tr>
346
- <td>
347
- <a href="src/com/actions/scene/exportscene.ts"> EXPORT_SCENE </a>
348
- </td>
349
- <td>
350
- Exports the current scene to a blob and returns the URL.
351
- </td>
352
- </tr>
353
- <tr>
354
- <td>
355
- <a href="src/com/actions/media/generatemedia.ts"> GENERATE_MEDIA </a>
356
- </td>
357
- <td>
358
- Generates a screenshot, stores it in a Blob and returns a Promise of a valid URI.
359
- </td>
360
- </tr>
361
- <tr>
362
- <td>
363
- <a href="src/com/actions/object/getallobjects.ts"> GET_ALL_OBJECTS </a>
364
- </td>
365
- <td>
366
- Retrieves all objects in the scene.
367
- </td>
368
- </tr>
369
- <tr>
370
- <td>
371
- <a href="src/com/actions/scene/getallscenedata.ts"> GET_ALL_SCENE_DATA </a>
372
- </td>
373
- <td>
374
- Retrieves all current scene data.
375
- </td>
376
- </tr>
377
- <tr>
378
- <td>
379
- <a href="src/com/actions/camera/getcameratransform.ts"> GET_CAMERA_TRANSFORM </a>
380
- </td>
381
- <td>
382
- Returns the current camera position and target.
383
- </td>
384
- </tr>
385
- <tr>
386
- <td>
387
- <a href="src/com/actions/object/getobjects.ts"> GET_OBJECTS </a>
388
- </td>
389
- <td>
390
- Returns a list of objects of given IDs.
391
- </td>
392
- </tr>
393
- <tr>
394
- <td>
395
- <a href="src/com/actions/scene/launchar.ts"> LAUNCH_AR </a>
396
- </td>
397
- <td>
398
- Launches AR mode in native capabilities. (iOS: AR Quick Look, Android: Google Scene Viewer)
399
- </td>
400
- </tr>
401
- <tr>
402
- <td>
403
- <a href="src/com/actions/object/model/modelloaded.ts"> MODEL_LOADED </a>
404
- </td>
405
- <td>
406
- Is triggered when a model is loaded.
407
- </td>
408
- </tr>
409
- <tr>
410
- <td>
411
- <a href="src/com/actions/camera/movecamera.ts"> MOVE_CAMERA </a>
412
- </td>
413
- <td>
414
- Moves the camera to a new position and target.
415
- </td>
416
- </tr>
417
- <tr>
418
- <td>
419
- <a href="src/com/actions/object/model/placeonfloor.ts"> PLACE_ON_FLOOR </a>
420
- </td>
421
- <td>
422
- Places an object on the floor.
423
- </td>
424
- </tr>
425
- <tr>
426
- <td>
427
- <a href="src/com/actions/camera/resetcamera.ts"> RESET_CAMERA </a>
428
- </td>
429
- <td>
430
- Reset the camera to its initial position and rotation.
431
- </td>
432
- </tr>
433
- <tr>
434
- <td>
435
- <a href="src/com/actions/object/selectobject.ts"> SELECT_OBJECT </a>
436
- </td>
437
- <td>
438
- Selects an existing object.
439
- </td>
440
- </tr>
441
- <tr>
442
- <td>
443
- <a href="src/com/actions/scene/setbackground.ts"> SET_BACKGROUND </a>
444
- </td>
445
- <td>
446
- Set the background color of the scene.
447
- </td>
448
- </tr>
449
- <tr>
450
- <td>
451
- <a href="src/com/actions/camera/setcameralayer.ts"> SET_CAMERA_LAYER </a>
452
- </td>
453
- <td>
454
- Sets the camera layer to a certain layer.
455
- </td>
456
- </tr>
457
- <tr>
458
- <td>
459
- <a href="src/com/actions/camera/setcameratransform.ts"> SET_CAMERA_TRANSFORM </a>
460
- </td>
461
- <td>
462
- Sets the camera position and target.
463
- </td>
464
- </tr>
465
- <tr>
466
- <td>
467
- <a href="src/com/actions/toolbox/select/setgizmomode.ts"> SET_GIZMO_MODE </a>
468
- </td>
469
- <td>
470
- Sets the gizmo's mode.
471
- </td>
472
- </tr>
473
- <tr>
474
- <td>
475
- <a href="src/com/actions/toolbox/transform/setgizmoscalelinked.ts"> SET_GIZMO_SCALE_LINKED </a>
476
- </td>
477
- <td>
478
- Sets the gizmo's unified scale mode.
479
- </td>
480
- </tr>
481
- <tr>
482
- <td>
483
- <a href="src/com/actions/toolbox/transform/setgizmovisible.ts"> SET_GIZMO_VISIBILITY </a>
484
- </td>
485
- <td>
486
- Sets the gizmo's visibility.
487
- </td>
488
- </tr>
489
- <tr>
490
- <td>
491
- <a href="src/com/actions/object/setparent.ts"> SET_PARENT </a>
492
- </td>
493
- <td>
494
- Attach an object to another object.
495
- </td>
496
- </tr>
497
- <tr>
498
- <td>
499
- <a href="src/com/actions/renderer/startrender.ts"> START_RENDER </a>
500
- </td>
501
- <td>
502
- Starts the render process.
503
- </td>
504
- </tr>
505
- <tr>
506
- <td>
507
- <a href="src/com/actions/object/updateobject.ts"> UPDATE_OBJECT </a>
508
- </td>
509
- <td>
510
- Updates an existing object.
511
- </td>
512
- </tr>
513
- <tr>
514
- <td>
515
- <a href="src/com/actions/scene/updatescene.ts"> UPDATE_SCENE </a>
516
- </td>
517
- <td>
518
- Updates global scene data.
519
- </td>
520
- </tr>
521
- <tr>
522
- <td>
523
- <a href="src/com/actions/toolbox/usetool.ts"> USE_TOOL </a>
524
- </td>
525
- <td>
526
- Activates a specific tool from the toolbox.
527
- </td>
528
- </tr>
529
- <tr>
530
- <td>
531
- <a href="src/com/actions/camera/zoomcamera.ts"> ZOOM_CAMERA </a>
532
- </td>
533
- <td>
534
- Zooms the camera in or out by a certain amount.
535
- </td>
536
- </tr>
537
- </table>
538
-
539
- ## Unit Tests
540
-
541
- All relevant files are covered by Jest tests. If you find any file that has not been covered yet, feel free to add unit tests accordingly.
542
-
543
- If there are any modules that have to be mocked (like `three`) you can create a given file in the `__mocks__` folder in project root. Jest manages to mock modules with a given file with the modules name as a file name (for example `three.ts`). Every export will be part of the modules mock. You don't need to mock the module in your test anymore, you only extend the module mock.
99
+ For detailed information about the module system, see
100
+ [Module System Documentation](docs/module-system.md).
544
101
 
545
- If you have any other things from a module to import, you can simply create a folder structure and place the mock file at the end of your structure. To understand better please take a look at the `__mocks__` folder for yourself.
102
+ ## Documentation
546
103
 
547
- ## Formatting
104
+ For detailed documentation, please refer to the following sections:
548
105
 
549
- DIVE uses Prettier as a preconfigured formatter.
106
+ - [Module System](docs/module-system.md) - Detailed module system architecture and usage
107
+ - [Shopware Integration](docs/shopware-integration.md) - Integration with Shopware projects
108
+ - [Testing and Quality Assurance](docs/testing.md) - Testing guidelines and best practices
109
+ - [Local Development](docs/local-development.md) - Local development setup and workflow
110
+ - [Module Reference](docs/module-reference.md) - Complete list of available modules
111
+ - [Actions Reference](docs/actions-reference.md) - Complete list of available actions