@shopware-ag/dive 2.3.8 → 3.0.0-beta.0
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/Animator-DHnpWRt_.mjs +16 -0
- package/build/chunks/Animator-YDE8aFEd.cjs +1 -0
- package/build/chunks/{AssetCache-CJPVU7kz.mjs → AssetCache-C2DuXcmp.mjs} +6 -5
- package/build/chunks/AssetCache-CnbDDhU8.cjs +1 -0
- package/build/chunks/AssetExporter-Cdxb04b3.cjs +1 -0
- package/build/chunks/AssetExporter-DLL_vJae.mjs +67 -0
- package/build/chunks/AssetLoader-DO7xlbC3.mjs +499 -0
- package/build/chunks/AssetLoader-h2uyFEfZ.cjs +3 -0
- package/build/chunks/{ClipAnimator-keFLDMNZ.mjs → ClipAnimator-D8Gho4Ec.mjs} +2 -2
- package/build/chunks/ClipAnimator-SdDq2wk1.cjs +1 -0
- package/build/chunks/FileTypes-BB4_1gBJ.mjs +1975 -0
- package/build/chunks/FileTypes-Bvt5QTJC.cjs +29 -0
- package/build/chunks/GridNode-0R5ZnzR6.mjs +30 -0
- package/build/chunks/GridNode-iqnu86_v.cjs +1 -0
- package/build/chunks/{PerspectiveCamera-BFzE2TQU.mjs → PerspectiveCamera-B5TvUzTa.mjs} +1 -1
- package/build/chunks/PerspectiveCamera-DwQUmkDv.cjs +1 -0
- package/build/chunks/{TargetAnimator-DuqPk2eq.cjs → TargetAnimator-D37bWNKD.cjs} +1 -1
- package/build/chunks/{TargetAnimator-DUqkkdVb.mjs → TargetAnimator-DL_9b921.mjs} +1 -1
- package/build/chunks/{isFileTypeSupported-CqzOKCiV.mjs → isFileTypeSupported-D1z0zckw.mjs} +1 -1
- package/build/chunks/{isFileTypeSupported-D97zmt1P.cjs → isFileTypeSupported-MJWHcUsR.cjs} +1 -1
- package/build/components/boundingbox/BoundingBox.d.ts +1 -1
- package/build/components/floor/Floor.d.ts +1 -1
- package/build/components/gizmo/Gizmo.d.ts +1 -1
- package/build/components/gizmo/handles/AxisHandle.d.ts +1 -1
- package/build/components/gizmo/handles/RadialHandle.d.ts +1 -1
- package/build/components/gizmo/handles/ScaleHandle.d.ts +1 -1
- package/build/components/gizmo/plane/GizmoPlane.d.ts +1 -1
- package/build/components/gizmo/rotate/RotateGizmo.d.ts +1 -1
- package/build/components/gizmo/scale/ScaleGizmo.d.ts +1 -1
- package/build/components/gizmo/translate/TranslateGizmo.d.ts +1 -1
- package/build/components/grid/Grid.d.ts +2 -1
- package/build/components/group/Group.d.ts +1 -1
- package/build/components/light/AmbientLight.d.ts +1 -1
- package/build/components/light/PointLight.d.ts +1 -1
- package/build/components/light/SceneLight.d.ts +1 -1
- package/build/components/model/Model.d.ts +1 -1
- package/build/components/node/Node.d.ts +1 -1
- package/build/components/primitive/Primitive.d.ts +1 -1
- package/build/components/root/Root.d.ts +1 -1
- package/build/dive.cjs +1 -1
- package/build/dive.mjs +58 -60
- package/build/engine/Dive.d.ts +3 -31
- package/build/engine/camera/PerspectiveCamera.d.ts +1 -1
- package/build/engine/environment/Environment.d.ts +12 -27
- package/build/engine/renderer/Renderer.d.ts +7 -8
- package/build/engine/scene/Scene.d.ts +1 -1
- package/build/engine/scene/xrroot/XRRoot.d.ts +2 -3
- package/build/engine/scene/xrroot/xrlightroot/XRLightRoot.d.ts +3 -3
- package/build/helpers/findInterface/findInterface.d.ts +1 -1
- package/build/helpers/findSceneRecursive/findSceneRecursive.d.ts +1 -1
- package/build/helpers/implementsInterface/implementsInterface.d.ts +1 -1
- package/build/helpers/math/signedAngleTo/signedAngleTo.d.ts +1 -1
- package/build/interfaces/Hoverable.d.ts +1 -1
- package/build/plugins/animation/index.cjs +1 -1
- package/build/plugins/animation/index.mjs +12 -20
- package/build/plugins/animation/src/animator/Animator.d.ts +1 -1
- package/build/plugins/animation/src/animator/ClipAnimator.d.ts +1 -1
- package/build/plugins/animation/src/system/AnimationSystem.d.ts +1 -6
- package/build/plugins/animation/src/types/AnimatorTypes.d.ts +1 -1
- package/build/plugins/ar/index.cjs +1 -1
- package/build/plugins/ar/index.mjs +5 -4
- package/build/plugins/ar/src/webxr/controller/WebXRController.d.ts +1 -1
- package/build/plugins/ar/src/webxr/crosshair/WebXRCrosshair.d.ts +1 -1
- package/build/plugins/ar/src/webxr/origin/WebXROrigin.d.ts +1 -1
- package/build/plugins/ar/src/webxr/raycaster/WebXRRaycaster.d.ts +1 -1
- package/build/plugins/ar/src/webxr/touchscreencontrols/WebXRTouchscreenControls.d.ts +1 -1
- package/build/plugins/assetcache/index.cjs +1 -1
- package/build/plugins/assetcache/index.mjs +1 -1
- package/build/plugins/assetexporter/index.cjs +1 -1
- package/build/plugins/assetexporter/index.mjs +1 -1
- package/build/plugins/assetexporter/src/AssetExporter.d.ts +1 -1
- package/build/plugins/assetloader/index.cjs +1 -1
- package/build/plugins/assetloader/index.mjs +2 -2
- package/build/plugins/assetloader/src/loader/AssetLoader.d.ts +2 -2
- package/build/plugins/assetloader/src/step/STEPLoader.d.ts +1 -1
- package/build/plugins/mediacreator/index.cjs +1 -1
- package/build/plugins/mediacreator/index.mjs +52 -24
- package/build/plugins/mediacreator/src/MediaCreator.d.ts +4 -3
- package/build/plugins/mediacreator/types/MediaGenerationByPosition.d.ts +1 -1
- package/build/plugins/orbitcontroller/index.cjs +1 -1
- package/build/plugins/orbitcontroller/index.mjs +1 -1
- package/build/plugins/orbitcontroller/src/OrbitController.d.ts +1 -1
- package/build/plugins/orbitcontroller/types/OrbitControllerState.types.d.ts +1 -1
- package/build/plugins/orientationdisplay/index.cjs +1 -1
- package/build/plugins/orientationdisplay/index.mjs +17 -16
- package/build/plugins/orientationdisplay/src/axes/Axes.d.ts +1 -1
- package/build/plugins/quickview/index.cjs +1 -1
- package/build/plugins/quickview/index.mjs +9 -8
- package/build/plugins/shader/index.cjs +1 -1
- package/build/plugins/shader/index.mjs +2 -3
- package/build/plugins/shader/src/index.d.ts +1 -3
- package/build/plugins/shader/src/shaders/GridNode.d.ts +16 -0
- package/build/plugins/state/index.cjs +9 -9
- package/build/plugins/state/index.mjs +939 -936
- package/build/plugins/state/src/actions/camera/computeencompassingview.d.ts +1 -1
- package/build/plugins/state/src/actions/camera/getcameratransform.d.ts +1 -1
- package/build/plugins/state/src/actions/camera/movecamera.d.ts +1 -1
- package/build/plugins/state/src/actions/camera/setcameratransform.d.ts +1 -1
- package/build/plugins/state/types/StateSceneData.d.ts +1 -1
- package/build/plugins/toolbox/index.cjs +1 -1
- package/build/plugins/toolbox/index.d.ts +0 -1
- package/build/plugins/toolbox/index.mjs +224 -853
- package/build/plugins/toolbox/src/PointerContext.d.ts +1 -1
- package/build/plugins/toolbox/src/SelectionState.d.ts +1 -1
- package/build/plugins/toolbox/src/Toolbox.d.ts +0 -10
- package/build/plugins/toolbox/src/drag/DragTool.d.ts +1 -1
- package/build/plugins/toolbox/src/drag/DraggableEvent.d.ts +1 -1
- package/build/plugins/toolbox/src/hover/HoverTool.d.ts +1 -1
- package/build/plugins/toolbox/src/select/SelectTool.d.ts +1 -1
- package/build/plugins/toolbox/src/transform/TransformTool.d.ts +2 -1
- package/build/types/schema/GroupSchema.d.ts +1 -1
- package/build/types/schema/LightSchema.d.ts +1 -1
- package/build/types/schema/MaterialSchema.d.ts +1 -1
- package/build/types/schema/ModelSchema.d.ts +1 -1
- package/build/types/schema/PovSchema.d.ts +1 -1
- package/build/types/schema/PrimitiveSchema.d.ts +1 -1
- package/package.json +5 -4
- package/build/chunks/Animator-BGFdF70Z.mjs +0 -47
- package/build/chunks/Animator-Cu7NIkVg.cjs +0 -1
- package/build/chunks/AssetCache-B74AQgyY.cjs +0 -1
- package/build/chunks/AssetExporter-PFiNYi50.mjs +0 -1628
- package/build/chunks/AssetExporter-yVhYmVXW.cjs +0 -164
- package/build/chunks/AssetLoader-BCI944C9.mjs +0 -2590
- package/build/chunks/AssetLoader-BIU78Bv9.cjs +0 -5
- package/build/chunks/ClipAnimator-tjhLo851.cjs +0 -1
- package/build/chunks/DIVEShaderMaterial-Bt0d8oJB.mjs +0 -3468
- package/build/chunks/DIVEShaderMaterial-DE8YRWj9.cjs +0 -1554
- package/build/chunks/FileTypes-B0qjl7u2.cjs +0 -33
- package/build/chunks/FileTypes-DJxyD4wK.mjs +0 -2155
- package/build/chunks/PerspectiveCamera-iAsZqrnY.cjs +0 -1
- package/build/chunks/draco_decoder-Bh9flJPu.cjs +0 -1
- package/build/chunks/draco_decoder-CEzwqP9o.mjs +0 -38
- package/build/chunks/draco_decoder-DtHHc5d0.mjs +0 -4
- package/build/chunks/draco_decoder-DvYjcLz_.cjs +0 -35
- package/build/chunks/draco_wasm_wrapper-FoEVV9af.cjs +0 -118
- package/build/chunks/draco_wasm_wrapper-yQy2VLhb.mjs +0 -121
- package/build/chunks/fflate.module-DHdJvhNh.cjs +0 -6
- package/build/chunks/fflate.module-xyO_T3Zm.mjs +0 -602
- package/build/plugins/shader/src/material/DIVEShaderMaterial.d.ts +0 -5
- package/build/plugins/shader/src/shaders/DIVEShaderLib.d.ts +0 -2
- package/build/plugins/shader/src/shaders/grid/index.d.ts +0 -40
- package/build/plugins/toolbox/src/BaseTool.d.ts +0 -59
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Intersection, Object3D, Raycaster, Vector2, Vector3 } from 'three';
|
|
2
|
-
import { DIVEScene, DIVEDraggable, DIVEHoverable } from '../../../index.ts';
|
|
3
|
-
import { OrbitController } from '../../orbitcontroller/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Use DraggableEvent from './drag/DraggableEvent.ts' instead.
|
|
6
|
-
* This type will be removed in a future version.
|
|
7
|
-
*/
|
|
8
|
-
export type DraggableEvent = {
|
|
9
|
-
dragStart: Vector3;
|
|
10
|
-
dragCurrent: Vector3;
|
|
11
|
-
dragEnd: Vector3;
|
|
12
|
-
dragDelta: Vector3;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use the new Tool interface and individual tools (HoverTool, SelectTool, TransformTool, DragTool) instead.
|
|
16
|
-
* This class will be removed in a future version.
|
|
17
|
-
*
|
|
18
|
-
* The new architecture uses composition over inheritance:
|
|
19
|
-
* - Tool interface for lightweight event handlers
|
|
20
|
-
* - Toolbox as event dispatcher supporting multiple active tools
|
|
21
|
-
* - Individual tools: HoverTool, SelectTool, TransformTool, DragTool
|
|
22
|
-
*/
|
|
23
|
-
export declare abstract class DIVEBaseTool {
|
|
24
|
-
readonly POINTER_DRAG_THRESHOLD: number;
|
|
25
|
-
name: string;
|
|
26
|
-
protected _canvas: HTMLElement;
|
|
27
|
-
protected _scene: DIVEScene;
|
|
28
|
-
protected _controller: OrbitController;
|
|
29
|
-
protected _pointer: Vector2;
|
|
30
|
-
protected get _pointerAnyDown(): boolean;
|
|
31
|
-
protected _pointerPrimaryDown: boolean;
|
|
32
|
-
protected _pointerMiddleDown: boolean;
|
|
33
|
-
protected _pointerSecondaryDown: boolean;
|
|
34
|
-
protected _lastPointerDown: Vector2;
|
|
35
|
-
protected _lastPointerUp: Vector2;
|
|
36
|
-
protected _raycaster: Raycaster;
|
|
37
|
-
protected _intersects: Intersection[];
|
|
38
|
-
protected _hovered: (Object3D & DIVEHoverable) | null;
|
|
39
|
-
protected _dragging: boolean;
|
|
40
|
-
protected _dragStart: Vector3;
|
|
41
|
-
protected _dragCurrent: Vector3;
|
|
42
|
-
protected _dragEnd: Vector3;
|
|
43
|
-
protected _dragDelta: Vector3;
|
|
44
|
-
protected _draggable: DIVEDraggable | null;
|
|
45
|
-
protected _dragRaycastOnObjects: Object3D[] | null;
|
|
46
|
-
protected constructor(scene: DIVEScene, controller: OrbitController);
|
|
47
|
-
activate(): void;
|
|
48
|
-
deactivate(): void;
|
|
49
|
-
onPointerDown(e: PointerEvent): void;
|
|
50
|
-
onDragStart(e: PointerEvent): void;
|
|
51
|
-
onPointerMove(e: PointerEvent): void;
|
|
52
|
-
onDrag(e: PointerEvent): void;
|
|
53
|
-
onPointerUp(e: PointerEvent): void;
|
|
54
|
-
onClick(e: PointerEvent): void;
|
|
55
|
-
onDragEnd(e: PointerEvent): void;
|
|
56
|
-
onWheel(e: WheelEvent): void;
|
|
57
|
-
protected raycast(objects?: Object3D[]): Intersection[];
|
|
58
|
-
private pointerWasDragged;
|
|
59
|
-
}
|