@shopware-ag/dive 2.3.8 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/chunks/Animator-DHnpWRt_.mjs +16 -0
- package/build/chunks/Animator-YDE8aFEd.cjs +1 -0
- package/build/chunks/AssetCache-Bk3ov4KH.cjs +1 -0
- package/build/chunks/{AssetCache-CJPVU7kz.mjs → AssetCache-DNcSNSJk.mjs} +6 -5
- package/build/chunks/AssetExporter-Cdxb04b3.cjs +1 -0
- package/build/chunks/AssetExporter-DLL_vJae.mjs +67 -0
- package/build/chunks/AssetLoader-D6ScugS-.cjs +3 -0
- package/build/chunks/AssetLoader-Dvq0Wk28.mjs +499 -0
- package/build/chunks/{ClipAnimator-keFLDMNZ.mjs → ClipAnimator-D8Gho4Ec.mjs} +2 -2
- package/build/chunks/ClipAnimator-SdDq2wk1.cjs +1 -0
- package/build/chunks/FileTypes-CGEeONh9.cjs +29 -0
- package/build/chunks/FileTypes-DU8bBa_V.mjs +1976 -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-DY4QOFj7.mjs} +1 -1
- package/build/chunks/{isFileTypeSupported-D97zmt1P.cjs → isFileTypeSupported-DrMUwnQx.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 +4 -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 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var p=Object.defineProperty;var c=(s,e,r)=>e in s?p(s,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[e]=r;var a=(s,e,r)=>c(s,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("three/webgpu");require("../../chunks/FileTypes-CGEeONh9.cjs");const n=require("../../chunks/PerspectiveCamera-DwQUmkDv.cjs");require("three/examples/jsm/loaders/HDRLoader.js");require("three/tsl");const i=require("../../chunks/AxisHelperColors-BrGqktN5.cjs"),_=require("three-spritetext");class l extends t.Object3D{constructor(){super();a(this,"_axesHelper");this._axesHelper=new t.AxesHelper(.5),this._axesHelper.layers.mask=n.COORDINATE_LAYER_MASK,this._axesHelper.material.depthTest=!1,this._axesHelper.position.set(0,0,-1),this._axesHelper.setColors(new t.Color(i.AxesColorRed),new t.Color(i.AxesColorGreen),new t.Color(i.AxesColorBlue));const r=new _("X",.2,i.AxesColorRedLetter),o=new _("Y",.2,i.AxesColorGreenLetter),h=new _("Z",.2,i.AxesColorBlueLetter);r.layers.mask=n.COORDINATE_LAYER_MASK,o.layers.mask=n.COORDINATE_LAYER_MASK,h.layers.mask=n.COORDINATE_LAYER_MASK,r.position.set(.7,0,0),o.position.set(0,.7,0),h.position.set(0,0,.7),this._axesHelper.add(r),this._axesHelper.add(o),this._axesHelper.add(h),this.add(this._axesHelper)}setFromCameraMatrix(r){this._axesHelper.rotation.setFromRotationMatrix(new t.Matrix4().extractRotation(r).invert())}}class d{constructor(e,r,o){a(this,"uuid",t.MathUtils.generateUUID());a(this,"_axes");a(this,"_orthographicCamera");a(this,"_restoreViewport",new t.Vector4);this._renderer=e,this._scene=r,this._camera=o,this._orthographicCamera=new t.OrthographicCamera(-1,1,1,-1,.1,100),this._orthographicCamera.name="OrientationDisplayCamera",this._orthographicCamera.layers.mask=n.COORDINATE_LAYER_MASK,this._scene.add(this._orthographicCamera),this._axes=new l,this._axes.name="OrientationDisplayAxes",this._scene.add(this._axes)}tick(){const e=this._scene.background??null;this._scene.background=null,this._renderer.webgpurenderer.getViewport(this._restoreViewport),this._renderer.webgpurenderer.setViewport(0,0,150,150),this._renderer.webgpurenderer.autoClear=!1,this._axes.setFromCameraMatrix(this._camera.matrix),this._renderer.webgpurenderer.render(this._scene,this._orthographicCamera),this._renderer.webgpurenderer.setViewport(this._restoreViewport),this._renderer.webgpurenderer.autoClear=!0,this._scene.background=e}dispose(){this._scene.remove(this._axes),this._scene.remove(this._orthographicCamera)}}exports.OrientationDisplay=d;exports.OrientationDisplayAxes=l;
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
var
|
|
2
|
-
var _ = (s, e, r) => e in s ?
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var _ = (s, e, r) => e in s ? p(s, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : s[e] = r;
|
|
3
3
|
var t = (s, e, r) => _(s, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import { Object3D as
|
|
5
|
-
import "../../chunks/FileTypes-
|
|
6
|
-
import { C as i } from "../../chunks/PerspectiveCamera-
|
|
7
|
-
import "
|
|
8
|
-
import
|
|
4
|
+
import { Object3D as l, AxesHelper as c, Color as n, Matrix4 as m, OrthographicCamera as d, MathUtils as x, Vector4 as w } from "three/webgpu";
|
|
5
|
+
import "../../chunks/FileTypes-DU8bBa_V.mjs";
|
|
6
|
+
import { C as i } from "../../chunks/PerspectiveCamera-B5TvUzTa.mjs";
|
|
7
|
+
import "three/examples/jsm/loaders/HDRLoader.js";
|
|
8
|
+
import "three/tsl";
|
|
9
|
+
import { A as C, a as u, b as g, c as A, d as H, e as b } from "../../chunks/AxisHelperColors-JLBHYQDi.mjs";
|
|
9
10
|
import h from "three-spritetext";
|
|
10
|
-
class k extends
|
|
11
|
+
class k extends l {
|
|
11
12
|
constructor() {
|
|
12
13
|
super();
|
|
13
14
|
t(this, "_axesHelper");
|
|
14
15
|
this._axesHelper = new c(0.5), this._axesHelper.layers.mask = i, this._axesHelper.material.depthTest = !1, this._axesHelper.position.set(0, 0, -1), this._axesHelper.setColors(
|
|
15
16
|
new n(C),
|
|
16
|
-
new n(
|
|
17
|
-
new n(
|
|
17
|
+
new n(u),
|
|
18
|
+
new n(g)
|
|
18
19
|
);
|
|
19
20
|
const r = new h("X", 0.2, A), a = new h("Y", 0.2, H), o = new h("Z", 0.2, b);
|
|
20
21
|
r.layers.mask = i, a.layers.mask = i, o.layers.mask = i, r.position.set(0.7, 0, 0), a.position.set(0, 0.7, 0), o.position.set(0, 0, 0.7), this._axesHelper.add(r), this._axesHelper.add(a), this._axesHelper.add(o), this.add(this._axesHelper);
|
|
21
22
|
}
|
|
22
23
|
setFromCameraMatrix(r) {
|
|
23
24
|
this._axesHelper.rotation.setFromRotationMatrix(
|
|
24
|
-
new
|
|
25
|
+
new m().extractRotation(r).invert()
|
|
25
26
|
);
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
|
-
class
|
|
29
|
+
class v {
|
|
29
30
|
constructor(e, r, a) {
|
|
30
31
|
t(this, "uuid", x.generateUUID());
|
|
31
32
|
t(this, "_axes");
|
|
32
33
|
t(this, "_orthographicCamera");
|
|
33
34
|
t(this, "_restoreViewport", new w());
|
|
34
|
-
this._renderer = e, this._scene = r, this._camera = a, this._orthographicCamera = new
|
|
35
|
+
this._renderer = e, this._scene = r, this._camera = a, this._orthographicCamera = new d(
|
|
35
36
|
-1,
|
|
36
37
|
1,
|
|
37
38
|
1,
|
|
@@ -42,16 +43,16 @@ class L {
|
|
|
42
43
|
}
|
|
43
44
|
tick() {
|
|
44
45
|
const e = this._scene.background ?? null;
|
|
45
|
-
this._scene.background = null, this._renderer.
|
|
46
|
+
this._scene.background = null, this._renderer.webgpurenderer.getViewport(this._restoreViewport), this._renderer.webgpurenderer.setViewport(0, 0, 150, 150), this._renderer.webgpurenderer.autoClear = !1, this._axes.setFromCameraMatrix(this._camera.matrix), this._renderer.webgpurenderer.render(
|
|
46
47
|
this._scene,
|
|
47
48
|
this._orthographicCamera
|
|
48
|
-
), this._renderer.
|
|
49
|
+
), this._renderer.webgpurenderer.setViewport(this._restoreViewport), this._renderer.webgpurenderer.autoClear = !0, this._scene.background = e;
|
|
49
50
|
}
|
|
50
51
|
dispose() {
|
|
51
52
|
this._scene.remove(this._axes), this._scene.remove(this._orthographicCamera);
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
v as OrientationDisplay,
|
|
56
57
|
k as OrientationDisplayAxes
|
|
57
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../chunks/FileTypes-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../chunks/FileTypes-CGEeONh9.cjs");require("three/webgpu");require("three/examples/jsm/loaders/HDRLoader.js");require("three/tsl");const a={...o.DIVEDefaultSettings},l=async(n,c)=>{const e=new o.DIVE(c);e.mainView.camera.position.set(0,1,2);const i=await new o.DIVEModel().setFromURL(n);e.scene.root.add(i),i.placeOnFloor();const t=new o.OrbitController(e.mainView.camera,e.mainView.canvas);t.focusObject(i),e.clock.addTicker(t);const s=Object.assign(e,{orbitController:t,model:i}),r=e.dispose.bind(e);return s.dispose=async()=>{t.dispose(),await r()},s};exports.QuickView=l;exports.QuickViewDefaultSettings=a;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { D as c, b as r, c as l, O as
|
|
2
|
-
import "three";
|
|
3
|
-
import "
|
|
4
|
-
|
|
1
|
+
import { D as c, b as r, c as l, O as m } from "../../chunks/FileTypes-DU8bBa_V.mjs";
|
|
2
|
+
import "three/webgpu";
|
|
3
|
+
import "three/examples/jsm/loaders/HDRLoader.js";
|
|
4
|
+
import "three/tsl";
|
|
5
|
+
const u = {
|
|
5
6
|
...c
|
|
6
|
-
},
|
|
7
|
+
}, D = async (t, n) => {
|
|
7
8
|
const e = new r(n);
|
|
8
9
|
e.mainView.camera.position.set(0, 1, 2);
|
|
9
10
|
const i = await new l().setFromURL(t);
|
|
10
11
|
e.scene.root.add(i), i.placeOnFloor();
|
|
11
|
-
const o = new
|
|
12
|
+
const o = new m(
|
|
12
13
|
e.mainView.camera,
|
|
13
14
|
e.mainView.canvas
|
|
14
15
|
);
|
|
@@ -19,6 +20,6 @@ const V = {
|
|
|
19
20
|
}, s;
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
D as QuickView,
|
|
24
|
+
u as QuickViewDefaultSettings
|
|
24
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/GridNode-iqnu86_v.cjs");exports.GridNode=e.GridNode;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Color, Node, UniformNode } from 'three/webgpu';
|
|
2
|
+
export type GridNodeUniforms = {
|
|
3
|
+
/** World-space size of each grid cell in meters. */
|
|
4
|
+
uGridSize: UniformNode<'float', number>;
|
|
5
|
+
/** Draw a major line every N cells. */
|
|
6
|
+
uMajorLineEvery: UniformNode<'float', number>;
|
|
7
|
+
/** Color of minor grid lines. */
|
|
8
|
+
uMinorLineColor: UniformNode<'color', Color>;
|
|
9
|
+
/** Color of major grid lines. */
|
|
10
|
+
uMajorLineColor: UniformNode<'color', Color>;
|
|
11
|
+
/** Distance at which the grid fades out in meters. */
|
|
12
|
+
uFadeDistance: UniformNode<'float', number>;
|
|
13
|
+
};
|
|
14
|
+
export declare class GridNode extends Node {
|
|
15
|
+
constructor(uniforms: GridNodeUniforms);
|
|
16
|
+
}
|