@shopware-ag/dive 1.19.1-beta.9 → 2.0.1-beta.1
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/FileTypes-BjZ0rrIV.cjs +1 -0
- package/build/chunks/FileTypes-qgYnI0Jg.mjs +30 -0
- package/build/chunks/ModuleRegistry-NyNtjHb2.cjs +1 -0
- package/build/chunks/ModuleRegistry-RSub8W0G.mjs +13 -0
- package/build/chunks/PerspectiveCamera-BByyG5R4.cjs +1 -0
- package/build/chunks/PerspectiveCamera-sm4_81KJ.mjs +34 -0
- package/build/chunks/SelectTool-BAXTVyWs.cjs +1 -0
- package/build/chunks/SelectTool-Bd8cC9nb.mjs +712 -0
- package/build/chunks/{SystemInfo-DYq9x4Ch.mjs → SystemInfo-DPAQG-S5.mjs} +37 -40
- package/build/chunks/SystemInfo-oX-NNneO.cjs +1 -0
- package/build/chunks/VisibilityLayerMask-BI7jPKdx.cjs +1 -0
- package/build/chunks/VisibilityLayerMask-CXgt1fJc.mjs +8 -0
- package/build/chunks/findInterface-BEdL2iUQ.cjs +1 -0
- package/build/chunks/findInterface-OrXgmwxj.mjs +18 -0
- package/build/chunks/index-C_uFFwT2.mjs +5 -0
- package/build/chunks/index-DAwIH9xh.cjs +1 -0
- package/build/chunks/package-BHjZWYD6.mjs +39 -0
- package/build/chunks/package-JHvTSNgQ.cjs +1 -0
- package/build/chunks/{fflate.module-Chbb_O8w.cjs → parse-error-2f5qpXP5.cjs} +2 -3
- package/build/chunks/{fflate.module-BQhIETD7.mjs → parse-error-DRBVHL9E.mjs} +16 -17
- package/build/dive.cjs +30 -0
- package/build/dive.mjs +1663 -0
- package/build/src/components/floor/Floor.d.ts +2 -2
- package/build/src/components/gizmo/Gizmo.d.ts +4 -4
- package/build/src/components/gizmo/handles/AxisHandle.d.ts +4 -4
- package/build/src/components/gizmo/handles/RadialHandle.d.ts +4 -4
- package/build/src/components/gizmo/handles/ScaleHandle.d.ts +4 -4
- package/build/src/components/gizmo/plane/GizmoPlane.d.ts +1 -1
- package/build/src/components/gizmo/rotate/RotateGizmo.d.ts +4 -4
- package/build/src/components/gizmo/scale/ScaleGizmo.d.ts +5 -5
- package/build/src/components/gizmo/translate/TranslateGizmo.d.ts +4 -4
- package/build/src/components/grid/Grid.d.ts +1 -1
- package/build/src/components/light/AmbientLight.d.ts +3 -3
- package/build/src/components/light/PointLight.d.ts +6 -6
- package/build/src/components/light/SceneLight.d.ts +3 -3
- package/build/src/components/model/Model.d.ts +9 -6
- package/build/src/components/node/Node.d.ts +4 -4
- package/build/src/components/primitive/Primitive.d.ts +4 -4
- package/build/src/components/root/Root.d.ts +20 -29
- package/build/src/core/Dive.d.ts +26 -14
- package/build/src/engine/Engine.d.ts +7 -11
- package/build/src/engine/clock/Clock.d.ts +4 -0
- package/build/src/engine/renderer/Renderer.d.ts +12 -8
- package/build/src/engine/resize/ResizeManager.d.ts +4 -2
- package/build/src/engine/scene/Scene.d.ts +6 -24
- package/build/src/engine/scene/xrroot/XRRoot.d.ts +5 -5
- package/build/src/engine/scene/xrroot/xrlightroot/XRLightRoot.d.ts +3 -3
- package/build/src/helpers/findSceneRecursive/findSceneRecursive.d.ts +1 -1
- package/build/src/helpers/isFileTypeSupported/isFileTypeSupported.d.ts +1 -1
- package/build/src/index.d.ts +6 -9
- package/build/src/interfaces/Draggable.d.ts +1 -1
- package/build/src/modules/ModuleRegistry.d.ts +19 -0
- package/build/src/modules/animation/AnimationSystem.cjs +1 -0
- package/build/src/modules/animation/AnimationSystem.d.ts +28 -4
- package/build/src/modules/animation/AnimationSystem.mjs +95 -0
- package/build/src/modules/animation/animator/Animator.d.ts +26 -0
- package/build/src/modules/animation/types/AnimatorParameters.d.ts +7 -0
- package/build/src/modules/ar/ARSystem.cjs +1 -2
- package/build/src/modules/ar/ARSystem.mjs +5 -5
- package/build/src/modules/ar/arquicklook/ARQuickLook.d.ts +1 -1
- package/build/src/modules/ar/sceneviewer/SceneViewer.d.ts +1 -1
- package/build/src/modules/ar/webxr/WebXR.d.ts +3 -3
- package/build/src/modules/ar/webxr/controller/WebXRController.d.ts +3 -3
- package/build/src/modules/ar/webxr/origin/WebXROrigin.d.ts +2 -2
- package/build/src/modules/ar/webxr/raycaster/WebXRRaycaster.d.ts +4 -4
- package/build/src/modules/ar/webxr/raycaster/ar/WebXRRaycasterAR.d.ts +3 -3
- package/build/src/modules/ar/webxr/raycaster/three/WebXRRaycasterTHREE.d.ts +4 -4
- package/build/src/modules/ar/webxr/touchscreencontrols/WebXRTouchscreenControls.d.ts +1 -1
- package/build/src/modules/asset/converter/AssetConverter.cjs +0 -1
- package/build/src/modules/asset/converter/AssetConverter.d.ts +3 -3
- package/build/src/modules/asset/converter/AssetConverter.mjs +0 -1
- package/build/src/modules/asset/draco/README.md +32 -0
- package/build/src/modules/asset/draco/draco_decoder.js +33 -0
- package/build/src/modules/asset/draco/draco_decoder.wasm +0 -0
- package/build/src/modules/asset/draco/draco_encoder.js +33 -0
- package/build/src/modules/asset/draco/draco_wasm_wrapper.js +116 -0
- package/build/src/modules/asset/draco/gltf/draco_decoder.js +33 -0
- package/build/src/modules/asset/draco/gltf/draco_decoder.wasm +0 -0
- package/build/src/modules/asset/draco/gltf/draco_encoder.js +33 -0
- package/build/src/modules/asset/draco/gltf/draco_wasm_wrapper.js +116 -0
- package/build/src/modules/asset/exporter/AssetExporter.cjs +1 -2
- package/build/src/modules/asset/exporter/AssetExporter.d.ts +3 -3
- package/build/src/modules/asset/exporter/AssetExporter.mjs +1 -2
- package/build/src/modules/asset/loader/AssetLoader.cjs +3 -2
- package/build/src/modules/asset/loader/AssetLoader.mjs +2152 -5
- package/build/src/modules/axiscamera/AxisCamera.d.ts +8 -9
- package/build/src/modules/controller/orbit/OrbitController.d.ts +13 -24
- package/build/src/modules/mediacreator/MediaCreator.cjs +1 -2
- package/build/src/modules/mediacreator/MediaCreator.d.ts +4 -4
- package/build/src/modules/mediacreator/MediaCreator.mjs +28 -3
- package/build/src/modules/state/ActionRegistry.d.ts +26 -0
- package/build/src/modules/state/State.cjs +27 -0
- package/build/src/modules/state/State.d.ts +58 -0
- package/build/src/modules/state/State.mjs +4296 -0
- package/build/src/modules/state/actions/action.d.ts +36 -0
- package/build/src/modules/state/actions/ar/index.d.ts +1 -0
- package/build/src/modules/state/actions/ar/launchar.d.ts +15 -0
- package/build/src/modules/state/actions/camera/computeencompassingview.d.ts +12 -0
- package/build/src/modules/state/actions/camera/getcameratransform.d.ts +12 -0
- package/build/src/modules/state/actions/camera/index.d.ts +6 -0
- package/build/src/modules/state/actions/camera/lockcamera.d.ts +8 -0
- package/build/src/modules/state/actions/camera/movecamera.d.ts +29 -0
- package/build/src/modules/state/actions/camera/setcameralayer.d.ts +12 -0
- package/build/src/modules/state/actions/camera/setcameratransform.d.ts +15 -0
- package/build/src/modules/state/actions/camera/zoomcamera.d.ts +14 -0
- package/build/src/modules/state/actions/index.d.ts +7 -0
- package/build/src/modules/state/actions/media/generatemedia.d.ts +25 -0
- package/build/src/modules/state/actions/media/index.d.ts +1 -0
- package/build/src/modules/state/actions/object/addobject.d.ts +8 -0
- package/build/src/modules/state/actions/object/deleteobject.d.ts +12 -0
- package/build/src/modules/state/actions/object/deselectobject.d.ts +12 -0
- package/build/src/modules/state/actions/object/dropit.d.ts +12 -0
- package/build/src/modules/state/actions/object/getallobjects.d.ts +8 -0
- package/build/src/modules/state/actions/object/getobjects.d.ts +12 -0
- package/build/src/modules/state/actions/object/index.d.ts +11 -0
- package/build/src/modules/state/actions/object/modelloaded.d.ts +12 -0
- package/build/src/modules/state/actions/object/placeonfloor.d.ts +12 -0
- package/build/src/modules/state/actions/object/selectobject.d.ts +12 -0
- package/build/src/modules/state/actions/object/setparent.d.ts +22 -0
- package/build/src/modules/state/actions/object/updateobject.d.ts +12 -0
- package/build/src/modules/state/actions/renderer/index.d.ts +1 -0
- package/build/src/modules/state/actions/renderer/startrender.d.ts +8 -0
- package/build/src/modules/state/actions/scene/exportscene.d.ts +13 -0
- package/build/src/modules/state/actions/scene/getallscenedata.d.ts +9 -0
- package/build/src/modules/state/actions/scene/index.d.ts +4 -0
- package/build/src/modules/state/actions/scene/setbackground.d.ts +12 -0
- package/build/src/modules/state/actions/scene/updatescene.d.ts +20 -0
- package/build/src/modules/state/actions/toolbox/index.d.ts +4 -0
- package/build/src/modules/state/actions/toolbox/setgizmomode.d.ts +12 -0
- package/build/src/modules/state/actions/toolbox/setgizmoscalelinked.d.ts +8 -0
- package/build/src/modules/state/actions/toolbox/setgizmovisible.d.ts +8 -0
- package/build/src/modules/state/actions/toolbox/usetool.d.ts +13 -0
- package/build/src/modules/state/types/ActionTypes.d.ts +18 -0
- package/build/src/modules/{com → state}/types/COMBaseEntity.d.ts +1 -1
- package/build/src/modules/state/types/COMEntity.d.ts +11 -0
- package/build/src/modules/{com → state}/types/COMGeometry.d.ts +1 -1
- package/build/src/modules/state/types/COMGroup.d.ts +11 -0
- package/build/src/modules/state/types/COMLight.d.ts +28 -0
- package/build/src/modules/state/types/COMModel.d.ts +14 -0
- package/build/src/modules/state/types/COMPov.d.ts +10 -0
- package/build/src/modules/state/types/COMPrimitive.d.ts +14 -0
- package/build/src/modules/state/types/index.d.ts +11 -0
- package/build/src/modules/systeminfo/SystemInfo.cjs +1 -2
- package/build/src/modules/systeminfo/SystemInfo.d.ts +1 -1
- package/build/src/modules/systeminfo/SystemInfo.mjs +3 -3
- package/build/src/modules/toolbox/BaseTool.d.ts +6 -6
- package/build/src/modules/toolbox/Toolbox.cjs +1 -0
- package/build/src/modules/toolbox/Toolbox.d.ts +12 -8
- package/build/src/modules/toolbox/Toolbox.mjs +99 -0
- package/build/src/modules/toolbox/select/SelectTool.d.ts +6 -6
- package/build/src/modules/toolbox/transform/TransformTool.d.ts +6 -6
- package/build/src/types/SceneData.d.ts +1 -1
- package/build/src/types/SceneObjects.d.ts +9 -7
- package/build/src/types/SceneType.d.ts +1 -1
- package/build/src/types/UUID.d.ts +1 -0
- package/build/src/types/file/index.d.ts +1 -1
- package/build/src/types/index.d.ts +6 -6
- package/package.json +34 -23
- package/build/chunks/AssetLoader-BYhwzCxs.cjs +0 -3
- package/build/chunks/AssetLoader-BYhwzCxs.cjs.map +0 -1
- package/build/chunks/AssetLoader-Bmcx40wo.mjs +0 -1948
- package/build/chunks/AssetLoader-Bmcx40wo.mjs.map +0 -1
- package/build/chunks/MediaCreator-CAXBbn15.mjs +0 -59
- package/build/chunks/MediaCreator-CAXBbn15.mjs.map +0 -1
- package/build/chunks/MediaCreator-DDXQIlRv.cjs +0 -2
- package/build/chunks/MediaCreator-DDXQIlRv.cjs.map +0 -1
- package/build/chunks/SystemInfo--669uW1p.cjs +0 -2
- package/build/chunks/SystemInfo--669uW1p.cjs.map +0 -1
- package/build/chunks/SystemInfo-DYq9x4Ch.mjs.map +0 -1
- package/build/chunks/fflate.module-BQhIETD7.mjs.map +0 -1
- package/build/chunks/fflate.module-Chbb_O8w.cjs.map +0 -1
- package/build/index.cjs +0 -57
- package/build/index.cjs.map +0 -1
- package/build/index.mjs +0 -6793
- package/build/index.mjs.map +0 -1
- package/build/src/engine/index.d.ts +0 -1
- package/build/src/engine/pipeline/RenderPipeline.d.ts +0 -26
- package/build/src/error/index.d.ts +0 -4
- package/build/src/modules/_system/ModuleImporter.d.ts +0 -43
- package/build/src/modules/ar/ARSystem.cjs.map +0 -1
- package/build/src/modules/ar/ARSystem.mjs.map +0 -1
- package/build/src/modules/asset/converter/AssetConverter.cjs.map +0 -1
- package/build/src/modules/asset/converter/AssetConverter.mjs.map +0 -1
- package/build/src/modules/asset/exporter/AssetExporter.cjs.map +0 -1
- package/build/src/modules/asset/exporter/AssetExporter.mjs.map +0 -1
- package/build/src/modules/asset/loader/AssetLoader.cjs.map +0 -1
- package/build/src/modules/asset/loader/AssetLoader.mjs.map +0 -1
- package/build/src/modules/com/Communication.d.ts +0 -72
- package/build/src/modules/com/actions/camera/computeencompassingview.d.ts +0 -9
- package/build/src/modules/com/actions/camera/getcameratransform.d.ts +0 -9
- package/build/src/modules/com/actions/camera/movecamera.d.ts +0 -15
- package/build/src/modules/com/actions/camera/resetcamera.d.ts +0 -7
- package/build/src/modules/com/actions/camera/setcameralayer.d.ts +0 -7
- package/build/src/modules/com/actions/camera/setcameratransform.d.ts +0 -9
- package/build/src/modules/com/actions/camera/zoomcamera.d.ts +0 -8
- package/build/src/modules/com/actions/index.d.ts +0 -60
- package/build/src/modules/com/actions/media/generatemedia.d.ts +0 -14
- package/build/src/modules/com/actions/object/addobject.d.ts +0 -6
- package/build/src/modules/com/actions/object/deleteobject.d.ts +0 -8
- package/build/src/modules/com/actions/object/deselectobject.d.ts +0 -8
- package/build/src/modules/com/actions/object/getallobjects.d.ts +0 -6
- package/build/src/modules/com/actions/object/getobjects.d.ts +0 -8
- package/build/src/modules/com/actions/object/model/dropit.d.ts +0 -7
- package/build/src/modules/com/actions/object/model/modelloaded.d.ts +0 -7
- package/build/src/modules/com/actions/object/model/placeonfloor.d.ts +0 -7
- package/build/src/modules/com/actions/object/selectobject.d.ts +0 -8
- package/build/src/modules/com/actions/object/setparent.d.ts +0 -13
- package/build/src/modules/com/actions/object/updateobject.d.ts +0 -8
- package/build/src/modules/com/actions/renderer/startrender.d.ts +0 -5
- package/build/src/modules/com/actions/scene/exportscene.d.ts +0 -8
- package/build/src/modules/com/actions/scene/getallscenedata.d.ts +0 -6
- package/build/src/modules/com/actions/scene/launchar.d.ts +0 -9
- package/build/src/modules/com/actions/scene/setbackground.d.ts +0 -7
- package/build/src/modules/com/actions/scene/updatescene.d.ts +0 -11
- package/build/src/modules/com/actions/toolbox/select/setgizmomode.d.ts +0 -7
- package/build/src/modules/com/actions/toolbox/transform/setgizmoscalelinked.d.ts +0 -5
- package/build/src/modules/com/actions/toolbox/transform/setgizmovisible.d.ts +0 -5
- package/build/src/modules/com/actions/toolbox/usetool.d.ts +0 -8
- package/build/src/modules/com/types/COMEntity.d.ts +0 -6
- package/build/src/modules/com/types/COMGroup.d.ts +0 -8
- package/build/src/modules/com/types/COMLight.d.ts +0 -10
- package/build/src/modules/com/types/COMModel.d.ts +0 -11
- package/build/src/modules/com/types/COMPov.d.ts +0 -7
- package/build/src/modules/com/types/COMPrimitive.d.ts +0 -11
- package/build/src/modules/com/types/index.d.ts +0 -11
- package/build/src/modules/index.d.ts +0 -2
- package/build/src/modules/mediacreator/MediaCreator.cjs.map +0 -1
- package/build/src/modules/mediacreator/MediaCreator.mjs.map +0 -1
- package/build/src/modules/systeminfo/SystemInfo.cjs.map +0 -1
- package/build/src/modules/systeminfo/SystemInfo.mjs.map +0 -1
- /package/build/{index.d.ts → dive.d.ts} +0 -0
- /package/build/src/modules/{com → state}/types/COMEntityType.d.ts +0 -0
- /package/build/src/modules/{com → state}/types/COMGeometryType.d.ts +0 -0
- /package/build/src/modules/{com → state}/types/COMMaterial.d.ts +0 -0
|
@@ -9,6 +9,6 @@ import { ColorRepresentation, Mesh } from 'three';
|
|
|
9
9
|
export declare class DIVEFloor extends Mesh {
|
|
10
10
|
readonly isDIVEFloor: true;
|
|
11
11
|
constructor();
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
setVisibility(visible: boolean): void;
|
|
13
|
+
setColor(color: ColorRepresentation): void;
|
|
14
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Euler, Object3D, Vector3 } from 'three';
|
|
2
|
-
import {
|
|
3
|
-
import { DIVEGizmoPlane as DIVEGizmoPlane } from './plane/GizmoPlane';
|
|
4
|
-
import { DIVESelectable } from '../../interfaces/Selectable';
|
|
2
|
+
import { OrbitController } from '../../modules/controller/orbit/OrbitController.ts';
|
|
3
|
+
import { DIVEGizmoPlane as DIVEGizmoPlane } from './plane/GizmoPlane.ts';
|
|
4
|
+
import { DIVESelectable } from '../../interfaces/Selectable.ts';
|
|
5
5
|
export type DIVEGizmoMode = 'translate' | 'rotate' | 'scale';
|
|
6
6
|
export type DIVEGizmoAxis = 'x' | 'y' | 'z';
|
|
7
7
|
export declare class DIVEGizmo extends Object3D {
|
|
@@ -18,7 +18,7 @@ export declare class DIVEGizmo extends Object3D {
|
|
|
18
18
|
get gizmoPlane(): DIVEGizmoPlane;
|
|
19
19
|
private _object;
|
|
20
20
|
get object(): (Object3D & DIVESelectable) | null;
|
|
21
|
-
constructor(controller:
|
|
21
|
+
constructor(controller: OrbitController);
|
|
22
22
|
attach(object: Object3D & DIVESelectable): this;
|
|
23
23
|
detach(): this;
|
|
24
24
|
onHover(mode: DIVEGizmoMode, axis: DIVEGizmoAxis, value: boolean): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ColorRepresentation, Object3D, Vector3 } from 'three';
|
|
2
|
-
import { DIVEHoverable } from '../../../interfaces/Hoverable';
|
|
3
|
-
import { DIVETranslateGizmo } from '../translate/TranslateGizmo';
|
|
4
|
-
import { DIVEDraggable } from '../../../interfaces/Draggable';
|
|
5
|
-
import { DraggableEvent } from '../../../modules/toolbox/BaseTool';
|
|
2
|
+
import { DIVEHoverable } from '../../../interfaces/Hoverable.ts';
|
|
3
|
+
import { DIVETranslateGizmo } from '../translate/TranslateGizmo.ts';
|
|
4
|
+
import { DIVEDraggable } from '../../../interfaces/Draggable.ts';
|
|
5
|
+
import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
|
|
6
6
|
export declare class DIVEAxisHandle extends Object3D implements DIVEHoverable, DIVEDraggable {
|
|
7
7
|
readonly isHoverable: true;
|
|
8
8
|
readonly isDraggable: true;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ColorRepresentation, Object3D, Vector3 } from 'three';
|
|
2
|
-
import { DIVEHoverable } from '../../../interfaces/Hoverable';
|
|
3
|
-
import { DraggableEvent } from '../../../modules/toolbox/BaseTool';
|
|
4
|
-
import { DIVERotateGizmo } from '../rotate/RotateGizmo';
|
|
5
|
-
import { DIVEDraggable } from '../../../interfaces/Draggable';
|
|
2
|
+
import { DIVEHoverable } from '../../../interfaces/Hoverable.ts';
|
|
3
|
+
import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
|
|
4
|
+
import { DIVERotateGizmo } from '../rotate/RotateGizmo.ts';
|
|
5
|
+
import { DIVEDraggable } from '../../../interfaces/Draggable.ts';
|
|
6
6
|
export declare class DIVERadialHandle extends Object3D implements DIVEHoverable, DIVEDraggable {
|
|
7
7
|
readonly isHoverable: true;
|
|
8
8
|
readonly isDraggable: true;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ColorRepresentation, Object3D, Vector3 } from 'three';
|
|
2
|
-
import { DIVEHoverable } from '../../../interfaces/Hoverable';
|
|
3
|
-
import { DIVEScaleGizmo } from '../scale/ScaleGizmo';
|
|
4
|
-
import { DIVEDraggable } from '../../../interfaces/Draggable';
|
|
5
|
-
import { DraggableEvent } from '../../../modules/toolbox/BaseTool';
|
|
2
|
+
import { DIVEHoverable } from '../../../interfaces/Hoverable.ts';
|
|
3
|
+
import { DIVEScaleGizmo } from '../scale/ScaleGizmo.ts';
|
|
4
|
+
import { DIVEDraggable } from '../../../interfaces/Draggable.ts';
|
|
5
|
+
import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
|
|
6
6
|
export declare class DIVEScaleHandle extends Object3D implements DIVEHoverable, DIVEDraggable {
|
|
7
7
|
readonly isHoverable: true;
|
|
8
8
|
readonly isDraggable: true;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Object3D } from 'three';
|
|
2
|
-
import {
|
|
3
|
-
import { DIVERadialHandle } from '../handles/RadialHandle';
|
|
4
|
-
import { DraggableEvent } from '../../../modules/toolbox/BaseTool';
|
|
2
|
+
import { OrbitController } from '../../../modules/controller/orbit/OrbitController.ts';
|
|
3
|
+
import { DIVERadialHandle } from '../handles/RadialHandle.ts';
|
|
4
|
+
import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
|
|
5
5
|
export declare class DIVERotateGizmo extends Object3D {
|
|
6
6
|
children: DIVERadialHandle[];
|
|
7
7
|
private _controller;
|
|
8
8
|
set debug(value: boolean);
|
|
9
9
|
private _startRot;
|
|
10
|
-
constructor(controller:
|
|
10
|
+
constructor(controller: OrbitController);
|
|
11
11
|
reset(): void;
|
|
12
12
|
private handleHighlight;
|
|
13
13
|
onHandleHover(handle: DIVERadialHandle, value: boolean): void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Object3D, Vector3 } from 'three';
|
|
2
|
-
import { DIVEHoverable } from '../../../interfaces/Hoverable';
|
|
3
|
-
import {
|
|
4
|
-
import { DIVEScaleHandle } from '../handles/ScaleHandle';
|
|
5
|
-
import { DraggableEvent } from '../../../modules/toolbox/BaseTool';
|
|
2
|
+
import { DIVEHoverable } from '../../../interfaces/Hoverable.ts';
|
|
3
|
+
import { OrbitController } from '../../../modules/controller/orbit/OrbitController.ts';
|
|
4
|
+
import { DIVEScaleHandle } from '../handles/ScaleHandle.ts';
|
|
5
|
+
import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
|
|
6
6
|
export declare class DIVEScaleGizmo extends Object3D implements DIVEHoverable {
|
|
7
7
|
readonly isHoverable: true;
|
|
8
8
|
children: DIVEScaleHandle[];
|
|
9
9
|
private _controller;
|
|
10
10
|
set debug(value: boolean);
|
|
11
11
|
private _startScale;
|
|
12
|
-
constructor(controller:
|
|
12
|
+
constructor(controller: OrbitController);
|
|
13
13
|
reset(): void;
|
|
14
14
|
update(scale: Vector3): void;
|
|
15
15
|
private handleHighlight;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Object3D } from 'three';
|
|
2
|
-
import {
|
|
3
|
-
import { DIVEAxisHandle } from '../handles/AxisHandle';
|
|
4
|
-
import { DraggableEvent } from '../../../modules/toolbox/BaseTool';
|
|
2
|
+
import { OrbitController } from '../../../modules/controller/orbit/OrbitController.ts';
|
|
3
|
+
import { DIVEAxisHandle } from '../handles/AxisHandle.ts';
|
|
4
|
+
import { DraggableEvent } from '../../../modules/toolbox/BaseTool.ts';
|
|
5
5
|
export declare class DIVETranslateGizmo extends Object3D {
|
|
6
6
|
private _controller;
|
|
7
7
|
set debug(value: boolean);
|
|
8
8
|
children: DIVEAxisHandle[];
|
|
9
9
|
private _startPos;
|
|
10
|
-
constructor(controller:
|
|
10
|
+
constructor(controller: OrbitController);
|
|
11
11
|
reset(): void;
|
|
12
12
|
private handleHighlight;
|
|
13
13
|
onHandleHover(handle: DIVEAxisHandle, value: boolean): void;
|
|
@@ -11,7 +11,7 @@ export declare class DIVEAmbientLight extends Object3D {
|
|
|
11
11
|
readonly isDIVEAmbientLight: true;
|
|
12
12
|
private _light;
|
|
13
13
|
constructor();
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
setColor(color: Color): void;
|
|
15
|
+
setIntensity(intensity: number): void;
|
|
16
|
+
setEnabled(enabled: boolean): void;
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Color, Object3D } from 'three';
|
|
2
|
-
import { DIVEMovable } from '../../interfaces/Movable';
|
|
3
|
-
import { DIVESelectable } from '../../interfaces/Selectable';
|
|
4
|
-
import { TransformControls } from 'three/examples/jsm/controls/TransformControls';
|
|
2
|
+
import { DIVEMovable } from '../../interfaces/Movable.ts';
|
|
3
|
+
import { DIVESelectable } from '../../interfaces/Selectable.ts';
|
|
4
|
+
import { TransformControls } from 'three/examples/jsm/controls/TransformControls.ts';
|
|
5
5
|
/**
|
|
6
6
|
* A basic point light.
|
|
7
7
|
*
|
|
@@ -20,9 +20,9 @@ export declare class DIVEPointLight extends Object3D implements DIVESelectable,
|
|
|
20
20
|
private light;
|
|
21
21
|
private mesh;
|
|
22
22
|
constructor();
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
setColor(color: Color): void;
|
|
24
|
+
setIntensity(intensity: number): void;
|
|
25
|
+
setEnabled(enabled: boolean): void;
|
|
26
26
|
onMove(): void;
|
|
27
27
|
onSelect(): void;
|
|
28
28
|
onDeselect(): void;
|
|
@@ -12,7 +12,7 @@ export declare class DIVESceneLight extends Object3D {
|
|
|
12
12
|
private _hemiLight;
|
|
13
13
|
private _dirLight;
|
|
14
14
|
constructor();
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
setColor(color: Color): void;
|
|
16
|
+
setIntensity(intensity: number): void;
|
|
17
|
+
setEnabled(enabled: boolean): void;
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Object3D } from 'three';
|
|
2
|
-
import { COMMaterial } from '../../modules/
|
|
3
|
-
import { DIVENode } from '../node/Node';
|
|
2
|
+
import { COMMaterial } from '../../modules/state/types/index.ts';
|
|
3
|
+
import { DIVENode } from '../node/Node.ts';
|
|
4
4
|
/**
|
|
5
5
|
* A basic model class.
|
|
6
6
|
*
|
|
@@ -14,8 +14,11 @@ export declare class DIVEModel extends DIVENode {
|
|
|
14
14
|
readonly isDIVEModel: true;
|
|
15
15
|
private _mesh;
|
|
16
16
|
private _material;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
private _assetLoader;
|
|
18
|
+
private _getAssetLoader;
|
|
19
|
+
setFromURL(url: string): Promise<void>;
|
|
20
|
+
setFromGLTF(gltf: Object3D): void;
|
|
21
|
+
setMaterial(material: Partial<COMMaterial>): void;
|
|
22
|
+
placeOnFloor(): void;
|
|
23
|
+
dropIt(): void;
|
|
21
24
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box3, Object3D, Vector3, Vector3Like } from 'three';
|
|
2
|
-
import { DIVEMovable } from '../../interfaces/Movable';
|
|
3
|
-
import { DIVESelectable } from '../../interfaces/Selectable';
|
|
4
|
-
import { TransformControls } from 'three/examples/jsm/controls/TransformControls';
|
|
2
|
+
import { DIVEMovable } from '../../interfaces/Movable.ts';
|
|
3
|
+
import { DIVESelectable } from '../../interfaces/Selectable.ts';
|
|
4
|
+
import { TransformControls } from 'three/examples/jsm/controls/TransformControls.ts';
|
|
5
5
|
declare const DIVENode_base: new () => Object3D<import('three').Object3DEventMap> & DIVEMovable & DIVESelectable;
|
|
6
6
|
export declare class DIVENode extends DIVENode_base {
|
|
7
7
|
readonly isDIVENode: true;
|
|
@@ -12,7 +12,7 @@ export declare class DIVENode extends DIVENode_base {
|
|
|
12
12
|
SetPosition(position: Vector3Like): void;
|
|
13
13
|
SetRotation(rotation: Vector3Like): void;
|
|
14
14
|
SetScale(scale: Vector3Like): void;
|
|
15
|
-
|
|
15
|
+
setVisibility(visible: boolean): void;
|
|
16
16
|
SetToWorldOrigin(): void;
|
|
17
17
|
/**
|
|
18
18
|
* Can be called when the object is moved from a foreign object (gizmo, parent, etc.) to update the object's position.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DIVENode } from '../node/Node.ts';
|
|
2
|
-
import { COMGeometry, COMMaterial } from '../../modules/
|
|
2
|
+
import { COMGeometry, COMMaterial } from '../../modules/state/types/index.ts';
|
|
3
3
|
/**
|
|
4
4
|
* A basic model class.
|
|
5
5
|
*
|
|
@@ -14,9 +14,9 @@ export declare class DIVEPrimitive extends DIVENode {
|
|
|
14
14
|
private _mesh;
|
|
15
15
|
constructor();
|
|
16
16
|
SetGeometry(geometry: COMGeometry): void;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
setMaterial(material: Partial<COMMaterial>): void;
|
|
18
|
+
placeOnFloor(): void;
|
|
19
|
+
dropIt(): void;
|
|
20
20
|
private assembleGeometry;
|
|
21
21
|
private createCylinderGeometry;
|
|
22
22
|
private createSphereGeometry;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Box3, Object3D } from 'three';
|
|
2
|
-
import { COMEntity } from '../../modules/
|
|
2
|
+
import { COMEntity, COMEntityType, COMMinimal, COMPartial } from '../../modules/state/types/index.ts';
|
|
3
3
|
import { DIVESceneObject } from '../../types/index.ts';
|
|
4
4
|
import { DIVEFloor } from '../floor/Floor.ts';
|
|
5
5
|
/**
|
|
@@ -12,34 +12,25 @@ export declare class DIVERoot extends Object3D {
|
|
|
12
12
|
get floor(): DIVEFloor;
|
|
13
13
|
private _floor;
|
|
14
14
|
private _assetLoader;
|
|
15
|
+
private _getAssetLoader;
|
|
15
16
|
constructor();
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
computeSceneBB(): Box3;
|
|
18
|
+
getSceneObject<E extends COMEntityType>(object: Partial<COMEntity> & {
|
|
18
19
|
id: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
private
|
|
34
|
-
private
|
|
35
|
-
private updatePrimitive;
|
|
36
|
-
private updateGroup;
|
|
37
|
-
private deleteLight;
|
|
38
|
-
private deleteModel;
|
|
39
|
-
private deletePrimitive;
|
|
40
|
-
private deleteGroup;
|
|
41
|
-
private placeOnFloor;
|
|
42
|
-
private setParent;
|
|
43
|
-
private detachTransformControls;
|
|
44
|
-
private findScene;
|
|
20
|
+
entityType: E;
|
|
21
|
+
}): DIVESceneObject<E> | undefined;
|
|
22
|
+
addSceneObject(object: COMEntity): DIVESceneObject | undefined;
|
|
23
|
+
updateSceneObject(object: COMPartial): void;
|
|
24
|
+
deleteSceneObject(object: COMMinimal<COMEntity>): void;
|
|
25
|
+
private _updateLight;
|
|
26
|
+
private _updateModel;
|
|
27
|
+
private _updatePrimitive;
|
|
28
|
+
private _updateGroup;
|
|
29
|
+
private _deleteLight;
|
|
30
|
+
private _deleteModel;
|
|
31
|
+
private _deletePrimitive;
|
|
32
|
+
private _deleteGroup;
|
|
33
|
+
private _setParent;
|
|
34
|
+
private _detachTransformControls;
|
|
35
|
+
private _findScene;
|
|
45
36
|
}
|
package/build/src/core/Dive.d.ts
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DIVECommunication } from '../modules/com/Communication.ts';
|
|
1
|
+
import { OrbitControllerSettings } from '../modules/controller/orbit/OrbitController.ts';
|
|
3
2
|
import { DIVEEngine, EngineSettings } from '../engine/Engine.ts';
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
DIVE: {
|
|
6
|
+
/**
|
|
7
|
+
* All instances of DIVE
|
|
8
|
+
*/
|
|
9
|
+
instances: DIVE[];
|
|
10
|
+
/**
|
|
11
|
+
* Get the first instance of DIVE
|
|
12
|
+
*/
|
|
13
|
+
get instance(): DIVE | undefined;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
4
17
|
export type DIVESettings = EngineSettings & {
|
|
5
|
-
/** Settings for
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export declare const DIVEDefaultSettings:
|
|
18
|
+
/** Settings for modules */
|
|
19
|
+
useLocalDRACOLoader?: boolean;
|
|
20
|
+
} & Partial<OrbitControllerSettings>;
|
|
21
|
+
export declare const DIVEDefaultSettings: DIVESettings;
|
|
9
22
|
/**
|
|
10
23
|
* #### DIVE
|
|
11
24
|
* is the main class of the DIVE framework.
|
|
@@ -24,22 +37,21 @@ export declare const DIVEDefaultSettings: Required<DIVESettings>;
|
|
|
24
37
|
* // do something
|
|
25
38
|
* }));
|
|
26
39
|
*
|
|
27
|
-
* dive.Communication.
|
|
40
|
+
* dive.Communication.performAction('GET_ALL_SCENE_DATA', {});
|
|
28
41
|
* ```
|
|
29
42
|
* @module
|
|
30
43
|
*/
|
|
31
44
|
export declare class DIVE {
|
|
32
|
-
static QuickView(uri: string, settings?: Partial<DIVESettings
|
|
45
|
+
static QuickView(uri: string, settings?: Partial<DIVESettings & {
|
|
46
|
+
lightIntensity?: number;
|
|
47
|
+
}>): Promise<DIVE>;
|
|
33
48
|
private _settings;
|
|
34
49
|
get engine(): DIVEEngine;
|
|
35
50
|
private _engine;
|
|
36
|
-
private
|
|
37
|
-
private toolbox;
|
|
38
|
-
private _communication;
|
|
39
|
-
private animationSystem;
|
|
51
|
+
private orbitController;
|
|
40
52
|
private axisCamera;
|
|
41
|
-
get communication(): DIVECommunication;
|
|
42
53
|
get canvas(): HTMLCanvasElement;
|
|
54
|
+
setCanvas(canvas: HTMLCanvasElement): void;
|
|
43
55
|
constructor(settings?: Partial<DIVESettings>);
|
|
44
|
-
Dispose(): void
|
|
56
|
+
Dispose(): Promise<void>;
|
|
45
57
|
}
|
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
import { DIVEScene } from './scene/Scene.ts';
|
|
2
2
|
import { DIVEPerspectiveCamera, DIVEPerspectiveCameraSettings } from './camera/PerspectiveCamera.ts';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { DIVERenderPipeline, DIVERenderPipelineSettings } from './renderer/Renderer.ts';
|
|
4
|
+
import { DIVEClock } from './clock/Clock.ts';
|
|
5
5
|
export type EngineSettings = {
|
|
6
6
|
/** Whether the engine should start automatically after initialization */
|
|
7
7
|
autoStart: boolean;
|
|
8
8
|
/** Whether to display coordinate axes in the scene */
|
|
9
9
|
displayAxes: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/** Settings for the render pipeline */
|
|
13
|
-
renderPipeline: Partial<DIVERenderPipelineSettings>;
|
|
14
|
-
};
|
|
15
|
-
export declare const EngineDefaultSettings: Required<EngineSettings>;
|
|
10
|
+
} & Partial<DIVEPerspectiveCameraSettings> & Partial<DIVERenderPipelineSettings>;
|
|
11
|
+
export declare const EngineDefaultSettings: EngineSettings;
|
|
16
12
|
export declare class DIVEEngine {
|
|
17
13
|
private _renderer;
|
|
18
14
|
private _scene;
|
|
19
15
|
private _camera;
|
|
20
|
-
private _pipeline;
|
|
21
16
|
private _resizeManager;
|
|
22
17
|
private _clock;
|
|
23
18
|
private _settings;
|
|
24
19
|
constructor(settings?: Partial<EngineSettings>);
|
|
25
20
|
get scene(): DIVEScene;
|
|
26
21
|
get camera(): DIVEPerspectiveCamera;
|
|
27
|
-
get renderer():
|
|
28
|
-
|
|
22
|
+
get renderer(): DIVERenderPipeline;
|
|
23
|
+
setCanvas(canvas: HTMLCanvasElement): void;
|
|
24
|
+
get clock(): DIVEClock;
|
|
29
25
|
start(): void;
|
|
30
26
|
stop(): void;
|
|
31
27
|
dispose(): void;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
import { DIVERenderPipeline } from '../renderer/Renderer.ts';
|
|
1
2
|
export interface DIVETicker {
|
|
3
|
+
uuid: string;
|
|
2
4
|
tick(deltaTime: number): void;
|
|
3
5
|
dispose?(): void;
|
|
4
6
|
}
|
|
5
7
|
export declare class DIVEClock {
|
|
8
|
+
private _renderer;
|
|
6
9
|
private _lastTime;
|
|
7
10
|
private _isRunning;
|
|
8
11
|
private _tickers;
|
|
9
12
|
start(): void;
|
|
10
13
|
stop(): void;
|
|
14
|
+
setRenderer(renderer: DIVERenderPipeline): void;
|
|
11
15
|
addTicker(ticker: DIVETicker): void;
|
|
12
16
|
removeTicker(ticker: DIVETicker): void;
|
|
13
17
|
dispose(): void;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WebGLRenderer } from 'three';
|
|
2
2
|
import { DIVEScene } from '../scene/Scene.ts';
|
|
3
|
-
|
|
3
|
+
import { DIVEPerspectiveCamera } from '../camera/PerspectiveCamera.ts';
|
|
4
|
+
export type DIVERenderPipelineSettings = {
|
|
5
|
+
/** The canvas to render to */
|
|
6
|
+
canvas: HTMLCanvasElement | undefined;
|
|
4
7
|
/** Whether to enable antialiasing */
|
|
5
8
|
antialias: boolean;
|
|
6
9
|
/** Whether to enable alpha channel */
|
|
@@ -16,7 +19,7 @@ export type DIVERendererSettings = {
|
|
|
16
19
|
/** Whether to use logarithmic depth buffer */
|
|
17
20
|
logarithmicDepthBuffer: boolean;
|
|
18
21
|
};
|
|
19
|
-
export declare const
|
|
22
|
+
export declare const DIVERenderPipelineDefaultSettings: Required<DIVERenderPipelineSettings>;
|
|
20
23
|
/**
|
|
21
24
|
* A changed version of the WebGLRenderer.
|
|
22
25
|
*
|
|
@@ -24,14 +27,15 @@ export declare const DIVERendererDefaultSettings: Required<DIVERendererSettings>
|
|
|
24
27
|
*
|
|
25
28
|
* @module
|
|
26
29
|
*/
|
|
27
|
-
export declare class
|
|
30
|
+
export declare class DIVERenderPipeline {
|
|
31
|
+
private _scene;
|
|
32
|
+
private _camera;
|
|
28
33
|
private _webglrenderer;
|
|
29
34
|
private _settings;
|
|
30
|
-
constructor(settings?: Partial<
|
|
35
|
+
constructor(_scene: DIVEScene, _camera: DIVEPerspectiveCamera, settings?: Partial<DIVERenderPipelineSettings>);
|
|
31
36
|
get webglrenderer(): WebGLRenderer;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
render(scene: DIVEScene, camera: Camera): void;
|
|
37
|
+
setCanvas(canvas: HTMLCanvasElement): void;
|
|
38
|
+
render(): void;
|
|
35
39
|
onResize(width: number, height: number): void;
|
|
36
40
|
dispose(): void;
|
|
37
41
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { DIVEPerspectiveCamera } from '../camera/PerspectiveCamera.ts';
|
|
2
|
-
import {
|
|
2
|
+
import { DIVERenderPipeline } from '../renderer/Renderer.ts';
|
|
3
3
|
export declare class DIVEResizeManager {
|
|
4
4
|
private _resizeObserver;
|
|
5
5
|
private _width;
|
|
6
6
|
private _height;
|
|
7
|
-
constructor(renderer:
|
|
7
|
+
constructor(renderer: DIVERenderPipeline, camera: DIVEPerspectiveCamera);
|
|
8
|
+
setCanvas(canvas: HTMLCanvasElement): void;
|
|
8
9
|
dispose(): void;
|
|
10
|
+
private _observeCanvas;
|
|
9
11
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Scene, Box3, ColorRepresentation } from 'three';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { DIVEGrid } from '../../components/grid/Grid';
|
|
5
|
-
import { DIVESceneObject } from '../../types';
|
|
2
|
+
import { DIVERoot } from '../../components/root/Root.ts';
|
|
3
|
+
import { DIVEGrid } from '../../components/grid/Grid.ts';
|
|
6
4
|
/**
|
|
7
5
|
* A basic scene class.
|
|
8
6
|
*
|
|
@@ -11,27 +9,11 @@ import { DIVESceneObject } from '../../types';
|
|
|
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
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Object3D } from 'three';
|
|
2
|
-
import { DIVERoot } from '../../../components/root/Root';
|
|
3
|
-
import {
|
|
4
|
-
import { DIVEXRLightRoot } from './xrlightroot/XRLightRoot';
|
|
5
|
-
import { DIVEScene } from '../Scene';
|
|
2
|
+
import { DIVERoot } from '../../../components/root/Root.ts';
|
|
3
|
+
import { DIVERenderPipeline } from '../../renderer/Renderer.ts';
|
|
4
|
+
import { DIVEXRLightRoot } from './xrlightroot/XRLightRoot.ts';
|
|
5
|
+
import { DIVEScene } from '../Scene.ts';
|
|
6
6
|
export declare class DIVEXRRoot extends Object3D {
|
|
7
7
|
private _xrLightRoot;
|
|
8
8
|
private _xrModelRoot;
|
|
@@ -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:
|
|
15
|
+
InitLightEstimation(renderer: DIVERenderPipeline): void;
|
|
16
16
|
DisposeLightEstimation(): void;
|
|
17
17
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DIVERenderPipeline } from '../../../renderer/Renderer.ts';
|
|
2
2
|
import { Object3D } from 'three';
|
|
3
|
-
import { DIVEScene } from '../../Scene';
|
|
3
|
+
import { DIVEScene } from '../../Scene.ts';
|
|
4
4
|
export declare class DIVEXRLightRoot extends Object3D {
|
|
5
5
|
private _scene;
|
|
6
6
|
private _xrLight;
|
|
7
7
|
private _lightRoot;
|
|
8
8
|
constructor(scene: DIVEScene);
|
|
9
|
-
InitLightEstimation(renderer:
|
|
9
|
+
InitLightEstimation(renderer: DIVERenderPipeline): void;
|
|
10
10
|
DisposeLightEstimation(): void;
|
|
11
11
|
private onEstimationStart;
|
|
12
12
|
private onEstimationEnd;
|
package/build/src/index.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
export * from './core/
|
|
1
|
+
export * from './core/index.ts';
|
|
2
2
|
export * from './helpers/index.ts';
|
|
3
|
-
export
|
|
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';
|
|
4
7
|
export * from './types/index.ts';
|
|
5
|
-
export * from './modules/
|
|
6
|
-
export { ARSystem } from './modules/ar/ARSystem';
|
|
7
|
-
export { AssetConverter } from './modules/asset/converter/AssetConverter';
|
|
8
|
-
export { AssetExporter } from './modules/asset/exporter/AssetExporter';
|
|
9
|
-
export { AssetLoader } from './modules/asset/loader/AssetLoader';
|
|
10
|
-
export { MediaCreator } from './modules/mediacreator/MediaCreator';
|
|
11
|
-
export { SystemInfo } from './modules/systeminfo/SystemInfo';
|
|
8
|
+
export * from './modules/ModuleRegistry.ts';
|