@shopware-ag/dive 2.0.1-beta.6 → 2.0.1-beta.8

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 (267) hide show
  1. package/build/chunks/{AssetExporter-ClYQ4gnb.mjs → AssetExporter-QnOue3VT.mjs} +19 -19
  2. package/build/chunks/{AssetExporter-CAqADFbL.cjs → AssetExporter-TzKB2FHh.cjs} +4 -4
  3. package/build/chunks/AssetLoader-BfPa_oNd.cjs +4 -0
  4. package/build/chunks/{AssetLoader-BewzFwHi.mjs → AssetLoader-C8Teswp4.mjs} +38 -35
  5. package/build/chunks/FileTypes-B2JRjVgw.cjs +30 -0
  6. package/build/chunks/FileTypes-CXnW0NAe.mjs +1109 -0
  7. package/build/chunks/MathUtils-CBW56ZuG.cjs +1 -0
  8. package/build/chunks/MathUtils-CFGjHuVF.mjs +159 -0
  9. package/build/chunks/OrbitController-D-WNei2f.mjs +940 -0
  10. package/build/chunks/OrbitController-rMX8EHvJ.cjs +1 -0
  11. package/build/chunks/PerspectiveCamera-CONx93im.cjs +1 -0
  12. package/build/chunks/PerspectiveCamera-DUiWJJIj.mjs +38 -0
  13. package/build/chunks/PovSchema-Co9FznEz.cjs +1 -0
  14. package/build/chunks/PovSchema-DWWvr_ED.mjs +10 -0
  15. package/build/chunks/{SelectTool-DLXheZay.mjs → SelectTool-DFpr9XHT.mjs} +10 -10
  16. package/build/chunks/SelectTool-DVqL2ebn.cjs +1 -0
  17. package/build/chunks/network-error-CHvryg-4.mjs +18 -0
  18. package/build/chunks/network-error-D_pq8VU6.cjs +1 -0
  19. package/build/chunks/package-BBfJ2Cc5.cjs +1 -0
  20. package/build/chunks/package-CHFUaMpF.mjs +39 -0
  21. package/build/dive.cjs +1 -30
  22. package/build/dive.mjs +617 -1089
  23. package/build/plugins/animation/index.cjs +1 -0
  24. package/build/plugins/animation/index.d.ts +2 -0
  25. package/build/plugins/animation/index.mjs +126 -0
  26. package/build/plugins/ar/index.cjs +1 -0
  27. package/build/plugins/ar/index.d.ts +2 -0
  28. package/build/{chunks/ARSystem-D27w7Pck.mjs → plugins/ar/index.mjs} +38 -44
  29. package/build/plugins/assetconverter/index.d.ts +2 -0
  30. package/build/plugins/assetexporter/index.cjs +1 -0
  31. package/build/plugins/assetexporter/index.d.ts +2 -0
  32. package/build/plugins/assetexporter/index.mjs +4 -0
  33. package/build/plugins/assetloader/index.cjs +1 -0
  34. package/build/plugins/assetloader/index.d.ts +2 -0
  35. package/build/plugins/assetloader/index.mjs +6 -0
  36. package/build/plugins/axiscamera/index.cjs +1 -0
  37. package/build/plugins/axiscamera/index.d.ts +2 -0
  38. package/build/plugins/axiscamera/index.mjs +4 -0
  39. package/build/plugins/mediacreator/index.cjs +1 -0
  40. package/build/plugins/mediacreator/index.d.ts +2 -0
  41. package/build/{chunks/MediaCreator-psLAAyJA.mjs → plugins/mediacreator/index.mjs} +1 -1
  42. package/build/{modules/controller → plugins/orbitcontroller}/index.cjs +1 -1
  43. package/build/plugins/orbitcontroller/index.d.ts +2 -0
  44. package/build/plugins/orbitcontroller/index.mjs +5 -0
  45. package/build/plugins/state/index.cjs +27 -0
  46. package/build/plugins/state/index.d.ts +2 -0
  47. package/build/plugins/state/index.mjs +4265 -0
  48. package/build/plugins/systeminfo/index.cjs +1 -0
  49. package/build/plugins/systeminfo/index.d.ts +2 -0
  50. package/build/{modules → plugins}/systeminfo/index.mjs +24 -23
  51. package/build/plugins/toolbox/index.cjs +1 -0
  52. package/build/plugins/toolbox/index.d.ts +2 -0
  53. package/build/{chunks/Toolbox-DKuyL8n5.mjs → plugins/toolbox/index.mjs} +8 -2
  54. package/build/src/components/gizmo/Gizmo.d.ts +1 -1
  55. package/build/src/components/gizmo/handles/AxisHandle.d.ts +1 -1
  56. package/build/src/components/gizmo/handles/RadialHandle.d.ts +1 -1
  57. package/build/src/components/gizmo/handles/ScaleHandle.d.ts +1 -1
  58. package/build/src/components/gizmo/rotate/RotateGizmo.d.ts +2 -2
  59. package/build/src/components/gizmo/scale/ScaleGizmo.d.ts +2 -2
  60. package/build/src/components/gizmo/translate/TranslateGizmo.d.ts +2 -2
  61. package/build/src/components/model/Model.d.ts +2 -2
  62. package/build/src/components/primitive/Primitive.d.ts +3 -3
  63. package/build/src/components/root/Root.d.ts +5 -7
  64. package/build/src/core/Dive.d.ts +1 -1
  65. package/build/src/engine/clock/Clock.d.ts +1 -0
  66. package/build/src/index.d.ts +2 -1
  67. package/build/src/interfaces/Draggable.d.ts +1 -1
  68. package/build/src/plugins/animation/index.d.ts +2 -0
  69. package/build/src/{modules/animation → plugins/animation/src}/animator/Animator.d.ts +2 -3
  70. package/build/src/plugins/animation/src/index.d.ts +3 -0
  71. package/build/src/plugins/animation/src/system/AnimationSystem.d.ts +23 -0
  72. package/build/src/plugins/ar/index.d.ts +4 -0
  73. package/build/src/{modules/ar → plugins/ar/src}/ARSystem.d.ts +0 -27
  74. package/build/src/{modules/ar → plugins/ar/src}/webxr/WebXR.d.ts +2 -2
  75. package/build/src/{modules/ar → plugins/ar/src}/webxr/controller/WebXRController.d.ts +2 -2
  76. package/build/src/{modules/ar → plugins/ar/src}/webxr/origin/WebXROrigin.d.ts +1 -1
  77. package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/WebXRRaycaster.d.ts +3 -3
  78. package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/ar/WebXRRaycasterAR.d.ts +1 -1
  79. package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/three/WebXRRaycasterTHREE.d.ts +2 -2
  80. package/build/src/{modules/ar → plugins/ar/src}/webxr/touchscreencontrols/WebXRTouchscreenControls.d.ts +1 -1
  81. package/build/src/plugins/assetconverter/index.d.ts +1 -0
  82. package/build/src/plugins/assetconverter/src/AssetConverter.d.ts +13 -0
  83. package/build/src/plugins/assetexporter/index.d.ts +1 -0
  84. package/build/src/{modules/assetexporter → plugins/assetexporter/src}/AssetExporter.d.ts +1 -18
  85. package/build/src/plugins/assetloader/index.d.ts +3 -0
  86. package/build/src/plugins/assetloader/src/loader/AssetLoader.d.ts +8 -0
  87. package/build/src/plugins/axiscamera/index.d.ts +1 -0
  88. package/build/src/{modules/axiscamera → plugins/axiscamera/src}/AxisCamera.d.ts +1 -4
  89. package/build/src/plugins/mediacreator/index.d.ts +1 -0
  90. package/build/src/plugins/mediacreator/src/MediaCreator.d.ts +15 -0
  91. package/build/src/plugins/orbitcontroller/index.d.ts +1 -0
  92. package/build/src/{modules/controller/orbit → plugins/orbitcontroller/src}/OrbitController.d.ts +3 -3
  93. package/build/src/plugins/state/index.d.ts +4 -0
  94. package/build/src/{modules/state → plugins/state/src}/State.d.ts +4 -27
  95. package/build/src/{modules/state → plugins/state/src}/actions/action.d.ts +1 -1
  96. package/build/src/{modules/state → plugins/state/src}/actions/ar/launchar.d.ts +2 -2
  97. package/build/src/{modules/state → plugins/state/src}/actions/camera/computeencompassingview.d.ts +1 -1
  98. package/build/src/{modules/state → plugins/state/src}/actions/camera/getcameratransform.d.ts +1 -1
  99. package/build/src/{modules/state → plugins/state/src}/actions/camera/lockcamera.d.ts +1 -1
  100. package/build/src/{modules/state → plugins/state/src}/actions/camera/movecamera.d.ts +3 -3
  101. package/build/src/{modules/state → plugins/state/src}/actions/camera/setcameralayer.d.ts +1 -1
  102. package/build/src/{modules/state → plugins/state/src}/actions/camera/setcameratransform.d.ts +1 -1
  103. package/build/src/{modules/state → plugins/state/src}/actions/camera/zoomcamera.d.ts +1 -1
  104. package/build/src/{modules/state → plugins/state/src}/actions/media/generatemedia.d.ts +1 -1
  105. package/build/src/plugins/state/src/actions/object/addobject.d.ts +9 -0
  106. package/build/src/plugins/state/src/actions/object/deleteobject.d.ts +13 -0
  107. package/build/src/plugins/state/src/actions/object/deselectobject.d.ts +13 -0
  108. package/build/src/{modules/state → plugins/state/src}/actions/object/dropit.d.ts +3 -3
  109. package/build/src/{modules/state → plugins/state/src}/actions/object/getallobjects.d.ts +3 -2
  110. package/build/src/plugins/state/src/actions/object/getobjects.d.ts +13 -0
  111. package/build/src/{modules/state → plugins/state/src}/actions/object/modelloaded.d.ts +1 -1
  112. package/build/src/{modules/state → plugins/state/src}/actions/object/placeonfloor.d.ts +3 -3
  113. package/build/src/plugins/state/src/actions/object/selectobject.d.ts +13 -0
  114. package/build/src/plugins/state/src/actions/object/setparent.d.ts +23 -0
  115. package/build/src/plugins/state/src/actions/object/updateobject.d.ts +13 -0
  116. package/build/src/{modules/state → plugins/state/src}/actions/renderer/startrender.d.ts +1 -1
  117. package/build/src/{modules/state → plugins/state/src}/actions/scene/exportscene.d.ts +4 -4
  118. package/build/src/plugins/state/src/actions/scene/getallscenedata.d.ts +9 -0
  119. package/build/src/{modules/state → plugins/state/src}/actions/scene/setbackground.d.ts +1 -1
  120. package/build/src/{modules/state → plugins/state/src}/actions/scene/updatescene.d.ts +1 -1
  121. package/build/src/{modules/state → plugins/state/src}/actions/toolbox/setgizmomode.d.ts +1 -1
  122. package/build/src/{modules/state → plugins/state/src}/actions/toolbox/setgizmoscalelinked.d.ts +1 -1
  123. package/build/src/{modules/state → plugins/state/src}/actions/toolbox/setgizmovisible.d.ts +1 -1
  124. package/build/src/{modules/state → plugins/state/src}/actions/toolbox/usetool.d.ts +2 -2
  125. package/build/src/{modules → plugins}/state/types/ActionTypes.d.ts +8 -9
  126. package/build/src/{types/SceneType.d.ts → plugins/state/types/StateExportFileType.d.ts} +1 -1
  127. package/build/src/plugins/state/types/StateSceneData.d.ts +19 -0
  128. package/build/src/plugins/state/types/index.d.ts +1 -0
  129. package/build/src/plugins/systeminfo/index.d.ts +2 -0
  130. package/build/src/{modules/systeminfo → plugins/systeminfo/src}/SystemInfo.d.ts +1 -32
  131. package/build/src/plugins/toolbox/index.d.ts +4 -0
  132. package/build/src/{modules/toolbox → plugins/toolbox/src}/BaseTool.d.ts +2 -4
  133. package/build/src/{modules/toolbox → plugins/toolbox/src}/Toolbox.d.ts +2 -11
  134. package/build/src/{modules/toolbox → plugins/toolbox/src}/select/SelectTool.d.ts +2 -3
  135. package/build/src/{modules/toolbox → plugins/toolbox/src}/transform/TransformTool.d.ts +2 -3
  136. package/build/src/types/components/DIVELight.d.ts +4 -0
  137. package/build/src/types/components/DIVESceneObject.d.ts +6 -0
  138. package/build/src/types/components/index.d.ts +2 -0
  139. package/build/src/types/index.d.ts +2 -5
  140. package/build/src/types/schema/BaseEntitySchema.d.ts +8 -0
  141. package/build/src/types/schema/EntitySchema.d.ts +11 -0
  142. package/build/src/types/schema/EntityTypeSchema.d.ts +1 -0
  143. package/build/src/types/schema/GeometrySchema.d.ts +7 -0
  144. package/build/src/types/schema/GeometryTypeSchema.d.ts +1 -0
  145. package/build/src/types/schema/GroupSchema.d.ts +11 -0
  146. package/build/src/types/schema/LightSchema.d.ts +28 -0
  147. package/build/src/{modules/state/types/COMMaterial.d.ts → types/schema/MaterialSchema.d.ts} +1 -1
  148. package/build/src/types/schema/ModelSchema.d.ts +14 -0
  149. package/build/src/types/schema/PovSchema.d.ts +10 -0
  150. package/build/src/types/schema/PrimitiveSchema.d.ts +14 -0
  151. package/build/src/types/schema/index.d.ts +11 -0
  152. package/package.json +42 -40
  153. package/build/chunks/ARSystem-_0cLAxyG.cjs +0 -1
  154. package/build/chunks/AnimationSystem-Bf-xhqRe.mjs +0 -101
  155. package/build/chunks/AnimationSystem-DFUYMNpj.cjs +0 -1
  156. package/build/chunks/AssetLoader-Bq-Ekxil.cjs +0 -4
  157. package/build/chunks/AxisCamera-CUb3g8WX.cjs +0 -1
  158. package/build/chunks/AxisCamera-lXJLIPLK.mjs +0 -39
  159. package/build/chunks/AxisHelperColors-BrGqktN5.cjs +0 -1
  160. package/build/chunks/AxisHelperColors-JLBHYQDi.mjs +0 -9
  161. package/build/chunks/FileTypes-DuVGjbcR.mjs +0 -36
  162. package/build/chunks/FileTypes-DzVpDu_p.cjs +0 -1
  163. package/build/chunks/MediaCreator-CEWeS42n.cjs +0 -1
  164. package/build/chunks/ModuleRegistry-CBfx1EVd.mjs +0 -13
  165. package/build/chunks/ModuleRegistry-CDIxOzgZ.cjs +0 -1
  166. package/build/chunks/OrbitController-B8VkQV1e.cjs +0 -1
  167. package/build/chunks/OrbitController-CXu1ko6E.mjs +0 -462
  168. package/build/chunks/PerspectiveCamera-BByyG5R4.cjs +0 -1
  169. package/build/chunks/PerspectiveCamera-PMJPzAn3.mjs +0 -34
  170. package/build/chunks/SelectTool-9eiKZXT4.cjs +0 -1
  171. package/build/chunks/State-BNgqNPrs.mjs +0 -4296
  172. package/build/chunks/State-Mvu0hG-n.cjs +0 -27
  173. package/build/chunks/Toolbox-qFN47t2F.cjs +0 -1
  174. package/build/chunks/VisibilityLayerMask-BI7jPKdx.cjs +0 -1
  175. package/build/chunks/VisibilityLayerMask-CXgt1fJc.mjs +0 -8
  176. package/build/chunks/index-C_uFFwT2.mjs +0 -5
  177. package/build/chunks/index-DAwIH9xh.cjs +0 -1
  178. package/build/chunks/package-CHgGmFCa.cjs +0 -1
  179. package/build/chunks/package-CIkS9WF6.mjs +0 -39
  180. package/build/modules/animation/index.cjs +0 -1
  181. package/build/modules/animation/index.d.ts +0 -2
  182. package/build/modules/animation/index.mjs +0 -5
  183. package/build/modules/ar/index.cjs +0 -1
  184. package/build/modules/ar/index.d.ts +0 -2
  185. package/build/modules/ar/index.mjs +0 -11
  186. package/build/modules/assetconverter/index.cjs +0 -1
  187. package/build/modules/assetconverter/index.d.ts +0 -2
  188. package/build/modules/assetconverter/index.mjs +0 -4
  189. package/build/modules/assetexporter/index.cjs +0 -1
  190. package/build/modules/assetexporter/index.d.ts +0 -2
  191. package/build/modules/assetexporter/index.mjs +0 -4
  192. package/build/modules/assetloader/index.cjs +0 -1
  193. package/build/modules/assetloader/index.d.ts +0 -2
  194. package/build/modules/assetloader/index.mjs +0 -4
  195. package/build/modules/axiscamera/index.cjs +0 -1
  196. package/build/modules/axiscamera/index.d.ts +0 -2
  197. package/build/modules/axiscamera/index.mjs +0 -4
  198. package/build/modules/controller/index.d.ts +0 -2
  199. package/build/modules/controller/index.mjs +0 -5
  200. package/build/modules/mediacreator/index.cjs +0 -1
  201. package/build/modules/mediacreator/index.d.ts +0 -2
  202. package/build/modules/mediacreator/index.mjs +0 -4
  203. package/build/modules/state/index.cjs +0 -1
  204. package/build/modules/state/index.d.ts +0 -2
  205. package/build/modules/state/index.mjs +0 -39
  206. package/build/modules/systeminfo/index.cjs +0 -1
  207. package/build/modules/systeminfo/index.d.ts +0 -2
  208. package/build/modules/toolbox/index.cjs +0 -1
  209. package/build/modules/toolbox/index.d.ts +0 -2
  210. package/build/modules/toolbox/index.mjs +0 -10
  211. package/build/src/modules/ModuleRegistry.d.ts +0 -19
  212. package/build/src/modules/animation/AnimationSystem.d.ts +0 -36
  213. package/build/src/modules/animation/index.d.ts +0 -2
  214. package/build/src/modules/ar/index.d.ts +0 -4
  215. package/build/src/modules/assetconverter/AssetConverter.d.ts +0 -30
  216. package/build/src/modules/assetconverter/index.d.ts +0 -1
  217. package/build/src/modules/assetexporter/index.d.ts +0 -1
  218. package/build/src/modules/assetloader/AssetLoader.d.ts +0 -29
  219. package/build/src/modules/assetloader/index.d.ts +0 -1
  220. package/build/src/modules/axiscamera/index.d.ts +0 -1
  221. package/build/src/modules/controller/index.d.ts +0 -1
  222. package/build/src/modules/mediacreator/MediaCreator.d.ts +0 -44
  223. package/build/src/modules/mediacreator/index.d.ts +0 -1
  224. package/build/src/modules/state/actions/object/addobject.d.ts +0 -8
  225. package/build/src/modules/state/actions/object/deleteobject.d.ts +0 -12
  226. package/build/src/modules/state/actions/object/deselectobject.d.ts +0 -12
  227. package/build/src/modules/state/actions/object/getobjects.d.ts +0 -12
  228. package/build/src/modules/state/actions/object/selectobject.d.ts +0 -12
  229. package/build/src/modules/state/actions/object/setparent.d.ts +0 -22
  230. package/build/src/modules/state/actions/object/updateobject.d.ts +0 -12
  231. package/build/src/modules/state/actions/scene/getallscenedata.d.ts +0 -9
  232. package/build/src/modules/state/index.d.ts +0 -4
  233. package/build/src/modules/state/types/COMBaseEntity.d.ts +0 -8
  234. package/build/src/modules/state/types/COMEntity.d.ts +0 -11
  235. package/build/src/modules/state/types/COMEntityType.d.ts +0 -1
  236. package/build/src/modules/state/types/COMGeometry.d.ts +0 -7
  237. package/build/src/modules/state/types/COMGeometryType.d.ts +0 -1
  238. package/build/src/modules/state/types/COMGroup.d.ts +0 -11
  239. package/build/src/modules/state/types/COMLight.d.ts +0 -28
  240. package/build/src/modules/state/types/COMModel.d.ts +0 -14
  241. package/build/src/modules/state/types/COMPov.d.ts +0 -10
  242. package/build/src/modules/state/types/COMPrimitive.d.ts +0 -14
  243. package/build/src/modules/state/types/index.d.ts +0 -11
  244. package/build/src/modules/systeminfo/index.d.ts +0 -1
  245. package/build/src/modules/toolbox/index.d.ts +0 -4
  246. package/build/src/types/SceneData.d.ts +0 -19
  247. package/build/src/types/SceneObjects.d.ts +0 -9
  248. package/build/src/types/UUID.d.ts +0 -1
  249. /package/build/{chunks/AssetConverter-BTAb23e8.cjs → plugins/assetconverter/index.cjs} +0 -0
  250. /package/build/{chunks/AssetConverter-D-qOTLs1.mjs → plugins/assetconverter/index.mjs} +0 -0
  251. /package/build/src/{modules/animation → plugins/animation/src}/types/AnimatorParameters.d.ts +0 -0
  252. /package/build/src/{modules/ar → plugins/ar/src}/arquicklook/ARQuickLook.d.ts +0 -0
  253. /package/build/src/{modules/ar → plugins/ar/src}/error/ar-errors.d.ts +0 -0
  254. /package/build/src/{modules/ar → plugins/ar/src}/sceneviewer/SceneViewer.d.ts +0 -0
  255. /package/build/src/{modules/ar → plugins/ar/src}/webxr/crosshair/WebXRCrosshair.d.ts +0 -0
  256. /package/build/src/{modules/ar → plugins/ar/src}/webxr/overlay/Overlay.d.ts +0 -0
  257. /package/build/src/{modules/assetloader → plugins/assetloader/src}/draco/DracoLoader.d.ts +0 -0
  258. /package/build/src/{modules/state → plugins/state/src}/ActionRegistry.d.ts +0 -0
  259. /package/build/src/{modules/state → plugins/state/src}/actions/ar/index.d.ts +0 -0
  260. /package/build/src/{modules/state → plugins/state/src}/actions/camera/index.d.ts +0 -0
  261. /package/build/src/{modules/state → plugins/state/src}/actions/index.d.ts +0 -0
  262. /package/build/src/{modules/state → plugins/state/src}/actions/media/index.d.ts +0 -0
  263. /package/build/src/{modules/state → plugins/state/src}/actions/object/index.d.ts +0 -0
  264. /package/build/src/{modules/state → plugins/state/src}/actions/renderer/index.d.ts +0 -0
  265. /package/build/src/{modules/state → plugins/state/src}/actions/scene/index.d.ts +0 -0
  266. /package/build/src/{modules/state → plugins/state/src}/actions/toolbox/index.d.ts +0 -0
  267. /package/build/src/{types/info → plugins/systeminfo/types}/index.d.ts +0 -0
@@ -0,0 +1 @@
1
+ "use strict";var d=Object.defineProperty;var p=(t,e,r)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var o=(t,e,r)=>p(t,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var i=(t=>(t.IOS="iOS",t.ANDROID="Android",t.WINDOWS="Windows",t.MACOS="MacOS",t.LINUX="Linux",t.UNKNOWN="Unknown",t))(i||{}),n=(t=>(t.NO_WEBXR_API="NO_WEBXR_API",t.NO_HTTPS="NO_HTTPS",t.IMMERSIVE_AR_NOT_SUPPORTED_BY_DEVICE="IMMERSIVE_AR_NOT_SUPPORTED_BY_DEVICE",t.AR_PERMISSION_DENIED="AR_PERMISSION_DENIED",t.UNKNOWN_ERROR="UNKNOWN_ERROR",t))(n||{}),c=(t=>(t.CHROMIUM="Chromium",t.SAFARI="Safari",t.WEBKIT="WebKit",t.FIREFOX="Firefox",t.EDGE_LEGACY="EdgeLegacy",t.UNKNOWN="Unknown",t))(c||{});class u{static getSystem(){if(typeof window>"u"||!window.navigator)return i.UNKNOWN;const e=window.navigator.userAgent.toLowerCase();return e.includes("iphone")||e.includes("ipad")?i.IOS:e.includes("android")?i.ANDROID:e.includes("windows")?i.WINDOWS:e.includes("macintosh")?i.MACOS:e.includes("linux")?i.LINUX:i.UNKNOWN}static async getSupportsWebXR(){if(this._supportsWebXR!==!1)return this._supportsWebXR;if(!window.isSecureContext)return this._supportsWebXR=!1,this._webXRUnsupportedReason=n.NO_HTTPS,this._supportsWebXR;if(!navigator.xr)return this._supportsWebXR=!1,this._webXRUnsupportedReason=n.NO_WEBXR_API,this._supportsWebXR;try{const e=await navigator.xr.isSessionSupported("immersive-ar");this._supportsWebXR=e,this._supportsWebXR||(this._webXRUnsupportedReason=n.IMMERSIVE_AR_NOT_SUPPORTED_BY_DEVICE)}catch{this._supportsWebXR=!1,this._webXRUnsupportedReason=n.AR_PERMISSION_DENIED}return this._supportsWebXR}static getWebXRUnsupportedReason(){return this._supportsWebXR?(console.log("WebXR is supported."),null):this._webXRUnsupportedReason}static getSupportsARQuickLook(){return!!document.createElement("a").relList.supports("ar")}static getSupportsSceneViewer(){if(typeof window>"u"||!window.navigator)return!1;const e=window.navigator.userAgent.toLowerCase();if(!e.includes("android")||!e.includes("chrome"))return!1;const r=e.match(/chrome\/(\d+)/);return!(!r||parseInt(r[1])<89)}static get isMobile(){return this.getSystem()===i.ANDROID||this.getSystem()===i.IOS}static get isDesktop(){return!this.isMobile}static getSupportsAR(){return this.getSupportsARQuickLook()||this.getSupportsSceneViewer()}static getBrowser(){var s;if(typeof window>"u"||!window.navigator)return"Unknown";const e=window.navigator.userAgent.toLowerCase(),r=(s=window.navigator.vendor)==null?void 0:s.toLowerCase();return e.includes("fxios/")?"Firefox":e.includes("crios/")?"Chromium":e.includes("firefox/")?"Firefox":e.includes("safari/")&&e.includes("version/")&&!e.includes("chrome/")&&!e.includes("edg/")&&!e.includes("opr/")?"Safari":e.includes("edg/")?"Chromium":e.includes("edge/")?"EdgeLegacy":e.includes("chrome/")||r!=null&&r.includes("google inc.")?"Chromium":e.includes("applewebkit")?"WebKit":"Unknown"}static getIOSVersion(){if(this.getSystem()!==i.IOS||typeof window>"u"||!window.navigator)return null;const r=window.navigator.userAgent.match(/(?:iPhone OS|iPad OS|OS) (\d+[._\d]*)/i);if(r&&r[1]){const s=r[1].replace(/_/g,"."),a=parseInt(s.split(".")[0],10);if(!isNaN(a))return{major:a,full:s}}return null}}o(u,"_supportsWebXR",!1),o(u,"_webXRUnsupportedReason",null);exports.EBrowser=c;exports.ESystem=i;exports.EWebXRUnsupportedReason=n;exports.SystemInfo=u;
@@ -0,0 +1,2 @@
1
+ export * from '../../src/plugins/systeminfo/index'
2
+ export {}
@@ -1,8 +1,7 @@
1
- var p = Object.defineProperty;
2
- var c = (r, e, t) => e in r ? p(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var o = (r, e, t) => c(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { E as s, a as n } from "../../chunks/index-C_uFFwT2.mjs";
5
- var d = /* @__PURE__ */ ((r) => (r.CHROMIUM = "Chromium", r.SAFARI = "Safari", r.WEBKIT = "WebKit", r.FIREFOX = "Firefox", r.EDGE_LEGACY = "EdgeLegacy", r.UNKNOWN = "Unknown", r))(d || {});
1
+ var c = Object.defineProperty;
2
+ var d = (t, e, r) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var o = (t, e, r) => d(t, typeof e != "symbol" ? e + "" : e, r);
4
+ var i = /* @__PURE__ */ ((t) => (t.IOS = "iOS", t.ANDROID = "Android", t.WINDOWS = "Windows", t.MACOS = "MacOS", t.LINUX = "Linux", t.UNKNOWN = "Unknown", t))(i || {}), s = /* @__PURE__ */ ((t) => (t.NO_WEBXR_API = "NO_WEBXR_API", t.NO_HTTPS = "NO_HTTPS", t.IMMERSIVE_AR_NOT_SUPPORTED_BY_DEVICE = "IMMERSIVE_AR_NOT_SUPPORTED_BY_DEVICE", t.AR_PERMISSION_DENIED = "AR_PERMISSION_DENIED", t.UNKNOWN_ERROR = "UNKNOWN_ERROR", t))(s || {}), p = /* @__PURE__ */ ((t) => (t.CHROMIUM = "Chromium", t.SAFARI = "Safari", t.WEBKIT = "WebKit", t.FIREFOX = "Firefox", t.EDGE_LEGACY = "EdgeLegacy", t.UNKNOWN = "Unknown", t))(p || {});
6
5
  class a {
7
6
  /**
8
7
  * Gets the current system (iOS, Android, Windows, etc.)
@@ -10,9 +9,9 @@ class a {
10
9
  */
11
10
  static getSystem() {
12
11
  if (typeof window > "u" || !window.navigator)
13
- return s.UNKNOWN;
12
+ return i.UNKNOWN;
14
13
  const e = window.navigator.userAgent.toLowerCase();
15
- return e.includes("iphone") || e.includes("ipad") ? s.IOS : e.includes("android") ? s.ANDROID : e.includes("windows") ? s.WINDOWS : e.includes("macintosh") ? s.MACOS : e.includes("linux") ? s.LINUX : s.UNKNOWN;
14
+ return e.includes("iphone") || e.includes("ipad") ? i.IOS : e.includes("android") ? i.ANDROID : e.includes("windows") ? i.WINDOWS : e.includes("macintosh") ? i.MACOS : e.includes("linux") ? i.LINUX : i.UNKNOWN;
16
15
  }
17
16
  /**
18
17
  * @returns A promise that resolves to a boolean indicating whether the user's device supports WebXR.
@@ -21,14 +20,14 @@ class a {
21
20
  if (this._supportsWebXR !== !1)
22
21
  return this._supportsWebXR;
23
22
  if (!window.isSecureContext)
24
- return this._supportsWebXR = !1, this._webXRUnsupportedReason = n.NO_HTTPS, this._supportsWebXR;
23
+ return this._supportsWebXR = !1, this._webXRUnsupportedReason = s.NO_HTTPS, this._supportsWebXR;
25
24
  if (!navigator.xr)
26
- return this._supportsWebXR = !1, this._webXRUnsupportedReason = n.NO_WEBXR_API, this._supportsWebXR;
25
+ return this._supportsWebXR = !1, this._webXRUnsupportedReason = s.NO_WEBXR_API, this._supportsWebXR;
27
26
  try {
28
27
  const e = await navigator.xr.isSessionSupported("immersive-ar");
29
- this._supportsWebXR = e, this._supportsWebXR || (this._webXRUnsupportedReason = n.IMMERSIVE_AR_NOT_SUPPORTED_BY_DEVICE);
28
+ this._supportsWebXR = e, this._supportsWebXR || (this._webXRUnsupportedReason = s.IMMERSIVE_AR_NOT_SUPPORTED_BY_DEVICE);
30
29
  } catch {
31
- this._supportsWebXR = !1, this._webXRUnsupportedReason = n.AR_PERMISSION_DENIED;
30
+ this._supportsWebXR = !1, this._webXRUnsupportedReason = s.AR_PERMISSION_DENIED;
32
31
  }
33
32
  return this._supportsWebXR;
34
33
  }
@@ -79,14 +78,14 @@ class a {
79
78
  const e = window.navigator.userAgent.toLowerCase();
80
79
  if (!e.includes("android") || !e.includes("chrome"))
81
80
  return !1;
82
- const t = e.match(/chrome\/(\d+)/);
83
- return !(!t || parseInt(t[1]) < 89);
81
+ const r = e.match(/chrome\/(\d+)/);
82
+ return !(!r || parseInt(r[1]) < 89);
84
83
  }
85
84
  /**
86
85
  * @returns A boolean indicating whether the user's device is a mobile device.
87
86
  */
88
87
  static get isMobile() {
89
- return this.getSystem() === s.ANDROID || this.getSystem() === s.IOS;
88
+ return this.getSystem() === i.ANDROID || this.getSystem() === i.IOS;
90
89
  }
91
90
  /**
92
91
  * @returns A boolean indicating whether the user's device is a desktop device.
@@ -105,31 +104,33 @@ class a {
105
104
  * @returns EBrowser The current browser engine.
106
105
  */
107
106
  static getBrowser() {
108
- var i;
107
+ var n;
109
108
  if (typeof window > "u" || !window.navigator)
110
109
  return "Unknown";
111
- const e = window.navigator.userAgent.toLowerCase(), t = (i = window.navigator.vendor) == null ? void 0 : i.toLowerCase();
110
+ const e = window.navigator.userAgent.toLowerCase(), r = (n = window.navigator.vendor) == null ? void 0 : n.toLowerCase();
112
111
  return e.includes("fxios/") ? "Firefox" : e.includes("crios/") ? "Chromium" : e.includes("firefox/") ? "Firefox" : e.includes("safari/") && e.includes("version/") && !e.includes("chrome/") && // Excludes desktop Chrome, Edge Chromium
113
- !e.includes("edg/") && !e.includes("opr/") ? "Safari" : e.includes("edg/") ? "Chromium" : e.includes("edge/") ? "EdgeLegacy" : e.includes("chrome/") || t != null && t.includes("google inc.") ? "Chromium" : e.includes("applewebkit") ? "WebKit" : "Unknown";
112
+ !e.includes("edg/") && !e.includes("opr/") ? "Safari" : e.includes("edg/") ? "Chromium" : e.includes("edge/") ? "EdgeLegacy" : e.includes("chrome/") || r != null && r.includes("google inc.") ? "Chromium" : e.includes("applewebkit") ? "WebKit" : "Unknown";
114
113
  }
115
114
  /**
116
115
  * Gets the iOS version if the current system is iOS.
117
116
  * @returns An object with { major: number, full: string } or null if not iOS or version not parsable.
118
117
  */
119
118
  static getIOSVersion() {
120
- if (this.getSystem() !== s.IOS || typeof window > "u" || !window.navigator)
119
+ if (this.getSystem() !== i.IOS || typeof window > "u" || !window.navigator)
121
120
  return null;
122
- const t = window.navigator.userAgent.match(/(?:iPhone OS|iPad OS|OS) (\d+[._\d]*)/i);
123
- if (t && t[1]) {
124
- const i = t[1].replace(/_/g, "."), u = parseInt(i.split(".")[0], 10);
121
+ const r = window.navigator.userAgent.match(/(?:iPhone OS|iPad OS|OS) (\d+[._\d]*)/i);
122
+ if (r && r[1]) {
123
+ const n = r[1].replace(/_/g, "."), u = parseInt(n.split(".")[0], 10);
125
124
  if (!isNaN(u))
126
- return { major: u, full: i };
125
+ return { major: u, full: n };
127
126
  }
128
127
  return null;
129
128
  }
130
129
  }
131
130
  o(a, "_supportsWebXR", !1), o(a, "_webXRUnsupportedReason", null);
132
131
  export {
133
- d as EBrowser,
132
+ p as EBrowser,
133
+ i as ESystem,
134
+ s as EWebXRUnsupportedReason,
134
135
  a as SystemInfo
135
136
  };
@@ -0,0 +1 @@
1
+ "use strict";var s=Object.defineProperty;var r=(t,e,o)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var i=(t,e,o)=>r(t,typeof e!="symbol"?e+"":e,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../chunks/SelectTool-DVqL2ebn.cjs");class n{constructor(e,o){i(this,"_scene");i(this,"_controller");i(this,"_activeTool");i(this,"_selectTool");this._scene=e,this._controller=o,this._selectTool=null,this._activeTool=null}get selectTool(){return this._selectTool||(this._selectTool=new l.DIVESelectTool(this._scene,this._controller)),this._selectTool}dispose(){this.removeEventListeners()}getActiveTool(){return this._activeTool}useTool(e){var o;switch((o=this._activeTool)==null||o.deactivate(),e){case"select":{this.addEventListeners(),this.selectTool.activate(),this._activeTool=this.selectTool;break}case"none":{this.removeEventListeners(),this._activeTool=null;break}default:console.warn(`DIVEToolBox.useTool: Unknown tool: ${e}`)}}setGizmoMode(e){this.selectTool.setGizmoMode(e)}setGizmoVisibility(e){this.selectTool.setGizmoVisibility(e)}setGizmoScaleLinked(e){this.selectTool.setGizmoScaleLinked(e)}onPointerMove(e){var o;(o=this._activeTool)==null||o.onPointerMove(e)}onPointerDown(e){var o;(o=this._activeTool)==null||o.onPointerDown(e)}onPointerUp(e){var o;(o=this._activeTool)==null||o.onPointerUp(e)}onWheel(e){var o;(o=this._activeTool)==null||o.onWheel(e)}addEventListeners(){this._controller.domElement.addEventListener("pointermove",e=>this.onPointerMove(e)),this._controller.domElement.addEventListener("pointerdown",e=>this.onPointerDown(e)),this._controller.domElement.addEventListener("pointerup",e=>this.onPointerUp(e)),this._controller.domElement.addEventListener("wheel",e=>this.onWheel(e))}removeEventListeners(){this._controller.domElement.removeEventListener("pointermove",e=>this.onPointerMove(e)),this._controller.domElement.removeEventListener("pointerdown",e=>this.onPointerDown(e)),this._controller.domElement.removeEventListener("pointerup",e=>this.onPointerUp(e)),this._controller.domElement.removeEventListener("wheel",e=>this.onWheel(e))}}i(n,"DefaultTool","select");exports.DIVEBaseTool=l.DIVEBaseTool;exports.DIVESelectTool=l.DIVESelectTool;exports.DIVETransformTool=l.DIVETransformTool;exports.isSelectTool=l.isSelectTool;exports.isTransformTool=l.isTransformTool;exports.Toolbox=n;
@@ -0,0 +1,2 @@
1
+ export * from '../../src/plugins/toolbox/index'
2
+ export {}
@@ -1,7 +1,8 @@
1
1
  var n = Object.defineProperty;
2
2
  var s = (t, e, o) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
3
  var i = (t, e, o) => s(t, typeof e != "symbol" ? e + "" : e, o);
4
- import { a as l } from "./SelectTool-DLXheZay.mjs";
4
+ import { D as l } from "../../chunks/SelectTool-DFpr9XHT.mjs";
5
+ import { a as m, c as T, i as d, b as _ } from "../../chunks/SelectTool-DFpr9XHT.mjs";
5
6
  class r {
6
7
  constructor(e, o) {
7
8
  i(this, "_scene");
@@ -95,5 +96,10 @@ class r {
95
96
  }
96
97
  i(r, "DefaultTool", "select");
97
98
  export {
98
- r as Toolbox
99
+ m as DIVEBaseTool,
100
+ l as DIVESelectTool,
101
+ T as DIVETransformTool,
102
+ r as Toolbox,
103
+ d as isSelectTool,
104
+ _ as isTransformTool
99
105
  };
@@ -1,5 +1,5 @@
1
1
  import { Euler, Object3D, Vector3 } from 'three';
2
- import { OrbitController } from '../../modules/controller/orbit/OrbitController.ts';
2
+ import { OrbitController } from '../../plugins/orbitcontroller/index.ts';
3
3
  import { DIVEGizmoPlane as DIVEGizmoPlane } from './plane/GizmoPlane.ts';
4
4
  import { DIVESelectable } from '../../interfaces/Selectable.ts';
5
5
  export type DIVEGizmoMode = 'translate' | 'rotate' | 'scale';
@@ -2,7 +2,7 @@ import { ColorRepresentation, Object3D, Vector3 } from 'three';
2
2
  import { DIVEHoverable } from '../../../interfaces/Hoverable.ts';
3
3
  import { DIVETranslateGizmo } from '../translate/TranslateGizmo.ts';
4
4
  import { DIVEDraggable } from '../../../interfaces/Draggable.ts';
5
- import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
5
+ import { DraggableEvent } from '../../../plugins/toolbox/index.ts';
6
6
  export declare class DIVEAxisHandle extends Object3D implements DIVEHoverable, DIVEDraggable {
7
7
  readonly isHoverable: true;
8
8
  readonly isDraggable: true;
@@ -1,6 +1,6 @@
1
1
  import { ColorRepresentation, Object3D, Vector3 } from 'three';
2
2
  import { DIVEHoverable } from '../../../interfaces/Hoverable.ts';
3
- import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
3
+ import { DraggableEvent } from '../../../plugins/toolbox/index.ts';
4
4
  import { DIVERotateGizmo } from '../rotate/RotateGizmo.ts';
5
5
  import { DIVEDraggable } from '../../../interfaces/Draggable.ts';
6
6
  export declare class DIVERadialHandle extends Object3D implements DIVEHoverable, DIVEDraggable {
@@ -2,7 +2,7 @@ import { ColorRepresentation, Object3D, Vector3 } from 'three';
2
2
  import { DIVEHoverable } from '../../../interfaces/Hoverable.ts';
3
3
  import { DIVEScaleGizmo } from '../scale/ScaleGizmo.ts';
4
4
  import { DIVEDraggable } from '../../../interfaces/Draggable.ts';
5
- import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
5
+ import { DraggableEvent } from '../../../plugins/toolbox/index.ts';
6
6
  export declare class DIVEScaleHandle extends Object3D implements DIVEHoverable, DIVEDraggable {
7
7
  readonly isHoverable: true;
8
8
  readonly isDraggable: true;
@@ -1,7 +1,7 @@
1
1
  import { Object3D } from 'three';
2
- import { OrbitController } from '../../../modules/controller/orbit/OrbitController.ts';
2
+ import { OrbitController } from '../../../plugins/orbitcontroller/index.ts';
3
3
  import { DIVERadialHandle } from '../handles/RadialHandle.ts';
4
- import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
4
+ import { DraggableEvent } from '../../../plugins/toolbox/index.ts';
5
5
  export declare class DIVERotateGizmo extends Object3D {
6
6
  children: DIVERadialHandle[];
7
7
  private _controller;
@@ -1,8 +1,8 @@
1
1
  import { Object3D, Vector3 } from 'three';
2
2
  import { DIVEHoverable } from '../../../interfaces/Hoverable.ts';
3
- import { OrbitController } from '../../../modules/controller/orbit/OrbitController.ts';
3
+ import { OrbitController } from '../../../plugins/orbitcontroller/index.ts';
4
4
  import { DIVEScaleHandle } from '../handles/ScaleHandle.ts';
5
- import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
5
+ import { DraggableEvent } from '../../../plugins/toolbox/index.ts';
6
6
  export declare class DIVEScaleGizmo extends Object3D implements DIVEHoverable {
7
7
  readonly isHoverable: true;
8
8
  children: DIVEScaleHandle[];
@@ -1,7 +1,7 @@
1
1
  import { Object3D } from 'three';
2
- import { OrbitController } from '../../../modules/controller/orbit/OrbitController.ts';
2
+ import { OrbitController } from '../../../plugins/orbitcontroller/index.ts';
3
3
  import { DIVEAxisHandle } from '../handles/AxisHandle.ts';
4
- import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
4
+ import { DraggableEvent } from '../../../plugins/toolbox/index.ts';
5
5
  export declare class DIVETranslateGizmo extends Object3D {
6
6
  private _controller;
7
7
  set debug(value: boolean);
@@ -1,5 +1,5 @@
1
1
  import { Object3D } from 'three';
2
- import { COMMaterial } from '../../modules/state/types/index.ts';
2
+ import { MaterialSchema } from '../../index.ts';
3
3
  import { DIVENode } from '../node/Node.ts';
4
4
  /**
5
5
  * A basic model class.
@@ -18,7 +18,7 @@ export declare class DIVEModel extends DIVENode {
18
18
  private _getAssetLoader;
19
19
  setFromURL(url: string): Promise<void>;
20
20
  setFromGLTF(gltf: Object3D): void;
21
- setMaterial(material: Partial<COMMaterial>): void;
21
+ setMaterial(material: Partial<MaterialSchema>): void;
22
22
  placeOnFloor(): void;
23
23
  dropIt(): void;
24
24
  }
@@ -1,5 +1,5 @@
1
1
  import { DIVENode } from '../node/Node.ts';
2
- import { COMGeometry, COMMaterial } from '../../modules/state/types/index.ts';
2
+ import { GeometrySchema, MaterialSchema } from '../../index.ts';
3
3
  /**
4
4
  * A basic model class.
5
5
  *
@@ -13,8 +13,8 @@ export declare class DIVEPrimitive extends DIVENode {
13
13
  readonly isDIVEPrimitive: true;
14
14
  private _mesh;
15
15
  constructor();
16
- setGeometry(geometry: COMGeometry): void;
17
- setMaterial(material: Partial<COMMaterial>): void;
16
+ setGeometry(geometry: GeometrySchema): void;
17
+ setMaterial(material: Partial<MaterialSchema>): void;
18
18
  placeOnFloor(): void;
19
19
  dropIt(): void;
20
20
  private assembleGeometry;
@@ -1,5 +1,5 @@
1
1
  import { Box3, Object3D } from 'three';
2
- import { COMEntity, COMEntityType, COMMinimal, COMPartial } from '../../modules/state/types/index.ts';
2
+ import { EntitySchema, EntityTypeSchema, MinimalSchema, PartialSchema } from '../../index.ts';
3
3
  import { DIVESceneObject } from '../../types/index.ts';
4
4
  import { DIVEFloor } from '../floor/Floor.ts';
5
5
  /**
@@ -11,17 +11,15 @@ export declare class DIVERoot extends Object3D {
11
11
  readonly isDIVERoot: true;
12
12
  get floor(): DIVEFloor;
13
13
  private _floor;
14
- private _assetLoader;
15
- private _getAssetLoader;
16
14
  constructor();
17
15
  computeSceneBB(): Box3;
18
- getSceneObject<E extends COMEntityType>(object: Partial<COMEntity> & {
16
+ getSceneObject<E extends EntityTypeSchema>(object: Partial<EntitySchema> & {
19
17
  id: string;
20
18
  entityType: E;
21
19
  }): DIVESceneObject<E> | undefined;
22
- addSceneObject(object: COMEntity): DIVESceneObject | undefined;
23
- updateSceneObject(object: COMPartial): void;
24
- deleteSceneObject(object: COMMinimal<COMEntity>): void;
20
+ addSceneObject(object: EntitySchema): DIVESceneObject | undefined;
21
+ updateSceneObject(object: PartialSchema): void;
22
+ deleteSceneObject(object: MinimalSchema<EntitySchema>): void;
25
23
  private _updateLight;
26
24
  private _updateModel;
27
25
  private _updatePrimitive;
@@ -1,4 +1,4 @@
1
- import { OrbitControllerSettings } from '../modules/controller/orbit/OrbitController.ts';
1
+ import { OrbitControllerSettings } from '../plugins/orbitcontroller/index.ts';
2
2
  import { DIVEEngine, EngineSettings } from '../engine/Engine.ts';
3
3
  declare global {
4
4
  interface Window {
@@ -13,6 +13,7 @@ export declare class DIVEClock {
13
13
  stop(): void;
14
14
  setRenderer(renderer: DIVERenderPipeline): void;
15
15
  addTicker(ticker: DIVETicker): void;
16
+ hasTicker(ticker: DIVETicker): boolean;
16
17
  removeTicker(ticker: DIVETicker): void;
17
18
  dispose(): void;
18
19
  private _tick;
@@ -1,4 +1,6 @@
1
1
  export * from './core/index.ts';
2
+ export * from './constants/index.ts';
3
+ export * from './components/index.ts';
2
4
  export * from './engine/index.ts';
3
5
  export * from './interfaces/index.ts';
4
6
  export * from './helpers/index.ts';
@@ -6,4 +8,3 @@ export { FileTypeError } from './error/file-type/file-type-error.ts';
6
8
  export { NetworkError } from './error/network/network-error.ts';
7
9
  export { ParseError } from './error/parse/parse-error.ts';
8
10
  export * from './types/index.ts';
9
- export * from './modules/ModuleRegistry.ts';
@@ -1,4 +1,4 @@
1
- import { DraggableEvent } from '../modules/toolbox/BaseTool.ts';
1
+ import { DraggableEvent } from '../plugins/toolbox/index.ts';
2
2
  export interface DIVEDraggable {
3
3
  isDraggable: true;
4
4
  onDragStart?: (e: DraggableEvent) => void;
@@ -0,0 +1,2 @@
1
+ export * from './src/index.ts';
2
+ export * as TWEEN from '@tweenjs/tween.js';
@@ -1,5 +1,4 @@
1
- import { EventDispatcher, Event } from 'three';
2
- import { UUID } from '../../../types/index.ts';
1
+ import { EventDispatcher, Event } from 'three/src/core/EventDispatcher.js';
3
2
  import { TAnimatorParameters } from '../types/AnimatorParameters.ts';
4
3
  type TAnimatorEventMap = {
5
4
  play: Event;
@@ -15,7 +14,7 @@ export declare class Animator<T extends object> extends EventDispatcher<TAnimato
15
14
  private _stopped;
16
15
  private _completed;
17
16
  constructor(object: T, to: T, duration: number, options?: TAnimatorParameters<T> | undefined);
18
- get uuid(): UUID;
17
+ get uuid(): string;
19
18
  get playing(): boolean;
20
19
  get stopped(): boolean;
21
20
  get completed(): boolean;
@@ -0,0 +1,3 @@
1
+ export * from './system/AnimationSystem.ts';
2
+ export * from './animator/Animator.ts';
3
+ export * from './types/AnimatorParameters.ts';
@@ -0,0 +1,23 @@
1
+ import { DIVETicker } from '../../../../index.ts';
2
+ import { Animator } from '../animator/Animator.ts';
3
+ import { TAnimatorParameters } from '../types/AnimatorParameters.ts';
4
+ import * as TWEEN from '@tweenjs/tween.js';
5
+ export declare class AnimationSystem implements DIVETicker {
6
+ uuid: string;
7
+ TWEEN: typeof TWEEN;
8
+ private _callbackMap;
9
+ private _tweens;
10
+ /**
11
+ * Creates a new animator and registers it.
12
+ * @param object - The object to animate.
13
+ * @param to - The target value.
14
+ * @param duration - The duration of the animation in milliseconds.
15
+ * @param options - The options for the animation.
16
+ * @returns The animator.
17
+ */
18
+ animate<T extends object>(object: T, to: T, duration: number, options?: TAnimatorParameters<T>): Animator<T>;
19
+ remove(uuid: string): void;
20
+ dispose(): void;
21
+ tick(): void;
22
+ private _createTween;
23
+ }
@@ -0,0 +1,4 @@
1
+ export * from './src/ARSystem.ts';
2
+ export * from './src/arquicklook/ARQuickLook.ts';
3
+ export * from './src/sceneviewer/SceneViewer.ts';
4
+ export * from './src/error/ar-errors.ts';
@@ -1,30 +1,3 @@
1
- declare global {
2
- interface ModuleClasses {
3
- ARSystem: typeof ARSystem;
4
- }
5
- }
6
- /**
7
- * @module ARSystem
8
- *
9
- * The AR module enables Augmented Reality features across different platforms:
10
- *
11
- * ```ts
12
- * import { ARSystem } from '@shopware-ag/dive/modules/ARSystem';
13
- *
14
- * const arSystem = new ARSystem();
15
- *
16
- * // Launch AR with options
17
- * await arSystem.launch('path/to/model.glb', {
18
- * arPlacement: 'horizontal', // or 'vertical'
19
- * arScale: 'auto' // or 'fixed'
20
- * });
21
- * ```
22
- *
23
- * Features:
24
- * - Platform-specific AR implementations (ARQuickLook for iOS, SceneViewer for Android)
25
- * - Automatic format conversion for AR compatibility
26
- * - Configurable placement and scaling options
27
- */
28
1
  /**
29
2
  * Options for configuring the AR system behavior
30
3
  */
@@ -1,5 +1,5 @@
1
- import { OrbitController } from '../../../modules/controller/orbit/OrbitController.ts';
2
- import { DIVEEngine } from '../../../engine/Engine.ts';
1
+ import { OrbitController } from '../../../orbitcontroller/index.ts';
2
+ import { DIVEEngine } from '../../../../index.ts';
3
3
  export declare class DIVEWebXR {
4
4
  private static _renderer;
5
5
  private static _scene;
@@ -1,6 +1,6 @@
1
1
  import { Object3D } from 'three';
2
- import { DIVERenderPipeline } from '../../../../engine/renderer/Renderer.ts';
3
- import { DIVEScene } from '../../../../engine/scene/Scene.ts';
2
+ import { DIVERenderPipeline } from '../../../../../engine/renderer/Renderer.ts';
3
+ import { DIVEScene } from '../../../../../engine/scene/Scene.ts';
4
4
  export declare class DIVEWebXRController extends Object3D {
5
5
  private _renderer;
6
6
  private _scene;
@@ -1,5 +1,5 @@
1
1
  import { Matrix4, Quaternion, Vector3 } from 'three';
2
- import { DIVERenderPipeline } from '../../../../engine/renderer/Renderer.ts';
2
+ import { DIVERenderPipeline } from '../../../../../engine/renderer/Renderer.ts';
3
3
  export declare class DIVEWebXROrigin {
4
4
  private _renderer;
5
5
  private _session;
@@ -1,7 +1,7 @@
1
1
  import { Matrix4, Mesh, Vector3 } from 'three';
2
- import { DIVERenderPipeline } from '../../../../engine/renderer/Renderer.ts';
3
- import { DIVEScene } from '../../../../engine/scene/Scene.ts';
4
- import { DIVEEventExecutor } from '../../../../events/EventExecutor.ts';
2
+ import { DIVERenderPipeline } from '../../../../../engine/renderer/Renderer.ts';
3
+ import { DIVEScene } from '../../../../../engine/scene/Scene.ts';
4
+ import { DIVEEventExecutor } from '../../../../../events/EventExecutor.ts';
5
5
  /**
6
6
  * object is undefined when AR world is hit.
7
7
  */
@@ -1,4 +1,4 @@
1
- import { DIVERenderPipeline } from '../../../../../engine/renderer/Renderer.ts';
1
+ import { DIVERenderPipeline } from '../../../../../../engine/renderer/Renderer.ts';
2
2
  import { DIVEHitResult } from '../WebXRRaycaster.ts';
3
3
  export declare class DIVEWebXRRaycasterAR {
4
4
  private _session;
@@ -1,5 +1,5 @@
1
- import { DIVERenderPipeline } from '../../../../../engine/renderer/Renderer.ts';
2
- import { DIVEScene } from '../../../../../engine/scene/Scene.ts';
1
+ import { DIVERenderPipeline } from '../../../../../../engine/renderer/Renderer.ts';
2
+ import { DIVEScene } from '../../../../../../engine/scene/Scene.ts';
3
3
  import { DIVEHitResult } from '../WebXRRaycaster.ts';
4
4
  export declare class DIVEWebXRRaycasterTHREE {
5
5
  private _renderer;
@@ -1,5 +1,5 @@
1
1
  import { Vector2 } from 'three';
2
- import { DIVEEventExecutor } from '../../../../events/EventExecutor.ts';
2
+ import { DIVEEventExecutor } from '../../../../../events/EventExecutor.ts';
3
3
  export type DIVETouchscreenEvents = {
4
4
  TOUCH_START: {
5
5
  touches: {
@@ -0,0 +1 @@
1
+ export * from './src/AssetConverter.ts';
@@ -0,0 +1,13 @@
1
+ import { AssetLoader } from '../../assetloader/index.ts';
2
+ import { AssetExporter, FileTypeToExporterOptions } from '../../assetexporter/index.ts';
3
+ import { FileType } from '../../../index.ts';
4
+ export declare class AssetConverter {
5
+ private _loader;
6
+ private _exporter;
7
+ private _uri;
8
+ constructor(_loader: AssetLoader, _exporter: AssetExporter);
9
+ convert(uri: string): {
10
+ to: <T extends FileType>(type: T, options?: FileTypeToExporterOptions[T]) => Promise<ArrayBuffer>;
11
+ };
12
+ private _to;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './src/AssetExporter.ts';
@@ -1,12 +1,7 @@
1
1
  import { Object3D } from 'three';
2
2
  import { GLTFExporterOptions as THREEGLTFExporterOptions } from 'three/examples/jsm/exporters/GLTFExporter.js';
3
3
  import { USDZExporterOptions as THREEUSDZExporterOptions } from 'three/examples/jsm/exporters/USDZExporter.js';
4
- import { FileType } from '../../types/file/FileTypes.ts';
5
- declare global {
6
- interface ModuleClasses {
7
- AssetExporter: typeof AssetExporter;
8
- }
9
- }
4
+ import { FileType } from '../../../types/file/FileTypes.ts';
10
5
  export type USDZExporterOptions = THREEUSDZExporterOptions & {
11
6
  ar?: {
12
7
  anchoring: {
@@ -23,18 +18,6 @@ export type FileTypeToExporterOptions = {
23
18
  gltf: GLTFExporterOptions;
24
19
  usdz: USDZExporterOptions;
25
20
  };
26
- /**
27
- * @module AssetExporter
28
- *
29
- * Exports 3D assets to various formats:
30
- *
31
- * ```ts
32
- * import { AssetExporter } from '@shopware-ag/dive/modules/AssetExporter';
33
- *
34
- * const assetExporter = new AssetExporter();
35
- * const buffer = await assetExporter.export(model, 'glb');
36
- * ```
37
- */
38
21
  export declare class AssetExporter {
39
22
  private _gltfExporter;
40
23
  private _usdzExporter;
@@ -0,0 +1,3 @@
1
+ export * from './src/loader/AssetLoader.ts';
2
+ export * from './src/draco/DracoLoader.ts';
3
+ export * from './src/draco/worker/DracoWorker.js';
@@ -0,0 +1,8 @@
1
+ import { Object3D } from 'three';
2
+ export declare class AssetLoader {
3
+ private _gltfLoader;
4
+ private _usdzLoader;
5
+ constructor();
6
+ private _loadFile;
7
+ load(uri: string): Promise<Object3D>;
8
+ }
@@ -0,0 +1 @@
1
+ export * from './src/AxisCamera.ts';
@@ -1,8 +1,5 @@
1
1
  import { Matrix4, OrthographicCamera } from 'three';
2
- import { DIVERenderPipeline } from '../../engine/renderer/Renderer.ts';
3
- import { DIVETicker } from '../../engine/clock/Clock.ts';
4
- import { DIVEScene } from '../../engine/scene/Scene.ts';
5
- import { DIVEPerspectiveCamera } from '../../engine/camera/PerspectiveCamera.ts';
2
+ import { DIVERenderPipeline, DIVETicker, DIVEScene, DIVEPerspectiveCamera } from '../../../index.ts';
6
3
  /**
7
4
  * Shows the scene axes in the bottom left corner of the screen.
8
5
  *
@@ -0,0 +1 @@
1
+ export { MediaCreator } from './src/MediaCreator.ts';
@@ -0,0 +1,15 @@
1
+ import { DIVEScene } from '../../../engine/scene/Scene.ts';
2
+ import { DIVERenderPipeline } from '../../../engine/renderer/Renderer.ts';
3
+ import { OrbitController } from '../../orbitcontroller/index.ts';
4
+ import { Vector3Like } from 'three';
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare class MediaCreator {
9
+ private _renderer;
10
+ private _scene;
11
+ private _controller;
12
+ constructor(renderer: DIVERenderPipeline, scene: DIVEScene, controller: OrbitController);
13
+ generateMedia(position: Vector3Like, target: Vector3Like, width: number, height: number): string;
14
+ drawCanvas(canvasElement?: HTMLCanvasElement): HTMLCanvasElement;
15
+ }
@@ -0,0 +1 @@
1
+ export * from './src/OrbitController.ts';
@@ -1,7 +1,7 @@
1
1
  import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
2
- import { DIVEPerspectiveCamera } from '../../../engine/camera/PerspectiveCamera.ts';
3
- import { Box3, Vector3Like } from 'three';
4
- import { DIVETicker } from '../../../engine/clock/Clock.ts';
2
+ import { Vector3Like } from 'three/src/math/Vector3.js';
3
+ import { Box3 } from 'three/src/math/Box3.js';
4
+ import { DIVEPerspectiveCamera, DIVETicker } from '../../../index.ts';
5
5
  export type OrbitControllerSettings = {
6
6
  /** Whether to enable damping for smooth camera movement */
7
7
  enableDamping: boolean;
@@ -0,0 +1,4 @@
1
+ export * from './src/State.ts';
2
+ export * from './src/actions/index.ts';
3
+ export * from './src/ActionRegistry.ts';
4
+ export * from './types/index.ts';