@shopware-ag/dive 2.0.1-beta.1 → 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-Bd8cC9nb.mjs → SelectTool-D5QfT5rr.mjs} +45 -40
- 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 +672 -1535
- 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/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/group/Group.d.ts +4 -4
- package/build/src/components/model/Model.d.ts +2 -2
- package/build/src/components/node/Node.d.ts +7 -7
- package/build/src/components/primitive/Primitive.d.ts +3 -3
- package/build/src/components/root/Root.d.ts +5 -7
- package/build/src/core/Dive.d.ts +4 -3
- 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/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 +3 -3
- 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/plugins/state/src/actions/object/deleteobject.d.ts +13 -0
- package/build/src/plugins/state/src/actions/object/deselectobject.d.ts +13 -0
- package/build/src/{modules/state → plugins/state/src}/actions/object/dropit.d.ts +3 -3
- package/build/src/{modules/state → plugins/state/src}/actions/object/getallobjects.d.ts +3 -2
- package/build/src/plugins/state/src/actions/object/getobjects.d.ts +13 -0
- 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 +3 -3
- package/build/src/plugins/state/src/actions/object/selectobject.d.ts +13 -0
- package/build/src/plugins/state/src/actions/object/setparent.d.ts +23 -0
- package/build/src/plugins/state/src/actions/object/updateobject.d.ts +13 -0
- 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/plugins/state/src/actions/scene/getallscenedata.d.ts +9 -0
- 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 +59 -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-BAXTVyWs.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-BHjZWYD6.mjs +0 -39
- package/build/chunks/package-JHvTSNgQ.cjs +0 -1
- 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/draco/README.md +0 -32
- package/build/src/modules/asset/draco/draco_decoder.js +0 -33
- package/build/src/modules/asset/draco/draco_decoder.wasm +0 -0
- package/build/src/modules/asset/draco/draco_encoder.js +0 -33
- package/build/src/modules/asset/draco/draco_wasm_wrapper.js +0 -116
- package/build/src/modules/asset/draco/gltf/draco_decoder.js +0 -33
- package/build/src/modules/asset/draco/gltf/draco_decoder.wasm +0 -0
- package/build/src/modules/asset/draco/gltf/draco_encoder.js +0 -33
- package/build/src/modules/asset/draco/gltf/draco_wasm_wrapper.js +0 -116
- package/build/src/modules/asset/exporter/AssetExporter.cjs +0 -164
- package/build/src/modules/asset/loader/AssetLoader.cjs +0 -3
- package/build/src/modules/asset/loader/AssetLoader.d.ts +0 -29
- package/build/src/modules/asset/loader/AssetLoader.mjs +0 -2154
- 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 -4296
- package/build/src/modules/state/actions/object/addobject.d.ts +0 -8
- package/build/src/modules/state/actions/object/deleteobject.d.ts +0 -12
- package/build/src/modules/state/actions/object/deselectobject.d.ts +0 -12
- package/build/src/modules/state/actions/object/getobjects.d.ts +0 -12
- package/build/src/modules/state/actions/object/selectobject.d.ts +0 -12
- package/build/src/modules/state/actions/object/setparent.d.ts +0 -22
- package/build/src/modules/state/actions/object/updateobject.d.ts +0 -12
- package/build/src/modules/state/actions/scene/getallscenedata.d.ts +0 -9
- 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 -11
- 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 -11
- package/build/src/modules/state/types/COMLight.d.ts +0 -28
- package/build/src/modules/state/types/COMModel.d.ts +0 -14
- package/build/src/modules/state/types/COMPov.d.ts +0 -10
- package/build/src/modules/state/types/COMPrimitive.d.ts +0 -14
- 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 -9
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
3
|
-
import { ARSystemOptions } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { ARSystemOptions } from '../../../../ar/index.ts';
|
|
4
4
|
export declare const LaunchARAction: new (payload: {
|
|
5
5
|
uri: string;
|
|
6
6
|
options?: ARSystemOptions;
|
package/build/src/{modules/state → plugins/state/src}/actions/camera/computeencompassingview.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
2
|
import { Vector3Like } from 'three';
|
|
3
|
-
import { ActionDependencies } from '
|
|
3
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
4
4
|
export declare const ComputeEncompassingViewAction: new (payload: void, dependencies: Pick<ActionDependencies, "engine" | "controller">) => Action<void, Pick<ActionDependencies, "engine" | "controller">, {
|
|
5
5
|
position: Vector3Like;
|
|
6
6
|
target: Vector3Like;
|
package/build/src/{modules/state → plugins/state/src}/actions/camera/getcameratransform.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
import { Vector3Like } from 'three';
|
|
4
4
|
export declare const GetCameraTransformAction: new (payload: void, dependencies: Pick<ActionDependencies, "controller">) => Action<void, Pick<ActionDependencies, "controller">, {
|
|
5
5
|
position: Vector3Like;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
export declare const SetCameraLockedAction: new (payload: boolean, dependencies: Pick<ActionDependencies, "controller">) => Action<boolean, Pick<ActionDependencies, "controller">, void>;
|
|
4
4
|
declare global {
|
|
5
5
|
interface ActionTypes {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
import { Vector3Like } from 'three';
|
|
4
4
|
export declare const MoveCameraAction: new (payload: {
|
|
5
5
|
position: Vector3Like;
|
|
@@ -10,7 +10,7 @@ export declare const MoveCameraAction: new (payload: {
|
|
|
10
10
|
id: string;
|
|
11
11
|
locked: boolean;
|
|
12
12
|
duration: number;
|
|
13
|
-
}, dependencies: Pick<ActionDependencies, "
|
|
13
|
+
}, dependencies: Pick<ActionDependencies, "registered" | "engine" | "controller" | "getAnimationSystem">) => Action<{
|
|
14
14
|
position: Vector3Like;
|
|
15
15
|
target: Vector3Like;
|
|
16
16
|
locked: boolean;
|
|
@@ -19,7 +19,7 @@ export declare const MoveCameraAction: new (payload: {
|
|
|
19
19
|
id: string;
|
|
20
20
|
locked: boolean;
|
|
21
21
|
duration: number;
|
|
22
|
-
}, Pick<ActionDependencies, "
|
|
22
|
+
}, Pick<ActionDependencies, "registered" | "engine" | "controller" | "getAnimationSystem">, Promise<{
|
|
23
23
|
stop: () => void;
|
|
24
24
|
}>>;
|
|
25
25
|
declare global {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
export declare const SetCameraLayerAction: new (payload: {
|
|
4
4
|
layer: "LIVE" | "EDITOR";
|
|
5
5
|
}, dependencies: Pick<ActionDependencies, "controller">) => Action<{
|
package/build/src/{modules/state → plugins/state/src}/actions/camera/setcameratransform.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
import { Vector3Like } from 'three';
|
|
4
4
|
export declare const SetCameraTransformAction: new (payload: {
|
|
5
5
|
position: Vector3Like;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
import { Vector3Like } from 'three';
|
|
4
4
|
export declare const GenerateMediaAction: new (payload: ({
|
|
5
5
|
position: Vector3Like;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Action } from '../action.ts';
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { EntitySchema } from '../../../../../index.ts';
|
|
4
|
+
export declare const AddObjectAction: new (payload: EntitySchema, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<EntitySchema, Pick<ActionDependencies, "registered" | "engine">, void>;
|
|
5
|
+
declare global {
|
|
6
|
+
interface ActionTypes {
|
|
7
|
+
ADD_OBJECT: typeof AddObjectAction;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Action } from '../action.ts';
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { EntitySchema } from '../../../../../index.ts';
|
|
4
|
+
export declare const DeleteObjectAction: new (payload: Partial<EntitySchema> & {
|
|
5
|
+
id: string;
|
|
6
|
+
}, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<Partial<EntitySchema> & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, Pick<ActionDependencies, "registered" | "engine">, void>;
|
|
9
|
+
declare global {
|
|
10
|
+
interface ActionTypes {
|
|
11
|
+
DELETE_OBJECT: typeof DeleteObjectAction;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Action } from '../action.ts';
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { EntitySchema } from '../../../../../index.ts';
|
|
4
|
+
export declare const DeselectObjectAction: new (payload: Partial<EntitySchema> & {
|
|
5
|
+
id: string;
|
|
6
|
+
}, dependencies: Pick<ActionDependencies, "registered" | "engine" | "getToolbox">) => Action<Partial<EntitySchema> & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, Pick<ActionDependencies, "registered" | "engine" | "getToolbox">, Promise<void>>;
|
|
9
|
+
declare global {
|
|
10
|
+
interface ActionTypes {
|
|
11
|
+
DESELECT_OBJECT: typeof DeselectObjectAction;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
export declare const DropItAction: new (payload: {
|
|
4
4
|
id: string;
|
|
5
|
-
}, dependencies: Pick<ActionDependencies, "
|
|
5
|
+
}, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<{
|
|
6
6
|
id: string;
|
|
7
|
-
}, Pick<ActionDependencies, "
|
|
7
|
+
}, Pick<ActionDependencies, "registered" | "engine">, void>;
|
|
8
8
|
declare global {
|
|
9
9
|
interface ActionTypes {
|
|
10
10
|
DROP_IT: typeof DropItAction;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies
|
|
3
|
-
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { EntitySchema } from '../../../../../index.ts';
|
|
4
|
+
export declare const GetAllObjectsAction: new (payload: void, dependencies: Pick<ActionDependencies, "registered">) => Action<void, Pick<ActionDependencies, "registered">, Map<string, EntitySchema>>;
|
|
4
5
|
declare global {
|
|
5
6
|
interface ActionTypes {
|
|
6
7
|
GET_ALL_OBJECTS: typeof GetAllObjectsAction;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Action } from '../action.ts';
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { EntitySchema } from '../../../../../index.ts';
|
|
4
|
+
export declare const GetObjectsAction: new (payload: {
|
|
5
|
+
ids: string[];
|
|
6
|
+
}, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<{
|
|
7
|
+
ids: string[];
|
|
8
|
+
}, Pick<ActionDependencies, "registered" | "engine">, EntitySchema[]>;
|
|
9
|
+
declare global {
|
|
10
|
+
interface ActionTypes {
|
|
11
|
+
GET_OBJECTS: typeof GetObjectsAction;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
export declare const ModelLoadedAction: new (payload: {
|
|
4
4
|
id: string;
|
|
5
5
|
}, dependencies: Pick<ActionDependencies, "registered">) => Action<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
export declare const PlaceOnFloorAction: new (payload: {
|
|
4
4
|
id: string;
|
|
5
|
-
}, dependencies: Pick<ActionDependencies, "
|
|
5
|
+
}, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<{
|
|
6
6
|
id: string;
|
|
7
|
-
}, Pick<ActionDependencies, "
|
|
7
|
+
}, Pick<ActionDependencies, "registered" | "engine">, void>;
|
|
8
8
|
declare global {
|
|
9
9
|
interface ActionTypes {
|
|
10
10
|
PLACE_ON_FLOOR: typeof PlaceOnFloorAction;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Action } from '../action.ts';
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { EntitySchema } from '../../../../../index.ts';
|
|
4
|
+
export declare const SelectObjectAction: new (payload: Partial<EntitySchema> & {
|
|
5
|
+
id: string;
|
|
6
|
+
}, dependencies: Pick<ActionDependencies, "registered" | "engine" | "getToolbox">) => Action<Partial<EntitySchema> & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, Pick<ActionDependencies, "registered" | "engine" | "getToolbox">, Promise<void>>;
|
|
9
|
+
declare global {
|
|
10
|
+
interface ActionTypes {
|
|
11
|
+
SELECT_OBJECT: typeof SelectObjectAction;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Action } from '../action.ts';
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { EntitySchema } from '../../../../../index.ts';
|
|
4
|
+
export declare const SetParentAction: new (payload: {
|
|
5
|
+
object: Partial<EntitySchema> & {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
parent: (Partial<EntitySchema> & {
|
|
9
|
+
id: string;
|
|
10
|
+
}) | null;
|
|
11
|
+
}, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<{
|
|
12
|
+
object: Partial<EntitySchema> & {
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
parent: (Partial<EntitySchema> & {
|
|
16
|
+
id: string;
|
|
17
|
+
}) | null;
|
|
18
|
+
}, Pick<ActionDependencies, "registered" | "engine">, void>;
|
|
19
|
+
declare global {
|
|
20
|
+
interface ActionTypes {
|
|
21
|
+
SET_PARENT: typeof SetParentAction;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Action } from '../action.ts';
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { EntitySchema } from '../../../../../index.ts';
|
|
4
|
+
export declare const UpdateObjectAction: new (payload: Partial<EntitySchema> & {
|
|
5
|
+
id: string;
|
|
6
|
+
}, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<Partial<EntitySchema> & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, Pick<ActionDependencies, "registered" | "engine">, void>;
|
|
9
|
+
declare global {
|
|
10
|
+
interface ActionTypes {
|
|
11
|
+
UPDATE_OBJECT: typeof UpdateObjectAction;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
export declare const StartRenderAction: new (payload: void, dependencies: Pick<ActionDependencies, "engine">) => Action<void, Pick<ActionDependencies, "engine">, void>;
|
|
4
4
|
declare global {
|
|
5
5
|
interface ActionTypes {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
3
|
-
import {
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { StateExportFileType } from '../../../types/StateExportFileType.ts';
|
|
4
4
|
export declare const ExportSceneAction: new (payload: {
|
|
5
|
-
type: keyof
|
|
5
|
+
type: keyof StateExportFileType;
|
|
6
6
|
}, dependencies: Pick<ActionDependencies, "engine" | "getAssetExporter">) => Action<{
|
|
7
|
-
type: keyof
|
|
7
|
+
type: keyof StateExportFileType;
|
|
8
8
|
}, Pick<ActionDependencies, "engine" | "getAssetExporter">, Promise<ArrayBuffer | null>>;
|
|
9
9
|
declare global {
|
|
10
10
|
interface ActionTypes {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Action } from '../action.ts';
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { StateSceneData } from '../../../types/StateSceneData.ts';
|
|
4
|
+
export declare const GetAllSceneDataAction: new (payload: object, dependencies: Pick<ActionDependencies, "registered" | "engine" | "controller">) => Action<object, Pick<ActionDependencies, "registered" | "engine" | "controller">, StateSceneData>;
|
|
5
|
+
declare global {
|
|
6
|
+
interface ActionTypes {
|
|
7
|
+
GET_ALL_SCENE_DATA: typeof GetAllSceneDataAction;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
export declare const SetBackgroundAction: new (payload: {
|
|
4
4
|
color: string | number;
|
|
5
5
|
}, dependencies: Pick<ActionDependencies, "engine">) => Action<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
export declare const UpdateSceneAction: new (payload: Partial<{
|
|
4
4
|
name: string;
|
|
5
5
|
backgroundColor: string | number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
export declare const SetGizmoModeAction: new (payload: {
|
|
4
4
|
mode: "translate" | "rotate" | "scale";
|
|
5
5
|
}, dependencies: Pick<ActionDependencies, "getToolbox">) => Action<{
|
package/build/src/{modules/state → plugins/state/src}/actions/toolbox/setgizmoscalelinked.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
export declare const SetGizmoScaleLinkedAction: new (payload: boolean, dependencies: Pick<ActionDependencies, "getToolbox">) => Action<boolean, Pick<ActionDependencies, "getToolbox">, Promise<void>>;
|
|
4
4
|
declare global {
|
|
5
5
|
interface ActionTypes {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
3
|
export declare const SetGizmoVisibilityAction: new (payload: boolean, dependencies: Pick<ActionDependencies, "getToolbox">) => Action<boolean, Pick<ActionDependencies, "getToolbox">, Promise<void>>;
|
|
4
4
|
declare global {
|
|
5
5
|
interface ActionTypes {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '
|
|
3
|
-
import { ToolType } from '
|
|
2
|
+
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
+
import { ToolType } from '../../../../toolbox/index.ts';
|
|
4
4
|
export declare const UseToolAction: new (payload: {
|
|
5
5
|
tool: ToolType;
|
|
6
6
|
}, dependencies: Pick<ActionDependencies, "getToolbox">) => Action<{
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DIVEEngine, EntitySchema } from '../../../index.ts';
|
|
2
|
+
import { OrbitController } from '../../orbitcontroller/index.ts';
|
|
3
|
+
export type ActionPayload<T> = T extends new (payload: infer P, dependencies: infer D) => unknown ? P : never;
|
|
4
|
+
export type ActionReturn<T> = T extends new (payload: infer P, dependencies: infer D) => infer ClassInstance ? ClassInstance extends {
|
|
5
|
+
execute(): infer E;
|
|
6
|
+
} ? E : never : never;
|
|
7
|
+
export type ActionDeps<T> = T extends new (payload: unknown, dependencies: infer D) => unknown ? D extends Partial<ActionDependencies> ? D : never : never;
|
|
8
|
+
export interface ActionDependencies {
|
|
9
|
+
registered: Map<string, EntitySchema>;
|
|
10
|
+
engine: DIVEEngine;
|
|
11
|
+
controller: OrbitController;
|
|
12
|
+
getAnimationSystem: () => Promise<import('../../animation/index.ts').AnimationSystem>;
|
|
13
|
+
getARSystem: () => Promise<import('../../ar/index.ts').ARSystem>;
|
|
14
|
+
getAssetExporter: () => Promise<import('../../assetexporter/index.ts').AssetExporter>;
|
|
15
|
+
getMediaCreator: () => Promise<import('../../mediacreator/index.ts').MediaCreator>;
|
|
16
|
+
getToolbox: () => Promise<import('../../toolbox/index.ts').Toolbox>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Vector3Like } from 'three';
|
|
2
|
+
import { GroupSchema, LightSchema, ModelSchema, PovSchema, PrimitiveSchema } from '../../../index.ts';
|
|
3
|
+
export type StateSceneData = {
|
|
4
|
+
name: string;
|
|
5
|
+
mediaItem: null;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
floorEnabled: boolean;
|
|
8
|
+
floorColor: string;
|
|
9
|
+
userCamera: {
|
|
10
|
+
position: Vector3Like;
|
|
11
|
+
target: Vector3Like;
|
|
12
|
+
};
|
|
13
|
+
spotmarks: object[];
|
|
14
|
+
lights: LightSchema[];
|
|
15
|
+
objects: ModelSchema[];
|
|
16
|
+
cameras: PovSchema[];
|
|
17
|
+
primitives: PrimitiveSchema[];
|
|
18
|
+
groups: GroupSchema[];
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActionTypes.ts';
|
|
@@ -1,35 +1,12 @@
|
|
|
1
|
-
import { ESystem, EWebXRUnsupportedReason } from '
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ESystem, EWebXRUnsupportedReason } from '../types/index.ts';
|
|
2
|
+
export declare enum EBrowser {
|
|
3
|
+
CHROMIUM = "Chromium",// Chrome, Opera, Brave, new Edge, Chrome on iOS
|
|
4
|
+
SAFARI = "Safari",// Apple Safari
|
|
5
|
+
WEBKIT = "WebKit",// Other WebKit-based browsers (not Safari or iOS variants if specified)
|
|
6
|
+
FIREFOX = "Firefox",// Firefox, Firefox on iOS
|
|
7
|
+
EDGE_LEGACY = "EdgeLegacy",// Old EdgeHTML Edge
|
|
8
|
+
UNKNOWN = "Unknown"
|
|
6
9
|
}
|
|
7
|
-
/**
|
|
8
|
-
* @module SystemInfo
|
|
9
|
-
*
|
|
10
|
-
* Provides information about the system's capabilities and performance:
|
|
11
|
-
*
|
|
12
|
-
* ```ts
|
|
13
|
-
* import { SystemInfo } from '@shopware-ag/dive/modules/SystemInfo';
|
|
14
|
-
*
|
|
15
|
-
* // Get system information
|
|
16
|
-
* const system = SystemInfo.getSystem(); // Returns ESystem enum (IOS, ANDROID, etc.)
|
|
17
|
-
*
|
|
18
|
-
* // Check AR capabilities
|
|
19
|
-
* const supportsAR = SystemInfo.getSupportsAR();
|
|
20
|
-
*
|
|
21
|
-
* // Check device type
|
|
22
|
-
* const isMobile = SystemInfo.isMobile;
|
|
23
|
-
* const isDesktop = SystemInfo.isDesktop;
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* Features:
|
|
27
|
-
* - System detection (iOS, Android, Windows, etc.)
|
|
28
|
-
* - WebXR support detection
|
|
29
|
-
* - AR capability checking
|
|
30
|
-
* - Device type detection
|
|
31
|
-
* - SceneViewer support detection
|
|
32
|
-
*/
|
|
33
10
|
export declare class SystemInfo {
|
|
34
11
|
private static _supportsWebXR;
|
|
35
12
|
private static _webXRUnsupportedReason;
|
|
@@ -52,7 +29,7 @@ export declare class SystemInfo {
|
|
|
52
29
|
* 1. AR support via relList
|
|
53
30
|
*
|
|
54
31
|
* Requirements:
|
|
55
|
-
* - iOS
|
|
32
|
+
* - iOS 12.0 or later
|
|
56
33
|
* - Safari browser (ARQuickLook is only supported in Safari)
|
|
57
34
|
* - Device with AR capabilities (iPhone/iPad with LiDAR scanner or ARKit support)
|
|
58
35
|
*
|
|
@@ -92,4 +69,17 @@ export declare class SystemInfo {
|
|
|
92
69
|
* @returns A promise that resolves to a boolean indicating whether the user's device is capable of AR.
|
|
93
70
|
*/
|
|
94
71
|
static getSupportsAR(): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Gets the current browser engine.
|
|
74
|
+
* @returns EBrowser The current browser engine.
|
|
75
|
+
*/
|
|
76
|
+
static getBrowser(): EBrowser;
|
|
77
|
+
/**
|
|
78
|
+
* Gets the iOS version if the current system is iOS.
|
|
79
|
+
* @returns An object with { major: number, full: string } or null if not iOS or version not parsable.
|
|
80
|
+
*/
|
|
81
|
+
static getIOSVersion(): {
|
|
82
|
+
major: number;
|
|
83
|
+
full: string;
|
|
84
|
+
} | null;
|
|
95
85
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Intersection, Object3D, Raycaster, Vector2, Vector3 } from 'three';
|
|
2
|
-
import { DIVEScene } from '
|
|
3
|
-
import { OrbitController } from '
|
|
4
|
-
import { DIVEDraggable } from '../../interfaces/Draggable.ts';
|
|
5
|
-
import { DIVEHoverable } from '../../interfaces/Hoverable.ts';
|
|
2
|
+
import { DIVEScene, DIVEDraggable, DIVEHoverable } from '../../../index.ts';
|
|
3
|
+
import { OrbitController } from '../../orbitcontroller/index.ts';
|
|
6
4
|
export type DraggableEvent = {
|
|
7
5
|
dragStart: Vector3;
|
|
8
6
|
dragCurrent: Vector3;
|
|
@@ -33,8 +31,8 @@ export declare abstract class DIVEBaseTool {
|
|
|
33
31
|
protected _draggable: DIVEDraggable | null;
|
|
34
32
|
protected _dragRaycastOnObjects: Object3D[] | null;
|
|
35
33
|
protected constructor(scene: DIVEScene, controller: OrbitController);
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
activate(): void;
|
|
35
|
+
deactivate(): void;
|
|
38
36
|
onPointerDown(e: PointerEvent): void;
|
|
39
37
|
onDragStart(e: PointerEvent): void;
|
|
40
38
|
onPointerMove(e: PointerEvent): void;
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import { DIVEScene } from '
|
|
1
|
+
import { DIVEScene } from '../../../index.ts';
|
|
2
2
|
import { DIVEBaseTool } from './BaseTool.ts';
|
|
3
3
|
import { DIVESelectTool } from './select/SelectTool.ts';
|
|
4
|
-
import { OrbitController } from '
|
|
4
|
+
import { OrbitController } from '../../orbitcontroller/index.ts';
|
|
5
5
|
export type ToolType = 'select' | 'none';
|
|
6
|
-
declare global {
|
|
7
|
-
interface ModuleClasses {
|
|
8
|
-
Toolbox: typeof Toolbox;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @module Toolbox
|
|
13
|
-
* A Toolbox to activate and deactivate tools to use with the pointer.
|
|
14
|
-
*/
|
|
15
6
|
export declare class Toolbox {
|
|
16
7
|
static readonly DefaultTool = "select";
|
|
17
8
|
private _scene;
|
|
@@ -20,12 +11,12 @@ export declare class Toolbox {
|
|
|
20
11
|
private _selectTool;
|
|
21
12
|
get selectTool(): DIVESelectTool;
|
|
22
13
|
constructor(scene: DIVEScene, controller: OrbitController);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
dispose(): void;
|
|
15
|
+
getActiveTool(): DIVEBaseTool | null;
|
|
16
|
+
useTool(tool: ToolType): void;
|
|
17
|
+
setGizmoMode(mode: 'translate' | 'rotate' | 'scale'): void;
|
|
18
|
+
setGizmoVisibility(active: boolean): void;
|
|
19
|
+
setGizmoScaleLinked(linked: boolean): void;
|
|
29
20
|
onPointerMove(e: PointerEvent): void;
|
|
30
21
|
onPointerDown(e: PointerEvent): void;
|
|
31
22
|
onPointerUp(e: PointerEvent): void;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { DIVEScene } from '
|
|
1
|
+
import { DIVEScene, DIVESelectable } from '../../../../index.ts';
|
|
2
2
|
import { DIVETransformTool } from '../transform/TransformTool.ts';
|
|
3
|
-
import { OrbitController } from '
|
|
4
|
-
import { DIVESelectable } from '../../../interfaces/Selectable.ts';
|
|
3
|
+
import { OrbitController } from '../../../orbitcontroller/index.ts';
|
|
5
4
|
import { DIVEBaseTool } from '../BaseTool.ts';
|
|
6
5
|
export declare const isSelectTool: (tool: DIVEBaseTool) => tool is DIVESelectTool;
|
|
7
|
-
export interface DIVEObjectEventMap {
|
|
8
|
-
select: object;
|
|
9
|
-
}
|
|
10
6
|
/**
|
|
11
7
|
* A Tool to select and move objects in the scene.
|
|
12
8
|
*
|
|
@@ -17,10 +13,10 @@ export interface DIVEObjectEventMap {
|
|
|
17
13
|
export declare class DIVESelectTool extends DIVETransformTool {
|
|
18
14
|
readonly isSelectTool: boolean;
|
|
19
15
|
constructor(scene: DIVEScene, controller: OrbitController);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
activate(): void;
|
|
17
|
+
select(selectable: DIVESelectable): void;
|
|
18
|
+
deselect(selectable: DIVESelectable): void;
|
|
19
|
+
attachGizmo(selectable: DIVESelectable): void;
|
|
20
|
+
detachGizmo(): void;
|
|
25
21
|
onClick(e: PointerEvent): void;
|
|
26
22
|
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { TransformControls } from 'three/examples/jsm/controls/TransformControls.js';
|
|
2
2
|
import { DIVEBaseTool } from '../BaseTool.ts';
|
|
3
|
-
import { DIVEScene } from '
|
|
4
|
-
import { OrbitController } from '
|
|
5
|
-
import { DIVEGizmo } from '../../../components/gizmo/Gizmo.ts';
|
|
3
|
+
import { DIVEGizmo, DIVEScene } from '../../../../index.ts';
|
|
4
|
+
import { OrbitController } from '../../../orbitcontroller/index.ts';
|
|
6
5
|
export declare const isTransformTool: (tool: DIVEBaseTool) => tool is DIVETransformTool;
|
|
7
|
-
export interface DIVEObjectEventMap {
|
|
8
|
-
select: object;
|
|
9
|
-
}
|
|
10
6
|
/**
|
|
11
7
|
* A Tool to select and move objects in the scene.
|
|
12
8
|
*
|
|
@@ -19,9 +15,9 @@ export declare class DIVETransformTool extends DIVEBaseTool {
|
|
|
19
15
|
private _scaleLinked;
|
|
20
16
|
protected _gizmo: TransformControls | DIVEGizmo;
|
|
21
17
|
constructor(scene: DIVEScene, controller: OrbitController);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
activate(): void;
|
|
19
|
+
setGizmoMode(mode: 'translate' | 'rotate' | 'scale'): void;
|
|
20
|
+
setGizmoVisibility(active: boolean): void;
|
|
21
|
+
setGizmoScaleLinked(linked: boolean): void;
|
|
26
22
|
private initGizmo;
|
|
27
23
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DIVEAmbientLight } from '../../components/light/AmbientLight.ts';
|
|
2
|
+
import { DIVEPointLight } from '../../components/light/PointLight.ts';
|
|
3
|
+
import { DIVESceneLight } from '../../components/light/SceneLight.ts';
|
|
4
|
+
export type DIVELight = DIVEAmbientLight | DIVEPointLight | DIVESceneLight;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DIVEGroup } from '../../components/group/Group.ts';
|
|
2
|
+
import { DIVEModel } from '../../components/model/Model.ts';
|
|
3
|
+
import { DIVEPrimitive } from '../../components/primitive/Primitive.ts';
|
|
4
|
+
import { DIVELight } from './DIVELight.ts';
|
|
5
|
+
import { EntityTypeSchema } from '../index.ts';
|
|
6
|
+
export type DIVESceneObject<T extends EntityTypeSchema | void = void> = T extends 'model' ? DIVEModel : T extends 'group' ? DIVEGroup : T extends 'primitive' ? DIVEPrimitive : T extends 'light' ? DIVELight : DIVEModel | DIVEGroup | DIVEPrimitive | DIVELight;
|