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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/build/chunks/AssetCache-C-7MpNrK.cjs +1 -0
  2. package/build/chunks/AssetCache-CZV5A70i.mjs +79 -0
  3. package/build/chunks/AssetExporter-DsbC2rqv.cjs +164 -0
  4. package/build/{src/modules/asset/exporter/AssetExporter.mjs → chunks/AssetExporter-brT7ogoM.mjs} +22 -21
  5. package/build/chunks/AssetLoader-BZlqXTbf.cjs +4 -0
  6. package/build/chunks/AssetLoader-Dnh5tbUZ.mjs +2341 -0
  7. package/build/chunks/FileTypes-DMybIHHj.mjs +1109 -0
  8. package/build/chunks/FileTypes-PEcAgRZ8.cjs +30 -0
  9. package/build/chunks/MathUtils-CBW56ZuG.cjs +1 -0
  10. package/build/chunks/MathUtils-CFGjHuVF.mjs +159 -0
  11. package/build/chunks/OrbitController-D-WNei2f.mjs +940 -0
  12. package/build/chunks/OrbitController-rMX8EHvJ.cjs +1 -0
  13. package/build/chunks/PerspectiveCamera-CONx93im.cjs +1 -0
  14. package/build/chunks/PerspectiveCamera-DUiWJJIj.mjs +38 -0
  15. package/build/chunks/PovSchema-Co9FznEz.cjs +1 -0
  16. package/build/chunks/PovSchema-DWWvr_ED.mjs +10 -0
  17. package/build/chunks/SelectTool-BVxDEcnM.cjs +1 -0
  18. package/build/chunks/{SelectTool-mTRiZYaC.mjs → SelectTool-D5QfT5rr.mjs} +59 -54
  19. package/build/chunks/draco_decoder-Bh9flJPu.cjs +1 -0
  20. package/build/chunks/draco_decoder-CEzwqP9o.mjs +38 -0
  21. package/build/chunks/draco_decoder-DtHHc5d0.mjs +4 -0
  22. package/build/chunks/draco_decoder-DvYjcLz_.cjs +35 -0
  23. package/build/chunks/draco_wasm_wrapper-FoEVV9af.cjs +118 -0
  24. package/build/chunks/draco_wasm_wrapper-yQy2VLhb.mjs +121 -0
  25. package/build/chunks/fflate.module-DHdJvhNh.cjs +6 -0
  26. package/build/chunks/fflate.module-xyO_T3Zm.mjs +602 -0
  27. package/build/chunks/findInterface-C6mrvf_t.cjs +1 -0
  28. package/build/chunks/findInterface-DbJ5qzbc.mjs +11 -0
  29. package/build/chunks/isFileTypeSupported-BSpswPHU.mjs +12 -0
  30. package/build/chunks/isFileTypeSupported-CrEqYiv9.cjs +1 -0
  31. package/build/chunks/network-error-BONfHWQq.mjs +14 -0
  32. package/build/chunks/network-error-CdDXil5g.cjs +1 -0
  33. package/build/chunks/package-Bf92jAR_.cjs +1 -0
  34. package/build/chunks/package-ZPbjnXun.mjs +39 -0
  35. package/build/chunks/parse-error-DfOPyLWM.mjs +14 -0
  36. package/build/chunks/parse-error-Dy_EE4rL.cjs +1 -0
  37. package/build/dive.cjs +1 -30
  38. package/build/dive.mjs +665 -1622
  39. package/build/plugins/animation/index.cjs +1 -0
  40. package/build/plugins/animation/index.d.ts +2 -0
  41. package/build/plugins/animation/index.mjs +126 -0
  42. package/build/plugins/ar/index.cjs +1 -0
  43. package/build/plugins/ar/index.d.ts +2 -0
  44. package/build/plugins/ar/index.mjs +207 -0
  45. package/build/plugins/assetcache/index.cjs +1 -0
  46. package/build/plugins/assetcache/index.d.ts +2 -0
  47. package/build/plugins/assetcache/index.mjs +5 -0
  48. package/build/plugins/assetconverter/index.d.ts +2 -0
  49. package/build/plugins/assetexporter/index.cjs +1 -0
  50. package/build/plugins/assetexporter/index.d.ts +2 -0
  51. package/build/plugins/assetexporter/index.mjs +4 -0
  52. package/build/plugins/assetloader/index.cjs +1 -0
  53. package/build/plugins/assetloader/index.d.ts +2 -0
  54. package/build/plugins/assetloader/index.mjs +6 -0
  55. package/build/plugins/axiscamera/index.cjs +1 -0
  56. package/build/plugins/axiscamera/index.d.ts +2 -0
  57. package/build/plugins/axiscamera/index.mjs +4 -0
  58. package/build/plugins/mediacreator/index.cjs +1 -0
  59. package/build/plugins/mediacreator/index.d.ts +2 -0
  60. package/build/{src/modules/mediacreator/MediaCreator.mjs → plugins/mediacreator/index.mjs} +4 -4
  61. package/build/plugins/orbitcontroller/index.cjs +1 -0
  62. package/build/plugins/orbitcontroller/index.d.ts +2 -0
  63. package/build/plugins/orbitcontroller/index.mjs +5 -0
  64. package/build/plugins/state/index.cjs +27 -0
  65. package/build/plugins/state/index.d.ts +2 -0
  66. package/build/plugins/state/index.mjs +4265 -0
  67. package/build/plugins/systeminfo/index.cjs +1 -0
  68. package/build/plugins/systeminfo/index.d.ts +2 -0
  69. package/build/{chunks/SystemInfo-DPAQG-S5.mjs → plugins/systeminfo/index.mjs} +48 -51
  70. package/build/plugins/toolbox/index.cjs +1 -0
  71. package/build/plugins/toolbox/index.d.ts +2 -0
  72. package/build/{src/modules/toolbox/Toolbox.mjs → plugins/toolbox/index.mjs} +23 -17
  73. package/build/src/components/floor/Floor.d.ts +2 -2
  74. package/build/src/components/gizmo/Gizmo.d.ts +1 -1
  75. package/build/src/components/gizmo/handles/AxisHandle.d.ts +1 -1
  76. package/build/src/components/gizmo/handles/RadialHandle.d.ts +1 -1
  77. package/build/src/components/gizmo/handles/ScaleHandle.d.ts +1 -1
  78. package/build/src/components/gizmo/rotate/RotateGizmo.d.ts +2 -2
  79. package/build/src/components/gizmo/scale/ScaleGizmo.d.ts +2 -2
  80. package/build/src/components/gizmo/translate/TranslateGizmo.d.ts +2 -2
  81. package/build/src/components/grid/Grid.d.ts +1 -1
  82. package/build/src/components/group/Group.d.ts +4 -4
  83. package/build/src/components/light/AmbientLight.d.ts +3 -3
  84. package/build/src/components/light/PointLight.d.ts +3 -3
  85. package/build/src/components/light/SceneLight.d.ts +3 -3
  86. package/build/src/components/model/Model.d.ts +8 -5
  87. package/build/src/components/node/Node.d.ts +8 -8
  88. package/build/src/components/primitive/Primitive.d.ts +5 -5
  89. package/build/src/components/root/Root.d.ts +19 -31
  90. package/build/src/core/Dive.d.ts +8 -7
  91. package/build/src/engine/Engine.d.ts +2 -6
  92. package/build/src/engine/clock/Clock.d.ts +1 -0
  93. package/build/src/engine/index.d.ts +6 -0
  94. package/build/src/engine/renderer/Renderer.d.ts +47 -7
  95. package/build/src/engine/scene/Scene.d.ts +4 -22
  96. package/build/src/engine/scene/xrroot/XRRoot.d.ts +2 -2
  97. package/build/src/engine/scene/xrroot/xrlightroot/XRLightRoot.d.ts +2 -2
  98. package/build/src/error/file-content/file-content-error.d.ts +4 -0
  99. package/build/src/error/index.d.ts +4 -0
  100. package/build/src/error/network/network-error.d.ts +1 -1
  101. package/build/src/error/parse/parse-error.d.ts +2 -1
  102. package/build/src/events/dispatcher/EventDispatcher.d.ts +6 -0
  103. package/build/src/events/index.d.ts +1 -0
  104. package/build/src/helpers/deepClone/deepClone.d.ts +34 -0
  105. package/build/src/helpers/index.d.ts +5 -4
  106. package/build/src/index.d.ts +5 -5
  107. package/build/src/interfaces/Draggable.d.ts +1 -1
  108. package/build/src/plugins/animation/index.d.ts +2 -0
  109. package/build/src/{modules/animation → plugins/animation/src}/animator/Animator.d.ts +2 -3
  110. package/build/src/plugins/animation/src/index.d.ts +3 -0
  111. package/build/src/plugins/animation/src/system/AnimationSystem.d.ts +23 -0
  112. package/build/src/plugins/ar/index.d.ts +4 -0
  113. package/build/src/plugins/ar/src/ARSystem.d.ts +24 -0
  114. package/build/src/plugins/ar/src/arquicklook/ARQuickLook.d.ts +15 -0
  115. package/build/src/plugins/ar/src/error/ar-errors.d.ts +24 -0
  116. package/build/src/{modules/ar → plugins/ar/src}/sceneviewer/SceneViewer.d.ts +10 -0
  117. package/build/src/{modules/ar → plugins/ar/src}/webxr/WebXR.d.ts +4 -4
  118. package/build/src/{modules/ar → plugins/ar/src}/webxr/controller/WebXRController.d.ts +5 -5
  119. package/build/src/{modules/ar → plugins/ar/src}/webxr/crosshair/WebXRCrosshair.d.ts +2 -2
  120. package/build/src/{modules/ar → plugins/ar/src}/webxr/origin/WebXROrigin.d.ts +4 -4
  121. package/build/src/{modules/ar → plugins/ar/src}/webxr/overlay/Overlay.d.ts +2 -2
  122. package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/WebXRRaycaster.d.ts +8 -8
  123. package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/ar/WebXRRaycasterAR.d.ts +4 -4
  124. package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/three/WebXRRaycasterTHREE.d.ts +4 -4
  125. package/build/src/{modules/ar → plugins/ar/src}/webxr/touchscreencontrols/WebXRTouchscreenControls.d.ts +3 -3
  126. package/build/src/plugins/assetcache/index.d.ts +1 -0
  127. package/build/src/plugins/assetcache/src/cache/AssetCache.d.ts +12 -0
  128. package/build/src/plugins/assetcache/src/chunk/Chunk.d.ts +16 -0
  129. package/build/src/plugins/assetcache/src/index.d.ts +2 -0
  130. package/build/src/plugins/assetconverter/index.d.ts +1 -0
  131. package/build/src/plugins/assetconverter/src/AssetConverter.d.ts +13 -0
  132. package/build/src/plugins/assetexporter/index.d.ts +1 -0
  133. package/build/src/{modules/asset/exporter → plugins/assetexporter/src}/AssetExporter.d.ts +0 -17
  134. package/build/src/plugins/assetloader/index.d.ts +3 -0
  135. package/build/src/plugins/assetloader/src/draco/DracoLoader.d.ts +10 -0
  136. package/build/src/plugins/assetloader/src/loader/AssetLoader.d.ts +14 -0
  137. package/build/src/plugins/axiscamera/index.d.ts +1 -0
  138. package/build/src/{modules/axiscamera → plugins/axiscamera/src}/AxisCamera.d.ts +3 -6
  139. package/build/src/plugins/mediacreator/index.d.ts +1 -0
  140. package/build/src/plugins/mediacreator/src/MediaCreator.d.ts +15 -0
  141. package/build/src/plugins/orbitcontroller/index.d.ts +1 -0
  142. package/build/src/{modules/controller/orbit → plugins/orbitcontroller/src}/OrbitController.d.ts +3 -3
  143. package/build/src/plugins/state/index.d.ts +4 -0
  144. package/build/src/{modules/state → plugins/state/src}/State.d.ts +4 -27
  145. package/build/src/{modules/state → plugins/state/src}/actions/action.d.ts +1 -1
  146. package/build/src/{modules/state → plugins/state/src}/actions/ar/launchar.d.ts +2 -2
  147. package/build/src/{modules/state → plugins/state/src}/actions/camera/computeencompassingview.d.ts +1 -1
  148. package/build/src/{modules/state → plugins/state/src}/actions/camera/getcameratransform.d.ts +1 -1
  149. package/build/src/{modules/state → plugins/state/src}/actions/camera/lockcamera.d.ts +1 -1
  150. package/build/src/{modules/state → plugins/state/src}/actions/camera/movecamera.d.ts +1 -1
  151. package/build/src/{modules/state → plugins/state/src}/actions/camera/setcameralayer.d.ts +1 -1
  152. package/build/src/{modules/state → plugins/state/src}/actions/camera/setcameratransform.d.ts +1 -1
  153. package/build/src/{modules/state → plugins/state/src}/actions/camera/zoomcamera.d.ts +1 -1
  154. package/build/src/{modules/state → plugins/state/src}/actions/media/generatemedia.d.ts +1 -1
  155. package/build/src/plugins/state/src/actions/object/addobject.d.ts +9 -0
  156. package/build/src/{modules/state → plugins/state/src}/actions/object/deleteobject.d.ts +4 -3
  157. package/build/src/{modules/state → plugins/state/src}/actions/object/deselectobject.d.ts +4 -3
  158. package/build/src/{modules/state → plugins/state/src}/actions/object/dropit.d.ts +1 -1
  159. package/build/src/{modules/state → plugins/state/src}/actions/object/getallobjects.d.ts +3 -2
  160. package/build/src/{modules/state → plugins/state/src}/actions/object/getobjects.d.ts +3 -2
  161. package/build/src/{modules/state → plugins/state/src}/actions/object/modelloaded.d.ts +1 -1
  162. package/build/src/{modules/state → plugins/state/src}/actions/object/placeonfloor.d.ts +1 -1
  163. package/build/src/{modules/state → plugins/state/src}/actions/object/selectobject.d.ts +4 -3
  164. package/build/src/{modules/state → plugins/state/src}/actions/object/setparent.d.ts +6 -5
  165. package/build/src/{modules/state → plugins/state/src}/actions/object/updateobject.d.ts +4 -3
  166. package/build/src/{modules/state → plugins/state/src}/actions/renderer/startrender.d.ts +1 -1
  167. package/build/src/{modules/state → plugins/state/src}/actions/scene/exportscene.d.ts +4 -4
  168. package/build/src/{modules/state → plugins/state/src}/actions/scene/getallscenedata.d.ts +3 -3
  169. package/build/src/{modules/state → plugins/state/src}/actions/scene/setbackground.d.ts +1 -1
  170. package/build/src/{modules/state → plugins/state/src}/actions/scene/updatescene.d.ts +1 -1
  171. package/build/src/{modules/state → plugins/state/src}/actions/toolbox/setgizmomode.d.ts +1 -1
  172. package/build/src/{modules/state → plugins/state/src}/actions/toolbox/setgizmoscalelinked.d.ts +1 -1
  173. package/build/src/{modules/state → plugins/state/src}/actions/toolbox/setgizmovisible.d.ts +1 -1
  174. package/build/src/{modules/state → plugins/state/src}/actions/toolbox/usetool.d.ts +2 -2
  175. package/build/src/plugins/state/types/ActionTypes.d.ts +17 -0
  176. package/build/src/{types/SceneType.d.ts → plugins/state/types/StateExportFileType.d.ts} +1 -1
  177. package/build/src/plugins/state/types/StateSceneData.d.ts +19 -0
  178. package/build/src/plugins/state/types/index.d.ts +1 -0
  179. package/build/src/plugins/systeminfo/index.d.ts +2 -0
  180. package/build/src/{modules/systeminfo → plugins/systeminfo/src}/SystemInfo.d.ts +22 -32
  181. package/build/src/plugins/toolbox/index.d.ts +4 -0
  182. package/build/src/{modules/toolbox → plugins/toolbox/src}/BaseTool.d.ts +4 -6
  183. package/build/src/{modules/toolbox → plugins/toolbox/src}/Toolbox.d.ts +8 -17
  184. package/build/src/{modules/toolbox → plugins/toolbox/src}/select/SelectTool.d.ts +7 -11
  185. package/build/src/{modules/toolbox → plugins/toolbox/src}/transform/TransformTool.d.ts +6 -10
  186. package/build/src/types/components/DIVELight.d.ts +4 -0
  187. package/build/src/types/components/DIVESceneObject.d.ts +6 -0
  188. package/build/src/types/components/index.d.ts +2 -0
  189. package/build/src/types/index.d.ts +2 -5
  190. package/build/src/types/schema/BaseEntitySchema.d.ts +8 -0
  191. package/build/src/types/schema/EntitySchema.d.ts +11 -0
  192. package/build/src/types/schema/EntityTypeSchema.d.ts +1 -0
  193. package/build/src/types/schema/GeometrySchema.d.ts +7 -0
  194. package/build/src/types/schema/GeometryTypeSchema.d.ts +1 -0
  195. package/build/src/types/schema/GroupSchema.d.ts +11 -0
  196. package/build/src/types/schema/LightSchema.d.ts +28 -0
  197. package/build/src/{modules/state/types/COMMaterial.d.ts → types/schema/MaterialSchema.d.ts} +1 -1
  198. package/build/src/types/schema/ModelSchema.d.ts +14 -0
  199. package/build/src/types/schema/PovSchema.d.ts +10 -0
  200. package/build/src/types/schema/PrimitiveSchema.d.ts +14 -0
  201. package/build/src/types/schema/index.d.ts +11 -0
  202. package/package.json +60 -41
  203. package/build/chunks/FileTypes-BjZ0rrIV.cjs +0 -1
  204. package/build/chunks/FileTypes-qgYnI0Jg.mjs +0 -30
  205. package/build/chunks/ModuleRegistry-NyNtjHb2.cjs +0 -1
  206. package/build/chunks/ModuleRegistry-RSub8W0G.mjs +0 -13
  207. package/build/chunks/PerspectiveCamera-BByyG5R4.cjs +0 -1
  208. package/build/chunks/PerspectiveCamera-sm4_81KJ.mjs +0 -34
  209. package/build/chunks/SelectTool-BRKko7uz.cjs +0 -1
  210. package/build/chunks/SystemInfo-oX-NNneO.cjs +0 -1
  211. package/build/chunks/VisibilityLayerMask-BI7jPKdx.cjs +0 -1
  212. package/build/chunks/VisibilityLayerMask-CXgt1fJc.mjs +0 -8
  213. package/build/chunks/findInterface-BEdL2iUQ.cjs +0 -1
  214. package/build/chunks/findInterface-OrXgmwxj.mjs +0 -18
  215. package/build/chunks/index-C_uFFwT2.mjs +0 -5
  216. package/build/chunks/index-DAwIH9xh.cjs +0 -1
  217. package/build/chunks/package-BFpY3sIj.cjs +0 -1
  218. package/build/chunks/package-BvoZkrge.mjs +0 -39
  219. package/build/chunks/parse-error-2f5qpXP5.cjs +0 -6
  220. package/build/chunks/parse-error-DRBVHL9E.mjs +0 -614
  221. package/build/src/error/ar-compatibility/ar-compatibility-error.d.ts +0 -12
  222. package/build/src/modules/ModuleRegistry.d.ts +0 -19
  223. package/build/src/modules/animation/AnimationSystem.cjs +0 -1
  224. package/build/src/modules/animation/AnimationSystem.d.ts +0 -36
  225. package/build/src/modules/animation/AnimationSystem.mjs +0 -95
  226. package/build/src/modules/ar/ARSystem.cjs +0 -1
  227. package/build/src/modules/ar/ARSystem.d.ts +0 -71
  228. package/build/src/modules/ar/ARSystem.mjs +0 -163
  229. package/build/src/modules/ar/arquicklook/ARQuickLook.d.ts +0 -7
  230. package/build/src/modules/asset/converter/AssetConverter.d.ts +0 -30
  231. package/build/src/modules/asset/exporter/AssetExporter.cjs +0 -164
  232. package/build/src/modules/asset/loader/AssetLoader.cjs +0 -2
  233. package/build/src/modules/asset/loader/AssetLoader.d.ts +0 -29
  234. package/build/src/modules/asset/loader/AssetLoader.mjs +0 -1919
  235. package/build/src/modules/events/EventExecutor.d.ts +0 -5
  236. package/build/src/modules/mediacreator/MediaCreator.cjs +0 -1
  237. package/build/src/modules/mediacreator/MediaCreator.d.ts +0 -44
  238. package/build/src/modules/state/State.cjs +0 -27
  239. package/build/src/modules/state/State.mjs +0 -4271
  240. package/build/src/modules/state/actions/object/addobject.d.ts +0 -8
  241. package/build/src/modules/state/types/ActionTypes.d.ts +0 -18
  242. package/build/src/modules/state/types/COMBaseEntity.d.ts +0 -8
  243. package/build/src/modules/state/types/COMEntity.d.ts +0 -6
  244. package/build/src/modules/state/types/COMEntityType.d.ts +0 -1
  245. package/build/src/modules/state/types/COMGeometry.d.ts +0 -7
  246. package/build/src/modules/state/types/COMGeometryType.d.ts +0 -1
  247. package/build/src/modules/state/types/COMGroup.d.ts +0 -10
  248. package/build/src/modules/state/types/COMLight.d.ts +0 -12
  249. package/build/src/modules/state/types/COMModel.d.ts +0 -13
  250. package/build/src/modules/state/types/COMPov.d.ts +0 -9
  251. package/build/src/modules/state/types/COMPrimitive.d.ts +0 -13
  252. package/build/src/modules/state/types/index.d.ts +0 -11
  253. package/build/src/modules/systeminfo/SystemInfo.cjs +0 -1
  254. package/build/src/modules/systeminfo/SystemInfo.mjs +0 -5
  255. package/build/src/modules/toolbox/Toolbox.cjs +0 -1
  256. package/build/src/types/SceneData.d.ts +0 -19
  257. package/build/src/types/SceneObjects.d.ts +0 -7
  258. package/build/src/types/UUID.d.ts +0 -1
  259. /package/build/{src/modules/asset/converter/AssetConverter.cjs → plugins/assetconverter/index.cjs} +0 -0
  260. /package/build/{src/modules/asset/converter/AssetConverter.mjs → plugins/assetconverter/index.mjs} +0 -0
  261. /package/build/src/{modules/animation → plugins/animation/src}/types/AnimatorParameters.d.ts +0 -0
  262. /package/build/src/{modules/state → plugins/state/src}/ActionRegistry.d.ts +0 -0
  263. /package/build/src/{modules/state → plugins/state/src}/actions/ar/index.d.ts +0 -0
  264. /package/build/src/{modules/state → plugins/state/src}/actions/camera/index.d.ts +0 -0
  265. /package/build/src/{modules/state → plugins/state/src}/actions/index.d.ts +0 -0
  266. /package/build/src/{modules/state → plugins/state/src}/actions/media/index.d.ts +0 -0
  267. /package/build/src/{modules/state → plugins/state/src}/actions/object/index.d.ts +0 -0
  268. /package/build/src/{modules/state → plugins/state/src}/actions/renderer/index.d.ts +0 -0
  269. /package/build/src/{modules/state → plugins/state/src}/actions/scene/index.d.ts +0 -0
  270. /package/build/src/{modules/state → plugins/state/src}/actions/toolbox/index.d.ts +0 -0
  271. /package/build/src/{types/info → plugins/systeminfo/types}/index.d.ts +0 -0
@@ -2,22 +2,62 @@ import { WebGLRenderer } from 'three';
2
2
  import { DIVEScene } from '../scene/Scene.ts';
3
3
  import { DIVEPerspectiveCamera } from '../camera/PerspectiveCamera.ts';
4
4
  export type DIVERenderPipelineSettings = {
5
- /** The canvas to render to */
5
+ /**
6
+ * The canvas to render to. When undefined, the canvas will be created automatically and reachable via the `diveInstance.canvas` property.
7
+ *
8
+ * @default undefined
9
+ */
6
10
  canvas: HTMLCanvasElement | undefined;
7
- /** Whether to enable antialiasing */
11
+ /**
12
+ * Whether to enable antialiasing
13
+ *
14
+ * @default true
15
+ */
8
16
  antialias: boolean;
9
17
  /** Whether to enable alpha channel */
10
18
  alpha: boolean;
11
- /** Power preference for the WebGL context */
19
+ /**
20
+ * Power preference for the WebGL context
21
+ *
22
+ * @default 'high-performance'
23
+ */
12
24
  powerPreference: 'high-performance' | 'low-power';
13
- /** Precision of the shader */
25
+ /**
26
+ * Precision of the shader
27
+ *
28
+ * @default 'highp'
29
+ */
14
30
  precision: 'highp' | 'mediump' | 'lowp';
15
- /** Whether to enable stencil buffer */
31
+ /**
32
+ * Whether to enable stencil buffer
33
+ *
34
+ * @default false
35
+ */
16
36
  stencil: boolean;
17
- /** Whether to enable depth buffer */
37
+ /**
38
+ * Whether to enable depth buffer
39
+ *
40
+ * @default true
41
+ */
18
42
  depth: boolean;
19
- /** Whether to use logarithmic depth buffer */
43
+ /**
44
+ * Whether to use logarithmic depth buffer
45
+ *
46
+ * @default false
47
+ */
20
48
  logarithmicDepthBuffer: boolean;
49
+ /**
50
+ * Whether to enable shadows
51
+ *
52
+ * @default true
53
+ */
54
+ shadows: boolean;
55
+ /**
56
+ * The quality of the shadows
57
+ *
58
+ * @default 'high'
59
+ */
60
+ shadowQuality: 'high' | 'medium' | 'low';
21
61
  };
22
62
  export declare const DIVERenderPipelineDefaultSettings: Required<DIVERenderPipelineSettings>;
23
63
  /**
@@ -1,8 +1,6 @@
1
1
  import { Scene, Box3, ColorRepresentation } from 'three';
2
- import { COMModel, COMEntity } from '../../modules/state/types/index.ts';
3
2
  import { DIVERoot } from '../../components/root/Root.ts';
4
3
  import { DIVEGrid } from '../../components/grid/Grid.ts';
5
- import { DIVESceneObject } from '../../types/index.ts';
6
4
  /**
7
5
  * A basic scene class.
8
6
  *
@@ -11,27 +9,11 @@ import { DIVESceneObject } from '../../types/index.ts';
11
9
  * @module
12
10
  */
13
11
  export declare class DIVEScene extends Scene {
14
- get Root(): DIVERoot;
15
- get Grid(): DIVEGrid;
12
+ get root(): DIVERoot;
13
+ get grid(): DIVEGrid;
16
14
  private _root;
17
15
  private _grid;
18
16
  constructor();
19
- SetBackground(color: ColorRepresentation): void;
20
- ComputeSceneBB(): Box3;
21
- GetSceneObject<T extends DIVESceneObject>(object: Partial<COMEntity> & {
22
- id: string;
23
- }): T | undefined;
24
- AddSceneObject(object: COMEntity): void;
25
- UpdateSceneObject(object: Partial<COMEntity> & {
26
- id: string;
27
- entityType: string;
28
- }): void;
29
- DeleteSceneObject(object: Partial<COMEntity> & {
30
- id: string;
31
- entityType: string;
32
- }): void;
33
- PlaceOnFloor(object: Partial<COMModel> & {
34
- id: string;
35
- entityType: string;
36
- }): void;
17
+ setBackground(color: ColorRepresentation): void;
18
+ computeSceneBB(): Box3;
37
19
  }
@@ -12,6 +12,6 @@ export declare class DIVEXRRoot extends Object3D {
12
12
  get XRHandNode(): Object3D;
13
13
  private _xrShadowPlane;
14
14
  constructor(scene: DIVEScene);
15
- InitLightEstimation(renderer: DIVERenderPipeline): void;
16
- DisposeLightEstimation(): void;
15
+ initLightEstimation(renderer: DIVERenderPipeline): void;
16
+ disposeLightEstimation(): void;
17
17
  }
@@ -6,8 +6,8 @@ export declare class DIVEXRLightRoot extends Object3D {
6
6
  private _xrLight;
7
7
  private _lightRoot;
8
8
  constructor(scene: DIVEScene);
9
- InitLightEstimation(renderer: DIVERenderPipeline): void;
10
- DisposeLightEstimation(): void;
9
+ initLightEstimation(renderer: DIVERenderPipeline): void;
10
+ disposeLightEstimation(): void;
11
11
  private onEstimationStart;
12
12
  private onEstimationEnd;
13
13
  }
@@ -0,0 +1,4 @@
1
+ export declare class FileContentError extends Error {
2
+ readonly uri: string;
3
+ constructor(uri: string);
4
+ }
@@ -0,0 +1,4 @@
1
+ export * from './file-content/file-content-error.ts';
2
+ export * from './file-type/file-type-error.ts';
3
+ export * from './network/network-error.ts';
4
+ export * from './parse/parse-error.ts';
@@ -1,5 +1,5 @@
1
1
  export declare class NetworkError extends Error {
2
2
  readonly url: string;
3
3
  readonly cause?: unknown | undefined;
4
- constructor(url: string, message: string, cause?: unknown | undefined);
4
+ constructor(url: string, cause?: unknown | undefined);
5
5
  }
@@ -1,4 +1,5 @@
1
1
  export declare class ParseError extends Error {
2
+ readonly uri: string;
2
3
  readonly cause?: unknown | undefined;
3
- constructor(message: string, cause?: unknown | undefined);
4
+ constructor(uri: string, cause?: unknown | undefined);
4
5
  }
@@ -0,0 +1,6 @@
1
+ export declare class EventDispatcher<T> {
2
+ private _listeners;
3
+ addEventListener<S extends keyof T>(type: S, listener: (payload: T[S]) => void): () => boolean;
4
+ removeEventListener<S extends keyof T>(type: S, listener: (payload: T[S]) => void): void;
5
+ dispatchEvent<S extends keyof T>(type: S, payload?: T[S]): void;
6
+ }
@@ -0,0 +1 @@
1
+ export { EventDispatcher } from './dispatcher/EventDispatcher.ts';
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Comprehensive deep clone function that handles class instances, methods, and circular references
3
+ *
4
+ * @example
5
+ * ```typescript
6
+ * // Cloning a simple object
7
+ * const obj = { a: 1, b: { c: 2 } };
8
+ * const cloned = deepClone(obj);
9
+ *
10
+ * // Cloning a class instance
11
+ * class MyClass {
12
+ * constructor(public value: number) {}
13
+ * getValue() { return this.value; }
14
+ * }
15
+ * const instance = new MyClass(42);
16
+ * const clonedInstance = deepClone(instance);
17
+ * console.log(clonedInstance.getValue()); // 42
18
+ *
19
+ * // Cloning Three.js Object3D (uses native .clone() method)
20
+ * const object3D = new Object3D();
21
+ * const clonedObject3D = deepClone(object3D);
22
+ *
23
+ * // Handles circular references
24
+ * const circular: any = { name: 'test' };
25
+ * circular.self = circular;
26
+ * const clonedCircular = deepClone(circular); // Won't cause infinite recursion
27
+ * ```
28
+ *
29
+ * @param obj - The object to clone
30
+ * @param visited - Internal WeakMap for tracking circular references
31
+ * @returns A deep clone of the input object
32
+ */
33
+ declare function deepClone<T>(obj: T, visited?: WeakMap<WeakKey, any>): T;
34
+ export { deepClone };
@@ -1,8 +1,9 @@
1
- export * from './getFileTypeFromUri/getFileTypeFromUri.ts';
2
- export * from './isFileTypeSupported/isFileTypeSupported.ts';
1
+ export * from './applyMixins/applyMixins.ts';
2
+ export * from './deepClone/deepClone.ts';
3
+ export * from './findInterface/findInterface.ts';
3
4
  export * from './findSceneRecursive/findSceneRecursive.ts';
5
+ export * from './getFileTypeFromUri/getFileTypeFromUri.ts';
4
6
  export * from './getObjectDelta/getObjectDelta.ts';
5
7
  export * from './implementsInterface/implementsInterface.ts';
6
- export * from './findInterface/findInterface.ts';
7
- export * from './applyMixins/applyMixins.ts';
8
+ export * from './isFileTypeSupported/isFileTypeSupported.ts';
8
9
  export * from './math/index.ts';
@@ -1,8 +1,8 @@
1
1
  export * from './core/index.ts';
2
+ export * from './constants/index.ts';
3
+ export * from './components/index.ts';
4
+ export * from './engine/index.ts';
5
+ export * from './interfaces/index.ts';
2
6
  export * from './helpers/index.ts';
3
- export type { ARCompatibilityError } from './error/ar-compatibility/ar-compatibility-error.ts';
4
- export type { FileTypeError } from './error/file-type/file-type-error.ts';
5
- export type { NetworkError } from './error/network/network-error.ts';
6
- export type { ParseError } from './error/parse/parse-error.ts';
7
+ export * from './error/index.ts';
7
8
  export * from './types/index.ts';
8
- 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';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Options for configuring the AR system behavior
3
+ */
4
+ export type ARSystemOptions = {
5
+ /** The placement orientation for AR content - either horizontal or vertical */
6
+ arPlacement: 'horizontal' | 'vertical';
7
+ /** The scaling behavior for AR content - either automatic or fixed */
8
+ arScale: 'auto' | 'fixed';
9
+ };
10
+ /**
11
+ * Main class for handling AR functionality across different platforms
12
+ * Provides methods to launch AR experiences using platform-specific implementations
13
+ */
14
+ export declare class ARSystem {
15
+ /**
16
+ * Launches an AR experience using the appropriate platform-specific implementation
17
+ *
18
+ * @param uri - The URI of the 3D model to display in AR
19
+ * @param options - Optional configuration for the AR experience
20
+ * @returns Promise that resolves when AR is launched successfully
21
+ * @throws Error if AR is not supported on the current platform
22
+ */
23
+ launch(uri: string, options?: ARSystemOptions): Promise<void>;
24
+ }
@@ -0,0 +1,15 @@
1
+ import { ARSystemOptions } from '../ARSystem.ts';
2
+ export declare class ARQuickLook {
3
+ private converter;
4
+ /**
5
+ * Launches AR using ARQuickLook (iOS-specific implementation)
6
+ *
7
+ * @param uri - The URI of the 3D model to display in AR
8
+ * @param options - Optional configuration for the AR experience
9
+ * @returns Promise that resolves when ARQuickLook is launched successfully
10
+ * @throws Error if ARQuickLook is not supported on the device
11
+ */
12
+ launch(uri: string, options?: ARSystemOptions): Promise<void>;
13
+ private convertToUSDZ;
14
+ private launchARQuickLook;
15
+ }
@@ -0,0 +1,24 @@
1
+ export declare enum EARErrorType {
2
+ AR_DESKTOP_PLATFORM_ERROR = "ar-desktop-platform-error",
3
+ AR_QUICK_LOOK_NOT_SAFARI_ERROR = "ar-quicklook-not-safari-error",
4
+ AR_QUICK_LOOK_VERSION_MISMATCH_ERROR = "ar-quicklook-version-mismatch-error",
5
+ AR_QUICK_LOOK_UNKNOWN_ERROR = "ar-quicklook-unknown-error"
6
+ }
7
+ export declare abstract class ARError extends Error {
8
+ readonly type: string;
9
+ constructor(message: string, type: string);
10
+ }
11
+ export declare class ARDesktopPlatformError extends ARError {
12
+ constructor();
13
+ }
14
+ export declare class ARQuickLookNotSafariError extends ARError {
15
+ constructor();
16
+ }
17
+ export declare class ARQuickLookVersionMismatchError extends ARError {
18
+ readonly currentVersion: string | number;
19
+ readonly requiredVersion: string | number;
20
+ constructor(currentVersion: string | number, requiredVersion: string | number);
21
+ }
22
+ export declare class ARQuickLookUnknownError extends ARError {
23
+ constructor();
24
+ }
@@ -1,5 +1,15 @@
1
1
  import { ARSystemOptions } from '../ARSystem.ts';
2
2
  export declare class SceneViewer {
3
+ /**
4
+ * Launches AR using SceneViewer (Android-specific implementation)
5
+ * Note: SceneViewer is supported on all Android devices. If ARCore is not installed,
6
+ * the model will be displayed in 3D view mode instead of AR mode.
7
+ *
8
+ * @param uri - The URI of the 3D model to display in AR
9
+ * @param options - Optional configuration for the AR experience
10
+ * @returns Promise that resolves when SceneViewer is launched successfully
11
+ * @throws Error if there's an issue launching SceneViewer
12
+ */
3
13
  launch(uri: string, options?: ARSystemOptions): void;
4
14
  /**
5
15
  * Creates the base URL parameters for SceneViewer
@@ -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;
@@ -13,8 +13,8 @@ export declare class DIVEWebXR {
13
13
  private static _options;
14
14
  private static _xrController;
15
15
  static Launch(engine: DIVEEngine, controller: OrbitController): Promise<void>;
16
- static Update(_time: DOMHighResTimeStamp, frame: XRFrame): void;
17
- static End(): void;
16
+ static update(_time: DOMHighResTimeStamp, frame: XRFrame): void;
17
+ static end(): void;
18
18
  private static _onSessionStarted;
19
19
  private static _onSessionEnded;
20
20
  }
@@ -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;
@@ -24,9 +24,9 @@ export declare class DIVEWebXRController extends Object3D {
24
24
  private _touchScale;
25
25
  private _scaleThreshold;
26
26
  constructor(session: XRSession, renderer: DIVERenderPipeline, scene: DIVEScene);
27
- Init(): Promise<this>;
28
- Dispose(): void;
29
- Update(frame: XRFrame): void;
27
+ init(): Promise<this>;
28
+ dispose(): void;
29
+ update(frame: XRFrame): void;
30
30
  private updateHandNode;
31
31
  private initOrigin;
32
32
  private placeObjects;
@@ -2,6 +2,6 @@ import { Mesh, Object3D } from 'three';
2
2
  export declare class DIVEWebXRCrosshair extends Object3D {
3
3
  set mesh(mesh: Mesh | undefined);
4
4
  constructor(mesh?: Mesh);
5
- UseDefaultMesh(): void;
6
- UpdateFromPose(pose: XRPose): void;
5
+ useDefaultMesh(): void;
6
+ updateFromPose(pose: XRPose): void;
7
7
  }
@@ -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;
@@ -23,9 +23,9 @@ export declare class DIVEWebXROrigin {
23
23
  private _scale;
24
24
  get scale(): Vector3;
25
25
  constructor(session: XRSession, renderer: DIVERenderPipeline, entityTypes?: XRHitTestTrackableType[]);
26
- Init(): Promise<this>;
27
- Dispose(): void;
28
- Update(frame: XRFrame): void;
26
+ init(): Promise<this>;
27
+ dispose(): void;
28
+ update(frame: XRFrame): void;
29
29
  private onHitFound;
30
30
  private onHitLost;
31
31
  }
@@ -1,8 +1,8 @@
1
1
  export declare class Overlay {
2
2
  private _element;
3
- get Element(): HTMLDivElement;
3
+ get element(): HTMLDivElement;
4
4
  private _closeButton;
5
- get CloseButton(): SVGSVGElement;
5
+ get closeButton(): SVGSVGElement;
6
6
  constructor();
7
7
  private createCloseButton;
8
8
  }
@@ -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 '../../../../modules/events/EventExecutor.ts';
2
+ import { DIVERenderPipeline } from '../../../../../engine/renderer/Renderer.ts';
3
+ import { DIVEScene } from '../../../../../engine/scene/Scene.ts';
4
+ import { EventDispatcher } from '../../../../../events/index.ts';
5
5
  /**
6
6
  * object is undefined when AR world is hit.
7
7
  */
@@ -20,7 +20,7 @@ export type DIVEWebXRRaycasterEvents = {
20
20
  };
21
21
  SCENE_HIT_LOST: undefined;
22
22
  };
23
- export declare class DIVEWebXRRaycaster extends DIVEEventExecutor<DIVEWebXRRaycasterEvents> {
23
+ export declare class DIVEWebXRRaycaster extends EventDispatcher<DIVEWebXRRaycasterEvents> {
24
24
  private _session;
25
25
  private _initialized;
26
26
  private _threeRaycaster;
@@ -29,10 +29,10 @@ export declare class DIVEWebXRRaycaster extends DIVEEventExecutor<DIVEWebXRRayca
29
29
  private _sceneHitResultBuffer;
30
30
  private _hasHit;
31
31
  constructor(session: XRSession, renderer: DIVERenderPipeline, scene: DIVEScene);
32
- Dispose(): void;
33
- Init(): Promise<this>;
34
- GetARIntersections(frame: XRFrame): DIVEHitResult[];
35
- GetSceneIntersections(): DIVEHitResult[];
32
+ dispose(): void;
33
+ init(): Promise<this>;
34
+ getARIntersections(frame: XRFrame): DIVEHitResult[];
35
+ getSceneIntersections(): DIVEHitResult[];
36
36
  private onARHitFound;
37
37
  private onARHitLost;
38
38
  private onSceneHitFound;
@@ -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;
@@ -9,7 +9,7 @@ export declare class DIVEWebXRRaycasterAR {
9
9
  private _initialized;
10
10
  private _hitMatrixBuffer;
11
11
  constructor(session: XRSession, renderer: DIVERenderPipeline);
12
- Dispose(): void;
13
- Init(): Promise<this>;
14
- GetIntersections(frame: XRFrame): DIVEHitResult[];
12
+ dispose(): void;
13
+ init(): Promise<this>;
14
+ getIntersections(frame: XRFrame): DIVEHitResult[];
15
15
  }
@@ -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;
@@ -7,6 +7,6 @@ export declare class DIVEWebXRRaycasterTHREE {
7
7
  private _controller;
8
8
  private _raycaster;
9
9
  constructor(renderer: DIVERenderPipeline, scene: DIVEScene);
10
- Init(): Promise<this>;
11
- GetIntersections(): DIVEHitResult[];
10
+ init(): Promise<this>;
11
+ getIntersections(): DIVEHitResult[];
12
12
  }
@@ -1,5 +1,5 @@
1
1
  import { Vector2 } from 'three';
2
- import { DIVEEventExecutor } from '../../../../modules/events/EventExecutor.ts';
2
+ import { EventDispatcher } from '../../../../../events/index.ts';
3
3
  export type DIVETouchscreenEvents = {
4
4
  TOUCH_START: {
5
5
  touches: {
@@ -41,7 +41,7 @@ export type DIVETouchscreenEvents = {
41
41
  current: number;
42
42
  };
43
43
  };
44
- export declare class DIVEWebXRTouchscreenControls extends DIVEEventExecutor<DIVETouchscreenEvents> {
44
+ export declare class DIVEWebXRTouchscreenControls extends EventDispatcher<DIVETouchscreenEvents> {
45
45
  private _session;
46
46
  private _touchCount;
47
47
  private _touches;
@@ -58,7 +58,7 @@ export declare class DIVEWebXRTouchscreenControls extends DIVEEventExecutor<DIVE
58
58
  private _currentDistance;
59
59
  private _deltaDistance;
60
60
  constructor(session: XRSession);
61
- Dispose(): void;
61
+ dispose(): void;
62
62
  private onTouchStart;
63
63
  private onTouchMove;
64
64
  private onTouchEnd;
@@ -0,0 +1 @@
1
+ export * from './src/index.ts';
@@ -0,0 +1,12 @@
1
+ import { Chunk } from '../chunk/Chunk.ts';
2
+ declare class AssetCacheClass {
3
+ private _cache;
4
+ get(): Map<string, Chunk>;
5
+ create(key: string): Chunk;
6
+ write(key: string, chunk: Chunk): void;
7
+ read(key: string): Chunk | null;
8
+ delete(...keys: string[]): void;
9
+ clear(): void;
10
+ }
11
+ export declare const AssetCache: AssetCacheClass;
12
+ export {};
@@ -0,0 +1,16 @@
1
+ export declare class Chunk {
2
+ private _uri;
3
+ private _promise;
4
+ private _resolve;
5
+ private _arrayBuffer;
6
+ private _size;
7
+ private _createdAt;
8
+ private _updatedAt;
9
+ get promise(): Promise<ArrayBuffer>;
10
+ get size(): number;
11
+ get createdAt(): Date;
12
+ get updatedAt(): Date;
13
+ get arrayBuffer(): ArrayBuffer | null;
14
+ constructor(_uri: string);
15
+ load(): Promise<ArrayBuffer>;
16
+ }
@@ -0,0 +1,2 @@
1
+ export * from './cache/AssetCache.ts';
2
+ export * from './chunk/Chunk.ts';
@@ -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';