@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.
- package/build/chunks/AssetCache-C-7MpNrK.cjs +1 -0
- package/build/chunks/AssetCache-CZV5A70i.mjs +79 -0
- package/build/chunks/AssetExporter-DsbC2rqv.cjs +164 -0
- package/build/{src/modules/asset/exporter/AssetExporter.mjs → chunks/AssetExporter-brT7ogoM.mjs} +22 -21
- package/build/chunks/AssetLoader-BZlqXTbf.cjs +4 -0
- package/build/chunks/AssetLoader-Dnh5tbUZ.mjs +2341 -0
- package/build/chunks/FileTypes-DMybIHHj.mjs +1109 -0
- package/build/chunks/FileTypes-PEcAgRZ8.cjs +30 -0
- package/build/chunks/MathUtils-CBW56ZuG.cjs +1 -0
- package/build/chunks/MathUtils-CFGjHuVF.mjs +159 -0
- package/build/chunks/OrbitController-D-WNei2f.mjs +940 -0
- package/build/chunks/OrbitController-rMX8EHvJ.cjs +1 -0
- package/build/chunks/PerspectiveCamera-CONx93im.cjs +1 -0
- package/build/chunks/PerspectiveCamera-DUiWJJIj.mjs +38 -0
- package/build/chunks/PovSchema-Co9FznEz.cjs +1 -0
- package/build/chunks/PovSchema-DWWvr_ED.mjs +10 -0
- package/build/chunks/SelectTool-BVxDEcnM.cjs +1 -0
- package/build/chunks/{SelectTool-mTRiZYaC.mjs → SelectTool-D5QfT5rr.mjs} +59 -54
- package/build/chunks/draco_decoder-Bh9flJPu.cjs +1 -0
- package/build/chunks/draco_decoder-CEzwqP9o.mjs +38 -0
- package/build/chunks/draco_decoder-DtHHc5d0.mjs +4 -0
- package/build/chunks/draco_decoder-DvYjcLz_.cjs +35 -0
- package/build/chunks/draco_wasm_wrapper-FoEVV9af.cjs +118 -0
- package/build/chunks/draco_wasm_wrapper-yQy2VLhb.mjs +121 -0
- package/build/chunks/fflate.module-DHdJvhNh.cjs +6 -0
- package/build/chunks/fflate.module-xyO_T3Zm.mjs +602 -0
- package/build/chunks/findInterface-C6mrvf_t.cjs +1 -0
- package/build/chunks/findInterface-DbJ5qzbc.mjs +11 -0
- package/build/chunks/isFileTypeSupported-BSpswPHU.mjs +12 -0
- package/build/chunks/isFileTypeSupported-CrEqYiv9.cjs +1 -0
- package/build/chunks/network-error-BONfHWQq.mjs +14 -0
- package/build/chunks/network-error-CdDXil5g.cjs +1 -0
- package/build/chunks/package-Bf92jAR_.cjs +1 -0
- package/build/chunks/package-ZPbjnXun.mjs +39 -0
- package/build/chunks/parse-error-DfOPyLWM.mjs +14 -0
- package/build/chunks/parse-error-Dy_EE4rL.cjs +1 -0
- package/build/dive.cjs +1 -30
- package/build/dive.mjs +665 -1622
- package/build/plugins/animation/index.cjs +1 -0
- package/build/plugins/animation/index.d.ts +2 -0
- package/build/plugins/animation/index.mjs +126 -0
- package/build/plugins/ar/index.cjs +1 -0
- package/build/plugins/ar/index.d.ts +2 -0
- package/build/plugins/ar/index.mjs +207 -0
- package/build/plugins/assetcache/index.cjs +1 -0
- package/build/plugins/assetcache/index.d.ts +2 -0
- package/build/plugins/assetcache/index.mjs +5 -0
- package/build/plugins/assetconverter/index.d.ts +2 -0
- package/build/plugins/assetexporter/index.cjs +1 -0
- package/build/plugins/assetexporter/index.d.ts +2 -0
- package/build/plugins/assetexporter/index.mjs +4 -0
- package/build/plugins/assetloader/index.cjs +1 -0
- package/build/plugins/assetloader/index.d.ts +2 -0
- package/build/plugins/assetloader/index.mjs +6 -0
- package/build/plugins/axiscamera/index.cjs +1 -0
- package/build/plugins/axiscamera/index.d.ts +2 -0
- package/build/plugins/axiscamera/index.mjs +4 -0
- package/build/plugins/mediacreator/index.cjs +1 -0
- package/build/plugins/mediacreator/index.d.ts +2 -0
- package/build/{src/modules/mediacreator/MediaCreator.mjs → plugins/mediacreator/index.mjs} +4 -4
- package/build/plugins/orbitcontroller/index.cjs +1 -0
- package/build/plugins/orbitcontroller/index.d.ts +2 -0
- package/build/plugins/orbitcontroller/index.mjs +5 -0
- package/build/plugins/state/index.cjs +27 -0
- package/build/plugins/state/index.d.ts +2 -0
- package/build/plugins/state/index.mjs +4265 -0
- package/build/plugins/systeminfo/index.cjs +1 -0
- package/build/plugins/systeminfo/index.d.ts +2 -0
- package/build/{chunks/SystemInfo-DPAQG-S5.mjs → plugins/systeminfo/index.mjs} +48 -51
- package/build/plugins/toolbox/index.cjs +1 -0
- package/build/plugins/toolbox/index.d.ts +2 -0
- package/build/{src/modules/toolbox/Toolbox.mjs → plugins/toolbox/index.mjs} +23 -17
- package/build/src/components/floor/Floor.d.ts +2 -2
- package/build/src/components/gizmo/Gizmo.d.ts +1 -1
- package/build/src/components/gizmo/handles/AxisHandle.d.ts +1 -1
- package/build/src/components/gizmo/handles/RadialHandle.d.ts +1 -1
- package/build/src/components/gizmo/handles/ScaleHandle.d.ts +1 -1
- package/build/src/components/gizmo/rotate/RotateGizmo.d.ts +2 -2
- package/build/src/components/gizmo/scale/ScaleGizmo.d.ts +2 -2
- package/build/src/components/gizmo/translate/TranslateGizmo.d.ts +2 -2
- package/build/src/components/grid/Grid.d.ts +1 -1
- package/build/src/components/group/Group.d.ts +4 -4
- package/build/src/components/light/AmbientLight.d.ts +3 -3
- package/build/src/components/light/PointLight.d.ts +3 -3
- package/build/src/components/light/SceneLight.d.ts +3 -3
- package/build/src/components/model/Model.d.ts +8 -5
- package/build/src/components/node/Node.d.ts +8 -8
- package/build/src/components/primitive/Primitive.d.ts +5 -5
- package/build/src/components/root/Root.d.ts +19 -31
- package/build/src/core/Dive.d.ts +8 -7
- package/build/src/engine/Engine.d.ts +2 -6
- package/build/src/engine/clock/Clock.d.ts +1 -0
- package/build/src/engine/index.d.ts +6 -0
- package/build/src/engine/renderer/Renderer.d.ts +47 -7
- package/build/src/engine/scene/Scene.d.ts +4 -22
- package/build/src/engine/scene/xrroot/XRRoot.d.ts +2 -2
- package/build/src/engine/scene/xrroot/xrlightroot/XRLightRoot.d.ts +2 -2
- package/build/src/error/file-content/file-content-error.d.ts +4 -0
- package/build/src/error/index.d.ts +4 -0
- package/build/src/error/network/network-error.d.ts +1 -1
- package/build/src/error/parse/parse-error.d.ts +2 -1
- package/build/src/events/dispatcher/EventDispatcher.d.ts +6 -0
- package/build/src/events/index.d.ts +1 -0
- package/build/src/helpers/deepClone/deepClone.d.ts +34 -0
- package/build/src/helpers/index.d.ts +5 -4
- package/build/src/index.d.ts +5 -5
- package/build/src/interfaces/Draggable.d.ts +1 -1
- package/build/src/plugins/animation/index.d.ts +2 -0
- package/build/src/{modules/animation → plugins/animation/src}/animator/Animator.d.ts +2 -3
- package/build/src/plugins/animation/src/index.d.ts +3 -0
- package/build/src/plugins/animation/src/system/AnimationSystem.d.ts +23 -0
- package/build/src/plugins/ar/index.d.ts +4 -0
- package/build/src/plugins/ar/src/ARSystem.d.ts +24 -0
- package/build/src/plugins/ar/src/arquicklook/ARQuickLook.d.ts +15 -0
- package/build/src/plugins/ar/src/error/ar-errors.d.ts +24 -0
- package/build/src/{modules/ar → plugins/ar/src}/sceneviewer/SceneViewer.d.ts +10 -0
- package/build/src/{modules/ar → plugins/ar/src}/webxr/WebXR.d.ts +4 -4
- package/build/src/{modules/ar → plugins/ar/src}/webxr/controller/WebXRController.d.ts +5 -5
- package/build/src/{modules/ar → plugins/ar/src}/webxr/crosshair/WebXRCrosshair.d.ts +2 -2
- package/build/src/{modules/ar → plugins/ar/src}/webxr/origin/WebXROrigin.d.ts +4 -4
- package/build/src/{modules/ar → plugins/ar/src}/webxr/overlay/Overlay.d.ts +2 -2
- package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/WebXRRaycaster.d.ts +8 -8
- package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/ar/WebXRRaycasterAR.d.ts +4 -4
- package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/three/WebXRRaycasterTHREE.d.ts +4 -4
- package/build/src/{modules/ar → plugins/ar/src}/webxr/touchscreencontrols/WebXRTouchscreenControls.d.ts +3 -3
- package/build/src/plugins/assetcache/index.d.ts +1 -0
- package/build/src/plugins/assetcache/src/cache/AssetCache.d.ts +12 -0
- package/build/src/plugins/assetcache/src/chunk/Chunk.d.ts +16 -0
- package/build/src/plugins/assetcache/src/index.d.ts +2 -0
- package/build/src/plugins/assetconverter/index.d.ts +1 -0
- package/build/src/plugins/assetconverter/src/AssetConverter.d.ts +13 -0
- package/build/src/plugins/assetexporter/index.d.ts +1 -0
- package/build/src/{modules/asset/exporter → plugins/assetexporter/src}/AssetExporter.d.ts +0 -17
- package/build/src/plugins/assetloader/index.d.ts +3 -0
- package/build/src/plugins/assetloader/src/draco/DracoLoader.d.ts +10 -0
- package/build/src/plugins/assetloader/src/loader/AssetLoader.d.ts +14 -0
- package/build/src/plugins/axiscamera/index.d.ts +1 -0
- package/build/src/{modules/axiscamera → plugins/axiscamera/src}/AxisCamera.d.ts +3 -6
- package/build/src/plugins/mediacreator/index.d.ts +1 -0
- package/build/src/plugins/mediacreator/src/MediaCreator.d.ts +15 -0
- package/build/src/plugins/orbitcontroller/index.d.ts +1 -0
- package/build/src/{modules/controller/orbit → plugins/orbitcontroller/src}/OrbitController.d.ts +3 -3
- package/build/src/plugins/state/index.d.ts +4 -0
- package/build/src/{modules/state → plugins/state/src}/State.d.ts +4 -27
- package/build/src/{modules/state → plugins/state/src}/actions/action.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/ar/launchar.d.ts +2 -2
- package/build/src/{modules/state → plugins/state/src}/actions/camera/computeencompassingview.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/camera/getcameratransform.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/camera/lockcamera.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/camera/movecamera.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/camera/setcameralayer.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/camera/setcameratransform.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/camera/zoomcamera.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/media/generatemedia.d.ts +1 -1
- package/build/src/plugins/state/src/actions/object/addobject.d.ts +9 -0
- package/build/src/{modules/state → plugins/state/src}/actions/object/deleteobject.d.ts +4 -3
- package/build/src/{modules/state → plugins/state/src}/actions/object/deselectobject.d.ts +4 -3
- package/build/src/{modules/state → plugins/state/src}/actions/object/dropit.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/object/getallobjects.d.ts +3 -2
- package/build/src/{modules/state → plugins/state/src}/actions/object/getobjects.d.ts +3 -2
- package/build/src/{modules/state → plugins/state/src}/actions/object/modelloaded.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/object/placeonfloor.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/object/selectobject.d.ts +4 -3
- package/build/src/{modules/state → plugins/state/src}/actions/object/setparent.d.ts +6 -5
- package/build/src/{modules/state → plugins/state/src}/actions/object/updateobject.d.ts +4 -3
- package/build/src/{modules/state → plugins/state/src}/actions/renderer/startrender.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/scene/exportscene.d.ts +4 -4
- package/build/src/{modules/state → plugins/state/src}/actions/scene/getallscenedata.d.ts +3 -3
- package/build/src/{modules/state → plugins/state/src}/actions/scene/setbackground.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/scene/updatescene.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/toolbox/setgizmomode.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/toolbox/setgizmoscalelinked.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/toolbox/setgizmovisible.d.ts +1 -1
- package/build/src/{modules/state → plugins/state/src}/actions/toolbox/usetool.d.ts +2 -2
- package/build/src/plugins/state/types/ActionTypes.d.ts +17 -0
- package/build/src/{types/SceneType.d.ts → plugins/state/types/StateExportFileType.d.ts} +1 -1
- package/build/src/plugins/state/types/StateSceneData.d.ts +19 -0
- package/build/src/plugins/state/types/index.d.ts +1 -0
- package/build/src/plugins/systeminfo/index.d.ts +2 -0
- package/build/src/{modules/systeminfo → plugins/systeminfo/src}/SystemInfo.d.ts +22 -32
- package/build/src/plugins/toolbox/index.d.ts +4 -0
- package/build/src/{modules/toolbox → plugins/toolbox/src}/BaseTool.d.ts +4 -6
- package/build/src/{modules/toolbox → plugins/toolbox/src}/Toolbox.d.ts +8 -17
- package/build/src/{modules/toolbox → plugins/toolbox/src}/select/SelectTool.d.ts +7 -11
- package/build/src/{modules/toolbox → plugins/toolbox/src}/transform/TransformTool.d.ts +6 -10
- package/build/src/types/components/DIVELight.d.ts +4 -0
- package/build/src/types/components/DIVESceneObject.d.ts +6 -0
- package/build/src/types/components/index.d.ts +2 -0
- package/build/src/types/index.d.ts +2 -5
- package/build/src/types/schema/BaseEntitySchema.d.ts +8 -0
- package/build/src/types/schema/EntitySchema.d.ts +11 -0
- package/build/src/types/schema/EntityTypeSchema.d.ts +1 -0
- package/build/src/types/schema/GeometrySchema.d.ts +7 -0
- package/build/src/types/schema/GeometryTypeSchema.d.ts +1 -0
- package/build/src/types/schema/GroupSchema.d.ts +11 -0
- package/build/src/types/schema/LightSchema.d.ts +28 -0
- package/build/src/{modules/state/types/COMMaterial.d.ts → types/schema/MaterialSchema.d.ts} +1 -1
- package/build/src/types/schema/ModelSchema.d.ts +14 -0
- package/build/src/types/schema/PovSchema.d.ts +10 -0
- package/build/src/types/schema/PrimitiveSchema.d.ts +14 -0
- package/build/src/types/schema/index.d.ts +11 -0
- package/package.json +60 -41
- package/build/chunks/FileTypes-BjZ0rrIV.cjs +0 -1
- package/build/chunks/FileTypes-qgYnI0Jg.mjs +0 -30
- package/build/chunks/ModuleRegistry-NyNtjHb2.cjs +0 -1
- package/build/chunks/ModuleRegistry-RSub8W0G.mjs +0 -13
- package/build/chunks/PerspectiveCamera-BByyG5R4.cjs +0 -1
- package/build/chunks/PerspectiveCamera-sm4_81KJ.mjs +0 -34
- package/build/chunks/SelectTool-BRKko7uz.cjs +0 -1
- package/build/chunks/SystemInfo-oX-NNneO.cjs +0 -1
- package/build/chunks/VisibilityLayerMask-BI7jPKdx.cjs +0 -1
- package/build/chunks/VisibilityLayerMask-CXgt1fJc.mjs +0 -8
- package/build/chunks/findInterface-BEdL2iUQ.cjs +0 -1
- package/build/chunks/findInterface-OrXgmwxj.mjs +0 -18
- package/build/chunks/index-C_uFFwT2.mjs +0 -5
- package/build/chunks/index-DAwIH9xh.cjs +0 -1
- package/build/chunks/package-BFpY3sIj.cjs +0 -1
- package/build/chunks/package-BvoZkrge.mjs +0 -39
- package/build/chunks/parse-error-2f5qpXP5.cjs +0 -6
- package/build/chunks/parse-error-DRBVHL9E.mjs +0 -614
- package/build/src/error/ar-compatibility/ar-compatibility-error.d.ts +0 -12
- package/build/src/modules/ModuleRegistry.d.ts +0 -19
- package/build/src/modules/animation/AnimationSystem.cjs +0 -1
- package/build/src/modules/animation/AnimationSystem.d.ts +0 -36
- package/build/src/modules/animation/AnimationSystem.mjs +0 -95
- package/build/src/modules/ar/ARSystem.cjs +0 -1
- package/build/src/modules/ar/ARSystem.d.ts +0 -71
- package/build/src/modules/ar/ARSystem.mjs +0 -163
- package/build/src/modules/ar/arquicklook/ARQuickLook.d.ts +0 -7
- package/build/src/modules/asset/converter/AssetConverter.d.ts +0 -30
- package/build/src/modules/asset/exporter/AssetExporter.cjs +0 -164
- package/build/src/modules/asset/loader/AssetLoader.cjs +0 -2
- package/build/src/modules/asset/loader/AssetLoader.d.ts +0 -29
- package/build/src/modules/asset/loader/AssetLoader.mjs +0 -1919
- package/build/src/modules/events/EventExecutor.d.ts +0 -5
- package/build/src/modules/mediacreator/MediaCreator.cjs +0 -1
- package/build/src/modules/mediacreator/MediaCreator.d.ts +0 -44
- package/build/src/modules/state/State.cjs +0 -27
- package/build/src/modules/state/State.mjs +0 -4271
- package/build/src/modules/state/actions/object/addobject.d.ts +0 -8
- package/build/src/modules/state/types/ActionTypes.d.ts +0 -18
- package/build/src/modules/state/types/COMBaseEntity.d.ts +0 -8
- package/build/src/modules/state/types/COMEntity.d.ts +0 -6
- package/build/src/modules/state/types/COMEntityType.d.ts +0 -1
- package/build/src/modules/state/types/COMGeometry.d.ts +0 -7
- package/build/src/modules/state/types/COMGeometryType.d.ts +0 -1
- package/build/src/modules/state/types/COMGroup.d.ts +0 -10
- package/build/src/modules/state/types/COMLight.d.ts +0 -12
- package/build/src/modules/state/types/COMModel.d.ts +0 -13
- package/build/src/modules/state/types/COMPov.d.ts +0 -9
- package/build/src/modules/state/types/COMPrimitive.d.ts +0 -13
- package/build/src/modules/state/types/index.d.ts +0 -11
- package/build/src/modules/systeminfo/SystemInfo.cjs +0 -1
- package/build/src/modules/systeminfo/SystemInfo.mjs +0 -5
- package/build/src/modules/toolbox/Toolbox.cjs +0 -1
- package/build/src/types/SceneData.d.ts +0 -19
- package/build/src/types/SceneObjects.d.ts +0 -7
- package/build/src/types/UUID.d.ts +0 -1
- /package/build/{src/modules/asset/converter/AssetConverter.cjs → plugins/assetconverter/index.cjs} +0 -0
- /package/build/{src/modules/asset/converter/AssetConverter.mjs → plugins/assetconverter/index.mjs} +0 -0
- /package/build/src/{modules/animation → plugins/animation/src}/types/AnimatorParameters.d.ts +0 -0
- /package/build/src/{modules/state → plugins/state/src}/ActionRegistry.d.ts +0 -0
- /package/build/src/{modules/state → plugins/state/src}/actions/ar/index.d.ts +0 -0
- /package/build/src/{modules/state → plugins/state/src}/actions/camera/index.d.ts +0 -0
- /package/build/src/{modules/state → plugins/state/src}/actions/index.d.ts +0 -0
- /package/build/src/{modules/state → plugins/state/src}/actions/media/index.d.ts +0 -0
- /package/build/src/{modules/state → plugins/state/src}/actions/object/index.d.ts +0 -0
- /package/build/src/{modules/state → plugins/state/src}/actions/renderer/index.d.ts +0 -0
- /package/build/src/{modules/state → plugins/state/src}/actions/scene/index.d.ts +0 -0
- /package/build/src/{modules/state → plugins/state/src}/actions/toolbox/index.d.ts +0 -0
- /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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Power preference for the WebGL context
|
|
21
|
+
*
|
|
22
|
+
* @default 'high-performance'
|
|
23
|
+
*/
|
|
12
24
|
powerPreference: 'high-performance' | 'low-power';
|
|
13
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Precision of the shader
|
|
27
|
+
*
|
|
28
|
+
* @default 'highp'
|
|
29
|
+
*/
|
|
14
30
|
precision: 'highp' | 'mediump' | 'lowp';
|
|
15
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* Whether to enable stencil buffer
|
|
33
|
+
*
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
16
36
|
stencil: boolean;
|
|
17
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Whether to enable depth buffer
|
|
39
|
+
*
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
18
42
|
depth: boolean;
|
|
19
|
-
/**
|
|
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
|
|
15
|
-
get
|
|
12
|
+
get root(): DIVERoot;
|
|
13
|
+
get grid(): DIVEGrid;
|
|
16
14
|
private _root;
|
|
17
15
|
private _grid;
|
|
18
16
|
constructor();
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
16
|
-
|
|
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
|
-
|
|
10
|
-
|
|
9
|
+
initLightEstimation(renderer: DIVERenderPipeline): void;
|
|
10
|
+
disposeLightEstimation(): void;
|
|
11
11
|
private onEstimationStart;
|
|
12
12
|
private onEstimationEnd;
|
|
13
13
|
}
|
|
@@ -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 './
|
|
2
|
-
export * from './
|
|
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 './
|
|
7
|
-
export * from './applyMixins/applyMixins.ts';
|
|
8
|
+
export * from './isFileTypeSupported/isFileTypeSupported.ts';
|
|
8
9
|
export * from './math/index.ts';
|
package/build/src/index.d.ts
CHANGED
|
@@ -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
|
|
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,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():
|
|
17
|
+
get uuid(): string;
|
|
19
18
|
get playing(): boolean;
|
|
20
19
|
get stopped(): boolean;
|
|
21
20
|
get completed(): boolean;
|
|
@@ -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,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 '../../../
|
|
2
|
-
import { DIVEEngine } from '
|
|
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
|
|
17
|
-
static
|
|
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 '
|
|
3
|
-
import { DIVEScene } from '
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
6
|
-
|
|
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 '
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
|
3
|
+
get element(): HTMLDivElement;
|
|
4
4
|
private _closeButton;
|
|
5
|
-
get
|
|
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 '
|
|
3
|
-
import { DIVEScene } from '
|
|
4
|
-
import {
|
|
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
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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 '
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
dispose(): void;
|
|
13
|
+
init(): Promise<this>;
|
|
14
|
+
getIntersections(frame: XRFrame): DIVEHitResult[];
|
|
15
15
|
}
|
package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/three/WebXRRaycasterTHREE.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DIVERenderPipeline } from '
|
|
2
|
-
import { DIVEScene } from '
|
|
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
|
-
|
|
11
|
-
|
|
10
|
+
init(): Promise<this>;
|
|
11
|
+
getIntersections(): DIVEHitResult[];
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector2 } from 'three';
|
|
2
|
-
import {
|
|
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
|
|
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
|
-
|
|
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 @@
|
|
|
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';
|