@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
|
@@ -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;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './SceneObjects.ts';
|
|
3
|
-
export * from './SceneType.ts';
|
|
4
|
-
export * from './UUID.ts';
|
|
1
|
+
export * from './components/index.ts';
|
|
5
2
|
export * from './file/index.ts';
|
|
6
|
-
export * from './
|
|
3
|
+
export * from './schema/index.ts';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PovSchema } from './PovSchema.ts';
|
|
2
|
+
import { LightSchema } from './LightSchema.ts';
|
|
3
|
+
import { ModelSchema } from './ModelSchema.ts';
|
|
4
|
+
import { PrimitiveSchema } from './PrimitiveSchema.ts';
|
|
5
|
+
import { GroupSchema } from './GroupSchema.ts';
|
|
6
|
+
export type MinimalSchema<T extends EntitySchema> = T extends EntitySchema ? {
|
|
7
|
+
id: string;
|
|
8
|
+
entityType: T['entityType'];
|
|
9
|
+
} : never;
|
|
10
|
+
export type PartialSchema<T extends EntitySchema | void = void> = T extends EntitySchema ? MinimalSchema<T> & Partial<T> : MinimalSchema<EntitySchema> & Partial<EntitySchema>;
|
|
11
|
+
export type EntitySchema = PovSchema | LightSchema | ModelSchema | PrimitiveSchema | GroupSchema;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EntityTypeSchema = 'pov' | 'light' | 'model' | 'primitive' | 'group';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GeometryTypeSchema = 'cylinder' | 'sphere' | 'pyramid' | 'cube' | 'box' | 'cone' | 'wall' | 'plane';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Vector3Like } from 'three';
|
|
2
|
+
import { BaseEntitySchema } from './BaseEntitySchema.ts';
|
|
3
|
+
import { EntitySchema } from './EntitySchema.ts';
|
|
4
|
+
export declare function isGroupSchema(entity: EntitySchema): entity is GroupSchema;
|
|
5
|
+
export type GroupSchema = BaseEntitySchema & {
|
|
6
|
+
entityType: 'group';
|
|
7
|
+
position: Vector3Like;
|
|
8
|
+
rotation: Vector3Like;
|
|
9
|
+
scale: Vector3Like;
|
|
10
|
+
bbVisible?: boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Vector3Like } from 'three';
|
|
2
|
+
import { BaseEntitySchema } from './BaseEntitySchema.ts';
|
|
3
|
+
import { EntitySchema } from './EntitySchema.ts';
|
|
4
|
+
export declare function isLightSchema(entity: EntitySchema): entity is LightSchema;
|
|
5
|
+
export type BaseLightSchema = BaseEntitySchema & {
|
|
6
|
+
type: LightTypeSchema;
|
|
7
|
+
intensity: number;
|
|
8
|
+
color: string | number;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
position?: Vector3Like;
|
|
11
|
+
rotation?: Vector3Like;
|
|
12
|
+
};
|
|
13
|
+
export type AmbientLightSchema = BaseLightSchema & {
|
|
14
|
+
entityType: 'light';
|
|
15
|
+
type: 'ambient';
|
|
16
|
+
};
|
|
17
|
+
export type PointLightSchema = BaseLightSchema & {
|
|
18
|
+
entityType: 'light';
|
|
19
|
+
type: 'point';
|
|
20
|
+
position: Vector3Like;
|
|
21
|
+
};
|
|
22
|
+
export type SceneLightSchema = BaseLightSchema & {
|
|
23
|
+
entityType: 'light';
|
|
24
|
+
type: 'scene';
|
|
25
|
+
};
|
|
26
|
+
type LightTypeSchema = 'ambient' | 'point' | 'scene';
|
|
27
|
+
export type LightSchema = AmbientLightSchema | PointLightSchema | SceneLightSchema;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Vector3Like } from 'three';
|
|
2
|
+
import { MaterialSchema } from './MaterialSchema.ts';
|
|
3
|
+
import { BaseEntitySchema } from './BaseEntitySchema.ts';
|
|
4
|
+
import { EntitySchema } from './EntitySchema.ts';
|
|
5
|
+
export declare function isModelSchema(entity: EntitySchema): entity is ModelSchema;
|
|
6
|
+
export type ModelSchema = BaseEntitySchema & {
|
|
7
|
+
entityType: 'model';
|
|
8
|
+
uri: string;
|
|
9
|
+
position: Vector3Like;
|
|
10
|
+
rotation: Vector3Like;
|
|
11
|
+
scale: Vector3Like;
|
|
12
|
+
loaded: boolean;
|
|
13
|
+
material?: Partial<MaterialSchema>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Vector3Like } from 'three';
|
|
2
|
+
import { BaseEntitySchema } from './BaseEntitySchema.ts';
|
|
3
|
+
import { EntitySchema } from './EntitySchema.ts';
|
|
4
|
+
export declare function isPovSchema(entity: EntitySchema): entity is PovSchema;
|
|
5
|
+
export type PovSchema = BaseEntitySchema & {
|
|
6
|
+
entityType: 'pov';
|
|
7
|
+
position: Vector3Like;
|
|
8
|
+
target: Vector3Like;
|
|
9
|
+
locked?: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Vector3Like } from 'three';
|
|
2
|
+
import { BaseEntitySchema } from './BaseEntitySchema.ts';
|
|
3
|
+
import { GeometrySchema } from './GeometrySchema.ts';
|
|
4
|
+
import { MaterialSchema } from './MaterialSchema.ts';
|
|
5
|
+
import { EntitySchema } from './EntitySchema.ts';
|
|
6
|
+
export declare function isPrimitiveSchema(entity: EntitySchema): entity is PrimitiveSchema;
|
|
7
|
+
export type PrimitiveSchema = BaseEntitySchema & {
|
|
8
|
+
entityType: 'primitive';
|
|
9
|
+
position: Vector3Like;
|
|
10
|
+
rotation: Vector3Like;
|
|
11
|
+
scale: Vector3Like;
|
|
12
|
+
geometry: GeometrySchema;
|
|
13
|
+
material?: Partial<MaterialSchema>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './BaseEntitySchema.ts';
|
|
2
|
+
export * from './EntitySchema.ts';
|
|
3
|
+
export * from './EntityTypeSchema.ts';
|
|
4
|
+
export * from './GeometrySchema.ts';
|
|
5
|
+
export * from './GeometryTypeSchema.ts';
|
|
6
|
+
export * from './GroupSchema.ts';
|
|
7
|
+
export * from './LightSchema.ts';
|
|
8
|
+
export * from './MaterialSchema.ts';
|
|
9
|
+
export * from './ModelSchema.ts';
|
|
10
|
+
export * from './PovSchema.ts';
|
|
11
|
+
export * from './PrimitiveSchema.ts';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopware-ag/dive",
|
|
3
|
-
"version": "2.0.1-beta.
|
|
3
|
+
"version": "2.0.1-beta.10",
|
|
4
4
|
"description": "Shopware Spatial Framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/dive.cjs",
|
|
@@ -12,50 +12,65 @@
|
|
|
12
12
|
"import": "./build/dive.mjs",
|
|
13
13
|
"require": "./build/dive.cjs"
|
|
14
14
|
},
|
|
15
|
-
"./
|
|
16
|
-
"types": "./build/
|
|
17
|
-
"import": "./build/
|
|
18
|
-
"require": "./build/
|
|
15
|
+
"./animation": {
|
|
16
|
+
"types": "./build/plugins/animation/index.d.ts",
|
|
17
|
+
"import": "./build/plugins/animation/index.mjs",
|
|
18
|
+
"require": "./build/plugins/animation/index.cjs"
|
|
19
19
|
},
|
|
20
|
-
"./
|
|
21
|
-
"types": "./build/
|
|
22
|
-
"import": "./build/
|
|
23
|
-
"require": "./build/
|
|
20
|
+
"./ar": {
|
|
21
|
+
"types": "./build/plugins/ar/index.d.ts",
|
|
22
|
+
"import": "./build/plugins/ar/index.mjs",
|
|
23
|
+
"require": "./build/plugins/ar/index.cjs"
|
|
24
24
|
},
|
|
25
|
-
"./
|
|
26
|
-
"types": "./build/
|
|
27
|
-
"import": "./build/
|
|
28
|
-
"require": "./build/
|
|
25
|
+
"./assetcache": {
|
|
26
|
+
"types": "./build/plugins/assetcache/index.d.ts",
|
|
27
|
+
"import": "./build/plugins/assetcache/index.mjs",
|
|
28
|
+
"require": "./build/plugins/assetcache/index.cjs"
|
|
29
29
|
},
|
|
30
|
-
"./
|
|
31
|
-
"types": "./build/
|
|
32
|
-
"import": "./build/
|
|
33
|
-
"require": "./build/
|
|
30
|
+
"./assetconverter": {
|
|
31
|
+
"types": "./build/plugins/assetconverter/index.d.ts",
|
|
32
|
+
"import": "./build/plugins/assetconverter/index.mjs",
|
|
33
|
+
"require": "./build/plugins/assetconverter/index.cjs"
|
|
34
34
|
},
|
|
35
|
-
"./
|
|
36
|
-
"types": "./build/
|
|
37
|
-
"import": "./build/
|
|
38
|
-
"require": "./build/
|
|
35
|
+
"./assetexporter": {
|
|
36
|
+
"types": "./build/plugins/assetexporter/index.d.ts",
|
|
37
|
+
"import": "./build/plugins/assetexporter/index.mjs",
|
|
38
|
+
"require": "./build/plugins/assetexporter/index.cjs"
|
|
39
39
|
},
|
|
40
|
-
"./
|
|
41
|
-
"types": "./build/
|
|
42
|
-
"import": "./build/
|
|
43
|
-
"require": "./build/
|
|
40
|
+
"./assetloader": {
|
|
41
|
+
"types": "./build/plugins/assetloader/index.d.ts",
|
|
42
|
+
"import": "./build/plugins/assetloader/index.mjs",
|
|
43
|
+
"require": "./build/plugins/assetloader/index.cjs"
|
|
44
44
|
},
|
|
45
|
-
"./
|
|
46
|
-
"types": "./build/
|
|
47
|
-
"import": "./build/
|
|
48
|
-
"require": "./build/
|
|
45
|
+
"./axiscamera": {
|
|
46
|
+
"types": "./build/plugins/axiscamera/index.d.ts",
|
|
47
|
+
"import": "./build/plugins/axiscamera/index.mjs",
|
|
48
|
+
"require": "./build/plugins/axiscamera/index.cjs"
|
|
49
49
|
},
|
|
50
|
-
"./
|
|
51
|
-
"types": "./build/
|
|
52
|
-
"import": "./build/
|
|
53
|
-
"require": "./build/
|
|
50
|
+
"./mediacreator": {
|
|
51
|
+
"types": "./build/plugins/mediacreator/index.d.ts",
|
|
52
|
+
"import": "./build/plugins/mediacreator/index.mjs",
|
|
53
|
+
"require": "./build/plugins/mediacreator/index.cjs"
|
|
54
54
|
},
|
|
55
|
-
"./
|
|
56
|
-
"types": "./build/
|
|
57
|
-
"import": "./build/
|
|
58
|
-
"require": "./build/
|
|
55
|
+
"./orbitcontroller": {
|
|
56
|
+
"types": "./build/plugins/orbitcontroller/index.d.ts",
|
|
57
|
+
"import": "./build/plugins/orbitcontroller/index.mjs",
|
|
58
|
+
"require": "./build/plugins/orbitcontroller/index.cjs"
|
|
59
|
+
},
|
|
60
|
+
"./state": {
|
|
61
|
+
"types": "./build/plugins/state/index.d.ts",
|
|
62
|
+
"import": "./build/plugins/state/index.mjs",
|
|
63
|
+
"require": "./build/plugins/state/index.cjs"
|
|
64
|
+
},
|
|
65
|
+
"./systeminfo": {
|
|
66
|
+
"types": "./build/plugins/systeminfo/index.d.ts",
|
|
67
|
+
"import": "./build/plugins/systeminfo/index.mjs",
|
|
68
|
+
"require": "./build/plugins/systeminfo/index.cjs"
|
|
69
|
+
},
|
|
70
|
+
"./toolbox": {
|
|
71
|
+
"types": "./build/plugins/toolbox/index.d.ts",
|
|
72
|
+
"import": "./build/plugins/toolbox/index.mjs",
|
|
73
|
+
"require": "./build/plugins/toolbox/index.cjs"
|
|
59
74
|
}
|
|
60
75
|
},
|
|
61
76
|
"files": [
|
|
@@ -79,10 +94,10 @@
|
|
|
79
94
|
"> 1%, not dead, not ie 11, not op_mini all"
|
|
80
95
|
],
|
|
81
96
|
"dependencies": {
|
|
82
|
-
"@tweenjs/tween.js": "^23.1.1",
|
|
83
|
-
"lodash": "^4.17.21",
|
|
84
97
|
"three": "^0.163.0",
|
|
85
|
-
"
|
|
98
|
+
"@tweenjs/tween.js": "^23.1.1",
|
|
99
|
+
"three-spritetext": "^1.8.2",
|
|
100
|
+
"lodash": "^4.17.21"
|
|
86
101
|
},
|
|
87
102
|
"devDependencies": {
|
|
88
103
|
"@eslint/js": "^9.1.1",
|
|
@@ -98,9 +113,11 @@
|
|
|
98
113
|
"glob": "^11.0.1",
|
|
99
114
|
"globals": "^15.0.0",
|
|
100
115
|
"jsdom": "^26.1.0",
|
|
116
|
+
"log-update": "^6.1.0",
|
|
101
117
|
"magic-string": "^0.30.17",
|
|
102
118
|
"prettier": "^3.3.3",
|
|
103
119
|
"prettier-plugin-multiline-arrays": "^3.0.6",
|
|
120
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
104
121
|
"ts-jest": "^29.1.2",
|
|
105
122
|
"ts-morph": "^25.0.1",
|
|
106
123
|
"ts-node": "^10.9.2",
|
|
@@ -110,6 +127,8 @@
|
|
|
110
127
|
"typescript-eslint": "^7.7.1",
|
|
111
128
|
"vite": "^6.2.1",
|
|
112
129
|
"vite-plugin-dts": "^4.5.3",
|
|
130
|
+
"vite-plugin-wasm": "^3.4.1",
|
|
131
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
113
132
|
"vitest": "^3.1.2"
|
|
114
133
|
},
|
|
115
134
|
"scripts": {
|
|
@@ -124,6 +143,6 @@
|
|
|
124
143
|
"docs": "yarn docs:actions && yarn docs:modules",
|
|
125
144
|
"docs:actions": "tsx docs/generators/generate-actions-docs.ts",
|
|
126
145
|
"docs:modules": "tsx docs/generators/generate-modules-docs.ts",
|
|
127
|
-
"ci": "yarn lint && yarn prettier:check && yarn
|
|
146
|
+
"ci": "yarn && yarn lint && yarn prettier:check && yarn coverage && yarn build"
|
|
128
147
|
}
|
|
129
148
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function i(e){var n;const t=e.split("/").pop()||"";return!t.includes(".")||t.endsWith(".")?"":((n=t.split(".").pop())==null?void 0:n.toLowerCase().split("?")[0])||""}function o(e){return e.toLowerCase()in{glb:!0,gltf:!0,usdz:!0}}const s={glb:{key:"glb",extension:"glb"},gltf:{key:"gltf",extension:"gltf"},usdz:{key:"usdz",extension:"usdz"}},l=Object.values(s).map(e=>e.extension);exports.FILE_TYPES=s;exports.SUPPORTED_FILE_TYPES=l;exports.getFileTypeFromUri=i;exports.isFileTypeSupported=o;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
function o(e) {
|
|
2
|
-
var n;
|
|
3
|
-
const t = e.split("/").pop() || "";
|
|
4
|
-
return !t.includes(".") || t.endsWith(".") ? "" : ((n = t.split(".").pop()) == null ? void 0 : n.toLowerCase().split("?")[0]) || "";
|
|
5
|
-
}
|
|
6
|
-
function l(e) {
|
|
7
|
-
return e.toLowerCase() in { glb: !0, gltf: !0, usdz: !0 };
|
|
8
|
-
}
|
|
9
|
-
const s = {
|
|
10
|
-
glb: {
|
|
11
|
-
key: "glb",
|
|
12
|
-
extension: "glb"
|
|
13
|
-
},
|
|
14
|
-
gltf: {
|
|
15
|
-
key: "gltf",
|
|
16
|
-
extension: "gltf"
|
|
17
|
-
},
|
|
18
|
-
usdz: {
|
|
19
|
-
key: "usdz",
|
|
20
|
-
extension: "usdz"
|
|
21
|
-
}
|
|
22
|
-
}, r = Object.values(s).map(
|
|
23
|
-
(e) => e.extension
|
|
24
|
-
);
|
|
25
|
-
export {
|
|
26
|
-
s as F,
|
|
27
|
-
r as S,
|
|
28
|
-
o as g,
|
|
29
|
-
l as i
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r={AnimationSystem:async()=>(await Promise.resolve().then(()=>require("../src/modules/animation/AnimationSystem.cjs"))).AnimationSystem,ARSystem:async()=>(await Promise.resolve().then(()=>require("../src/modules/ar/ARSystem.cjs"))).ARSystem,AssetConverter:async()=>(await Promise.resolve().then(()=>require("../src/modules/asset/converter/AssetConverter.cjs"))).AssetConverter,AssetExporter:async()=>(await Promise.resolve().then(()=>require("../src/modules/asset/exporter/AssetExporter.cjs"))).AssetExporter,AssetLoader:async()=>(await Promise.resolve().then(()=>require("../src/modules/asset/loader/AssetLoader.cjs"))).AssetLoader,MediaCreator:async()=>(await Promise.resolve().then(()=>require("../src/modules/mediacreator/MediaCreator.cjs"))).MediaCreator,State:async()=>(await Promise.resolve().then(()=>require("../src/modules/state/State.cjs"))).State,Toolbox:async()=>(await Promise.resolve().then(()=>require("../src/modules/toolbox/Toolbox.cjs"))).Toolbox},t=async e=>await r[e]();exports.getModule=t;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const a = {
|
|
2
|
-
AnimationSystem: async () => (await import("../src/modules/animation/AnimationSystem.mjs")).AnimationSystem,
|
|
3
|
-
ARSystem: async () => (await import("../src/modules/ar/ARSystem.mjs")).ARSystem,
|
|
4
|
-
AssetConverter: async () => (await import("../src/modules/asset/converter/AssetConverter.mjs")).AssetConverter,
|
|
5
|
-
AssetExporter: async () => (await import("../src/modules/asset/exporter/AssetExporter.mjs")).AssetExporter,
|
|
6
|
-
AssetLoader: async () => (await import("../src/modules/asset/loader/AssetLoader.mjs")).AssetLoader,
|
|
7
|
-
MediaCreator: async () => (await import("../src/modules/mediacreator/MediaCreator.mjs")).MediaCreator,
|
|
8
|
-
State: async () => (await import("../src/modules/state/State.mjs")).State,
|
|
9
|
-
Toolbox: async () => (await import("../src/modules/toolbox/Toolbox.mjs")).Toolbox
|
|
10
|
-
}, e = async (t) => await a[t]();
|
|
11
|
-
export {
|
|
12
|
-
e as g
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var L=Object.defineProperty;var R=(r,a,e)=>a in r?L(r,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[a]=e;var A=(r,a,e)=>R(r,typeof a!="symbol"?a+"":a,e);const S=require("three"),s=require("./VisibilityLayerMask-BI7jPKdx.cjs"),E={fov:70,near:.1,far:1e3},t=class t extends S.PerspectiveCamera{constructor(e=E){super(e.fov||E.fov,1,e.near||E.near,e.far||E.far);A(this,"onSetCameraLayer",()=>{});this.layers.mask=t.EDITOR_VIEW_LAYER_MASK}onResize(e,i){this.aspect=e/i,this.updateProjectionMatrix()}setCameraLayer(e){this.layers.mask=e==="LIVE"?t.LIVE_VIEW_LAYER_MASK:t.EDITOR_VIEW_LAYER_MASK,this.onSetCameraLayer(this.layers.mask)}};A(t,"EDITOR_VIEW_LAYER_MASK",s.DEFAULT_LAYER_MASK|s.UI_LAYER_MASK|s.HELPER_LAYER_MASK|s.PRODUCT_LAYER_MASK),A(t,"LIVE_VIEW_LAYER_MASK",s.PRODUCT_LAYER_MASK);let _=t;exports.DIVEPerspectiveCamera=_;exports.DIVEPerspectiveCameraDefaultSettings=E;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var o = Object.defineProperty;
|
|
2
|
-
var R = (t, s, a) => s in t ? o(t, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[s] = a;
|
|
3
|
-
var e = (t, s, a) => R(t, typeof s != "symbol" ? s + "" : s, a);
|
|
4
|
-
import { PerspectiveCamera as S } from "three";
|
|
5
|
-
import { D as i, U as I, H as M, P as A } from "./VisibilityLayerMask-CXgt1fJc.mjs";
|
|
6
|
-
const E = {
|
|
7
|
-
fov: 70,
|
|
8
|
-
near: 0.1,
|
|
9
|
-
far: 1e3
|
|
10
|
-
}, r = class r extends S {
|
|
11
|
-
constructor(a = E) {
|
|
12
|
-
super(
|
|
13
|
-
a.fov || E.fov,
|
|
14
|
-
1,
|
|
15
|
-
a.near || E.near,
|
|
16
|
-
a.far || E.far
|
|
17
|
-
);
|
|
18
|
-
e(this, "onSetCameraLayer", () => {
|
|
19
|
-
});
|
|
20
|
-
this.layers.mask = r.EDITOR_VIEW_LAYER_MASK;
|
|
21
|
-
}
|
|
22
|
-
onResize(a, L) {
|
|
23
|
-
this.aspect = a / L, this.updateProjectionMatrix();
|
|
24
|
-
}
|
|
25
|
-
setCameraLayer(a) {
|
|
26
|
-
this.layers.mask = a === "LIVE" ? r.LIVE_VIEW_LAYER_MASK : r.EDITOR_VIEW_LAYER_MASK, this.onSetCameraLayer(this.layers.mask);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
e(r, "EDITOR_VIEW_LAYER_MASK", i | I | M | A), e(r, "LIVE_VIEW_LAYER_MASK", A);
|
|
30
|
-
let _ = r;
|
|
31
|
-
export {
|
|
32
|
-
E as D,
|
|
33
|
-
_ as a
|
|
34
|
-
};
|