@shopware-ag/dive 2.0.1-beta.6 → 2.0.1-beta.8
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/{AssetExporter-ClYQ4gnb.mjs → AssetExporter-QnOue3VT.mjs} +19 -19
- package/build/chunks/{AssetExporter-CAqADFbL.cjs → AssetExporter-TzKB2FHh.cjs} +4 -4
- package/build/chunks/AssetLoader-BfPa_oNd.cjs +4 -0
- package/build/chunks/{AssetLoader-BewzFwHi.mjs → AssetLoader-C8Teswp4.mjs} +38 -35
- package/build/chunks/FileTypes-B2JRjVgw.cjs +30 -0
- package/build/chunks/FileTypes-CXnW0NAe.mjs +1109 -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-DLXheZay.mjs → SelectTool-DFpr9XHT.mjs} +10 -10
- package/build/chunks/SelectTool-DVqL2ebn.cjs +1 -0
- package/build/chunks/network-error-CHvryg-4.mjs +18 -0
- package/build/chunks/network-error-D_pq8VU6.cjs +1 -0
- package/build/chunks/package-BBfJ2Cc5.cjs +1 -0
- package/build/chunks/package-CHFUaMpF.mjs +39 -0
- package/build/dive.cjs +1 -30
- package/build/dive.mjs +617 -1089
- 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/{chunks/ARSystem-D27w7Pck.mjs → plugins/ar/index.mjs} +38 -44
- 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/{chunks/MediaCreator-psLAAyJA.mjs → plugins/mediacreator/index.mjs} +1 -1
- package/build/{modules/controller → plugins/orbitcontroller}/index.cjs +1 -1
- 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/{modules → plugins}/systeminfo/index.mjs +24 -23
- package/build/plugins/toolbox/index.cjs +1 -0
- package/build/plugins/toolbox/index.d.ts +2 -0
- package/build/{chunks/Toolbox-DKuyL8n5.mjs → plugins/toolbox/index.mjs} +8 -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/model/Model.d.ts +2 -2
- 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 +1 -1
- package/build/src/engine/clock/Clock.d.ts +1 -0
- package/build/src/index.d.ts +2 -1
- 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/{modules/ar → plugins/ar/src}/ARSystem.d.ts +0 -27
- package/build/src/{modules/ar → plugins/ar/src}/webxr/WebXR.d.ts +2 -2
- package/build/src/{modules/ar → plugins/ar/src}/webxr/controller/WebXRController.d.ts +2 -2
- package/build/src/{modules/ar → plugins/ar/src}/webxr/origin/WebXROrigin.d.ts +1 -1
- package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/WebXRRaycaster.d.ts +3 -3
- package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/ar/WebXRRaycasterAR.d.ts +1 -1
- package/build/src/{modules/ar → plugins/ar/src}/webxr/raycaster/three/WebXRRaycasterTHREE.d.ts +2 -2
- package/build/src/{modules/ar → plugins/ar/src}/webxr/touchscreencontrols/WebXRTouchscreenControls.d.ts +1 -1
- 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/assetexporter → plugins/assetexporter/src}/AssetExporter.d.ts +1 -18
- package/build/src/plugins/assetloader/index.d.ts +3 -0
- package/build/src/plugins/assetloader/src/loader/AssetLoader.d.ts +8 -0
- package/build/src/plugins/axiscamera/index.d.ts +1 -0
- package/build/src/{modules/axiscamera → plugins/axiscamera/src}/AxisCamera.d.ts +1 -4
- 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/{modules → plugins}/state/types/ActionTypes.d.ts +8 -9
- 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 +1 -32
- package/build/src/plugins/toolbox/index.d.ts +4 -0
- package/build/src/{modules/toolbox → plugins/toolbox/src}/BaseTool.d.ts +2 -4
- package/build/src/{modules/toolbox → plugins/toolbox/src}/Toolbox.d.ts +2 -11
- package/build/src/{modules/toolbox → plugins/toolbox/src}/select/SelectTool.d.ts +2 -3
- package/build/src/{modules/toolbox → plugins/toolbox/src}/transform/TransformTool.d.ts +2 -3
- 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 +42 -40
- package/build/chunks/ARSystem-_0cLAxyG.cjs +0 -1
- package/build/chunks/AnimationSystem-Bf-xhqRe.mjs +0 -101
- package/build/chunks/AnimationSystem-DFUYMNpj.cjs +0 -1
- package/build/chunks/AssetLoader-Bq-Ekxil.cjs +0 -4
- package/build/chunks/AxisCamera-CUb3g8WX.cjs +0 -1
- package/build/chunks/AxisCamera-lXJLIPLK.mjs +0 -39
- package/build/chunks/AxisHelperColors-BrGqktN5.cjs +0 -1
- package/build/chunks/AxisHelperColors-JLBHYQDi.mjs +0 -9
- package/build/chunks/FileTypes-DuVGjbcR.mjs +0 -36
- package/build/chunks/FileTypes-DzVpDu_p.cjs +0 -1
- package/build/chunks/MediaCreator-CEWeS42n.cjs +0 -1
- package/build/chunks/ModuleRegistry-CBfx1EVd.mjs +0 -13
- package/build/chunks/ModuleRegistry-CDIxOzgZ.cjs +0 -1
- package/build/chunks/OrbitController-B8VkQV1e.cjs +0 -1
- package/build/chunks/OrbitController-CXu1ko6E.mjs +0 -462
- package/build/chunks/PerspectiveCamera-BByyG5R4.cjs +0 -1
- package/build/chunks/PerspectiveCamera-PMJPzAn3.mjs +0 -34
- package/build/chunks/SelectTool-9eiKZXT4.cjs +0 -1
- package/build/chunks/State-BNgqNPrs.mjs +0 -4296
- package/build/chunks/State-Mvu0hG-n.cjs +0 -27
- package/build/chunks/Toolbox-qFN47t2F.cjs +0 -1
- package/build/chunks/VisibilityLayerMask-BI7jPKdx.cjs +0 -1
- package/build/chunks/VisibilityLayerMask-CXgt1fJc.mjs +0 -8
- package/build/chunks/index-C_uFFwT2.mjs +0 -5
- package/build/chunks/index-DAwIH9xh.cjs +0 -1
- package/build/chunks/package-CHgGmFCa.cjs +0 -1
- package/build/chunks/package-CIkS9WF6.mjs +0 -39
- package/build/modules/animation/index.cjs +0 -1
- package/build/modules/animation/index.d.ts +0 -2
- package/build/modules/animation/index.mjs +0 -5
- package/build/modules/ar/index.cjs +0 -1
- package/build/modules/ar/index.d.ts +0 -2
- package/build/modules/ar/index.mjs +0 -11
- package/build/modules/assetconverter/index.cjs +0 -1
- package/build/modules/assetconverter/index.d.ts +0 -2
- package/build/modules/assetconverter/index.mjs +0 -4
- package/build/modules/assetexporter/index.cjs +0 -1
- package/build/modules/assetexporter/index.d.ts +0 -2
- package/build/modules/assetexporter/index.mjs +0 -4
- package/build/modules/assetloader/index.cjs +0 -1
- package/build/modules/assetloader/index.d.ts +0 -2
- package/build/modules/assetloader/index.mjs +0 -4
- package/build/modules/axiscamera/index.cjs +0 -1
- package/build/modules/axiscamera/index.d.ts +0 -2
- package/build/modules/axiscamera/index.mjs +0 -4
- package/build/modules/controller/index.d.ts +0 -2
- package/build/modules/controller/index.mjs +0 -5
- package/build/modules/mediacreator/index.cjs +0 -1
- package/build/modules/mediacreator/index.d.ts +0 -2
- package/build/modules/mediacreator/index.mjs +0 -4
- package/build/modules/state/index.cjs +0 -1
- package/build/modules/state/index.d.ts +0 -2
- package/build/modules/state/index.mjs +0 -39
- package/build/modules/systeminfo/index.cjs +0 -1
- package/build/modules/systeminfo/index.d.ts +0 -2
- package/build/modules/toolbox/index.cjs +0 -1
- package/build/modules/toolbox/index.d.ts +0 -2
- package/build/modules/toolbox/index.mjs +0 -10
- package/build/src/modules/ModuleRegistry.d.ts +0 -19
- package/build/src/modules/animation/AnimationSystem.d.ts +0 -36
- package/build/src/modules/animation/index.d.ts +0 -2
- package/build/src/modules/ar/index.d.ts +0 -4
- package/build/src/modules/assetconverter/AssetConverter.d.ts +0 -30
- package/build/src/modules/assetconverter/index.d.ts +0 -1
- package/build/src/modules/assetexporter/index.d.ts +0 -1
- package/build/src/modules/assetloader/AssetLoader.d.ts +0 -29
- package/build/src/modules/assetloader/index.d.ts +0 -1
- package/build/src/modules/axiscamera/index.d.ts +0 -1
- package/build/src/modules/controller/index.d.ts +0 -1
- package/build/src/modules/mediacreator/MediaCreator.d.ts +0 -44
- package/build/src/modules/mediacreator/index.d.ts +0 -1
- 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/index.d.ts +0 -4
- 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/index.d.ts +0 -1
- package/build/src/modules/toolbox/index.d.ts +0 -4
- 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/{chunks/AssetConverter-BTAb23e8.cjs → plugins/assetconverter/index.cjs} +0 -0
- /package/build/{chunks/AssetConverter-D-qOTLs1.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/ar → plugins/ar/src}/arquicklook/ARQuickLook.d.ts +0 -0
- /package/build/src/{modules/ar → plugins/ar/src}/error/ar-errors.d.ts +0 -0
- /package/build/src/{modules/ar → plugins/ar/src}/sceneviewer/SceneViewer.d.ts +0 -0
- /package/build/src/{modules/ar → plugins/ar/src}/webxr/crosshair/WebXRCrosshair.d.ts +0 -0
- /package/build/src/{modules/ar → plugins/ar/src}/webxr/overlay/Overlay.d.ts +0 -0
- /package/build/src/{modules/assetloader → plugins/assetloader/src}/draco/DracoLoader.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,36 +0,0 @@
|
|
|
1
|
-
import { Tween } from '@tweenjs/tween.js';
|
|
2
|
-
import { Animator } from './animator/Animator.ts';
|
|
3
|
-
import { UUID } from '../../types/index.ts';
|
|
4
|
-
import { DIVETicker } from '../../engine/clock/Clock.ts';
|
|
5
|
-
import { TAnimatorParameters } from './types/AnimatorParameters.ts';
|
|
6
|
-
export type * from './animator/Animator.ts';
|
|
7
|
-
declare global {
|
|
8
|
-
interface ModuleClasses {
|
|
9
|
-
AnimationSystem: typeof AnimationSystem;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @module AnimationSystem
|
|
14
|
-
*
|
|
15
|
-
* Updates all animations.
|
|
16
|
-
* DIVE uses Tween.js to handle animations.
|
|
17
|
-
*/
|
|
18
|
-
export declare class AnimationSystem implements DIVETicker {
|
|
19
|
-
uuid: string;
|
|
20
|
-
private _callbackMap;
|
|
21
|
-
private _tweens;
|
|
22
|
-
/**
|
|
23
|
-
* Creates a new animator and registers it.
|
|
24
|
-
* @param object - The object to animate.
|
|
25
|
-
* @param to - The target object.
|
|
26
|
-
* @param duration - The duration of the animation.
|
|
27
|
-
* @param options - The options for the animation.
|
|
28
|
-
* @returns The animator.
|
|
29
|
-
*/
|
|
30
|
-
createAnimator<T extends object>(object: T, to: T, duration: number, options?: TAnimatorParameters<T>): Animator<T>;
|
|
31
|
-
unregister(uuid: UUID): void;
|
|
32
|
-
dispose(): void;
|
|
33
|
-
tick(): void;
|
|
34
|
-
animate<T extends object>(object: T): Tween<T>;
|
|
35
|
-
private _setupTween;
|
|
36
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { AssetLoader } from '../assetloader/AssetLoader.ts';
|
|
2
|
-
import { AssetExporter, FileTypeToExporterOptions } from '../assetexporter/AssetExporter.ts';
|
|
3
|
-
import { FileType } from '../../types/file/index.ts';
|
|
4
|
-
declare global {
|
|
5
|
-
interface ModuleClasses {
|
|
6
|
-
AssetConverter: typeof AssetConverter;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @module AssetConverter
|
|
11
|
-
*
|
|
12
|
-
* Converts between different 3D file formats:
|
|
13
|
-
*
|
|
14
|
-
* ```ts
|
|
15
|
-
* import { AssetConverter } from '@shopware-ag/dive/modules/AssetConverter';
|
|
16
|
-
*
|
|
17
|
-
* const assetConverter = new AssetConverter();
|
|
18
|
-
* const usdzBuffer = await assetConverter.convert('input.glb').to('usdz');
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare class AssetConverter {
|
|
22
|
-
private _loader;
|
|
23
|
-
private _exporter;
|
|
24
|
-
private _uri;
|
|
25
|
-
constructor(_loader: AssetLoader, _exporter: AssetExporter);
|
|
26
|
-
convert(uri: string): {
|
|
27
|
-
to: <T extends FileType>(type: T, options?: FileTypeToExporterOptions[T]) => Promise<ArrayBuffer>;
|
|
28
|
-
};
|
|
29
|
-
private _to;
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AssetConverter.ts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AssetExporter.ts';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Object3D } from 'three';
|
|
2
|
-
declare global {
|
|
3
|
-
interface ModuleClasses {
|
|
4
|
-
AssetLoader: typeof AssetLoader;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* @module AssetLoader
|
|
9
|
-
*
|
|
10
|
-
* Handles loading of 3D assets in various formats:
|
|
11
|
-
*
|
|
12
|
-
* ```ts
|
|
13
|
-
* import { AssetLoader } from '@shopware-ag/dive/modules/AssetLoader';
|
|
14
|
-
*
|
|
15
|
-
* const assetLoader = new AssetLoader();
|
|
16
|
-
* const model = await assetLoader.load('path/to/model.glb');
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* Supported formats:
|
|
20
|
-
* - GLB/GLTF
|
|
21
|
-
* - USDZ
|
|
22
|
-
*/
|
|
23
|
-
export declare class AssetLoader {
|
|
24
|
-
private _gltfLoader;
|
|
25
|
-
private _usdzLoader;
|
|
26
|
-
constructor();
|
|
27
|
-
private _loadFile;
|
|
28
|
-
load(uri: string): Promise<Object3D>;
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AssetLoader.ts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DIVEAxisCamera } from './AxisCamera.ts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './orbit/OrbitController.ts';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { DIVEScene } from '../../engine/scene/Scene.ts';
|
|
2
|
-
import { DIVERenderPipeline } from '../../engine/renderer/Renderer.ts';
|
|
3
|
-
import { OrbitController } from '../../modules/controller/orbit/OrbitController.ts';
|
|
4
|
-
import { Vector3Like } from 'three';
|
|
5
|
-
declare global {
|
|
6
|
-
interface ModuleClasses {
|
|
7
|
-
MediaCreator: typeof MediaCreator;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @module MediaCreator
|
|
12
|
-
*
|
|
13
|
-
* Provides tools for creating media content from the 3D scene:
|
|
14
|
-
*
|
|
15
|
-
* ```ts
|
|
16
|
-
* import { MediaCreator } from '@shopware-ag/dive/modules/MediaCreator';
|
|
17
|
-
*
|
|
18
|
-
* const mediaCreator = new MediaCreator(renderer, scene, controller);
|
|
19
|
-
*
|
|
20
|
-
* // Generate a screenshot
|
|
21
|
-
* const screenshot = await mediaCreator.GenerateMedia(
|
|
22
|
-
* { x: 0, y: 0, z: 0 }, // camera position
|
|
23
|
-
* { x: 0, y: 0, z: 0 }, // camera target
|
|
24
|
-
* 1920, // width
|
|
25
|
-
* 1080 // height
|
|
26
|
-
* );
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* Features:
|
|
30
|
-
* - High-quality screenshot generation
|
|
31
|
-
* - Customizable camera position and target
|
|
32
|
-
* - Configurable output resolution
|
|
33
|
-
*/
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
|
-
export declare class MediaCreator {
|
|
38
|
-
private _renderer;
|
|
39
|
-
private _scene;
|
|
40
|
-
private _controller;
|
|
41
|
-
constructor(renderer: DIVERenderPipeline, scene: DIVEScene, controller: OrbitController);
|
|
42
|
-
generateMedia(position: Vector3Like, target: Vector3Like, width: number, height: number): string;
|
|
43
|
-
drawCanvas(canvasElement?: HTMLCanvasElement): HTMLCanvasElement;
|
|
44
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { MediaCreator } from './MediaCreator.ts';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies, COMEntity } from '../../types/index.ts';
|
|
3
|
-
export declare const AddObjectAction: new (payload: COMEntity, dependencies: Pick<ActionDependencies, "engine" | "registered">) => Action<COMEntity, Pick<ActionDependencies, "engine" | "registered">, void>;
|
|
4
|
-
declare global {
|
|
5
|
-
interface ActionTypes {
|
|
6
|
-
ADD_OBJECT: typeof AddObjectAction;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies, COMEntity } from '../../types/index.ts';
|
|
3
|
-
export declare const DeleteObjectAction: new (payload: Partial<COMEntity> & {
|
|
4
|
-
id: string;
|
|
5
|
-
}, dependencies: Pick<ActionDependencies, "engine" | "registered">) => Action<Partial<COMEntity> & {
|
|
6
|
-
id: string;
|
|
7
|
-
}, Pick<ActionDependencies, "engine" | "registered">, void>;
|
|
8
|
-
declare global {
|
|
9
|
-
interface ActionTypes {
|
|
10
|
-
DELETE_OBJECT: typeof DeleteObjectAction;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies, COMEntity } from '../../types/index.ts';
|
|
3
|
-
export declare const DeselectObjectAction: new (payload: Partial<COMEntity> & {
|
|
4
|
-
id: string;
|
|
5
|
-
}, dependencies: Pick<ActionDependencies, "engine" | "registered" | "getToolbox">) => Action<Partial<COMEntity> & {
|
|
6
|
-
id: string;
|
|
7
|
-
}, Pick<ActionDependencies, "engine" | "registered" | "getToolbox">, Promise<void>>;
|
|
8
|
-
declare global {
|
|
9
|
-
interface ActionTypes {
|
|
10
|
-
DESELECT_OBJECT: typeof DeselectObjectAction;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies, COMEntity } from '../../types/index.ts';
|
|
3
|
-
export declare const GetObjectsAction: new (payload: {
|
|
4
|
-
ids: string[];
|
|
5
|
-
}, dependencies: Pick<ActionDependencies, "engine" | "registered">) => Action<{
|
|
6
|
-
ids: string[];
|
|
7
|
-
}, Pick<ActionDependencies, "engine" | "registered">, COMEntity[]>;
|
|
8
|
-
declare global {
|
|
9
|
-
interface ActionTypes {
|
|
10
|
-
GET_OBJECTS: typeof GetObjectsAction;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies, COMEntity } from '../../types/index.ts';
|
|
3
|
-
export declare const SelectObjectAction: new (payload: Partial<COMEntity> & {
|
|
4
|
-
id: string;
|
|
5
|
-
}, dependencies: Pick<ActionDependencies, "engine" | "registered" | "getToolbox">) => Action<Partial<COMEntity> & {
|
|
6
|
-
id: string;
|
|
7
|
-
}, Pick<ActionDependencies, "engine" | "registered" | "getToolbox">, Promise<void>>;
|
|
8
|
-
declare global {
|
|
9
|
-
interface ActionTypes {
|
|
10
|
-
SELECT_OBJECT: typeof SelectObjectAction;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies, COMEntity } from '../../types/index.ts';
|
|
3
|
-
export declare const SetParentAction: new (payload: {
|
|
4
|
-
object: Partial<COMEntity> & {
|
|
5
|
-
id: string;
|
|
6
|
-
};
|
|
7
|
-
parent: (Partial<COMEntity> & {
|
|
8
|
-
id: string;
|
|
9
|
-
}) | null;
|
|
10
|
-
}, dependencies: Pick<ActionDependencies, "engine" | "registered">) => Action<{
|
|
11
|
-
object: Partial<COMEntity> & {
|
|
12
|
-
id: string;
|
|
13
|
-
};
|
|
14
|
-
parent: (Partial<COMEntity> & {
|
|
15
|
-
id: string;
|
|
16
|
-
}) | null;
|
|
17
|
-
}, Pick<ActionDependencies, "engine" | "registered">, void>;
|
|
18
|
-
declare global {
|
|
19
|
-
interface ActionTypes {
|
|
20
|
-
SET_PARENT: typeof SetParentAction;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies, COMEntity } from '../../types/index.ts';
|
|
3
|
-
export declare const UpdateObjectAction: new (payload: Partial<COMEntity> & {
|
|
4
|
-
id: string;
|
|
5
|
-
}, dependencies: Pick<ActionDependencies, "engine" | "registered">) => Action<Partial<COMEntity> & {
|
|
6
|
-
id: string;
|
|
7
|
-
}, Pick<ActionDependencies, "engine" | "registered">, void>;
|
|
8
|
-
declare global {
|
|
9
|
-
interface ActionTypes {
|
|
10
|
-
UPDATE_OBJECT: typeof UpdateObjectAction;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '../../types/index.ts';
|
|
3
|
-
import { DIVESceneData } from '../../../../types/index.ts';
|
|
4
|
-
export declare const GetAllSceneDataAction: new (payload: object, dependencies: Pick<ActionDependencies, "engine" | "registered" | "controller">) => Action<object, Pick<ActionDependencies, "engine" | "registered" | "controller">, DIVESceneData>;
|
|
5
|
-
declare global {
|
|
6
|
-
interface ActionTypes {
|
|
7
|
-
GET_ALL_SCENE_DATA: typeof GetAllSceneDataAction;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { COMPov } from './COMPov.ts';
|
|
2
|
-
import { COMLight } from './COMLight.ts';
|
|
3
|
-
import { COMModel } from './COMModel.ts';
|
|
4
|
-
import { COMPrimitive } from './COMPrimitive.ts';
|
|
5
|
-
import { COMGroup } from './COMGroup.ts';
|
|
6
|
-
export type COMMinimal<T extends COMEntity> = T extends COMEntity ? {
|
|
7
|
-
id: string;
|
|
8
|
-
entityType: T['entityType'];
|
|
9
|
-
} : never;
|
|
10
|
-
export type COMPartial<T extends COMEntity | void = void> = T extends COMEntity ? COMMinimal<T> & Partial<T> : COMMinimal<COMEntity> & Partial<COMEntity>;
|
|
11
|
-
export type COMEntity = COMPov | COMLight | COMModel | COMPrimitive | COMGroup;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type COMEntityType = 'pov' | 'light' | 'model' | 'primitive' | 'group';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type COMGeometryType = 'cylinder' | 'sphere' | 'pyramid' | 'cube' | 'box' | 'cone' | 'wall' | 'plane';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Vector3Like } from 'three';
|
|
2
|
-
import { COMBaseEntity } from './COMBaseEntity.ts';
|
|
3
|
-
import { COMEntity } from './COMEntity.ts';
|
|
4
|
-
export declare function isCOMGroup(entity: COMEntity): entity is COMGroup;
|
|
5
|
-
export type COMGroup = COMBaseEntity & {
|
|
6
|
-
entityType: 'group';
|
|
7
|
-
position: Vector3Like;
|
|
8
|
-
rotation: Vector3Like;
|
|
9
|
-
scale: Vector3Like;
|
|
10
|
-
bbVisible?: boolean;
|
|
11
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Vector3Like } from 'three';
|
|
2
|
-
import { COMBaseEntity } from './COMBaseEntity.ts';
|
|
3
|
-
import { COMEntity } from './COMEntity.ts';
|
|
4
|
-
export declare function isCOMLight(entity: COMEntity): entity is COMLight;
|
|
5
|
-
export type COMBaseLight = COMBaseEntity & {
|
|
6
|
-
type: LightType;
|
|
7
|
-
intensity: number;
|
|
8
|
-
color: string | number;
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
position?: Vector3Like;
|
|
11
|
-
rotation?: Vector3Like;
|
|
12
|
-
};
|
|
13
|
-
export type COMAmbientLight = COMBaseLight & {
|
|
14
|
-
entityType: 'light';
|
|
15
|
-
type: 'ambient';
|
|
16
|
-
};
|
|
17
|
-
export type COMPointLight = COMBaseLight & {
|
|
18
|
-
entityType: 'light';
|
|
19
|
-
type: 'point';
|
|
20
|
-
position: Vector3Like;
|
|
21
|
-
};
|
|
22
|
-
export type COMSceneLight = COMBaseLight & {
|
|
23
|
-
entityType: 'light';
|
|
24
|
-
type: 'scene';
|
|
25
|
-
};
|
|
26
|
-
type LightType = 'ambient' | 'point' | 'scene';
|
|
27
|
-
export type COMLight = COMAmbientLight | COMPointLight | COMSceneLight;
|
|
28
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Vector3Like } from 'three';
|
|
2
|
-
import { COMMaterial } from './COMMaterial.ts';
|
|
3
|
-
import { COMBaseEntity } from './COMBaseEntity.ts';
|
|
4
|
-
import { COMEntity } from './COMEntity.ts';
|
|
5
|
-
export declare function isCOMModel(entity: COMEntity): entity is COMModel;
|
|
6
|
-
export type COMModel = COMBaseEntity & {
|
|
7
|
-
entityType: 'model';
|
|
8
|
-
uri: string;
|
|
9
|
-
position: Vector3Like;
|
|
10
|
-
rotation: Vector3Like;
|
|
11
|
-
scale: Vector3Like;
|
|
12
|
-
loaded: boolean;
|
|
13
|
-
material?: Partial<COMMaterial>;
|
|
14
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Vector3Like } from 'three';
|
|
2
|
-
import { COMBaseEntity } from './COMBaseEntity.ts';
|
|
3
|
-
import { COMEntity } from './COMEntity.ts';
|
|
4
|
-
export declare function isCOMPov(entity: COMEntity): entity is COMPov;
|
|
5
|
-
export type COMPov = COMBaseEntity & {
|
|
6
|
-
entityType: 'pov';
|
|
7
|
-
position: Vector3Like;
|
|
8
|
-
target: Vector3Like;
|
|
9
|
-
locked?: boolean;
|
|
10
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Vector3Like } from 'three';
|
|
2
|
-
import { COMBaseEntity } from './COMBaseEntity.ts';
|
|
3
|
-
import { COMGeometry } from './COMGeometry.ts';
|
|
4
|
-
import { COMMaterial } from './COMMaterial.ts';
|
|
5
|
-
import { COMEntity } from './COMEntity.ts';
|
|
6
|
-
export declare function isCOMPrimitive(entity: COMEntity): entity is COMPrimitive;
|
|
7
|
-
export type COMPrimitive = COMBaseEntity & {
|
|
8
|
-
entityType: 'primitive';
|
|
9
|
-
position: Vector3Like;
|
|
10
|
-
rotation: Vector3Like;
|
|
11
|
-
scale: Vector3Like;
|
|
12
|
-
geometry: COMGeometry;
|
|
13
|
-
material?: Partial<COMMaterial>;
|
|
14
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './COMEntity.ts';
|
|
2
|
-
export * from './COMPrimitive.ts';
|
|
3
|
-
export * from './COMModel.ts';
|
|
4
|
-
export * from './COMLight.ts';
|
|
5
|
-
export * from './COMPov.ts';
|
|
6
|
-
export * from './COMGeometry.ts';
|
|
7
|
-
export * from './COMMaterial.ts';
|
|
8
|
-
export * from './COMGroup.ts';
|
|
9
|
-
export * from './COMEntityType.ts';
|
|
10
|
-
export * from './COMGeometryType.ts';
|
|
11
|
-
export * from './ActionTypes.ts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SystemInfo, EBrowser } from './SystemInfo.ts';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Vector3Like } from 'three';
|
|
2
|
-
import { COMGroup, COMLight, COMModel, COMPov, COMPrimitive } from '../modules/state/types/index.ts';
|
|
3
|
-
export type DIVESceneData = {
|
|
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: COMLight[];
|
|
15
|
-
objects: COMModel[];
|
|
16
|
-
cameras: COMPov[];
|
|
17
|
-
primitives: COMPrimitive[];
|
|
18
|
-
groups: COMGroup[];
|
|
19
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DIVEGroup } from '../components/group/Group.ts';
|
|
2
|
-
import { DIVEAmbientLight } from '../components/light/AmbientLight.ts';
|
|
3
|
-
import { DIVEPointLight } from '../components/light/PointLight.ts';
|
|
4
|
-
import { DIVESceneLight } from '../components/light/SceneLight.ts';
|
|
5
|
-
import { DIVEModel } from '../components/model/Model.ts';
|
|
6
|
-
import { DIVEPrimitive } from '../components/primitive/Primitive.ts';
|
|
7
|
-
import { COMEntityType } from '../modules/state/types/index.ts';
|
|
8
|
-
export type DIVESceneObject<T extends COMEntityType | void = void> = T extends 'model' ? DIVEModel : T extends 'group' ? DIVEGroup : T extends 'primitive' ? DIVEPrimitive : T extends 'light' ? DIVELight : DIVEModel | DIVEGroup | DIVEPrimitive | DIVELight;
|
|
9
|
-
export type DIVELight = DIVEAmbientLight | DIVEPointLight | DIVESceneLight;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type UUID = string;
|
|
File without changes
|
|
File without changes
|
/package/build/src/{modules/animation → plugins/animation/src}/types/AnimatorParameters.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|