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

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-DCBiLwef.cjs +4 -0
  4. package/build/chunks/{AssetLoader-BewzFwHi.mjs → AssetLoader-Dqrg0Re8.mjs} +38 -35
  5. package/build/chunks/FileTypes-Ca8pkRlQ.cjs +30 -0
  6. package/build/chunks/FileTypes-CpKiTXEY.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-BizqI7_a.cjs +1 -0
  16. package/build/chunks/{SelectTool-DLXheZay.mjs → SelectTool-DVFL7BtX.mjs} +10 -10
  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-CeZyVg2G.mjs +39 -0
  20. package/build/chunks/package-D_hIrGNz.cjs +1 -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 +41 -41
  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
@@ -1,31 +1,8 @@
1
- import { OrbitController } from '../controller/orbit/OrbitController.ts';
2
- import { DIVEEngine } from '../../engine/Engine.ts';
3
- import { ActionPayload, ActionReturn } from './types/index.ts';
1
+ import { DIVEEngine } from '../../../index.ts';
2
+ import { OrbitController } from '../../orbitcontroller/index.ts';
3
+ import { ActionPayload, ActionReturn } from '../types/index.ts';
4
4
  export type ActionSubscriber<ActionType extends keyof ActionTypes> = (payload: ActionPayload<ActionTypes[ActionType]>) => void;
5
5
  export type ActionUnsubscribe = () => void;
6
- declare global {
7
- interface ModuleClasses {
8
- State: typeof State;
9
- }
10
- }
11
- /**
12
- * @module State
13
- * State class for communicating with DIVE.
14
- *
15
- * You can subscribe to actions and perform them from outside and inside DIVE.
16
- *
17
- * ```ts
18
- * import { DIVE } from "@shopware-ag/dive";
19
- *
20
- * const dive = new DIVE();
21
- *
22
- * dive.State.subscribe('GET_ALL_SCENE_DATA', () => {
23
- * // do something
24
- * });
25
- *
26
- * dive.State.performAction('GET_ALL_SCENE_DATA', {});
27
- * ```
28
- */
29
6
  export declare class State {
30
7
  private static __instances;
31
8
  static get(id: string): State | undefined;
@@ -54,5 +31,5 @@ export declare class State {
54
31
  }
55
32
  export * from './ActionRegistry.ts';
56
33
  export * from './actions/index.ts';
57
- export * from './types/index.ts';
34
+ export * from '../types/index.ts';
58
35
  export type { ActionTypes };
@@ -1,4 +1,4 @@
1
- import { ActionDependencies } from '../types/index.ts';
1
+ import { ActionDependencies } from '../../types/index.ts';
2
2
  /**
3
3
  * Abstract base class for implementing actions in the system.
4
4
  * Actions represent discrete units of work that can be executed with specific payloads and dependencies.
@@ -1,6 +1,6 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
3
- import { ARSystemOptions } from '../../../ar/ARSystem.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { ARSystemOptions } from '../../../../ar/index.ts';
4
4
  export declare const LaunchARAction: new (payload: {
5
5
  uri: string;
6
6
  options?: ARSystemOptions;
@@ -1,6 +1,6 @@
1
1
  import { Action } from '../action.ts';
2
2
  import { Vector3Like } from 'three';
3
- import { ActionDependencies } from '../../types/index.ts';
3
+ import { ActionDependencies } from '../../../types/index.ts';
4
4
  export declare const ComputeEncompassingViewAction: new (payload: void, dependencies: Pick<ActionDependencies, "engine" | "controller">) => Action<void, Pick<ActionDependencies, "engine" | "controller">, {
5
5
  position: Vector3Like;
6
6
  target: Vector3Like;
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  import { Vector3Like } from 'three';
4
4
  export declare const GetCameraTransformAction: new (payload: void, dependencies: Pick<ActionDependencies, "controller">) => Action<void, Pick<ActionDependencies, "controller">, {
5
5
  position: Vector3Like;
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const SetCameraLockedAction: new (payload: boolean, dependencies: Pick<ActionDependencies, "controller">) => Action<boolean, Pick<ActionDependencies, "controller">, void>;
4
4
  declare global {
5
5
  interface ActionTypes {
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  import { Vector3Like } from 'three';
4
4
  export declare const MoveCameraAction: new (payload: {
5
5
  position: Vector3Like;
@@ -10,7 +10,7 @@ export declare const MoveCameraAction: new (payload: {
10
10
  id: string;
11
11
  locked: boolean;
12
12
  duration: number;
13
- }, dependencies: Pick<ActionDependencies, "engine" | "registered" | "controller" | "getAnimationSystem">) => Action<{
13
+ }, dependencies: Pick<ActionDependencies, "registered" | "engine" | "controller" | "getAnimationSystem">) => Action<{
14
14
  position: Vector3Like;
15
15
  target: Vector3Like;
16
16
  locked: boolean;
@@ -19,7 +19,7 @@ export declare const MoveCameraAction: new (payload: {
19
19
  id: string;
20
20
  locked: boolean;
21
21
  duration: number;
22
- }, Pick<ActionDependencies, "engine" | "registered" | "controller" | "getAnimationSystem">, Promise<{
22
+ }, Pick<ActionDependencies, "registered" | "engine" | "controller" | "getAnimationSystem">, Promise<{
23
23
  stop: () => void;
24
24
  }>>;
25
25
  declare global {
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const SetCameraLayerAction: new (payload: {
4
4
  layer: "LIVE" | "EDITOR";
5
5
  }, dependencies: Pick<ActionDependencies, "controller">) => Action<{
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  import { Vector3Like } from 'three';
4
4
  export declare const SetCameraTransformAction: new (payload: {
5
5
  position: Vector3Like;
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const ZoomCameraAction: new (payload: {
4
4
  direction: "IN" | "OUT";
5
5
  by: number;
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  import { Vector3Like } from 'three';
4
4
  export declare const GenerateMediaAction: new (payload: ({
5
5
  position: Vector3Like;
@@ -0,0 +1,9 @@
1
+ import { Action } from '../action.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { EntitySchema } from '../../../../../index.ts';
4
+ export declare const AddObjectAction: new (payload: EntitySchema, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<EntitySchema, Pick<ActionDependencies, "registered" | "engine">, void>;
5
+ declare global {
6
+ interface ActionTypes {
7
+ ADD_OBJECT: typeof AddObjectAction;
8
+ }
9
+ }
@@ -0,0 +1,13 @@
1
+ import { Action } from '../action.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { EntitySchema } from '../../../../../index.ts';
4
+ export declare const DeleteObjectAction: new (payload: Partial<EntitySchema> & {
5
+ id: string;
6
+ }, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<Partial<EntitySchema> & {
7
+ id: string;
8
+ }, Pick<ActionDependencies, "registered" | "engine">, void>;
9
+ declare global {
10
+ interface ActionTypes {
11
+ DELETE_OBJECT: typeof DeleteObjectAction;
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ import { Action } from '../action.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { EntitySchema } from '../../../../../index.ts';
4
+ export declare const DeselectObjectAction: new (payload: Partial<EntitySchema> & {
5
+ id: string;
6
+ }, dependencies: Pick<ActionDependencies, "registered" | "engine" | "getToolbox">) => Action<Partial<EntitySchema> & {
7
+ id: string;
8
+ }, Pick<ActionDependencies, "registered" | "engine" | "getToolbox">, Promise<void>>;
9
+ declare global {
10
+ interface ActionTypes {
11
+ DESELECT_OBJECT: typeof DeselectObjectAction;
12
+ }
13
+ }
@@ -1,10 +1,10 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const DropItAction: new (payload: {
4
4
  id: string;
5
- }, dependencies: Pick<ActionDependencies, "engine" | "registered">) => Action<{
5
+ }, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<{
6
6
  id: string;
7
- }, Pick<ActionDependencies, "engine" | "registered">, void>;
7
+ }, Pick<ActionDependencies, "registered" | "engine">, void>;
8
8
  declare global {
9
9
  interface ActionTypes {
10
10
  DROP_IT: typeof DropItAction;
@@ -1,6 +1,7 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies, COMEntity } from '../../types/index.ts';
3
- export declare const GetAllObjectsAction: new (payload: void, dependencies: Pick<ActionDependencies, "registered">) => Action<void, Pick<ActionDependencies, "registered">, Map<string, COMEntity>>;
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { EntitySchema } from '../../../../../index.ts';
4
+ export declare const GetAllObjectsAction: new (payload: void, dependencies: Pick<ActionDependencies, "registered">) => Action<void, Pick<ActionDependencies, "registered">, Map<string, EntitySchema>>;
4
5
  declare global {
5
6
  interface ActionTypes {
6
7
  GET_ALL_OBJECTS: typeof GetAllObjectsAction;
@@ -0,0 +1,13 @@
1
+ import { Action } from '../action.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { EntitySchema } from '../../../../../index.ts';
4
+ export declare const GetObjectsAction: new (payload: {
5
+ ids: string[];
6
+ }, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<{
7
+ ids: string[];
8
+ }, Pick<ActionDependencies, "registered" | "engine">, EntitySchema[]>;
9
+ declare global {
10
+ interface ActionTypes {
11
+ GET_OBJECTS: typeof GetObjectsAction;
12
+ }
13
+ }
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const ModelLoadedAction: new (payload: {
4
4
  id: string;
5
5
  }, dependencies: Pick<ActionDependencies, "registered">) => Action<{
@@ -1,10 +1,10 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const PlaceOnFloorAction: new (payload: {
4
4
  id: string;
5
- }, dependencies: Pick<ActionDependencies, "engine" | "registered">) => Action<{
5
+ }, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<{
6
6
  id: string;
7
- }, Pick<ActionDependencies, "engine" | "registered">, void>;
7
+ }, Pick<ActionDependencies, "registered" | "engine">, void>;
8
8
  declare global {
9
9
  interface ActionTypes {
10
10
  PLACE_ON_FLOOR: typeof PlaceOnFloorAction;
@@ -0,0 +1,13 @@
1
+ import { Action } from '../action.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { EntitySchema } from '../../../../../index.ts';
4
+ export declare const SelectObjectAction: new (payload: Partial<EntitySchema> & {
5
+ id: string;
6
+ }, dependencies: Pick<ActionDependencies, "registered" | "engine" | "getToolbox">) => Action<Partial<EntitySchema> & {
7
+ id: string;
8
+ }, Pick<ActionDependencies, "registered" | "engine" | "getToolbox">, Promise<void>>;
9
+ declare global {
10
+ interface ActionTypes {
11
+ SELECT_OBJECT: typeof SelectObjectAction;
12
+ }
13
+ }
@@ -0,0 +1,23 @@
1
+ import { Action } from '../action.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { EntitySchema } from '../../../../../index.ts';
4
+ export declare const SetParentAction: new (payload: {
5
+ object: Partial<EntitySchema> & {
6
+ id: string;
7
+ };
8
+ parent: (Partial<EntitySchema> & {
9
+ id: string;
10
+ }) | null;
11
+ }, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<{
12
+ object: Partial<EntitySchema> & {
13
+ id: string;
14
+ };
15
+ parent: (Partial<EntitySchema> & {
16
+ id: string;
17
+ }) | null;
18
+ }, Pick<ActionDependencies, "registered" | "engine">, void>;
19
+ declare global {
20
+ interface ActionTypes {
21
+ SET_PARENT: typeof SetParentAction;
22
+ }
23
+ }
@@ -0,0 +1,13 @@
1
+ import { Action } from '../action.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { EntitySchema } from '../../../../../index.ts';
4
+ export declare const UpdateObjectAction: new (payload: Partial<EntitySchema> & {
5
+ id: string;
6
+ }, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<Partial<EntitySchema> & {
7
+ id: string;
8
+ }, Pick<ActionDependencies, "registered" | "engine">, void>;
9
+ declare global {
10
+ interface ActionTypes {
11
+ UPDATE_OBJECT: typeof UpdateObjectAction;
12
+ }
13
+ }
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const StartRenderAction: new (payload: void, dependencies: Pick<ActionDependencies, "engine">) => Action<void, Pick<ActionDependencies, "engine">, void>;
4
4
  declare global {
5
5
  interface ActionTypes {
@@ -1,10 +1,10 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
3
- import { DIVESceneFileType } from '../../../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { StateExportFileType } from '../../../types/StateExportFileType.ts';
4
4
  export declare const ExportSceneAction: new (payload: {
5
- type: keyof DIVESceneFileType;
5
+ type: keyof StateExportFileType;
6
6
  }, dependencies: Pick<ActionDependencies, "engine" | "getAssetExporter">) => Action<{
7
- type: keyof DIVESceneFileType;
7
+ type: keyof StateExportFileType;
8
8
  }, Pick<ActionDependencies, "engine" | "getAssetExporter">, Promise<ArrayBuffer | null>>;
9
9
  declare global {
10
10
  interface ActionTypes {
@@ -0,0 +1,9 @@
1
+ import { Action } from '../action.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { StateSceneData } from '../../../types/StateSceneData.ts';
4
+ export declare const GetAllSceneDataAction: new (payload: object, dependencies: Pick<ActionDependencies, "registered" | "engine" | "controller">) => Action<object, Pick<ActionDependencies, "registered" | "engine" | "controller">, StateSceneData>;
5
+ declare global {
6
+ interface ActionTypes {
7
+ GET_ALL_SCENE_DATA: typeof GetAllSceneDataAction;
8
+ }
9
+ }
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const SetBackgroundAction: new (payload: {
4
4
  color: string | number;
5
5
  }, dependencies: Pick<ActionDependencies, "engine">) => Action<{
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const UpdateSceneAction: new (payload: Partial<{
4
4
  name: string;
5
5
  backgroundColor: string | number;
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const SetGizmoModeAction: new (payload: {
4
4
  mode: "translate" | "rotate" | "scale";
5
5
  }, dependencies: Pick<ActionDependencies, "getToolbox">) => Action<{
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const SetGizmoScaleLinkedAction: new (payload: boolean, dependencies: Pick<ActionDependencies, "getToolbox">) => Action<boolean, Pick<ActionDependencies, "getToolbox">, Promise<void>>;
4
4
  declare global {
5
5
  interface ActionTypes {
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
3
  export declare const SetGizmoVisibilityAction: new (payload: boolean, dependencies: Pick<ActionDependencies, "getToolbox">) => Action<boolean, Pick<ActionDependencies, "getToolbox">, Promise<void>>;
4
4
  declare global {
5
5
  interface ActionTypes {
@@ -1,6 +1,6 @@
1
1
  import { Action } from '../action.ts';
2
- import { ActionDependencies } from '../../types/index.ts';
3
- import { ToolType } from '../../../toolbox/Toolbox.ts';
2
+ import { ActionDependencies } from '../../../types/index.ts';
3
+ import { ToolType } from '../../../../toolbox/index.ts';
4
4
  export declare const UseToolAction: new (payload: {
5
5
  tool: ToolType;
6
6
  }, dependencies: Pick<ActionDependencies, "getToolbox">) => Action<{
@@ -1,18 +1,17 @@
1
- import { DIVEEngine } from '../../../engine/Engine.ts';
2
- import { OrbitController } from '../../controller/orbit/OrbitController.ts';
3
- import { COMEntity } from '../types/index.ts';
1
+ import { DIVEEngine, EntitySchema } from '../../../index.ts';
2
+ import { OrbitController } from '../../orbitcontroller/index.ts';
4
3
  export type ActionPayload<T> = T extends new (payload: infer P, dependencies: infer D) => unknown ? P : never;
5
4
  export type ActionReturn<T> = T extends new (payload: infer P, dependencies: infer D) => infer ClassInstance ? ClassInstance extends {
6
5
  execute(): infer E;
7
6
  } ? E : never : never;
8
7
  export type ActionDeps<T> = T extends new (payload: unknown, dependencies: infer D) => unknown ? D extends Partial<ActionDependencies> ? D : never : never;
9
8
  export interface ActionDependencies {
10
- registered: Map<string, COMEntity>;
9
+ registered: Map<string, EntitySchema>;
11
10
  engine: DIVEEngine;
12
11
  controller: OrbitController;
13
- getAnimationSystem: () => Promise<import('../../animation/AnimationSystem.ts').AnimationSystem>;
14
- getARSystem: () => Promise<import('../../ar/ARSystem.ts').ARSystem>;
15
- getAssetExporter: () => Promise<import('../../assetexporter/AssetExporter.ts').AssetExporter>;
16
- getMediaCreator: () => Promise<import('../../mediacreator/MediaCreator.ts').MediaCreator>;
17
- getToolbox: () => Promise<import('../../toolbox/Toolbox.ts').Toolbox>;
12
+ getAnimationSystem: () => Promise<import('../../animation/index.ts').AnimationSystem>;
13
+ getARSystem: () => Promise<import('../../ar/index.ts').ARSystem>;
14
+ getAssetExporter: () => Promise<import('../../assetexporter/index.ts').AssetExporter>;
15
+ getMediaCreator: () => Promise<import('../../mediacreator/index.ts').MediaCreator>;
16
+ getToolbox: () => Promise<import('../../toolbox/index.ts').Toolbox>;
18
17
  }
@@ -1,4 +1,4 @@
1
1
  import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.ts';
2
- export type DIVESceneFileType = {
2
+ export type StateExportFileType = {
3
3
  glb: GLTF;
4
4
  };
@@ -0,0 +1,19 @@
1
+ import { Vector3Like } from 'three';
2
+ import { GroupSchema, LightSchema, ModelSchema, PovSchema, PrimitiveSchema } from '../../../index.ts';
3
+ export type StateSceneData = {
4
+ name: string;
5
+ mediaItem: null;
6
+ backgroundColor: string;
7
+ floorEnabled: boolean;
8
+ floorColor: string;
9
+ userCamera: {
10
+ position: Vector3Like;
11
+ target: Vector3Like;
12
+ };
13
+ spotmarks: object[];
14
+ lights: LightSchema[];
15
+ objects: ModelSchema[];
16
+ cameras: PovSchema[];
17
+ primitives: PrimitiveSchema[];
18
+ groups: GroupSchema[];
19
+ };
@@ -0,0 +1 @@
1
+ export * from './ActionTypes.ts';
@@ -0,0 +1,2 @@
1
+ export { SystemInfo, EBrowser } from './src/SystemInfo.ts';
2
+ export { ESystem, EWebXRUnsupportedReason } from './types/index.ts';
@@ -1,4 +1,4 @@
1
- import { ESystem, EWebXRUnsupportedReason } from '../../types/info/index.ts';
1
+ import { ESystem, EWebXRUnsupportedReason } from '../types/index.ts';
2
2
  export declare enum EBrowser {
3
3
  CHROMIUM = "Chromium",// Chrome, Opera, Brave, new Edge, Chrome on iOS
4
4
  SAFARI = "Safari",// Apple Safari
@@ -7,37 +7,6 @@ export declare enum EBrowser {
7
7
  EDGE_LEGACY = "EdgeLegacy",// Old EdgeHTML Edge
8
8
  UNKNOWN = "Unknown"
9
9
  }
10
- declare global {
11
- interface ModuleClasses {
12
- SystemInfo: typeof SystemInfo;
13
- }
14
- }
15
- /**
16
- * @module SystemInfo
17
- *
18
- * Provides information about the system's capabilities and performance:
19
- *
20
- * ```ts
21
- * import { SystemInfo } from '@shopware-ag/dive/modules/SystemInfo';
22
- *
23
- * // Get system information
24
- * const system = SystemInfo.getSystem(); // Returns ESystem enum (IOS, ANDROID, etc.)
25
- *
26
- * // Check AR capabilities
27
- * const supportsAR = SystemInfo.getSupportsAR();
28
- *
29
- * // Check device type
30
- * const isMobile = SystemInfo.isMobile;
31
- * const isDesktop = SystemInfo.isDesktop;
32
- * ```
33
- *
34
- * Features:
35
- * - System detection (iOS, Android, Windows, etc.)
36
- * - WebXR support detection
37
- * - AR capability checking
38
- * - Device type detection
39
- * - SceneViewer support detection
40
- */
41
10
  export declare class SystemInfo {
42
11
  private static _supportsWebXR;
43
12
  private static _webXRUnsupportedReason;
@@ -0,0 +1,4 @@
1
+ export * from './src/Toolbox.ts';
2
+ export * from './src/BaseTool.ts';
3
+ export * from './src/select/SelectTool.ts';
4
+ export * from './src/transform/TransformTool.ts';
@@ -1,8 +1,6 @@
1
1
  import { Intersection, Object3D, Raycaster, Vector2, Vector3 } from 'three';
2
- import { DIVEScene } from '../../engine/scene/Scene.ts';
3
- import { OrbitController } from '../controller/orbit/OrbitController.ts';
4
- import { DIVEDraggable } from '../../interfaces/Draggable.ts';
5
- import { DIVEHoverable } from '../../interfaces/Hoverable.ts';
2
+ import { DIVEScene, DIVEDraggable, DIVEHoverable } from '../../../index.ts';
3
+ import { OrbitController } from '../../orbitcontroller/index.ts';
6
4
  export type DraggableEvent = {
7
5
  dragStart: Vector3;
8
6
  dragCurrent: Vector3;
@@ -1,17 +1,8 @@
1
- import { DIVEScene } from '../../engine/scene/Scene.ts';
1
+ import { DIVEScene } from '../../../index.ts';
2
2
  import { DIVEBaseTool } from './BaseTool.ts';
3
3
  import { DIVESelectTool } from './select/SelectTool.ts';
4
- import { OrbitController } from '../controller/orbit/OrbitController.ts';
4
+ import { OrbitController } from '../../orbitcontroller/index.ts';
5
5
  export type ToolType = 'select' | 'none';
6
- declare global {
7
- interface ModuleClasses {
8
- Toolbox: typeof Toolbox;
9
- }
10
- }
11
- /**
12
- * @module Toolbox
13
- * A Toolbox to activate and deactivate tools to use with the pointer.
14
- */
15
6
  export declare class Toolbox {
16
7
  static readonly DefaultTool = "select";
17
8
  private _scene;
@@ -1,7 +1,6 @@
1
- import { DIVEScene } from '../../../engine/scene/Scene.ts';
1
+ import { DIVEScene, DIVESelectable } from '../../../../index.ts';
2
2
  import { DIVETransformTool } from '../transform/TransformTool.ts';
3
- import { OrbitController } from '../../controller/orbit/OrbitController.ts';
4
- import { DIVESelectable } from '../../../interfaces/Selectable.ts';
3
+ import { OrbitController } from '../../../orbitcontroller/index.ts';
5
4
  import { DIVEBaseTool } from '../BaseTool.ts';
6
5
  export declare const isSelectTool: (tool: DIVEBaseTool) => tool is DIVESelectTool;
7
6
  /**
@@ -1,8 +1,7 @@
1
1
  import { TransformControls } from 'three/examples/jsm/controls/TransformControls.js';
2
2
  import { DIVEBaseTool } from '../BaseTool.ts';
3
- import { DIVEScene } from '../../../engine/scene/Scene.ts';
4
- import { OrbitController } from '../../controller/orbit/OrbitController.ts';
5
- import { DIVEGizmo } from '../../../components/gizmo/Gizmo.ts';
3
+ import { DIVEGizmo, DIVEScene } from '../../../../index.ts';
4
+ import { OrbitController } from '../../../orbitcontroller/index.ts';
6
5
  export declare const isTransformTool: (tool: DIVEBaseTool) => tool is DIVETransformTool;
7
6
  /**
8
7
  * A Tool to select and move objects in the scene.
@@ -0,0 +1,4 @@
1
+ import { DIVEAmbientLight } from '../../components/light/AmbientLight.ts';
2
+ import { DIVEPointLight } from '../../components/light/PointLight.ts';
3
+ import { DIVESceneLight } from '../../components/light/SceneLight.ts';
4
+ export type DIVELight = DIVEAmbientLight | DIVEPointLight | DIVESceneLight;
@@ -0,0 +1,6 @@
1
+ import { DIVEGroup } from '../../components/group/Group.ts';
2
+ import { DIVEModel } from '../../components/model/Model.ts';
3
+ import { DIVEPrimitive } from '../../components/primitive/Primitive.ts';
4
+ import { DIVELight } from './DIVELight.ts';
5
+ import { EntityTypeSchema } from '../index.ts';
6
+ export type DIVESceneObject<T extends EntityTypeSchema | void = void> = T extends 'model' ? DIVEModel : T extends 'group' ? DIVEGroup : T extends 'primitive' ? DIVEPrimitive : T extends 'light' ? DIVELight : DIVEModel | DIVEGroup | DIVEPrimitive | DIVELight;
@@ -0,0 +1,2 @@
1
+ export * from './DIVELight.ts';
2
+ export * from './DIVESceneObject.ts';
@@ -1,6 +1,3 @@
1
- export * from './SceneData.ts';
2
- export * from './SceneObjects.ts';
3
- export * from './SceneType.ts';
4
- export * from './UUID.ts';
1
+ export * from './components/index.ts';
5
2
  export * from './file/index.ts';
6
- export * from './info/index.ts';
3
+ export * from './schema/index.ts';
@@ -0,0 +1,8 @@
1
+ import { EntityTypeSchema } from './EntityTypeSchema.ts';
2
+ export type BaseEntitySchema = {
3
+ id: string;
4
+ name: string;
5
+ entityType: EntityTypeSchema;
6
+ visible: boolean;
7
+ parentId?: string | null;
8
+ };
@@ -0,0 +1,11 @@
1
+ import { PovSchema } from './PovSchema.ts';
2
+ import { LightSchema } from './LightSchema.ts';
3
+ import { ModelSchema } from './ModelSchema.ts';
4
+ import { PrimitiveSchema } from './PrimitiveSchema.ts';
5
+ import { GroupSchema } from './GroupSchema.ts';
6
+ export type MinimalSchema<T extends EntitySchema> = T extends EntitySchema ? {
7
+ id: string;
8
+ entityType: T['entityType'];
9
+ } : never;
10
+ export type PartialSchema<T extends EntitySchema | void = void> = T extends EntitySchema ? MinimalSchema<T> & Partial<T> : MinimalSchema<EntitySchema> & Partial<EntitySchema>;
11
+ export type EntitySchema = PovSchema | LightSchema | ModelSchema | PrimitiveSchema | GroupSchema;
@@ -0,0 +1 @@
1
+ export type EntityTypeSchema = 'pov' | 'light' | 'model' | 'primitive' | 'group';