@shopware-ag/dive 3.1.0 → 4.0.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/README.md +31 -5
- package/build/chunks/{AssetCache-xpY_N7Yp.cjs → AssetCache-CUVFS7wk.cjs} +1 -1
- package/build/chunks/{AssetCache-C3YXhbaX.mjs → AssetCache-DnAAa719.mjs} +1 -1
- package/build/chunks/AssetExporter-CD2iuQce.mjs +108 -0
- package/build/chunks/AssetExporter-CoL-QXkB.cjs +1 -0
- package/build/chunks/{AssetLoader-MfH5d_Rr.mjs → AssetLoader-Bkp3fWZz.mjs} +9 -9
- package/build/chunks/{AssetLoader-CRxLq0AL.cjs → AssetLoader-DnVvCd41.cjs} +2 -2
- package/build/chunks/FileTypes-B-MjfMGd.cjs +29 -0
- package/build/chunks/FileTypes-D3Dxr2dj.mjs +2294 -0
- package/build/chunks/ModelComponent-Cmu0EX0r.cjs +1 -0
- package/build/chunks/ModelComponent-WA0kLOEY.mjs +87 -0
- package/build/chunks/OrbitController-CAJIiZeE.cjs +1 -0
- package/build/chunks/OrbitController-DxCbrQVB.mjs +612 -0
- package/build/chunks/SpriteTextComponent-BpoKLOjA.cjs +1 -0
- package/build/chunks/SpriteTextComponent-DIZFqao0.mjs +83 -0
- package/build/chunks/collectAnimations-BgYCN1le.mjs +35 -0
- package/build/chunks/collectAnimations-C3HfZHte.cjs +1 -0
- package/build/chunks/contributesToBounds-C1mva__U.cjs +1 -0
- package/build/chunks/contributesToBounds-DYmHYES4.mjs +14 -0
- package/build/chunks/detachTransformControls-B4iRF1bw.mjs +209 -0
- package/build/chunks/detachTransformControls-CZ2cd5hx.cjs +1 -0
- package/build/chunks/{isFileTypeSupported-BBU39V4u.cjs → isFileExtensionSupported-B1q2eWs7.cjs} +1 -1
- package/build/chunks/{isFileTypeSupported-9h8lrIuG.mjs → isFileExtensionSupported-BqOqU3-h.mjs} +1 -1
- package/build/chunks/isVisibleInHierarchy-D9JcLqR5.cjs +1 -0
- package/build/chunks/isVisibleInHierarchy-KzVGvDEw.mjs +21 -0
- package/build/components/boundingbox/BoundingBoxComponent.d.ts +100 -0
- package/build/components/boundingbox/index.d.ts +1 -0
- package/build/components/camera/CameraComponent.d.ts +75 -0
- package/build/components/camera/index.d.ts +2 -0
- package/build/components/camera/perspective/PerspectiveCameraComponent.d.ts +39 -0
- package/build/components/grid/GridComponent.d.ts +50 -0
- package/build/components/index.d.ts +6 -10
- package/build/components/light/LightComponent.d.ts +65 -0
- package/build/components/light/ambient/AmbientLightComponent.d.ts +10 -0
- package/build/components/light/directional/DirectionalLightComponent.d.ts +23 -0
- package/build/components/light/hemi/HemisphereLightComponent.d.ts +21 -0
- package/build/components/light/index.d.ts +5 -3
- package/build/components/light/point/PointLightComponent.d.ts +26 -0
- package/build/components/line/MultiLineComponent.d.ts +133 -0
- package/build/components/line/index.d.ts +1 -0
- package/build/components/mesh/MeshComponent.d.ts +74 -0
- package/build/components/mesh/floor/FloorComponent.d.ts +36 -0
- package/build/components/mesh/index.d.ts +4 -0
- package/build/components/mesh/model/ModelComponent.d.ts +67 -0
- package/build/components/mesh/primitive/PrimitiveComponent.d.ts +43 -0
- package/build/components/spritetext/SpriteTextComponent.d.ts +58 -0
- package/build/constants/VisibilityLayerMask.d.ts +23 -0
- package/build/dive.cjs +1 -1
- package/build/dive.mjs +252 -773
- package/build/engine/Dive.d.ts +11 -13
- package/build/engine/boundingbox/BoundingBox.d.ts +76 -0
- package/build/engine/component/Component.d.ts +236 -0
- package/build/engine/environment/Environment.d.ts +0 -18
- package/build/engine/index.d.ts +4 -1
- package/build/engine/node/Node.d.ts +189 -0
- package/build/engine/promise/abortable/AbortablePromise.d.ts +8 -0
- package/build/engine/renderer/Renderer.d.ts +43 -7
- package/build/engine/scene/Scene.d.ts +88 -4
- package/build/engine/scene/root/Root.d.ts +29 -0
- package/build/engine/scene/xrroot/XRRoot.d.ts +1 -1
- package/build/engine/view/View.d.ts +15 -4
- package/build/helpers/collectAnimations/collectAnimations.d.ts +23 -0
- package/build/helpers/computeProductBounds/computeProductBounds.d.ts +18 -0
- package/build/helpers/contributesToBounds/contributesToBounds.d.ts +17 -0
- package/build/helpers/detachTransformControls/detachTransformControls.d.ts +15 -0
- package/build/helpers/disposeComponents/disposeComponents.d.ts +20 -0
- package/build/helpers/findSceneRecursive/findSceneRecursive.d.ts +7 -3
- package/build/helpers/implementsInterface/implementsInterface.d.ts +11 -0
- package/build/helpers/index.d.ts +6 -1
- package/build/helpers/isVisibleInHierarchy/isVisibleInHierarchy.d.ts +12 -0
- package/build/index.d.ts +0 -1
- package/build/plugins/animation/index.mjs +3 -2
- package/build/plugins/animation/src/system/AnimationSystem.d.ts +3 -2
- package/build/plugins/ar/index.cjs +1 -1
- package/build/plugins/ar/index.mjs +2 -2
- package/build/plugins/ar/src/webxr/WebXR.d.ts +7 -0
- 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 +12 -0
- package/build/plugins/assetloader/index.cjs +1 -1
- package/build/plugins/assetloader/index.mjs +2 -2
- package/build/plugins/mediacreator/index.cjs +1 -1
- package/build/plugins/mediacreator/index.mjs +32 -30
- package/build/plugins/mediacreator/src/MediaCreator.d.ts +1 -2
- package/build/plugins/orbitcontroller/index.cjs +1 -1
- package/build/plugins/orbitcontroller/index.d.ts +1 -0
- package/build/plugins/orbitcontroller/index.mjs +1 -1
- package/build/plugins/orbitcontroller/src/OrbitController.d.ts +39 -6
- package/build/plugins/orientationdisplay/index.cjs +1 -1
- package/build/plugins/orientationdisplay/index.mjs +39 -31
- package/build/plugins/orientationdisplay/src/OrientationDisplay.d.ts +3 -3
- package/build/plugins/quickview/index.cjs +1 -1
- package/build/plugins/quickview/index.mjs +68 -45
- package/build/plugins/quickview/src/QuickView.d.ts +40 -13
- package/build/plugins/quickview/types/index.d.ts +0 -18
- package/build/plugins/state/index.cjs +1 -27
- package/build/plugins/state/index.mjs +1983 -4262
- package/build/plugins/state/src/EngineGateway.d.ts +98 -0
- package/build/plugins/state/src/EntityRegistry.d.ts +51 -0
- package/build/plugins/state/src/State.d.ts +20 -9
- package/build/plugins/state/src/actions/camera/computeencompassingview.d.ts +1 -1
- package/build/plugins/state/src/actions/camera/movecamera.d.ts +2 -2
- package/build/plugins/state/src/actions/media/generatemedia.d.ts +1 -1
- package/build/plugins/state/src/actions/object/addobject.d.ts +2 -3
- package/build/plugins/state/src/actions/object/deleteobject.d.ts +3 -4
- package/build/plugins/state/src/actions/object/deselectobject.d.ts +3 -4
- package/build/plugins/state/src/actions/object/dropit.d.ts +2 -2
- package/build/plugins/state/src/actions/object/getallobjects.d.ts +2 -3
- package/build/plugins/state/src/actions/object/getobjects.d.ts +3 -4
- package/build/plugins/state/src/actions/object/index.d.ts +0 -1
- package/build/plugins/state/src/actions/object/modelloaded.d.ts +2 -2
- package/build/plugins/state/src/actions/object/selectobject.d.ts +3 -4
- package/build/plugins/state/src/actions/object/setparent.d.ts +3 -4
- package/build/plugins/state/src/actions/object/updateobject.d.ts +3 -4
- package/build/plugins/state/src/actions/renderer/startrender.d.ts +1 -1
- package/build/plugins/state/src/actions/scene/exportscene.d.ts +2 -2
- package/build/plugins/state/src/actions/scene/index.d.ts +0 -1
- package/build/plugins/state/src/actions/scene/setbackground.d.ts +2 -2
- package/build/plugins/state/src/actions/scene/updatescene.d.ts +2 -2
- package/build/plugins/state/src/actions/state/getstate.d.ts +1 -1
- package/build/plugins/state/src/actions/state/setstate.d.ts +1 -1
- package/build/plugins/state/src/helpers/copyVectors/copyVectors.d.ts +17 -0
- package/build/plugins/state/src/helpers/updateParentLink/updateParentLink.d.ts +29 -0
- package/build/plugins/state/src/helpers/watchEntity/watchEntity.d.ts +30 -0
- package/build/plugins/state/types/ActionTypes.d.ts +18 -3
- package/build/plugins/state/types/RegisteredEntity.d.ts +27 -0
- package/build/plugins/state/types/StateData.d.ts +1 -1
- package/build/plugins/state/types/index.d.ts +2 -1
- package/build/{types → plugins/state/types}/schema/GroupSchema.d.ts +1 -1
- package/build/{types → plugins/state/types}/schema/ModelSchema.d.ts +7 -4
- package/build/{types → plugins/state/types}/schema/PrimitiveSchema.d.ts +4 -5
- package/build/{types → plugins/state/types}/schema/index.d.ts +0 -3
- package/build/plugins/toolbox/index.cjs +1 -1
- package/build/plugins/toolbox/index.mjs +193 -140
- package/build/plugins/toolbox/src/PointerContext.d.ts +7 -0
- package/build/plugins/toolbox/src/SelectionState.d.ts +21 -0
- package/build/plugins/toolbox/src/Toolbox.d.ts +9 -2
- package/build/{components → plugins/toolbox/src}/gizmo/Gizmo.d.ts +16 -2
- package/build/{components → plugins/toolbox/src}/gizmo/handles/AxisHandle.d.ts +2 -3
- package/build/{components → plugins/toolbox/src}/gizmo/handles/RadialHandle.d.ts +2 -3
- package/build/{components → plugins/toolbox/src}/gizmo/handles/ScaleHandle.d.ts +2 -3
- package/build/{components → plugins/toolbox/src}/gizmo/rotate/RotateGizmo.d.ts +2 -2
- package/build/{components → plugins/toolbox/src}/gizmo/scale/ScaleGizmo.d.ts +3 -3
- package/build/{components → plugins/toolbox/src}/gizmo/translate/TranslateGizmo.d.ts +2 -2
- package/build/types/components/DIVESceneObject.d.ts +13 -6
- package/build/types/components/index.d.ts +0 -1
- package/build/types/events/DIVEComponentEventMap.d.ts +14 -0
- package/build/types/events/DIVEEntityEventMap.d.ts +47 -0
- package/build/types/events/index.d.ts +2 -0
- package/build/types/{schema/GeometrySchema.d.ts → geometry/DIVEGeometry.d.ts} +4 -4
- package/build/types/{schema/GeometryTypeSchema.d.ts → geometry/DIVEGeometryType.d.ts} +1 -1
- package/build/types/geometry/index.d.ts +2 -0
- package/build/types/index.d.ts +3 -1
- package/build/types/{schema/MaterialSchema.d.ts → material/DIVEMaterial.d.ts} +1 -1
- package/build/types/material/index.d.ts +1 -0
- package/package.json +6 -5
- package/build/chunks/AssetExporter-C5MScs9S.mjs +0 -70
- package/build/chunks/AssetExporter-Cdxb04b3.cjs +0 -1
- package/build/chunks/CameraSchema-cgY5WBGW.mjs +0 -10
- package/build/chunks/CameraSchema-twxH-72N.cjs +0 -1
- package/build/chunks/FileTypes-Cgyf8ocm.cjs +0 -29
- package/build/chunks/FileTypes-DiYB3WBp.mjs +0 -2166
- package/build/chunks/PerspectiveCamera-B5TvUzTa.mjs +0 -39
- package/build/chunks/PerspectiveCamera-DwQUmkDv.cjs +0 -1
- package/build/chunks/SpriteText-2lCRglsw.cjs +0 -1
- package/build/chunks/SpriteText-C_CQPvUn.mjs +0 -50
- package/build/chunks/findInterface-C6mrvf_t.cjs +0 -1
- package/build/chunks/findInterface-DbJ5qzbc.mjs +0 -11
- package/build/components/boundingbox/BoundingBox.d.ts +0 -140
- package/build/components/floor/Floor.d.ts +0 -14
- package/build/components/grid/Grid.d.ts +0 -23
- package/build/components/group/Group.d.ts +0 -28
- package/build/components/light/AmbientLight.d.ts +0 -19
- package/build/components/light/PointLight.d.ts +0 -29
- package/build/components/light/SceneLight.d.ts +0 -20
- package/build/components/model/Model.d.ts +0 -26
- package/build/components/node/Node.d.ts +0 -24
- package/build/components/primitive/Primitive.d.ts +0 -27
- package/build/components/root/Root.d.ts +0 -34
- package/build/components/spritetext/SpriteText.d.ts +0 -27
- package/build/engine/camera/PerspectiveCamera.d.ts +0 -24
- package/build/helpers/isFileTypeSupported/isFileTypeSupported.d.ts +0 -9
- package/build/plugins/quickview/src/state/QuickViewState.d.ts +0 -4
- package/build/plugins/quickview/src/uri/QuickViewUri.d.ts +0 -3
- package/build/plugins/state/src/actions/object/placeonfloor.d.ts +0 -12
- package/build/plugins/state/src/actions/scene/getallscenedata.d.ts +0 -12
- package/build/plugins/state/types/StateSceneData.d.ts +0 -5
- package/build/types/components/DIVELight.d.ts +0 -4
- /package/build/{types → plugins/state/types}/schema/BaseEntitySchema.d.ts +0 -0
- /package/build/{types → plugins/state/types}/schema/CameraSchema.d.ts +0 -0
- /package/build/{types → plugins/state/types}/schema/EntitySchema.d.ts +0 -0
- /package/build/{types → plugins/state/types}/schema/EntityTypeSchema.d.ts +0 -0
- /package/build/{types → plugins/state/types}/schema/LightSchema.d.ts +0 -0
- /package/build/{components → plugins/toolbox/src}/gizmo/plane/GizmoPlane.d.ts +0 -0
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var L = Object.defineProperty;
|
|
2
|
-
var R = (e, s, a) => s in e ? L(e, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[s] = a;
|
|
3
|
-
var r = (e, s, a) => R(e, typeof s != "symbol" ? s + "" : s, a);
|
|
4
|
-
import { PerspectiveCamera as n } from "three/webgpu";
|
|
5
|
-
const c = 1, K = 2, S = 4, i = 8, A = 16, E = {
|
|
6
|
-
fov: 70,
|
|
7
|
-
near: 1e-3,
|
|
8
|
-
far: 1e3
|
|
9
|
-
}, t = class t extends n {
|
|
10
|
-
constructor(a = E) {
|
|
11
|
-
super(
|
|
12
|
-
a.fov || E.fov,
|
|
13
|
-
1,
|
|
14
|
-
a.near || E.near,
|
|
15
|
-
a.far || E.far
|
|
16
|
-
);
|
|
17
|
-
r(this, "isDIVEPerspectiveCamera", !0);
|
|
18
|
-
r(this, "onSetCameraLayer", () => {
|
|
19
|
-
});
|
|
20
|
-
this.layers.mask = t.EDITOR_VIEW_LAYER_MASK;
|
|
21
|
-
}
|
|
22
|
-
onResize(a, o) {
|
|
23
|
-
this.aspect = a / o, this.updateProjectionMatrix();
|
|
24
|
-
}
|
|
25
|
-
setCameraLayer(a) {
|
|
26
|
-
this.layers.mask = a === "LIVE" ? t.LIVE_VIEW_LAYER_MASK : t.EDITOR_VIEW_LAYER_MASK, this.onSetCameraLayer(this.layers.mask);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
r(t, "EDITOR_VIEW_LAYER_MASK", c | S | i | A), r(t, "LIVE_VIEW_LAYER_MASK", A);
|
|
30
|
-
let _ = t;
|
|
31
|
-
export {
|
|
32
|
-
K as C,
|
|
33
|
-
_ as D,
|
|
34
|
-
i as H,
|
|
35
|
-
A as P,
|
|
36
|
-
S as U,
|
|
37
|
-
E as a,
|
|
38
|
-
c as b
|
|
39
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var i=(A,E,e)=>E in A?o(A,E,{enumerable:!0,configurable:!0,writable:!0,value:e}):A[E]=e;var a=(A,E,e)=>i(A,typeof E!="symbol"?E+"":E,e);const n=require("three/webgpu"),L=1,I=2,R=4,S=8,_=16,s={fov:70,near:.001,far:1e3},t=class t extends n.PerspectiveCamera{constructor(e=s){super(e.fov||s.fov,1,e.near||s.near,e.far||s.far);a(this,"isDIVEPerspectiveCamera",!0);a(this,"onSetCameraLayer",()=>{});this.layers.mask=t.EDITOR_VIEW_LAYER_MASK}onResize(e,c){this.aspect=e/c,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",L|R|S|_),a(t,"LIVE_VIEW_LAYER_MASK",_);let r=t;exports.COORDINATE_LAYER_MASK=I;exports.DEFAULT_LAYER_MASK=L;exports.DIVEPerspectiveCamera=r;exports.DIVEPerspectiveCameraDefaultSettings=s;exports.HELPER_LAYER_MASK=S;exports.PRODUCT_LAYER_MASK=_;exports.UI_LAYER_MASK=R;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var x=Object.defineProperty;var _=(i,e,t)=>e in i?x(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var s=(i,e,t)=>_(i,typeof e!="symbol"?e+"":e,t);const r=require("three/webgpu"),h=90,o=`normal ${h}px Arial`;class c extends r.Sprite{constructor(t,a=1,n=16777215){super(new r.SpriteMaterial);s(this,"isDIVESpriteText",!0);s(this,"_text");s(this,"_textHeight");s(this,"_color");s(this,"_canvas");s(this,"_texture");this.name="DIVESpriteText",this._text=t,this._textHeight=a,this._color=new r.Color(n),this._canvas=document.createElement("canvas"),this._texture=new r.CanvasTexture(this._canvas),this._texture.colorSpace=r.SRGBColorSpace,this.material.map=this._texture,this._draw()}setText(t){this._text=t,this._draw()}setTextHeight(t){this._textHeight=t,this._draw()}setColor(t){this._color=new r.Color(t),this._draw()}dispose(){this._texture.dispose(),this.material.dispose()}_draw(){const t=this._canvas.getContext("2d");if(t===null)return;t.font=o;const a=Math.max(1,Math.ceil(t.measureText(this._text).width));this._canvas.width=a,this._canvas.height=h,t.font=o,t.fillStyle=`#${this._color.getHexString()}`,t.textBaseline="bottom",t.fillText(this._text,0,h),this._texture.needsUpdate=!0,this.scale.set(this._textHeight*a/h,this._textHeight,1)}}exports.DIVESpriteText=c;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
var _ = Object.defineProperty;
|
|
2
|
-
var n = (i, e, t) => e in i ? _(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
-
var s = (i, e, t) => n(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { Sprite as c, SpriteMaterial as l, Color as h, CanvasTexture as d, SRGBColorSpace as p } from "three/webgpu";
|
|
5
|
-
const r = 90, o = `normal ${r}px Arial`;
|
|
6
|
-
class w extends c {
|
|
7
|
-
constructor(t, a = 1, x = 16777215) {
|
|
8
|
-
super(new l());
|
|
9
|
-
s(this, "isDIVESpriteText", !0);
|
|
10
|
-
s(this, "_text");
|
|
11
|
-
s(this, "_textHeight");
|
|
12
|
-
s(this, "_color");
|
|
13
|
-
s(this, "_canvas");
|
|
14
|
-
s(this, "_texture");
|
|
15
|
-
this.name = "DIVESpriteText", this._text = t, this._textHeight = a, this._color = new h(x), this._canvas = document.createElement("canvas"), this._texture = new d(this._canvas), this._texture.colorSpace = p, this.material.map = this._texture, this._draw();
|
|
16
|
-
}
|
|
17
|
-
setText(t) {
|
|
18
|
-
this._text = t, this._draw();
|
|
19
|
-
}
|
|
20
|
-
setTextHeight(t) {
|
|
21
|
-
this._textHeight = t, this._draw();
|
|
22
|
-
}
|
|
23
|
-
setColor(t) {
|
|
24
|
-
this._color = new h(t), this._draw();
|
|
25
|
-
}
|
|
26
|
-
dispose() {
|
|
27
|
-
this._texture.dispose(), this.material.dispose();
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Rasterizes the text to the canvas and scales the sprite to the resulting
|
|
31
|
-
* aspect ratio, so the label's height matches its text height in world units.
|
|
32
|
-
*/
|
|
33
|
-
_draw() {
|
|
34
|
-
const t = this._canvas.getContext("2d");
|
|
35
|
-
if (t === null) return;
|
|
36
|
-
t.font = o;
|
|
37
|
-
const a = Math.max(
|
|
38
|
-
1,
|
|
39
|
-
Math.ceil(t.measureText(this._text).width)
|
|
40
|
-
);
|
|
41
|
-
this._canvas.width = a, this._canvas.height = r, t.font = o, t.fillStyle = `#${this._color.getHexString()}`, t.textBaseline = "bottom", t.fillText(this._text, 0, r), this._texture.needsUpdate = !0, this.scale.set(
|
|
42
|
-
this._textHeight * a / r,
|
|
43
|
-
this._textHeight,
|
|
44
|
-
1
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export {
|
|
49
|
-
w as D
|
|
50
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function r(n,e){return n?e in n:!1}function f(n,e){if(n)return r(n,e)?n:f(n.parent,e)}exports.findInterface=f;exports.implementsInterface=r;
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { Box3, Object3D, Sphere, Vector3, ColorRepresentation } from 'three/webgpu';
|
|
2
|
-
import { DIVENode } from '../node/Node.ts';
|
|
3
|
-
/**
|
|
4
|
-
* A bounding box component that provides both axis-aligned and oriented bounding boxes
|
|
5
|
-
* along with bounding spheres for 3D objects.
|
|
6
|
-
*
|
|
7
|
-
* The BoundingBox class extends DIVENode and creates visual representations of the
|
|
8
|
-
* bounding volumes of 3D objects. It supports two modes:
|
|
9
|
-
* - **Axis-aligned bounding box (AABB)**: Aligned with the world coordinate system
|
|
10
|
-
* - **Oriented bounding box (OBB)**: Aligned with the object's local coordinate system
|
|
11
|
-
*
|
|
12
|
-
* The class also automatically computes a bounding sphere that encompasses the entire object.
|
|
13
|
-
* Both the bounding box and sphere can be visualized as wireframe helpers.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```typescript
|
|
17
|
-
* // Create a bounding box for a 3D object
|
|
18
|
-
* const mesh = new Mesh(geometry, material);
|
|
19
|
-
* const boundingBox = new BoundingBox(mesh, false, 0x00ff00);
|
|
20
|
-
*
|
|
21
|
-
* // Show the bounding box wireframe
|
|
22
|
-
* boundingBox.setBoxHelperVisible(true);
|
|
23
|
-
*
|
|
24
|
-
* // Access bounding box properties
|
|
25
|
-
* console.log('Center:', boundingBox.center);
|
|
26
|
-
* console.log('Size:', boundingBox.size);
|
|
27
|
-
* console.log('Radius:', boundingBox.radius);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```typescript
|
|
32
|
-
* // Create an axis-aligned bounding box
|
|
33
|
-
* const aabb = new BoundingBox(mesh, true, 0xff0000);
|
|
34
|
-
*
|
|
35
|
-
* // Show the bounding sphere wireframe
|
|
36
|
-
* aabb.setSphereHelperVisible(true);
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export declare class BoundingBox extends DIVENode {
|
|
40
|
-
/** The computed bounding box (Box3) */
|
|
41
|
-
private _box;
|
|
42
|
-
/** The computed bounding sphere (Sphere) */
|
|
43
|
-
private _sphere;
|
|
44
|
-
/** The center point of the bounding box */
|
|
45
|
-
private _center;
|
|
46
|
-
/** The radius of the bounding sphere */
|
|
47
|
-
private _radius;
|
|
48
|
-
/** Visual helper for the bounding box wireframe */
|
|
49
|
-
private _boxHelper;
|
|
50
|
-
/** Visual helper for the bounding sphere wireframe */
|
|
51
|
-
private _sphereHelper;
|
|
52
|
-
/** The dimensions (width, height, depth) of the bounding box */
|
|
53
|
-
private _size;
|
|
54
|
-
/**
|
|
55
|
-
* Gets the computed bounding box.
|
|
56
|
-
* @returns The Box3 instance representing the bounding box
|
|
57
|
-
*/
|
|
58
|
-
get box(): Box3;
|
|
59
|
-
/**
|
|
60
|
-
* Gets the computed bounding sphere.
|
|
61
|
-
* @returns The Sphere instance representing the bounding sphere
|
|
62
|
-
*/
|
|
63
|
-
get sphere(): Sphere;
|
|
64
|
-
/**
|
|
65
|
-
* Gets the center point of the bounding box.
|
|
66
|
-
* @returns A Vector3 representing the center coordinates
|
|
67
|
-
*/
|
|
68
|
-
get center(): Vector3;
|
|
69
|
-
/**
|
|
70
|
-
* Gets the radius of the bounding sphere.
|
|
71
|
-
* @returns The radius as a number
|
|
72
|
-
*/
|
|
73
|
-
get radius(): number;
|
|
74
|
-
/**
|
|
75
|
-
* Gets the dimensions of the bounding box.
|
|
76
|
-
* @returns A Vector3 representing width, height, and depth
|
|
77
|
-
*/
|
|
78
|
-
get size(): Vector3;
|
|
79
|
-
/**
|
|
80
|
-
* Creates a new BoundingBox instance for the specified 3D object or objects.
|
|
81
|
-
*
|
|
82
|
-
* The constructor computes both a bounding box and bounding sphere for the given objects.
|
|
83
|
-
* It handles complex objects with multiple meshes and nested transformations. When several
|
|
84
|
-
* objects are passed, the resulting volumes encompass all of them.
|
|
85
|
-
*
|
|
86
|
-
* @param object - The 3D object, or objects, to compute bounding volumes for
|
|
87
|
-
* @param axisAligned - Whether to create an axis-aligned bounding box (true) or oriented bounding box (false). Defaults to false.
|
|
88
|
-
* @param wireframeColor - The color for the wireframe helpers. Can be a hex number or ColorRepresentation. Defaults to green (0x00ff00).
|
|
89
|
-
*
|
|
90
|
-
* @example
|
|
91
|
-
* ```typescript
|
|
92
|
-
* // Create an oriented bounding box (aligned with object's rotation)
|
|
93
|
-
* const obb = new BoundingBox(mesh, false, 0x00ff00);
|
|
94
|
-
*
|
|
95
|
-
* // Create an axis-aligned bounding box (aligned with world coordinates)
|
|
96
|
-
* const aabb = new BoundingBox(mesh, true, 0xff0000);
|
|
97
|
-
*
|
|
98
|
-
* // Encompass several objects at once
|
|
99
|
-
* const combined = new BoundingBox([meshA, meshB, meshC]);
|
|
100
|
-
*
|
|
101
|
-
* // Use default green color
|
|
102
|
-
* const defaultBox = new BoundingBox(mesh);
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
105
|
-
constructor(object: Object3D | Object3D[], axisAligned?: boolean, wireframeColor?: ColorRepresentation | number);
|
|
106
|
-
/**
|
|
107
|
-
* Sets the visibility of the bounding box wireframe helper.
|
|
108
|
-
*
|
|
109
|
-
* @param visible - Whether the box helper should be visible
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```typescript
|
|
113
|
-
* const boundingBox = new BoundingBox(mesh);
|
|
114
|
-
*
|
|
115
|
-
* // Show the bounding box wireframe
|
|
116
|
-
* boundingBox.setBoxHelperVisible(true);
|
|
117
|
-
*
|
|
118
|
-
* // Hide the bounding box wireframe
|
|
119
|
-
* boundingBox.setBoxHelperVisible(false);
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
setBoxHelperVisible(visible: boolean): void;
|
|
123
|
-
/**
|
|
124
|
-
* Sets the visibility of the bounding sphere wireframe helper.
|
|
125
|
-
*
|
|
126
|
-
* @param visible - Whether the sphere helper should be visible
|
|
127
|
-
*
|
|
128
|
-
* @example
|
|
129
|
-
* ```typescript
|
|
130
|
-
* const boundingBox = new BoundingBox(mesh);
|
|
131
|
-
*
|
|
132
|
-
* // Show the bounding sphere wireframe
|
|
133
|
-
* boundingBox.setSphereHelperVisible(true);
|
|
134
|
-
*
|
|
135
|
-
* // Hide the bounding sphere wireframe
|
|
136
|
-
* boundingBox.setSphereHelperVisible(false);
|
|
137
|
-
* ```
|
|
138
|
-
*/
|
|
139
|
-
setSphereHelperVisible(visible: boolean): void;
|
|
140
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ColorRepresentation, Mesh } from 'three/webgpu';
|
|
2
|
-
/**
|
|
3
|
-
* A basic floor geometry.
|
|
4
|
-
*
|
|
5
|
-
* Can change the color and visibility of the floor.
|
|
6
|
-
*
|
|
7
|
-
* @module
|
|
8
|
-
*/
|
|
9
|
-
export declare class DIVEFloor extends Mesh {
|
|
10
|
-
readonly isDIVEFloor: true;
|
|
11
|
-
constructor();
|
|
12
|
-
setVisibility(visible: boolean): void;
|
|
13
|
-
setColor(color: ColorRepresentation): void;
|
|
14
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Object3D } from 'three/webgpu';
|
|
2
|
-
export interface DIVEGridSettings {
|
|
3
|
-
/** Distance between minor grid lines in meters. @default 1 */
|
|
4
|
-
gridSize?: number;
|
|
5
|
-
/** Draw a thicker major line every N cells. @default 5 */
|
|
6
|
-
majorLineEvery?: number;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* An infinite shader-based grid that follows the camera.
|
|
10
|
-
*
|
|
11
|
-
* Draws anti-aliased minor and major grid lines with a radial distance fade.
|
|
12
|
-
*/
|
|
13
|
-
export declare class DIVEGrid extends Object3D {
|
|
14
|
-
private _mesh;
|
|
15
|
-
private _material;
|
|
16
|
-
private _uniforms;
|
|
17
|
-
private _gridSize;
|
|
18
|
-
constructor(settings?: DIVEGridSettings);
|
|
19
|
-
setVisibility(visible: boolean): void;
|
|
20
|
-
setGridSize(size: number): void;
|
|
21
|
-
setMajorLineEvery(n: number): void;
|
|
22
|
-
dispose(): void;
|
|
23
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Vector3Like, Object3D } from 'three/webgpu';
|
|
2
|
-
import { DIVENode } from '../node/Node.ts';
|
|
3
|
-
import { DIVESceneObject } from '../../types/index.ts';
|
|
4
|
-
export declare class DIVEGroup extends DIVENode {
|
|
5
|
-
readonly isDIVEGroup: true;
|
|
6
|
-
private _members;
|
|
7
|
-
get members(): Object3D[];
|
|
8
|
-
private _lines;
|
|
9
|
-
constructor();
|
|
10
|
-
setPosition(position: Vector3Like): void;
|
|
11
|
-
setLinesVisibility(visible: boolean, object?: Object3D): void;
|
|
12
|
-
attach(object: DIVESceneObject): this;
|
|
13
|
-
/**
|
|
14
|
-
* Removes an object from the group.
|
|
15
|
-
* @param object - The object to remove.
|
|
16
|
-
* @returns The group instance.
|
|
17
|
-
*/
|
|
18
|
-
remove(object: DIVESceneObject): this;
|
|
19
|
-
updateLineTo(object: Object3D): void;
|
|
20
|
-
/**
|
|
21
|
-
* Creates a line for visualization.
|
|
22
|
-
*/
|
|
23
|
-
private createLine;
|
|
24
|
-
/**
|
|
25
|
-
* Updates a line to the object.
|
|
26
|
-
*/
|
|
27
|
-
private _updateLineTo;
|
|
28
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Color, Object3D } from 'three/webgpu';
|
|
2
|
-
import { DIVESelectable } from '../../index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* A basic ambient light.
|
|
5
|
-
*
|
|
6
|
-
* Can change the color, intensity, and visibility of the light.
|
|
7
|
-
*
|
|
8
|
-
* @module
|
|
9
|
-
*/
|
|
10
|
-
export declare class DIVEAmbientLight extends Object3D implements DIVESelectable {
|
|
11
|
-
readonly isDIVELight: true;
|
|
12
|
-
readonly isDIVEAmbientLight: true;
|
|
13
|
-
readonly isSelectable: true;
|
|
14
|
-
private _light;
|
|
15
|
-
constructor();
|
|
16
|
-
setColor(color: Color): void;
|
|
17
|
-
setIntensity(intensity: number): void;
|
|
18
|
-
setEnabled(enabled: boolean): void;
|
|
19
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Color, Object3D } from 'three/webgpu';
|
|
2
|
-
import { DIVEMovable } from '../../interfaces/Movable.ts';
|
|
3
|
-
import { DIVESelectable } from '../../interfaces/Selectable.ts';
|
|
4
|
-
import { TransformControls } from 'three/examples/jsm/controls/TransformControls.ts';
|
|
5
|
-
/**
|
|
6
|
-
* A basic point light.
|
|
7
|
-
*
|
|
8
|
-
* Can change the color, intensity, and visibility of the light.
|
|
9
|
-
*
|
|
10
|
-
* Can be moved and selected.
|
|
11
|
-
*
|
|
12
|
-
* @module
|
|
13
|
-
*/
|
|
14
|
-
export declare class DIVEPointLight extends Object3D implements DIVESelectable, DIVEMovable {
|
|
15
|
-
readonly isDIVELight: true;
|
|
16
|
-
readonly isDIVEPointLight: true;
|
|
17
|
-
readonly isMovable: true;
|
|
18
|
-
readonly isSelectable: true;
|
|
19
|
-
gizmo: TransformControls | null;
|
|
20
|
-
private light;
|
|
21
|
-
private mesh;
|
|
22
|
-
constructor();
|
|
23
|
-
setColor(color: Color): void;
|
|
24
|
-
setIntensity(intensity: number): void;
|
|
25
|
-
setEnabled(enabled: boolean): void;
|
|
26
|
-
onMove(): void;
|
|
27
|
-
onSelect(): void;
|
|
28
|
-
onDeselect(): void;
|
|
29
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DIVESelectable } from '../../index.ts';
|
|
2
|
-
import { Color, Object3D } from 'three/webgpu';
|
|
3
|
-
/**
|
|
4
|
-
* A complex scene light.
|
|
5
|
-
*
|
|
6
|
-
* Can change the color, intensity, and visibility of the light.
|
|
7
|
-
*
|
|
8
|
-
* @module
|
|
9
|
-
*/
|
|
10
|
-
export declare class DIVESceneLight extends Object3D implements DIVESelectable {
|
|
11
|
-
readonly isDIVELight: true;
|
|
12
|
-
readonly isDIVESceneLight: true;
|
|
13
|
-
readonly isSelectable: true;
|
|
14
|
-
private _hemiLight;
|
|
15
|
-
private _dirLight;
|
|
16
|
-
constructor();
|
|
17
|
-
setColor(color: Color): void;
|
|
18
|
-
setIntensity(intensity: number): void;
|
|
19
|
-
setEnabled(enabled: boolean): void;
|
|
20
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Mesh, MeshStandardMaterial, Object3D } from 'three/webgpu';
|
|
2
|
-
import { DIVENode } from '../node/Node.ts';
|
|
3
|
-
import { MaterialSchema } from 'src/types/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* A basic model class.
|
|
6
|
-
*
|
|
7
|
-
* It does calculate it's own bounding box which is used for positioning on the floor.
|
|
8
|
-
*
|
|
9
|
-
* Can be moved and selected.
|
|
10
|
-
*
|
|
11
|
-
* @module
|
|
12
|
-
*/
|
|
13
|
-
export declare class DIVEModel extends DIVENode {
|
|
14
|
-
readonly isDIVEModel: true;
|
|
15
|
-
protected _gltf: Object3D | null;
|
|
16
|
-
protected _mesh: Mesh | null;
|
|
17
|
-
protected _material: MeshStandardMaterial | null;
|
|
18
|
-
constructor();
|
|
19
|
-
private _assetLoader;
|
|
20
|
-
private _getAssetLoader;
|
|
21
|
-
setFromURL(url: string): Promise<this>;
|
|
22
|
-
setFromGLTF(gltf: Object3D): this;
|
|
23
|
-
setMaterial(material: Partial<MaterialSchema>): void;
|
|
24
|
-
placeOnFloor(): void;
|
|
25
|
-
dropIt(): void;
|
|
26
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Box3, Object3D, Vector3, Vector3Like } from 'three/webgpu';
|
|
2
|
-
import { DIVEMovable } from '../../interfaces/Movable.ts';
|
|
3
|
-
import { DIVESelectable } from '../../interfaces/Selectable.ts';
|
|
4
|
-
import { TransformControls } from 'three/examples/jsm/controls/TransformControls.ts';
|
|
5
|
-
export declare class DIVENode extends Object3D implements DIVESelectable, DIVEMovable {
|
|
6
|
-
readonly isSelectable: true;
|
|
7
|
-
readonly isMovable: true;
|
|
8
|
-
readonly isDIVENode: true;
|
|
9
|
-
gizmo: TransformControls | null;
|
|
10
|
-
protected _positionWorldBuffer: Vector3;
|
|
11
|
-
protected _boundingBox: Box3;
|
|
12
|
-
constructor();
|
|
13
|
-
setPosition(position: Vector3Like): void;
|
|
14
|
-
setRotation(rotation: Vector3Like): void;
|
|
15
|
-
setScale(scale: Vector3Like): void;
|
|
16
|
-
setVisibility(visible: boolean): void;
|
|
17
|
-
setToWorldOrigin(): void;
|
|
18
|
-
/**
|
|
19
|
-
* Can be called when the object is moved from a foreign object (gizmo, parent, etc.) to update the object's position.
|
|
20
|
-
*/
|
|
21
|
-
onMove(): void;
|
|
22
|
-
onSelect(): void;
|
|
23
|
-
onDeselect(): void;
|
|
24
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Mesh, MeshStandardMaterial } from 'three/webgpu';
|
|
2
|
-
import { DIVEModel } from '../model/Model.ts';
|
|
3
|
-
import { GeometrySchema } from '../../types/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* A basic model class.
|
|
6
|
-
*
|
|
7
|
-
* It does calculate it's own bounding box which is used for positioning on the floor.
|
|
8
|
-
*
|
|
9
|
-
* Can be moved and selected.
|
|
10
|
-
*
|
|
11
|
-
* @module
|
|
12
|
-
*/
|
|
13
|
-
export declare class DIVEPrimitive extends DIVEModel {
|
|
14
|
-
readonly isDIVEPrimitive: true;
|
|
15
|
-
protected _mesh: Mesh;
|
|
16
|
-
protected _material: MeshStandardMaterial;
|
|
17
|
-
constructor();
|
|
18
|
-
setGeometry(geometry: GeometrySchema): void;
|
|
19
|
-
private assembleGeometry;
|
|
20
|
-
private createCylinderGeometry;
|
|
21
|
-
private createSphereGeometry;
|
|
22
|
-
private createPyramidGeometry;
|
|
23
|
-
private createBoxGeometry;
|
|
24
|
-
private createConeGeometry;
|
|
25
|
-
private createWallGeometry;
|
|
26
|
-
private createPlaneGeometry;
|
|
27
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Box3, Object3D } from 'three/webgpu';
|
|
2
|
-
import { EntitySchema, EntityTypeSchema, MinimalSchema, PartialSchema } from '../../index.ts';
|
|
3
|
-
import { DIVESceneObject } from '../../types/index.ts';
|
|
4
|
-
import { DIVEFloor } from '../floor/Floor.ts';
|
|
5
|
-
/**
|
|
6
|
-
* A basic scene node to hold grid, floor and all lower level roots.
|
|
7
|
-
*
|
|
8
|
-
* @module
|
|
9
|
-
*/
|
|
10
|
-
export declare class DIVERoot extends Object3D {
|
|
11
|
-
readonly isDIVERoot: true;
|
|
12
|
-
get floor(): DIVEFloor;
|
|
13
|
-
private _floor;
|
|
14
|
-
constructor();
|
|
15
|
-
computeSceneBB(): Box3;
|
|
16
|
-
getSceneObject<E extends EntityTypeSchema>(object: Partial<EntitySchema> & {
|
|
17
|
-
id: string;
|
|
18
|
-
entityType: E;
|
|
19
|
-
}): DIVESceneObject<E> | undefined;
|
|
20
|
-
addSceneObject(object: EntitySchema): Promise<DIVESceneObject | undefined>;
|
|
21
|
-
updateSceneObject(object: PartialSchema): Promise<void>;
|
|
22
|
-
deleteSceneObject(object: MinimalSchema<EntitySchema>): void;
|
|
23
|
-
private _updateLight;
|
|
24
|
-
private _updateModel;
|
|
25
|
-
private _updatePrimitive;
|
|
26
|
-
private _updateGroup;
|
|
27
|
-
private _deleteLight;
|
|
28
|
-
private _deleteModel;
|
|
29
|
-
private _deletePrimitive;
|
|
30
|
-
private _deleteGroup;
|
|
31
|
-
private _setParent;
|
|
32
|
-
private _detachTransformControls;
|
|
33
|
-
private _findScene;
|
|
34
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ColorRepresentation, Sprite } from 'three/webgpu';
|
|
2
|
-
/**
|
|
3
|
-
* A camera facing text label.
|
|
4
|
-
*
|
|
5
|
-
* The text is rasterized to a canvas and applied to a sprite, so the label always
|
|
6
|
-
* faces the camera while keeping a constant height in world units.
|
|
7
|
-
*
|
|
8
|
-
* @module
|
|
9
|
-
*/
|
|
10
|
-
export declare class DIVESpriteText extends Sprite {
|
|
11
|
-
readonly isDIVESpriteText: true;
|
|
12
|
-
private _text;
|
|
13
|
-
private _textHeight;
|
|
14
|
-
private _color;
|
|
15
|
-
private _canvas;
|
|
16
|
-
private _texture;
|
|
17
|
-
constructor(text: string, textHeight?: number, color?: ColorRepresentation);
|
|
18
|
-
setText(text: string): void;
|
|
19
|
-
setTextHeight(textHeight: number): void;
|
|
20
|
-
setColor(color: ColorRepresentation): void;
|
|
21
|
-
dispose(): void;
|
|
22
|
-
/**
|
|
23
|
-
* Rasterizes the text to the canvas and scales the sprite to the resulting
|
|
24
|
-
* aspect ratio, so the label's height matches its text height in world units.
|
|
25
|
-
*/
|
|
26
|
-
private _draw;
|
|
27
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { PerspectiveCamera } from 'three/webgpu';
|
|
2
|
-
export type DIVEPerspectiveCameraSettings = {
|
|
3
|
-
/** Field of view in degrees */
|
|
4
|
-
fov: number;
|
|
5
|
-
/** Near clipping plane */
|
|
6
|
-
near: number;
|
|
7
|
-
/** Far clipping plane */
|
|
8
|
-
far: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const DIVEPerspectiveCameraDefaultSettings: Required<DIVEPerspectiveCameraSettings>;
|
|
11
|
-
/**
|
|
12
|
-
* A Perspective camera. Can change the layer mask to show different objects.
|
|
13
|
-
*
|
|
14
|
-
* @module
|
|
15
|
-
*/
|
|
16
|
-
export declare class DIVEPerspectiveCamera extends PerspectiveCamera {
|
|
17
|
-
readonly isDIVEPerspectiveCamera: true;
|
|
18
|
-
static readonly EDITOR_VIEW_LAYER_MASK: number;
|
|
19
|
-
static readonly LIVE_VIEW_LAYER_MASK = 16;
|
|
20
|
-
onSetCameraLayer: (mask: number) => void;
|
|
21
|
-
constructor(settings?: Partial<DIVEPerspectiveCameraSettings>);
|
|
22
|
-
onResize(width: number, height: number): void;
|
|
23
|
-
setCameraLayer(layer: 'LIVE' | 'EDITOR'): void;
|
|
24
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FileType } from '../../types/file/index.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Checks if a file extension is supported
|
|
4
|
-
* @param extension The file extension to check
|
|
5
|
-
* @returns True if the extension is supported, false otherwise
|
|
6
|
-
*
|
|
7
|
-
* @deprecated Use isFileExtensionSupported instead
|
|
8
|
-
*/
|
|
9
|
-
export declare function isFileTypeSupported(extension: string): extension is FileType;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { StateData } from '../../../state/index.ts';
|
|
2
|
-
import { QuickViewSettings } from '../../types/QuickViewSettings.ts';
|
|
3
|
-
import { QuickViewWithState } from '../../types/index.ts';
|
|
4
|
-
export declare const QuickViewState: (sceneData: StateData, settings?: Partial<QuickViewSettings>) => Promise<QuickViewWithState>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
-
export declare const PlaceOnFloorAction: new (payload: {
|
|
4
|
-
id: string;
|
|
5
|
-
}, dependencies: Pick<ActionDependencies, "registered" | "engine">) => Action<{
|
|
6
|
-
id: string;
|
|
7
|
-
}, Pick<ActionDependencies, "registered" | "engine">, void>;
|
|
8
|
-
declare global {
|
|
9
|
-
interface ActionTypes {
|
|
10
|
-
PLACE_ON_FLOOR: typeof PlaceOnFloorAction;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Action } from '../action.ts';
|
|
2
|
-
import { ActionDependencies } from '../../../types/index.ts';
|
|
3
|
-
import { StateData } from '../../../types/StateData.ts';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated use [`GetStateAction`](../state/getstate.ts) instead. This action will be removed in next major release.
|
|
6
|
-
*/
|
|
7
|
-
export declare const GetAllSceneDataAction: new (payload: object, dependencies: Pick<ActionDependencies, "registered" | "engine" | "controller">) => Action<object, Pick<ActionDependencies, "registered" | "engine" | "controller">, StateData>;
|
|
8
|
-
declare global {
|
|
9
|
-
interface ActionTypes {
|
|
10
|
-
GET_ALL_SCENE_DATA: typeof GetAllSceneDataAction;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|