@realsee/five 5.0.0-alpha.18 → 5.0.0-alpha.181
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 +21 -11
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/{images/icons.png → icons.png} +0 -0
- package/docs/assets/{images/icons@2x.png → icons@2x.png} +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1414 -0
- package/docs/assets/{images/widgets.png → widgets.png} +0 -0
- package/docs/assets/{images/widgets@2x.png → widgets@2x.png} +0 -0
- package/docs/classes/five.AnimationFrameLoop.html +15 -0
- package/docs/classes/five.BVH.html +10 -0
- package/docs/classes/five.BVHIntersect.html +1 -0
- package/docs/classes/five.BVHNode.html +7 -0
- package/docs/classes/five.BVHVector3.html +1 -0
- package/docs/classes/five.Camera.html +11 -0
- package/docs/classes/five.Clipper.html +1 -0
- package/docs/classes/five.Five.html +328 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -0
- package/docs/classes/five.IntersectMesh.html +1 -0
- package/docs/classes/five.Model.html +89 -0
- package/docs/classes/five.NetworkSubscribe.html +50 -0
- package/docs/classes/five.PBMContainer.html +17 -0
- package/docs/classes/five.PBMGroup.html +19 -0
- package/docs/classes/five.PBMMaterial.html +27 -0
- package/docs/classes/five.PBMMesh.html +7 -0
- package/docs/classes/five.PanoCircleMesh.html +7 -0
- package/docs/classes/five.PanoCircleMeshCustom.html +7 -0
- package/docs/classes/five.PanoCircleMeshSolid.html +7 -0
- package/docs/classes/five.Scene.html +3 -0
- package/docs/classes/five.Subscribe.html +56 -0
- package/docs/classes/five.TextureLoader.html +1 -0
- package/docs/classes/five.Tile3D.html +34 -0
- package/docs/classes/five.Tile3DModel.html +15 -0
- package/docs/classes/five.TileBoundingSphere.html +1 -0
- package/docs/classes/five.TileCacheNode.html +1 -0
- package/docs/classes/five.TileCubeTextureTarget.html +1 -0
- package/docs/classes/five.TileCullingVolume.html +1 -0
- package/docs/classes/five.TileOrientedBoundingBox.html +1 -0
- package/docs/classes/five.TileRequestScheduler.html +16 -0
- package/docs/classes/five.Tileset3D.html +11 -0
- package/docs/classes/five.Tileset3DTraverser.html +1 -0
- package/docs/classes/five.TilesetCache.html +1 -0
- package/docs/classes/five.Work.html +32 -0
- package/docs/classes/five.XRButton.html +1 -0
- package/docs/classes/gltf_loader.DDSLoader.html +1 -0
- package/docs/classes/gltf_loader.DRACOLoader.html +1 -0
- package/docs/classes/gltf_loader.GLTFLoader.html +17 -0
- package/docs/classes/gltf_loader.GLTFObject.html +7 -0
- package/docs/classes/gltf_loader.GLTFParser.html +1 -0
- package/docs/classes/gltf_loader.THREEGLTFLoader.html +1 -0
- package/docs/classes/line.Line.html +1 -0
- package/docs/classes/line.LineGeometry.html +1 -0
- package/docs/classes/line.LineMaterial.html +1 -0
- package/docs/classes/line.LineSegmentsGeometry.html +1 -0
- package/docs/classes/line.THREE_Line2.html +1 -0
- package/docs/classes/line.THREE_LineSegments2.html +1 -0
- package/docs/classes/react.Store.html +29 -0
- package/docs/classes/server.BVH.html +10 -0
- package/docs/classes/server.BVHIntersect.html +1 -0
- package/docs/classes/server.BVHNode.html +7 -0
- package/docs/classes/server.BVHVector3.html +1 -0
- package/docs/classes/server.Model.html +70 -0
- package/docs/classes/server.PBMContainer.html +7 -0
- package/docs/classes/server.PBMGroup.html +9 -0
- package/docs/classes/server.PBMMesh.html +7 -0
- package/docs/classes/sticker.Sticker.html +32 -0
- package/docs/classes/vfx.Airflow.html +1 -0
- package/docs/classes/vfx.Flame.html +1 -0
- package/docs/classes/vfx.Particle.html +89 -0
- package/docs/classes/vfx.SpotLight.html +1 -0
- package/docs/index.html +166 -434
- package/docs/interfaces/five.AddableObject.html +9 -0
- package/docs/interfaces/five.AnimationFrame.html +1 -0
- package/docs/interfaces/five.CameraPose.html +1 -0
- package/docs/interfaces/five.ClipperParameter.html +1 -0
- package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +28 -0
- package/docs/interfaces/five.EventCallback.html +400 -0
- package/docs/interfaces/five.FiveInitArgs.html +109 -0
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +17 -0
- package/docs/interfaces/five.ImageOptions.html +18 -0
- package/docs/interfaces/five.ImageURLMappings.html +1 -0
- package/docs/interfaces/five.ImageURLOptions.html +15 -0
- package/docs/interfaces/five.IntersectMeshInterface.html +3 -0
- package/docs/interfaces/five.Intersection.html +7 -0
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +15 -0
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.ModelEventCallback.html +22 -0
- package/docs/interfaces/five.MotionKeyframe.html +1 -0
- package/docs/interfaces/five.MovePanoOptions.html +42 -0
- package/docs/interfaces/five.NetworkOptions.html +9 -0
- package/docs/interfaces/five.PBMPanoPicture.html +7 -0
- package/docs/interfaces/five.PBMParameters.html +27 -0
- package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +1 -0
- package/docs/interfaces/five.PanoCircleMeshInterface.html +19 -0
- package/docs/interfaces/five.PanoCircleMeshOptions.html +1 -0
- package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +1 -0
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +35 -0
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.Pose.html +37 -0
- package/docs/interfaces/five.Scissor.html +14 -0
- package/docs/interfaces/five.State.html +21 -0
- package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.off.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.on.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.once.html +1 -0
- package/docs/interfaces/five.TextureOptions.html +20 -0
- package/docs/interfaces/five.Tile3DModelLoaderOptions.html +3 -0
- package/docs/interfaces/five.TileBoundingVolume.html +19 -0
- package/docs/interfaces/five.TileContent.html +1 -0
- package/docs/interfaces/five.TileCubeNode.html +1 -0
- package/docs/interfaces/five.TileCubeTree.html +1 -0
- package/docs/interfaces/five.Tileset3dOptions.html +1 -0
- package/docs/interfaces/five.TilesetJSON.html +1 -0
- package/docs/interfaces/five.TilesetJSONNode.html +1 -0
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +9 -0
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +31 -0
- package/docs/interfaces/five.WebXRSelectParams.html +1 -0
- package/docs/interfaces/five.WorkCubeImage.html +13 -0
- package/docs/interfaces/five.WorkImage.html +21 -0
- package/docs/interfaces/five.WorkInitial.html +13 -0
- package/docs/interfaces/five.WorkModel.html +11 -0
- package/docs/interfaces/five.WorkModelTiles.html +3 -0
- package/docs/interfaces/five.WorkObserver.html +25 -0
- package/docs/interfaces/five.WorkTile.html +1 -0
- package/docs/interfaces/five.WorkVideo.html +9 -0
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +31 -0
- package/docs/interfaces/gltf_loader.DDS.html +1 -0
- package/docs/interfaces/gltf_loader.GLTF.html +7 -0
- package/docs/interfaces/gltf_loader.GLTFReference.html +1 -0
- package/docs/interfaces/gltf_loader.THREEGLTF.html +1 -0
- package/docs/interfaces/react.FiveActionReactCallbacks.html +52 -0
- package/docs/interfaces/react.FiveInjectionTypes.html +181 -0
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -0
- package/docs/interfaces/server.Intersection.html +7 -0
- package/docs/interfaces/server.ModelEventCallback.html +18 -0
- package/docs/interfaces/sticker.IntersectionLike.html +8 -0
- package/docs/interfaces/vfx.ParticleArgs.html +75 -0
- package/docs/interfaces/vfx.ParticleTweenKeyframe.html +1 -0
- package/docs/interfaces/vue.FiveActionVueCallbacks.html +60 -0
- package/docs/modules/five.SubscribeMixinType.html +1 -0
- package/docs/modules/five.html +479 -3002
- package/docs/modules/gltf_loader.html +1 -155
- package/docs/modules/line.html +1 -202
- package/docs/modules/react.html +130 -1507
- package/docs/modules/server.html +18 -526
- package/docs/modules/sticker.html +1 -151
- package/docs/modules/vfx.html +1 -0
- package/docs/modules/vue.html +115 -0
- package/docs/modules.html +1 -136
- package/exporters/staticify.js +210 -0
- package/five/index.d.ts +1416 -285
- package/five/index.js +362 -1
- package/gltf-loader/index.d.ts +90 -5
- package/gltf-loader/index.js +260 -1
- package/line/index.d.ts +15 -2
- package/line/index.js +260 -1
- package/package.json +12 -15
- package/react/index.d.ts +73 -72
- package/react/index.js +260 -1
- package/resource/{basis_transcoder.js → basis/basis_transcoder.js} +0 -0
- package/resource/{basis_transcoder.wasm → basis/basis_transcoder.wasm} +0 -0
- package/resource/{draco_decoder.js → gltf/draco_decoder.js} +0 -0
- package/resource/{draco_decoder.wasm → gltf/draco_decoder.wasm} +0 -0
- package/resource/{draco_wasm_wrapper.js → gltf/draco_wasm_wrapper.js} +0 -0
- package/scripts/five-staticify.js +26 -0
- package/server/index.d.ts +219 -27
- package/server/index.js +357 -1
- package/sticker/index.d.ts +2 -1
- package/sticker/index.js +260 -1
- package/templates/quick-start/README.md +1 -1
- package/templates/quick-start/package.json +1 -1
- package/umd/five-gltf-loader.js +1 -2
- package/umd/five-line.js +1 -2
- package/umd/five-react.js +1 -2
- package/umd/five-sticker.js +1 -2
- package/umd/five-vfx.js +1 -0
- package/umd/five-vue.js +1 -0
- package/umd/five.js +1 -1
- package/umd/five.js.LICENSE.txt +58 -118
- package/vfx/index.d.ts +264 -0
- package/vfx/index.js +260 -0
- package/vue/index.d.ts +441 -0
- package/vue/index.js +260 -0
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/five.camera.html +0 -323
- package/docs/classes/five.five-1.html +0 -2670
- package/docs/classes/five.hashcubetexture.html +0 -252
- package/docs/classes/five.internalwebglrenderer.html +0 -212
- package/docs/classes/five.model.html +0 -982
- package/docs/classes/five.pbmgroup.html +0 -427
- package/docs/classes/five.pbmmaterial.html +0 -533
- package/docs/classes/five.pbmmesh.html +0 -254
- package/docs/classes/five.scene.html +0 -263
- package/docs/classes/five.subscribe.html +0 -569
- package/docs/classes/gltf_loader.gltfloader.html +0 -412
- package/docs/classes/gltf_loader.gltfobject.html +0 -287
- package/docs/classes/line.line-1.html +0 -381
- package/docs/classes/line.linegeometry.html +0 -524
- package/docs/classes/line.linematerial.html +0 -300
- package/docs/classes/line.linesegmentsgeometry.html +0 -471
- package/docs/classes/react.store.html +0 -605
- package/docs/classes/server.model.html +0 -823
- package/docs/classes/server.pbmgroup.html +0 -366
- package/docs/classes/server.pbmmesh.html +0 -335
- package/docs/classes/sticker.sticker-1.html +0 -465
- package/docs/interfaces/five.addableobject.html +0 -234
- package/docs/interfaces/five.depthpanoramacontrollercustominitargs.html +0 -420
- package/docs/interfaces/five.eventcallback.html +0 -2548
- package/docs/interfaces/five.fiveinitargs.html +0 -707
- package/docs/interfaces/five.floorplancontrollercustominitargs.html +0 -295
- package/docs/interfaces/five.imageoptions.html +0 -332
- package/docs/interfaces/five.intersection.html +0 -227
- package/docs/interfaces/five.intersectmeshinterface.html +0 -188
- package/docs/interfaces/five.modelcontrollercustominitargs.html +0 -366
- package/docs/interfaces/five.modeleventcallback.html +0 -367
- package/docs/interfaces/five.movepanooptions.html +0 -469
- package/docs/interfaces/five.panocirclemeshinterface.html +0 -361
- package/docs/interfaces/five.panoramacontrollercustominitargs.html +0 -464
- package/docs/interfaces/five.panoramalikecontrollercustominitargs.html +0 -364
- package/docs/interfaces/five.pbmparameters.html +0 -474
- package/docs/interfaces/five.pose.html +0 -270
- package/docs/interfaces/five.scissor.html +0 -252
- package/docs/interfaces/five.state.html +0 -300
- package/docs/interfaces/five.subscribemixintype.emit.html +0 -180
- package/docs/interfaces/five.subscribemixintype.haslistener.html +0 -171
- package/docs/interfaces/five.subscribemixintype.off.html +0 -198
- package/docs/interfaces/five.subscribemixintype.on.html +0 -213
- package/docs/interfaces/five.subscribemixintype.once.html +0 -210
- package/docs/interfaces/five.topviewcontrollercustominitargs.html +0 -226
- package/docs/interfaces/five.vrpanoramacontrollercustominitargs.html +0 -452
- package/docs/interfaces/gltf_loader.gltf.html +0 -304
- package/docs/interfaces/react.fiveactionreactcallbacks.html +0 -580
- package/docs/interfaces/react.fiveinjectiontypes.html +0 -1625
- package/docs/interfaces/react.injectfivetoprops.html +0 -280
- package/docs/interfaces/server.intersection.html +0 -308
- package/docs/interfaces/server.modeleventcallback.html +0 -409
- package/docs/interfaces/sticker.intersectionlike.html +0 -223
- package/docs/modules/five.subscribemixintype.html +0 -143
- package/scripts/export-five-resource/chfs.exe +0 -0
- package/scripts/export-five-resource/fileify.js +0 -192
- package/scripts/export-five-resource/format-work.js +0 -71
- package/scripts/export-five-resource/staticify.js +0 -327
- package/scripts/transcode-model/BufferGeometryUtils.js +0 -832
- package/scripts/transcode-model/LoaderSupport.js +0 -1545
- package/scripts/transcode-model/MTLLoader.js +0 -602
- package/scripts/transcode-model/OBJLoader2.js +0 -1470
- package/scripts/transcode-model/obj2pbm.js +0 -65
package/five/index.d.ts
CHANGED
|
@@ -1,24 +1,169 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Matrix3 } from 'three';
|
|
2
|
+
import { Matrix4 } from 'three';
|
|
3
|
+
import { Plane } from 'three';
|
|
3
4
|
import * as THREE_2 from 'three';
|
|
5
|
+
import { Vector3 } from 'three';
|
|
4
6
|
|
|
5
7
|
export declare interface AddableObject extends THREE_2.Object3D {
|
|
8
|
+
/** 是否需要渲染一次 */
|
|
6
9
|
needsRender?: boolean;
|
|
10
|
+
/** 动画 */
|
|
7
11
|
mixer?: THREE_2.AnimationMixer;
|
|
12
|
+
/** 设置当前分辨率 */
|
|
8
13
|
setResolution?(width: number, height: number): void;
|
|
14
|
+
/** 设置当前时间 */
|
|
15
|
+
setTime?(time: number): void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare interface AnimationFrame {
|
|
19
|
+
callback: (time: number, deltaTime: number, ...args: any[]) => void;
|
|
20
|
+
once: boolean;
|
|
21
|
+
delay: number;
|
|
22
|
+
order: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare class AnimationFrameLoop {
|
|
26
|
+
private frames;
|
|
27
|
+
private time;
|
|
28
|
+
private stoped;
|
|
29
|
+
private context?;
|
|
30
|
+
private requestId;
|
|
31
|
+
private static sharedInstance?;
|
|
32
|
+
static get shared(): AnimationFrameLoop;
|
|
33
|
+
static getFrameTime(): number;
|
|
34
|
+
constructor();
|
|
35
|
+
private loop;
|
|
36
|
+
setContext(context: any): void;
|
|
37
|
+
getContext(): any;
|
|
38
|
+
private requestAnimationFrame;
|
|
39
|
+
private cancelAnimationFrame;
|
|
40
|
+
private remove;
|
|
41
|
+
/**
|
|
42
|
+
* 添加到动画循环
|
|
43
|
+
* @param callback - 动画循环回调
|
|
44
|
+
* @param once - 是否只回调一次
|
|
45
|
+
* @param delay - 延迟多少个动画循环回调
|
|
46
|
+
* @param order - 优先级,数字越小越早被调用
|
|
47
|
+
* @returns 移除动画循环函数
|
|
48
|
+
*/
|
|
49
|
+
add(callback: AnimationFrame["callback"], once?: boolean, delay?: number, order?: number): () => void;
|
|
50
|
+
disponse(): void;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare class BVH {
|
|
54
|
+
trianglesArray?: Float32Array;
|
|
55
|
+
offsetArray?: Uint32Array;
|
|
56
|
+
rootNode?: BVHNode;
|
|
57
|
+
create(trianglesArray: Float32Array): this;
|
|
58
|
+
splitNode(maxTrianglesPerNode: number): this;
|
|
59
|
+
/**
|
|
60
|
+
* 计算射线与三角形的碰撞
|
|
61
|
+
* @param rayOrigin - 射线的原点坐标
|
|
62
|
+
* @param rayDirection - 设想的方向向量
|
|
63
|
+
* @param backfaceCulling - 是否背面剔除
|
|
64
|
+
* @return 碰撞焦点数组
|
|
65
|
+
*/
|
|
66
|
+
intersectRay(rayOrigin: BVHVector3, rayDirection: BVHVector3, backfaceCulling: boolean): BVHIntersect[];
|
|
67
|
+
dispose(): void;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export declare class BVHIntersect {
|
|
71
|
+
triangle: [BVHVector3, BVHVector3, BVHVector3];
|
|
72
|
+
intersectionPoint: BVHVector3;
|
|
73
|
+
constructor(triangle: [BVHVector3, BVHVector3, BVHVector3], intersectionPoint: BVHVector3);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* A node in the BVH structure
|
|
78
|
+
* @param extents - the min coords of this node's bounding box
|
|
79
|
+
* @param startIndex - an index in the bbox array, where the first element of this node is located
|
|
80
|
+
* @param endIndex - an index in the bbox array, where the last of this node is located, plus 1 (meaning that its non-inclusive).
|
|
81
|
+
* @param level - distance of this node from the root for the bvh tree. root node has level=0, its children have level=1 etc.
|
|
82
|
+
*/
|
|
83
|
+
export declare class BVHNode {
|
|
84
|
+
extents: ArrayLike<number>;
|
|
85
|
+
startIndex: number;
|
|
86
|
+
endIndex: number;
|
|
87
|
+
node0?: BVHNode;
|
|
88
|
+
node1?: BVHNode;
|
|
89
|
+
constructor(extents: ArrayLike<number>, startIndex: number, endIndex: number);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export declare class BVHVector3 {
|
|
93
|
+
x: number;
|
|
94
|
+
y: number;
|
|
95
|
+
z: number;
|
|
96
|
+
constructor(x: number, y: number, z: number);
|
|
97
|
+
copy(v: BVHVector3): this;
|
|
98
|
+
set(x: number, y: number, z: number): this;
|
|
99
|
+
fromArray(array: number[], firstElementPos?: number): this;
|
|
100
|
+
add(v: BVHVector3): this;
|
|
101
|
+
multiplyScalar(scalar: number): this;
|
|
102
|
+
subVectors(a: BVHVector3, b: BVHVector3): this;
|
|
103
|
+
dot(v: BVHVector3): number;
|
|
104
|
+
cross(v: BVHVector3): this;
|
|
105
|
+
crossVectors(a: BVHVector3, b: BVHVector3): this;
|
|
106
|
+
clone(): BVHVector3;
|
|
9
107
|
}
|
|
10
108
|
|
|
11
109
|
/** Five 相机 */
|
|
12
|
-
export declare class Camera extends THREE_2.
|
|
110
|
+
export declare class Camera extends THREE_2.Camera {
|
|
111
|
+
fov: number;
|
|
112
|
+
aspect: number;
|
|
113
|
+
near: number;
|
|
114
|
+
far: number;
|
|
115
|
+
perspToOrtho: THREE_2.Vector2;
|
|
116
|
+
orthoDistance: number;
|
|
13
117
|
/** 相机姿态 */
|
|
14
|
-
pose:
|
|
15
|
-
|
|
118
|
+
pose: CameraPose;
|
|
119
|
+
private perspectiveCamera;
|
|
120
|
+
private orthographicCamera;
|
|
121
|
+
needsRender: boolean;
|
|
122
|
+
private lastValues;
|
|
123
|
+
constructor(fov: number, aspect?: number, near?: number, far?: number, perspToOrtho?: THREE_2.Vector2, orthoDistance?: number);
|
|
124
|
+
getDirection(target: THREE_2.Vector3): THREE_2.Vector3;
|
|
16
125
|
/** 通过相机参数反算姿态 */
|
|
17
|
-
computePose():
|
|
126
|
+
computePose(): this;
|
|
18
127
|
/** 设置相机姿态 */
|
|
19
|
-
setFromPose(pose: Partial<
|
|
128
|
+
setFromPose(pose: Partial<CameraPose>): this;
|
|
20
129
|
/** 拷贝相机姿态 */
|
|
21
|
-
copyPose():
|
|
130
|
+
copyPose(): CameraPose;
|
|
131
|
+
private computeProjectionMatrix;
|
|
132
|
+
setViewOffset(fullWidth: number, fullHeight: number, x: number, y: number, width: number, height: number): void;
|
|
133
|
+
clearViewOffset(): void;
|
|
134
|
+
updateProjectionMatrix(): void;
|
|
135
|
+
get perspectiveProjectionMatrix(): THREE_2.Matrix4;
|
|
136
|
+
get perspectiveProjectionMatrixInverse(): THREE_2.Matrix4;
|
|
137
|
+
get orthographicProjectionMatrix(): THREE_2.Matrix4;
|
|
138
|
+
get orthographicProjectionMatrixInverse(): THREE_2.Matrix4;
|
|
139
|
+
updateTime(_time: number, _deltaTime: number): void;
|
|
140
|
+
get isPerspectiveCamera(): boolean;
|
|
141
|
+
get isOrthographicCamera(): boolean;
|
|
142
|
+
copy(source: this, recursive?: boolean): this;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export declare interface CameraPose {
|
|
146
|
+
longitude: number;
|
|
147
|
+
latitude: number;
|
|
148
|
+
fov: number;
|
|
149
|
+
distance: number;
|
|
150
|
+
offset: THREE_2.Vector3;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export declare class Clipper {
|
|
154
|
+
numPlanes: number;
|
|
155
|
+
clipperPlanes: Float32Array | null;
|
|
156
|
+
clipperFloors: number[] | null;
|
|
157
|
+
private static sharedInstance?;
|
|
158
|
+
static get shared(): Clipper;
|
|
159
|
+
constructor();
|
|
160
|
+
update(clipperParameter: ClipperParameter | ClipperParameter[], camera: THREE_2.Camera): void;
|
|
161
|
+
private projectPlanes;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export declare interface ClipperParameter {
|
|
165
|
+
clippingBoxMatrix: THREE_2.Matrix4;
|
|
166
|
+
floorIndex?: number;
|
|
22
167
|
}
|
|
23
168
|
|
|
24
169
|
export declare type ControllerCustomInitTypes = {
|
|
@@ -28,6 +173,8 @@ export declare type ControllerCustomInitTypes = {
|
|
|
28
173
|
VRPanorama: VRPanoramaControllerCustomInitArgs;
|
|
29
174
|
Model: ModelControllerCustomInitArgs;
|
|
30
175
|
DepthPanorama: DepthPanoramaControllerCustomInitArgs;
|
|
176
|
+
Mapview: MapviewControllerCustomInitArgs;
|
|
177
|
+
XRPanorama: XRPanoramaControllerCustomInitArgs;
|
|
31
178
|
};
|
|
32
179
|
|
|
33
180
|
export declare type ControllerEventTypes = {
|
|
@@ -81,7 +228,7 @@ export declare type ControllerEventTypes = {
|
|
|
81
228
|
* 观察点位被选择
|
|
82
229
|
* @param panoIndex - 选择的点位
|
|
83
230
|
*/
|
|
84
|
-
panoSelected(panoIndex: number): void;
|
|
231
|
+
panoSelected(panoIndex: number | null): void;
|
|
85
232
|
/**
|
|
86
233
|
* 意图要移动到某个点位 可以通过 `return false` 阻止
|
|
87
234
|
* @param panoIndex - 图要移动到的点位下标
|
|
@@ -161,6 +308,7 @@ export declare type ControllerEventTypes = {
|
|
|
161
308
|
wantsGesture(type: GestureTypes, pointers: {
|
|
162
309
|
x: number;
|
|
163
310
|
y: number;
|
|
311
|
+
delta?: number;
|
|
164
312
|
}[], final: boolean): void | false;
|
|
165
313
|
/**
|
|
166
314
|
* 手势 触发
|
|
@@ -171,6 +319,7 @@ export declare type ControllerEventTypes = {
|
|
|
171
319
|
gesture(type: GestureTypes, pointers: {
|
|
172
320
|
x: number;
|
|
173
321
|
y: number;
|
|
322
|
+
delta?: number;
|
|
174
323
|
}[], final: boolean): void;
|
|
175
324
|
/**
|
|
176
325
|
* 意图要触发 pan 手势(滑动屏幕), 可以通过 `return false` 阻止
|
|
@@ -202,15 +351,17 @@ export declare type ControllerEventTypes = {
|
|
|
202
351
|
* 意图要触发 tap 手势(点击屏幕), 可以通过 `return false` 阻止
|
|
203
352
|
* @param raycaster - 点击对应的三维射线
|
|
204
353
|
* @param tapPosition - 点击对应的屏幕位置
|
|
354
|
+
* @param final - 是否手势结束
|
|
205
355
|
* @returns 可以通过 `return false` 阻止
|
|
206
356
|
*/
|
|
207
|
-
wantsTapGesture(raycaster: THREE_2.Raycaster, tapPosition: THREE_2.Vector2): void | false;
|
|
357
|
+
wantsTapGesture(raycaster: THREE_2.Raycaster, tapPosition: THREE_2.Vector2, final: boolean): void | false;
|
|
208
358
|
/**
|
|
209
359
|
* tap 手势(点击屏幕) 被触发
|
|
210
360
|
* @param raycaster - 点击对应的三维射线
|
|
211
361
|
* @param tapPosition - 点击对应的屏幕位置
|
|
362
|
+
* @param final - 是否手势结束
|
|
212
363
|
*/
|
|
213
|
-
tapGesture(raycaster: THREE_2.Raycaster, tapPosition: THREE_2.Vector2): void;
|
|
364
|
+
tapGesture(raycaster: THREE_2.Raycaster, tapPosition: THREE_2.Vector2, final: boolean): void;
|
|
214
365
|
/**
|
|
215
366
|
* 意图要触发 pinch 手势(双指缩放),可以通过 `return false` 阻止
|
|
216
367
|
* @param scale - 缩放数值
|
|
@@ -219,6 +370,23 @@ export declare type ControllerEventTypes = {
|
|
|
219
370
|
* @returns 可以通过 `return false` 阻止
|
|
220
371
|
*/
|
|
221
372
|
wantsPinchGesture(scale: number, nextFov: number, final: boolean): void | false;
|
|
373
|
+
/**
|
|
374
|
+
* 意图要触发 press 手势(长按屏幕), 可以通过 `return false` 阻止
|
|
375
|
+
* @param raycaster - 长按对应的三维射线
|
|
376
|
+
* @param tapPosition - 长按对应的屏幕位置
|
|
377
|
+
* @param duration - 长按持续时间
|
|
378
|
+
* @param final - 是否手势结束
|
|
379
|
+
* @returns 可以通过 `return false` 阻止
|
|
380
|
+
*/
|
|
381
|
+
wantsPressGesture(raycaster: THREE_2.Raycaster, tapPosition: THREE_2.Vector2, duration: number, isFinal: boolean): void | false;
|
|
382
|
+
/**
|
|
383
|
+
* tap 手势(点击屏幕) 被触发
|
|
384
|
+
* @param raycaster - 点击对应的三维射线
|
|
385
|
+
* @param tapPosition - 点击对应的屏幕位置
|
|
386
|
+
* @param duration - 长按持续时间
|
|
387
|
+
* @param final - 是否手势结束
|
|
388
|
+
*/
|
|
389
|
+
pressGesture(raycaster: THREE_2.Raycaster, tapPosition: THREE_2.Vector2, duration: number, isFinal: boolean): void;
|
|
222
390
|
/**
|
|
223
391
|
* pinch 手势(双指缩放) 被触发
|
|
224
392
|
* @param scale - 缩放数值
|
|
@@ -288,80 +456,49 @@ export declare type ControllerEventTypes = {
|
|
|
288
456
|
* @param panoIndex - 加载点位下标
|
|
289
457
|
* @param observer - 对应的 observer 详情
|
|
290
458
|
*/
|
|
291
|
-
textureLoaded(panoIndex: number, observer: WorkObserver): void;
|
|
459
|
+
textureLoaded(panoIndex: number, observer: WorkObserver, meta: (NetWorkMeta | null)[]): void;
|
|
292
460
|
/**
|
|
293
461
|
* 抛出错误
|
|
294
462
|
* @param error - 抛出错误
|
|
295
463
|
*/
|
|
296
464
|
error(error: Error): void;
|
|
465
|
+
/**
|
|
466
|
+
* webXR模式开始,webxr session完成坐标系矫正
|
|
467
|
+
*/
|
|
468
|
+
webXRSessionStart(): void;
|
|
469
|
+
/**
|
|
470
|
+
* webXR模式结束,webxr session销毁
|
|
471
|
+
*/
|
|
472
|
+
webXRSessionEnd(): void;
|
|
473
|
+
/**
|
|
474
|
+
* webXR模式结束,webxr session销毁
|
|
475
|
+
* axes代表控制杆,axes数组的0-1元素分别代表左控制器的左(-1)右(1),左控制器的上(-1)下(1),axes数组的2-3元素同理
|
|
476
|
+
*/
|
|
477
|
+
webXRSelected(type: WebXRSelectType, params?: Partial<WebXRSelectParams>): void;
|
|
297
478
|
};
|
|
298
479
|
|
|
480
|
+
/**
|
|
481
|
+
* URL 地址的转换
|
|
482
|
+
* @param source - url 原地址
|
|
483
|
+
* @param options - url 转换参数
|
|
484
|
+
* @returns url 转换结果
|
|
485
|
+
*/
|
|
486
|
+
export declare function defaultImageURLTransform(source: string, options: ImageURLOptions): string;
|
|
487
|
+
|
|
299
488
|
export declare interface DepthPanoramaControllerCustomInitArgs extends PanoramaLikeControllerCustomInitArgs {
|
|
300
489
|
/** 最远可移动观察点距离 */
|
|
301
490
|
maxAccessibleDistance?: number;
|
|
491
|
+
/**
|
|
492
|
+
* 点击地面观察点标识的判定范围
|
|
493
|
+
* @description
|
|
494
|
+
* 如果在判定范围内则确定去到目标点,
|
|
495
|
+
* 否则寻找点击位置方向最适合的点(可能会走到一个离相机更近的点)。
|
|
496
|
+
*/
|
|
497
|
+
panoTapTriggerRadius?: number;
|
|
302
498
|
/** 地面观察点标识自定义创建器 */
|
|
303
|
-
panoCircleMeshCreator?: () => PanoCircleMeshInterface;
|
|
499
|
+
panoCircleMeshCreator?: (panoIndex: number) => PanoCircleMeshInterface;
|
|
304
500
|
}
|
|
305
501
|
|
|
306
|
-
/**
|
|
307
|
-
* 动画变化曲线
|
|
308
|
-
*/
|
|
309
|
-
export declare const Easing: {
|
|
310
|
-
Linear: {
|
|
311
|
-
None: (amount: number) => number;
|
|
312
|
-
};
|
|
313
|
-
Quadratic: {
|
|
314
|
-
In: (amount: number) => number;
|
|
315
|
-
Out: (amount: number) => number;
|
|
316
|
-
InOut: (amount: number) => number;
|
|
317
|
-
};
|
|
318
|
-
Cubic: {
|
|
319
|
-
In: (amount: number) => number;
|
|
320
|
-
Out: (amount: number) => number;
|
|
321
|
-
InOut: (amount: number) => number;
|
|
322
|
-
};
|
|
323
|
-
Quartic: {
|
|
324
|
-
In: (amount: number) => number;
|
|
325
|
-
Out: (amount: number) => number;
|
|
326
|
-
InOut: (amount: number) => number;
|
|
327
|
-
};
|
|
328
|
-
Quintic: {
|
|
329
|
-
In: (amount: number) => number;
|
|
330
|
-
Out: (amount: number) => number;
|
|
331
|
-
InOut: (amount: number) => number;
|
|
332
|
-
};
|
|
333
|
-
Sinusoidal: {
|
|
334
|
-
In: (amount: number) => number;
|
|
335
|
-
Out: (amount: number) => number;
|
|
336
|
-
InOut: (amount: number) => number;
|
|
337
|
-
};
|
|
338
|
-
Exponential: {
|
|
339
|
-
In: (amount: number) => number;
|
|
340
|
-
Out: (amount: number) => number;
|
|
341
|
-
InOut: (amount: number) => number;
|
|
342
|
-
};
|
|
343
|
-
Circular: {
|
|
344
|
-
In: (amount: number) => number;
|
|
345
|
-
Out: (amount: number) => number;
|
|
346
|
-
InOut: (amount: number) => number;
|
|
347
|
-
};
|
|
348
|
-
Elastic: {
|
|
349
|
-
In: (amount: number) => number;
|
|
350
|
-
Out: (amount: number) => number;
|
|
351
|
-
InOut: (amount: number) => number;
|
|
352
|
-
};
|
|
353
|
-
Back: {
|
|
354
|
-
In: (amount: number) => number;
|
|
355
|
-
Out: (amount: number) => number;
|
|
356
|
-
InOut: (amount: number) => number;
|
|
357
|
-
};
|
|
358
|
-
Bounce: {
|
|
359
|
-
In: (amount: number) => number;
|
|
360
|
-
Out: (amount: number) => number;
|
|
361
|
-
InOut: (amount: number) => number;
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
|
|
365
502
|
/**
|
|
366
503
|
* Five 事件列表
|
|
367
504
|
* @description
|
|
@@ -382,19 +519,25 @@ export declare type EventTypes = Pick<ControllerEventTypes, typeof PROXY_CONTROL
|
|
|
382
519
|
*/
|
|
383
520
|
error(error: Error): void;
|
|
384
521
|
/**
|
|
385
|
-
*
|
|
522
|
+
* 准备加载 Work 数据
|
|
386
523
|
* @param input - 输入的 work
|
|
387
524
|
* @param work - 归一化的标准 work
|
|
388
525
|
* @param state - 加载时的姿态
|
|
389
526
|
*/
|
|
390
|
-
willLoad(input: any, work: Work, state: Omit<State, "offset">): void;
|
|
527
|
+
willLoad(input: any, work: Work, state: Omit<State, "offset" | "distance">): void;
|
|
391
528
|
/**
|
|
392
529
|
* 开始加载 Work 数据
|
|
393
530
|
* @param input - 输入的 work
|
|
394
531
|
* @param work - 归一化的标准 work
|
|
395
532
|
* @param state - 加载时的姿态
|
|
396
533
|
*/
|
|
397
|
-
load(input: any, work: Work, state: Omit<State, "offset">): void;
|
|
534
|
+
load(input: any, work: Work, state: Omit<State, "offset" | "distance">): void;
|
|
535
|
+
/**
|
|
536
|
+
* 加载完 Work 数据
|
|
537
|
+
* @param input - 输入的 work
|
|
538
|
+
* @param work - 归一化的标准 work
|
|
539
|
+
*/
|
|
540
|
+
loaded(input: any, work: Work): void;
|
|
398
541
|
/**
|
|
399
542
|
* 模型开始加载
|
|
400
543
|
* @param workModel - 归一化的标准 work 中的 model 值
|
|
@@ -496,13 +639,21 @@ export declare type EventTypes = Pick<ControllerEventTypes, typeof PROXY_CONTROL
|
|
|
496
639
|
* @param prevMode - 上本质是一个模态
|
|
497
640
|
* @param panoIndex - 初始化动画结束后的点位下标
|
|
498
641
|
* @param toPose - 初始化动画结束后的状态
|
|
642
|
+
* @param userAction - 是否用户触发
|
|
499
643
|
*/
|
|
500
|
-
modeChange(mode: Mode, prevMode: Mode, panoIndex: number, toPose: Pose): void;
|
|
644
|
+
modeChange(mode: Mode, prevMode: Mode, panoIndex: number, toPose: Pose, userAction: boolean): void;
|
|
501
645
|
/**
|
|
502
646
|
* 帮助元素显应的变换
|
|
503
647
|
* @param visible - 帮助元素的是否开启
|
|
504
648
|
*/
|
|
505
649
|
helpersVisibleChange(visible: boolean): void;
|
|
650
|
+
/**
|
|
651
|
+
* 网络资源分析
|
|
652
|
+
* @param source - 资源地址
|
|
653
|
+
* @param state - 状态
|
|
654
|
+
* @param detail - 详情
|
|
655
|
+
*/
|
|
656
|
+
network(source: string, type: NetworkType, state: NetworkState, detail: string): void;
|
|
506
657
|
/** five 被析构。 插件中请监听用于自身析构 */
|
|
507
658
|
dispose(): void;
|
|
508
659
|
};
|
|
@@ -521,6 +672,7 @@ export declare type EventTypes = Pick<ControllerEventTypes, typeof PROXY_CONTROL
|
|
|
521
672
|
* ```
|
|
522
673
|
*/
|
|
523
674
|
export declare class Five extends Subscribe<EventTypes> {
|
|
675
|
+
static get version(): string;
|
|
524
676
|
/**
|
|
525
677
|
* Five 的显示模式,可以通过 `five.changeMode` `five.setState` 来切换
|
|
526
678
|
* @description
|
|
@@ -531,6 +683,7 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
531
683
|
* Topview 户型图模式
|
|
532
684
|
* DepthPanorama 深度图游走模式
|
|
533
685
|
* VRPanorama VR眼镜模式
|
|
686
|
+
* XRPanorama VR硬件模式
|
|
534
687
|
* ```
|
|
535
688
|
*/
|
|
536
689
|
static Mode: Mirror<Mode>;
|
|
@@ -539,62 +692,6 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
539
692
|
* 请使用 `import { Line } from "@realsee/five/line"` 代替;
|
|
540
693
|
*/
|
|
541
694
|
static Line: any;
|
|
542
|
-
/** Five 的动画函数*/
|
|
543
|
-
static Easing: {
|
|
544
|
-
Linear: {
|
|
545
|
-
None: (amount: number) => number;
|
|
546
|
-
};
|
|
547
|
-
Quadratic: {
|
|
548
|
-
In: (amount: number) => number;
|
|
549
|
-
Out: (amount: number) => number;
|
|
550
|
-
InOut: (amount: number) => number;
|
|
551
|
-
};
|
|
552
|
-
Cubic: {
|
|
553
|
-
In: (amount: number) => number;
|
|
554
|
-
Out: (amount: number) => number;
|
|
555
|
-
InOut: (amount: number) => number;
|
|
556
|
-
};
|
|
557
|
-
Quartic: {
|
|
558
|
-
In: (amount: number) => number;
|
|
559
|
-
Out: (amount: number) => number;
|
|
560
|
-
InOut: (amount: number) => number;
|
|
561
|
-
};
|
|
562
|
-
Quintic: {
|
|
563
|
-
In: (amount: number) => number;
|
|
564
|
-
Out: (amount: number) => number;
|
|
565
|
-
InOut: (amount: number) => number;
|
|
566
|
-
};
|
|
567
|
-
Sinusoidal: {
|
|
568
|
-
In: (amount: number) => number;
|
|
569
|
-
Out: (amount: number) => number;
|
|
570
|
-
InOut: (amount: number) => number;
|
|
571
|
-
};
|
|
572
|
-
Exponential: {
|
|
573
|
-
In: (amount: number) => number;
|
|
574
|
-
Out: (amount: number) => number;
|
|
575
|
-
InOut: (amount: number) => number;
|
|
576
|
-
};
|
|
577
|
-
Circular: {
|
|
578
|
-
In: (amount: number) => number;
|
|
579
|
-
Out: (amount: number) => number;
|
|
580
|
-
InOut: (amount: number) => number;
|
|
581
|
-
};
|
|
582
|
-
Elastic: {
|
|
583
|
-
In: (amount: number) => number;
|
|
584
|
-
Out: (amount: number) => number;
|
|
585
|
-
InOut: (amount: number) => number;
|
|
586
|
-
};
|
|
587
|
-
Back: {
|
|
588
|
-
In: (amount: number) => number;
|
|
589
|
-
Out: (amount: number) => number;
|
|
590
|
-
InOut: (amount: number) => number;
|
|
591
|
-
};
|
|
592
|
-
Bounce: {
|
|
593
|
-
In: (amount: number) => number;
|
|
594
|
-
Out: (amount: number) => number;
|
|
595
|
-
InOut: (amount: number) => number;
|
|
596
|
-
};
|
|
597
|
-
};
|
|
598
695
|
/**
|
|
599
696
|
* 自动播放状态是否暂停
|
|
600
697
|
* @description
|
|
@@ -607,6 +704,8 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
607
704
|
currentMode?: Mode;
|
|
608
705
|
/** 内部使用的 `THREE.Scene` */
|
|
609
706
|
scene: Scene;
|
|
707
|
+
/** 内部使用的产生视差的物体Scene `THREE.Scene` */
|
|
708
|
+
parallaxScene: Scene;
|
|
610
709
|
/** 内部使用的 `Camera` */
|
|
611
710
|
camera: Camera;
|
|
612
711
|
/**
|
|
@@ -627,11 +726,9 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
627
726
|
* 如果初始化时传入了 `renderer` 则直接时该值
|
|
628
727
|
* 否则会通过 `preserveDrawingBuffer` `backgroundColor` `backgroundAlpha` `antialias` 创建一个 `THREE.WebGLRenderer`
|
|
629
728
|
*/
|
|
630
|
-
renderer
|
|
729
|
+
renderer?: THREE_2.WebGLRenderer;
|
|
631
730
|
/** 当前加载的模型 */
|
|
632
731
|
model: Model;
|
|
633
|
-
/** 当前加载的 work 数据 */
|
|
634
|
-
work?: Work;
|
|
635
732
|
/**
|
|
636
733
|
* 是否需要渲染
|
|
637
734
|
* @description
|
|
@@ -652,7 +749,7 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
652
749
|
* 可以动态对配置在 `work` 数据中的模型贴图在 runtime 做 url 调整。
|
|
653
750
|
* 平衡加载时间和图片质量
|
|
654
751
|
*/
|
|
655
|
-
textureOptions:
|
|
752
|
+
textureOptions: TextureOptions;
|
|
656
753
|
/**
|
|
657
754
|
* 模型贴图的配置参数
|
|
658
755
|
* @description
|
|
@@ -683,24 +780,56 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
683
780
|
plugins: {
|
|
684
781
|
[key: string]: FivePluginInstance<any>;
|
|
685
782
|
};
|
|
686
|
-
|
|
783
|
+
ident: string;
|
|
784
|
+
/** 包围盒子 */
|
|
785
|
+
private boundingMesh;
|
|
786
|
+
private stopAnimationLoop?;
|
|
787
|
+
private fps;
|
|
687
788
|
private helperGroup;
|
|
688
789
|
private modeChangeDuration;
|
|
689
790
|
private onlyRenderIfNeeds;
|
|
690
|
-
private
|
|
791
|
+
private poweredByRealsee;
|
|
691
792
|
private controller?;
|
|
692
793
|
private destroyed;
|
|
693
794
|
private stateSynced;
|
|
694
795
|
private controllerInits;
|
|
695
796
|
private panoramaLikeSavedPose;
|
|
696
797
|
private extraElements;
|
|
697
|
-
private moveToPanoQueue?;
|
|
698
798
|
private getPixelsRenderTarget;
|
|
699
|
-
private tweenCoordinates?;
|
|
700
799
|
private readyCallbacks;
|
|
701
800
|
private modelPending;
|
|
702
|
-
private
|
|
801
|
+
private syncingState;
|
|
802
|
+
/**
|
|
803
|
+
* 是否开启 IOS EDR 模式
|
|
804
|
+
* 需要客户端配合
|
|
805
|
+
* 并且开启 five.enablepostProcessing = true
|
|
806
|
+
*/
|
|
807
|
+
private _enableIOSEDR;
|
|
808
|
+
private lastLoadWorkTask;
|
|
809
|
+
private requestProxy;
|
|
810
|
+
private networkSubscribe;
|
|
811
|
+
private screenBuffers?;
|
|
812
|
+
private analysis?;
|
|
813
|
+
private renderSwitch01;
|
|
814
|
+
/**
|
|
815
|
+
* gpu_picking
|
|
816
|
+
*/
|
|
817
|
+
private gpuPickingRenderTarget;
|
|
818
|
+
private meshReplaceMaterialMap;
|
|
819
|
+
private meshOriginMaterialMap;
|
|
820
|
+
private copyEffect;
|
|
703
821
|
constructor(initArgs?: FiveInitArgs);
|
|
822
|
+
/**
|
|
823
|
+
* GPU Picking 获取选中的 mesh
|
|
824
|
+
* @param x - 屏幕坐标 x
|
|
825
|
+
* @param y - 屏幕坐标 y
|
|
826
|
+
* @param colorMap - 需要选取的 mesh 的颜色与 uuid 的映射
|
|
827
|
+
* @param modelColor - 指定的模型颜色
|
|
828
|
+
* @returns 选中 mesh 的 uuid
|
|
829
|
+
*/
|
|
830
|
+
getGPUPicking(x: number, y: number, colorMap: {
|
|
831
|
+
[key: string]: THREE_2.Color;
|
|
832
|
+
}, pixelRatio?: number, modelColor?: THREE_2.Vector3): string | false;
|
|
704
833
|
/**
|
|
705
834
|
* 析构 five 对象。
|
|
706
835
|
* @description
|
|
@@ -725,6 +854,19 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
725
854
|
*/
|
|
726
855
|
get helperVisible(): boolean;
|
|
727
856
|
set helperVisible(visible: boolean);
|
|
857
|
+
/**
|
|
858
|
+
* 是否开启 IOS EDR 模式
|
|
859
|
+
* 需要客户端配合
|
|
860
|
+
* 并且开启 five.enablepostProcessing = true
|
|
861
|
+
*/
|
|
862
|
+
get enableIOSEDR(): boolean;
|
|
863
|
+
set enableIOSEDR(enable: boolean);
|
|
864
|
+
/**
|
|
865
|
+
* 是否开启后处理
|
|
866
|
+
*/
|
|
867
|
+
get enablePostProcessing(): boolean;
|
|
868
|
+
set enablePostProcessing(enable: boolean);
|
|
869
|
+
updateConfiguration(args: Pick<FiveInitArgs, "panorama" | "model" | "floorplan" | "topview" | "mapview" | "depthPanorama" | "vrPanorama" | "imageOptions">): void;
|
|
728
870
|
/**
|
|
729
871
|
* 将显示区域加载到页面 DOM 中
|
|
730
872
|
* @description
|
|
@@ -771,9 +913,21 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
771
913
|
* 会 Promise.reject。运动完成则 Promise.resolve
|
|
772
914
|
* @param pose - 相机目标位置
|
|
773
915
|
* @param duration - 动画触发的时常
|
|
916
|
+
* @param userAction - 是否用户触发
|
|
774
917
|
* @returns Promise 是否移动成功
|
|
775
918
|
*/
|
|
776
|
-
updateCamera(pose: Partial<Pose
|
|
919
|
+
updateCamera(pose: Partial<Omit<Pose, "offset">>, duration: number, userAction?: boolean): Promise<void>;
|
|
920
|
+
/**
|
|
921
|
+
* 通过帧动画移动相机。(不触发点位移动)
|
|
922
|
+
* @description
|
|
923
|
+
* 如果动画中途被打断(用户触发行为,或者调用 setState, load, changeMode)的等
|
|
924
|
+
* 会 Promise.reject。运动完成则 Promise.resolve
|
|
925
|
+
* @param keyframes - 动画帧
|
|
926
|
+
* @param duration - 动画触发的时常
|
|
927
|
+
* @param userAction - 是否用户触发
|
|
928
|
+
* @returns Promise 是否移动成功
|
|
929
|
+
*/
|
|
930
|
+
updateCameraWithKeyframes(keyframes: MotionKeyframe<Exclude<keyof Pose, "offset">>[], duration: number, userAction?: boolean): Promise<void>;
|
|
777
931
|
/**
|
|
778
932
|
* 获取当前相机经纬度
|
|
779
933
|
* @deprecated 请使用使用 getPose
|
|
@@ -793,26 +947,8 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
793
947
|
phi: number;
|
|
794
948
|
lookAtVector: THREE_2.Vector3;
|
|
795
949
|
};
|
|
796
|
-
/**
|
|
797
|
-
|
|
798
|
-
* @description
|
|
799
|
-
* 同初始化的 initBasisLoader 参数。用于初始化 basisLoader。
|
|
800
|
-
* basisLoader 只会初始化一次,一旦初始化则不会再修改。
|
|
801
|
-
*
|
|
802
|
-
* @param transcoderResourcePath - basis 解析器路径
|
|
803
|
-
* 如果不设置,使用默认解析器 basis 解析器。
|
|
804
|
-
* 可以传入解析器的 `resourcePath`, 则使用指定的解析器
|
|
805
|
-
* @example
|
|
806
|
-
* ```
|
|
807
|
-
* // 使用默认解析器
|
|
808
|
-
* five.initialBasisLoader();
|
|
809
|
-
*
|
|
810
|
-
* // 使用指定解析器
|
|
811
|
-
* // 会调用这个目录下的 basis_transcoder.js basis_transcoder.wasm 文件作为解析器
|
|
812
|
-
* five.initialBasisLoader("https://vrlab-public.ljcdn.com/release/static/image/release/five/basis/");
|
|
813
|
-
* ```
|
|
814
|
-
*/
|
|
815
|
-
initBasisLoader(transcoderResourcePath?: string): void;
|
|
950
|
+
/** 当前加载的 work 数据 */
|
|
951
|
+
get work(): Work;
|
|
816
952
|
/**
|
|
817
953
|
* 加载 Work 数据
|
|
818
954
|
* @param inputWork - Work 数据
|
|
@@ -822,15 +958,17 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
822
958
|
* - State 自定义姿态
|
|
823
959
|
* @param duration - 切换时间
|
|
824
960
|
*/
|
|
825
|
-
load(inputWork: Work | LooseWork | any
|
|
961
|
+
load(inputWork: Work | LooseWork | any | Promise<Work | LooseWork | any>, state?: "inherit" | "initial" | Partial<Omit<State, "offset">>, duration?: number, userAction?: boolean): Promise<void>;
|
|
962
|
+
private load_;
|
|
826
963
|
/**
|
|
827
964
|
* 切换模态
|
|
828
965
|
* @param mode - 切换到的模态
|
|
829
966
|
* @param state - 切换完成时的姿态
|
|
830
967
|
* @param duration - 模态切换动画用时
|
|
831
968
|
* @param userAction - 是否时用户动作触发 默认 true
|
|
969
|
+
* @param force - 必须重新初始化 controller
|
|
832
970
|
*/
|
|
833
|
-
changeMode<T extends Mode>(mode: T, state?: Partial<Omit<State, "mode">>, duration?: number, userAction?: boolean): Promise<void>;
|
|
971
|
+
changeMode<T extends Mode>(mode: T, state?: Partial<Omit<State, "mode">>, duration?: number, userAction?: boolean, force?: boolean): Promise<void>;
|
|
834
972
|
/**
|
|
835
973
|
* 获取画面中的像素颜色
|
|
836
974
|
* @param x - 获取像素区域的起始坐标 x
|
|
@@ -844,11 +982,7 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
844
982
|
/**
|
|
845
983
|
* 获取显示用的画布(Canvas DOM节点)
|
|
846
984
|
*/
|
|
847
|
-
getElement(): HTMLCanvasElement;
|
|
848
|
-
/**
|
|
849
|
-
* 但停自动播放
|
|
850
|
-
*/
|
|
851
|
-
pause(): void;
|
|
985
|
+
getElement(): HTMLCanvasElement | undefined;
|
|
852
986
|
/**
|
|
853
987
|
* 强制渲染
|
|
854
988
|
* @description
|
|
@@ -860,7 +994,12 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
860
994
|
*
|
|
861
995
|
* @param callback - 渲染完成回调
|
|
862
996
|
*/
|
|
863
|
-
render(callback?: () => void, updateObjectResolution?: boolean):
|
|
997
|
+
render(callback?: () => void, updateObjectResolution?: boolean): THREE_2.WebGLRenderTarget;
|
|
998
|
+
updateTime(time: number, deltaTime: number, ...args: any[]): void;
|
|
999
|
+
/**
|
|
1000
|
+
* 但停自动播放
|
|
1001
|
+
*/
|
|
1002
|
+
pause(): void;
|
|
864
1003
|
play(): void;
|
|
865
1004
|
/**
|
|
866
1005
|
* 转化到 Panorama 模态,并移动到对应序号的观察点。
|
|
@@ -868,7 +1007,7 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
868
1007
|
* @param options - 移动点位参数
|
|
869
1008
|
* @param userAction - 是否用户触犯
|
|
870
1009
|
*/
|
|
871
|
-
moveToPano(panoIndex: number, options?: MovePanoOptions, userAction?: boolean): void
|
|
1010
|
+
moveToPano(panoIndex: number, options?: MovePanoOptions, userAction?: boolean): Promise<void>;
|
|
872
1011
|
/**
|
|
873
1012
|
* 预加载点位图片资源
|
|
874
1013
|
* @param panoIndex - 观察点序号
|
|
@@ -910,16 +1049,34 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
910
1049
|
* ```
|
|
911
1050
|
* @param state - 目标状态
|
|
912
1051
|
* @param immediately - 是否马上转换,马上转换会尽快达到目标状态,尽量减少中间状态,更少动画。
|
|
1052
|
+
* @param userAction - 是否是用户触发的动作
|
|
913
1053
|
*/
|
|
914
|
-
setState(state: Partial<State>, immediately?: boolean): void;
|
|
1054
|
+
setState(state: Partial<State>, immediately?: boolean, userAction?: boolean): void;
|
|
915
1055
|
aroundScissor(callback: () => void): void;
|
|
916
1056
|
private syncState;
|
|
917
|
-
|
|
1057
|
+
/**
|
|
1058
|
+
* 当前页面静态
|
|
1059
|
+
*/
|
|
1060
|
+
ready(args?: {
|
|
1061
|
+
tile?: boolean;
|
|
1062
|
+
}): Promise<void>;
|
|
1063
|
+
/**
|
|
1064
|
+
* 请求全屏
|
|
1065
|
+
*/
|
|
1066
|
+
requestFullscreen(): void;
|
|
1067
|
+
/**
|
|
1068
|
+
* 退出全屏
|
|
1069
|
+
*/
|
|
1070
|
+
exitFullscreen(): void;
|
|
918
1071
|
private throwError;
|
|
919
1072
|
private loadModel;
|
|
920
1073
|
private commonParams;
|
|
921
1074
|
private saveControllerPose;
|
|
922
1075
|
private applyController;
|
|
1076
|
+
/** 移除事件绑定 */
|
|
1077
|
+
private removeEventListeners;
|
|
1078
|
+
/** 销毁GPU Picking 所用的材质 */
|
|
1079
|
+
private diposeGPUPickingMaterial;
|
|
923
1080
|
}
|
|
924
1081
|
|
|
925
1082
|
/** Five 初始化参数 */
|
|
@@ -1005,7 +1162,7 @@ export declare interface FiveInitArgs {
|
|
|
1005
1162
|
* 可以动态对配置在 `work` 数据中的模型贴图在 runtime 做 url 调整。
|
|
1006
1163
|
* 平衡加载时间和图片质量
|
|
1007
1164
|
*/
|
|
1008
|
-
textureOptions?:
|
|
1165
|
+
textureOptions?: TextureOptions;
|
|
1009
1166
|
/**
|
|
1010
1167
|
* 是否按需渲染
|
|
1011
1168
|
* @description
|
|
@@ -1035,7 +1192,7 @@ export declare interface FiveInitArgs {
|
|
|
1035
1192
|
*
|
|
1036
1193
|
* // 使用指定解析器
|
|
1037
1194
|
* // 会调用这个目录下的 basis_transcoder.js basis_transcoder.wasm 文件作为解析器
|
|
1038
|
-
* initialBasisLoader: "https://
|
|
1195
|
+
* initialBasisLoader: "https://vr-public.realsee-cdn.cn/release/static/image/release/five/basis/"
|
|
1039
1196
|
* ```
|
|
1040
1197
|
*/
|
|
1041
1198
|
initialBasisLoader?: boolean | string;
|
|
@@ -1055,15 +1212,19 @@ export declare interface FiveInitArgs {
|
|
|
1055
1212
|
floorplan?: ControllerCustomInitTypes["Floorplan"];
|
|
1056
1213
|
/** 户型图模式下的特定参数 */
|
|
1057
1214
|
topview?: ControllerCustomInitTypes["Topview"];
|
|
1215
|
+
/** 地图模式下的特定参数 */
|
|
1216
|
+
mapview?: ControllerCustomInitTypes["Mapview"];
|
|
1058
1217
|
/** 深度图游走模式下的特定参数 */
|
|
1059
1218
|
depthPanorama?: ControllerCustomInitTypes["DepthPanorama"];
|
|
1060
1219
|
/** VR眼镜模式下的特定参数 */
|
|
1061
1220
|
vrPanorama?: ControllerCustomInitTypes["VRPanorama"];
|
|
1221
|
+
/** XR眼镜模式下的特定参数 */
|
|
1222
|
+
xrPanorama?: ControllerCustomInitTypes["XRPanorama"];
|
|
1062
1223
|
/**
|
|
1063
1224
|
* 模式间切换时的过度动画时间
|
|
1064
1225
|
* @description
|
|
1065
1226
|
* 单位毫秒
|
|
1066
|
-
* @default `
|
|
1227
|
+
* @default `800`
|
|
1067
1228
|
*/
|
|
1068
1229
|
modeChangeDuration?: number;
|
|
1069
1230
|
/**
|
|
@@ -1072,6 +1233,24 @@ export declare interface FiveInitArgs {
|
|
|
1072
1233
|
* 详见插件部分。
|
|
1073
1234
|
*/
|
|
1074
1235
|
plugins?: (FivePlugin<void> | FivePluginInit<FivePlugin<any, any>> | FivePluginInit<FivePlugin<void, any>>)[];
|
|
1236
|
+
/**
|
|
1237
|
+
* 是否展示 powered by 如视
|
|
1238
|
+
*/
|
|
1239
|
+
poweredByRealsee?: boolean;
|
|
1240
|
+
/**
|
|
1241
|
+
* 是否使用webgl2渲染执行环境, 默认值 false
|
|
1242
|
+
*/
|
|
1243
|
+
webgl2?: boolean;
|
|
1244
|
+
/**
|
|
1245
|
+
* 是否开启模型裁切
|
|
1246
|
+
*/
|
|
1247
|
+
localClippingEnabled?: boolean;
|
|
1248
|
+
/**
|
|
1249
|
+
* 请求代理
|
|
1250
|
+
* @param url - 发起的请求
|
|
1251
|
+
* @returns 返回的请求
|
|
1252
|
+
*/
|
|
1253
|
+
requestProxy?(url: string): string | Promise<string>;
|
|
1075
1254
|
}
|
|
1076
1255
|
|
|
1077
1256
|
/**
|
|
@@ -1116,48 +1295,75 @@ export declare interface FloorplanControllerCustomInitArgs {
|
|
|
1116
1295
|
maxFov?: number;
|
|
1117
1296
|
/** 最小相机可视角度 */
|
|
1118
1297
|
minFov?: number;
|
|
1298
|
+
/** 鼠标焦点环自定义创建器 */
|
|
1299
|
+
intersectMeshCreator?: () => IntersectMeshInterface;
|
|
1119
1300
|
}
|
|
1120
1301
|
|
|
1121
|
-
export declare type GestureTypes = "pan" | "tap" | "pinch" | "mouseWheel";
|
|
1302
|
+
export declare type GestureTypes = "pan" | "tap" | "pinch" | "press" | "mouseWheel";
|
|
1122
1303
|
|
|
1123
1304
|
export declare function getViewportScale(): number;
|
|
1124
1305
|
|
|
1125
|
-
export declare class HashCubeTexture extends THREE_2.CubeTexture {
|
|
1126
|
-
/** 识别哈希 */
|
|
1127
|
-
hash: string;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
1306
|
/**
|
|
1131
1307
|
* 图片参数
|
|
1132
1308
|
*/
|
|
1133
1309
|
export declare interface ImageOptions {
|
|
1134
|
-
key?: string;
|
|
1135
1310
|
/**
|
|
1136
1311
|
* url 地址转化
|
|
1137
1312
|
* @param url - 原始地址
|
|
1138
1313
|
* @param options - 当前地址参数
|
|
1139
1314
|
* @returns 转化后地址
|
|
1140
1315
|
*/
|
|
1141
|
-
transform?: (url: string, options:
|
|
1142
|
-
/** 图片尺寸参数 */
|
|
1316
|
+
transform?: (url: string, options: ImageURLOptions) => string;
|
|
1317
|
+
/** 图片尺寸参数 尽量使用 2 的幂次 如 512 1024 2048 */
|
|
1143
1318
|
size?: number;
|
|
1144
1319
|
/** 图片质量参数(0-100) */
|
|
1145
1320
|
quality?: number;
|
|
1146
|
-
/**
|
|
1147
|
-
format?:
|
|
1148
|
-
/**
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1321
|
+
/** 图片格式参数 */
|
|
1322
|
+
format?: "jpg" | "png" | "heif" | "webp" | "avif";
|
|
1323
|
+
/** 锐化参数 海外不支持 */
|
|
1324
|
+
sharpen?: number;
|
|
1325
|
+
mappings?: ImageURLMappings;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
export declare function imageSupport(): Promise<{
|
|
1329
|
+
avif: boolean;
|
|
1330
|
+
webp: boolean;
|
|
1331
|
+
}>;
|
|
1332
|
+
|
|
1333
|
+
export declare interface ImageURLMappings {
|
|
1334
|
+
[publicDomain: string]: {
|
|
1335
|
+
"pano": [string, string];
|
|
1336
|
+
"tile": [string, string];
|
|
1337
|
+
"texture": [string];
|
|
1338
|
+
"default": [string];
|
|
1339
|
+
};
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
export declare interface ImageURLOptions {
|
|
1343
|
+
/** 图片类型标识 */
|
|
1344
|
+
key: string;
|
|
1345
|
+
/** 图片尺寸参数 尽量使用 2 的幂次 如 256 512 1024 */
|
|
1346
|
+
size?: number;
|
|
1347
|
+
/** 图片质量参数(0-100) */
|
|
1348
|
+
quality?: number;
|
|
1349
|
+
/** 图片格式参数 */
|
|
1350
|
+
format?: "jpg" | "png" | "heif" | "webp" | "avif";
|
|
1351
|
+
/** 图片裁切 */
|
|
1352
|
+
cut?: [x: number, y: number, width: number, height: number];
|
|
1353
|
+
/** 锐化参数 海外不支持 */
|
|
1354
|
+
sharpen?: number;
|
|
1355
|
+
/** url匹配规则 */
|
|
1356
|
+
mappings?: ImageURLMappings;
|
|
1152
1357
|
}
|
|
1153
1358
|
|
|
1154
1359
|
export declare class InternalWebGLRenderer extends THREE_2.WebGLRenderer {
|
|
1155
|
-
constructor({ preserveDrawingBuffer, backgroundColor, backgroundAlpha, pixelRatio, antialias }: {
|
|
1360
|
+
constructor({ preserveDrawingBuffer, backgroundColor, backgroundAlpha, pixelRatio, antialias, webgl2, }: {
|
|
1156
1361
|
preserveDrawingBuffer?: boolean;
|
|
1157
1362
|
backgroundColor?: number | THREE_2.Color;
|
|
1158
1363
|
backgroundAlpha?: number;
|
|
1159
1364
|
pixelRatio?: number;
|
|
1160
1365
|
antialias?: boolean;
|
|
1366
|
+
webgl2?: boolean;
|
|
1161
1367
|
});
|
|
1162
1368
|
}
|
|
1163
1369
|
|
|
@@ -1172,6 +1378,15 @@ export declare interface Intersection {
|
|
|
1172
1378
|
distance: number;
|
|
1173
1379
|
}
|
|
1174
1380
|
|
|
1381
|
+
export declare class IntersectMesh extends THREE_2.Object3D implements IntersectMeshInterface {
|
|
1382
|
+
private ringMesh;
|
|
1383
|
+
constructor();
|
|
1384
|
+
dispose(): void;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* 地面提示点位接口
|
|
1389
|
+
*/
|
|
1175
1390
|
export declare interface IntersectMeshInterface extends THREE_2.Object3D {
|
|
1176
1391
|
dispose(): void;
|
|
1177
1392
|
}
|
|
@@ -1233,7 +1448,15 @@ export declare type LooseWorkPanorama = {
|
|
|
1233
1448
|
front: string;
|
|
1234
1449
|
back: string;
|
|
1235
1450
|
video?: LooseWorkVideo;
|
|
1236
|
-
|
|
1451
|
+
luminance?: {
|
|
1452
|
+
up: string;
|
|
1453
|
+
down: string;
|
|
1454
|
+
right: string;
|
|
1455
|
+
left: string;
|
|
1456
|
+
front: string;
|
|
1457
|
+
back: string;
|
|
1458
|
+
};
|
|
1459
|
+
tiles?: number[];
|
|
1237
1460
|
};
|
|
1238
1461
|
|
|
1239
1462
|
export declare type LooseWorkVideo = {
|
|
@@ -1242,6 +1465,23 @@ export declare type LooseWorkVideo = {
|
|
|
1242
1465
|
size: number[];
|
|
1243
1466
|
};
|
|
1244
1467
|
|
|
1468
|
+
export declare interface MapviewControllerCustomInitArgs {
|
|
1469
|
+
/** 默认偏航角 */
|
|
1470
|
+
defaultLongitude?: number;
|
|
1471
|
+
/** 默认俯仰角 */
|
|
1472
|
+
defaultLatitude?: number;
|
|
1473
|
+
/** 默认相机距离 */
|
|
1474
|
+
defaultDistance?: number;
|
|
1475
|
+
/** 最大俯仰角 */
|
|
1476
|
+
maxLatitude?: number;
|
|
1477
|
+
/** 最小俯仰角 */
|
|
1478
|
+
minLatitude?: number;
|
|
1479
|
+
/** 最大相机距离 */
|
|
1480
|
+
maxDistance?: number;
|
|
1481
|
+
/** 最小相机距离 */
|
|
1482
|
+
minDistance?: number;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1245
1485
|
export declare type Mirror<T extends string> = Record<T, T>;
|
|
1246
1486
|
|
|
1247
1487
|
/**
|
|
@@ -1250,6 +1490,7 @@ export declare type Mirror<T extends string> = Record<T, T>;
|
|
|
1250
1490
|
* - **Model**: 模型游走模式
|
|
1251
1491
|
* - **Floorplan**: 模型查看模式
|
|
1252
1492
|
* - **Topview**: 户型图模式
|
|
1493
|
+
* - **Mapview**: 地图模式
|
|
1253
1494
|
* - **DepthPanorama**: 深度图游走模式
|
|
1254
1495
|
* - **VRPanorama**: VR眼镜模式
|
|
1255
1496
|
*/
|
|
@@ -1258,6 +1499,8 @@ export declare type Mode =
|
|
|
1258
1499
|
"Floorplan" |
|
|
1259
1500
|
/** 户型图模式 */
|
|
1260
1501
|
"Topview" |
|
|
1502
|
+
/** 地图模式 */
|
|
1503
|
+
"Mapview" |
|
|
1261
1504
|
/** 全景图游走模式 */
|
|
1262
1505
|
"Panorama" |
|
|
1263
1506
|
/** VR眼镜模式 */
|
|
@@ -1265,7 +1508,9 @@ export declare type Mode =
|
|
|
1265
1508
|
/** 模型游走模式 */
|
|
1266
1509
|
"Model" |
|
|
1267
1510
|
/** 深度图游走模式 */
|
|
1268
|
-
"DepthPanorama"
|
|
1511
|
+
"DepthPanorama" |
|
|
1512
|
+
/** XR眼镜模式*/
|
|
1513
|
+
"XRPanorama";
|
|
1269
1514
|
|
|
1270
1515
|
/**
|
|
1271
1516
|
* Five 模型
|
|
@@ -1275,17 +1520,23 @@ export declare type Mode =
|
|
|
1275
1520
|
* 需要满足 your/path/filename.at3d.json_xxxxxx,
|
|
1276
1521
|
* 通过 json_xxxxxx(<dataURL>) 方式返回。
|
|
1277
1522
|
*/
|
|
1278
|
-
export declare class Model extends
|
|
1523
|
+
export declare class Model extends PBMContainer implements Subscribe<ModelEventType> {
|
|
1279
1524
|
/** 是否加载完成 */
|
|
1280
1525
|
loaded: boolean;
|
|
1281
1526
|
/** 是否未加载 */
|
|
1282
1527
|
empty: boolean;
|
|
1528
|
+
/** WorkCode */
|
|
1529
|
+
workCode: string;
|
|
1283
1530
|
/** 外接盒子的大小 */
|
|
1284
1531
|
bounding: THREE_2.Box3;
|
|
1285
1532
|
/** 当前显示的楼层 */
|
|
1286
1533
|
shownFloor: number | null;
|
|
1287
1534
|
/** 楼层的数量 */
|
|
1288
1535
|
floorLength: number;
|
|
1536
|
+
/** 模型瓦片 */
|
|
1537
|
+
originModel?: PBMContainer;
|
|
1538
|
+
/** 模型瓦片 */
|
|
1539
|
+
tiledModel?: Tile3DModel;
|
|
1289
1540
|
/**
|
|
1290
1541
|
* 判断是否注册了事件
|
|
1291
1542
|
* 具体可查看 {@link Subscribe.hasListener}
|
|
@@ -1312,16 +1563,35 @@ export declare class Model extends PBMGroup implements Subscribe<ModelEventType>
|
|
|
1312
1563
|
*/
|
|
1313
1564
|
emit: SubscribeMixinType.emit<ModelEventType>;
|
|
1314
1565
|
/** bvh 树的计算结果 */
|
|
1315
|
-
bvhs:
|
|
1316
|
-
loaded
|
|
1566
|
+
bvhs: BVH[] & {
|
|
1567
|
+
loaded: boolean;
|
|
1317
1568
|
};
|
|
1318
|
-
|
|
1569
|
+
/** 网络代理 */
|
|
1570
|
+
private requestProxy?;
|
|
1571
|
+
/** 网络跟踪 */
|
|
1572
|
+
private networkSubscribe?;
|
|
1573
|
+
/** 安全域名 */
|
|
1574
|
+
private allowHosts?;
|
|
1575
|
+
constructor(options?: {
|
|
1576
|
+
networkSubscribe?: NetworkSubscribe;
|
|
1577
|
+
requestProxy?: (url: string) => string | Promise<string>;
|
|
1578
|
+
allowHosts?: string[];
|
|
1579
|
+
});
|
|
1319
1580
|
/**
|
|
1320
1581
|
* 当前显示的楼层
|
|
1321
1582
|
* @deprecated
|
|
1322
1583
|
* 请用 shwonFloor 代替
|
|
1323
1584
|
*/
|
|
1324
1585
|
get shownfloor(): number | null;
|
|
1586
|
+
/**
|
|
1587
|
+
* 当前模型是否支持瓦片
|
|
1588
|
+
*/
|
|
1589
|
+
get hasTiles(): boolean;
|
|
1590
|
+
/**
|
|
1591
|
+
* 是否开启瓦片
|
|
1592
|
+
*/
|
|
1593
|
+
get enableTiles(): boolean;
|
|
1594
|
+
set enableTiles(enable: boolean);
|
|
1325
1595
|
/**
|
|
1326
1596
|
* 获取模型边界线
|
|
1327
1597
|
* @param threshold - 面片间夹角阈值
|
|
@@ -1345,7 +1615,9 @@ export declare class Model extends PBMGroup implements Subscribe<ModelEventType>
|
|
|
1345
1615
|
* ```
|
|
1346
1616
|
*/
|
|
1347
1617
|
show(): void;
|
|
1348
|
-
show(floorIndex: number,
|
|
1618
|
+
show(floorIndex: number, hiddenOpacity?: number): void;
|
|
1619
|
+
private at3dShow;
|
|
1620
|
+
private b3dmShow;
|
|
1349
1621
|
/**
|
|
1350
1622
|
* 计算模型射线碰撞检测
|
|
1351
1623
|
* @param raycaster - THREE 射线对象
|
|
@@ -1353,13 +1625,14 @@ export declare class Model extends PBMGroup implements Subscribe<ModelEventType>
|
|
|
1353
1625
|
* @returns 返回碰撞
|
|
1354
1626
|
*/
|
|
1355
1627
|
intersectRaycaster(raycaster: THREE_2.Raycaster, floors?: number | number[]): Intersection[];
|
|
1356
|
-
buildBVH():
|
|
1628
|
+
buildBVH(): void;
|
|
1357
1629
|
/**
|
|
1358
1630
|
* 加载模型
|
|
1359
1631
|
* @param workModel - work 的 model 内容
|
|
1360
1632
|
* @param imageOptions - 图片参数
|
|
1361
1633
|
*/
|
|
1362
|
-
load(workModel: WorkModel,
|
|
1634
|
+
load(workModel: WorkModel, textureOptions?: TextureOptions): Promise<void>;
|
|
1635
|
+
update(renderer: THREE_2.WebGLRenderer, camera: Camera): void;
|
|
1363
1636
|
/**
|
|
1364
1637
|
* 析构函数
|
|
1365
1638
|
* @description
|
|
@@ -1389,7 +1662,7 @@ export declare type ModelEventType = {
|
|
|
1389
1662
|
* 模型 bvh树 计算完成
|
|
1390
1663
|
* @description
|
|
1391
1664
|
* bvh 树用于高效的碰撞检测,可以在 `model.bvh` 属性来设置是否开启。默认开启。
|
|
1392
|
-
* bvh
|
|
1665
|
+
* bvh 树计算需要一定时间,可能会暂时影响一些性能。计算完毕后,会对碰撞检测带来质的提升。
|
|
1393
1666
|
*/
|
|
1394
1667
|
bvhLoaded(): void;
|
|
1395
1668
|
/** 模型三角面片结构加载完成 */
|
|
@@ -1410,6 +1683,14 @@ export declare type ModelEventType = {
|
|
|
1410
1683
|
error(error: Error): void;
|
|
1411
1684
|
};
|
|
1412
1685
|
|
|
1686
|
+
export declare interface MotionKeyframe<K extends string> {
|
|
1687
|
+
progress: number;
|
|
1688
|
+
value: MotionValue<K>;
|
|
1689
|
+
key?: string;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
export declare type MotionValue<K extends string> = Record<K, number>;
|
|
1693
|
+
|
|
1413
1694
|
/**
|
|
1414
1695
|
* 点位移动参数
|
|
1415
1696
|
*/
|
|
@@ -1421,9 +1702,10 @@ export declare interface MovePanoOptions extends Partial<Omit<Pose, "offset">> {
|
|
|
1421
1702
|
* @description
|
|
1422
1703
|
* - `fly` 通过相机移动方式变化
|
|
1423
1704
|
* - `fade` 通过渐变方式变化
|
|
1705
|
+
* - `montage` 通过渐变穿插到黑屏方式变化
|
|
1424
1706
|
* - `instant` 通过插入黑屏方式变化
|
|
1425
1707
|
*/
|
|
1426
|
-
effect?: "fly" | "fade" | "instant";
|
|
1708
|
+
effect?: "fly" | "fade" | "montage" | "instant";
|
|
1427
1709
|
/**
|
|
1428
1710
|
* 运动耗时
|
|
1429
1711
|
* @description
|
|
@@ -1449,21 +1731,180 @@ export declare interface MovePanoOptions extends Partial<Omit<Pose, "offset">> {
|
|
|
1449
1731
|
moveCancelCallback?: () => void;
|
|
1450
1732
|
}
|
|
1451
1733
|
|
|
1734
|
+
export declare type NetWorkMeta = {
|
|
1735
|
+
origin: string;
|
|
1736
|
+
source: string;
|
|
1737
|
+
headers: {
|
|
1738
|
+
[name: string]: string;
|
|
1739
|
+
};
|
|
1740
|
+
requestTime: number;
|
|
1741
|
+
responseTime: number;
|
|
1742
|
+
costs: number;
|
|
1743
|
+
size?: number;
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1746
|
+
export declare interface NetworkOptions {
|
|
1747
|
+
/** 超时时间 */
|
|
1748
|
+
timeout?: number;
|
|
1749
|
+
/** 请求代理 */
|
|
1750
|
+
requestProxy?: (url: string) => string | Promise<string>;
|
|
1751
|
+
/** 网络消息追踪 */
|
|
1752
|
+
networkSubscribe?: NetworkSubscribe;
|
|
1753
|
+
/** 安全域名 */
|
|
1754
|
+
allowHosts?: string[];
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
export declare type NetworkResponse<T = any, E extends NetWorkMeta | NetWorkMeta[] = NetWorkMeta> = {
|
|
1758
|
+
body: T;
|
|
1759
|
+
meta: E;
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1762
|
+
export declare type NetworkState = "ok" | "preload" | "error" | "proxy-error" | "timeout" | "forbidden";
|
|
1763
|
+
|
|
1764
|
+
export declare class NetworkSubscribe extends Subscribe<{
|
|
1765
|
+
network(source: string, type: NetworkType, state: NetworkState, detail: string): void;
|
|
1766
|
+
}> {
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
export declare type NetworkType = "XMLHttpRequest" | "Script" | "Image" | "Link";
|
|
1770
|
+
|
|
1771
|
+
export declare class PanoCircleMesh extends THREE_2.Object3D implements PanoCircleMeshInterface {
|
|
1772
|
+
needsRender: boolean;
|
|
1773
|
+
private currentStartTime;
|
|
1774
|
+
private currentMotion;
|
|
1775
|
+
private ringMotion;
|
|
1776
|
+
private tapMotion;
|
|
1777
|
+
private loadingOpacityMotion;
|
|
1778
|
+
private progressMotion;
|
|
1779
|
+
private progressOpacityMotion;
|
|
1780
|
+
private opacityMotion;
|
|
1781
|
+
private disableMotion;
|
|
1782
|
+
progress: number;
|
|
1783
|
+
opacity: number;
|
|
1784
|
+
current: boolean;
|
|
1785
|
+
loading: boolean;
|
|
1786
|
+
disabled: boolean;
|
|
1787
|
+
private panoMesh;
|
|
1788
|
+
constructor(options?: PanoCircleMeshOptions);
|
|
1789
|
+
setProgress(progress: number): void;
|
|
1790
|
+
setOpacity(opacity: number): void;
|
|
1791
|
+
setCurrent(current: boolean): void;
|
|
1792
|
+
setLoading(loading: boolean): void;
|
|
1793
|
+
setDisabled(disabled: boolean): void;
|
|
1794
|
+
tap(): Promise<void>;
|
|
1795
|
+
updateTime(time: number, deltaTime: number): void;
|
|
1796
|
+
dispose(): void;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
export declare class PanoCircleMeshCustom extends THREE_2.Object3D implements PanoCircleMeshInterface {
|
|
1800
|
+
needsRender: boolean;
|
|
1801
|
+
private currentStartTime;
|
|
1802
|
+
private currentMotion;
|
|
1803
|
+
private tapMotion;
|
|
1804
|
+
private loadingOpacityMotion;
|
|
1805
|
+
private progressMotion;
|
|
1806
|
+
private progressOpacityMotion;
|
|
1807
|
+
private opacityMotion;
|
|
1808
|
+
private disableMotion;
|
|
1809
|
+
progress: number;
|
|
1810
|
+
opacity: number;
|
|
1811
|
+
current: boolean;
|
|
1812
|
+
loading: boolean;
|
|
1813
|
+
disabled: boolean;
|
|
1814
|
+
private panoMesh;
|
|
1815
|
+
constructor(options?: PanoCircleMeshCustomOptions);
|
|
1816
|
+
setProgress(progress: number): void;
|
|
1817
|
+
setOpacity(opacity: number): void;
|
|
1818
|
+
setCurrent(current: boolean): void;
|
|
1819
|
+
setLoading(loading: boolean): void;
|
|
1820
|
+
setDisabled(disabled: boolean): void;
|
|
1821
|
+
tap(): Promise<void>;
|
|
1822
|
+
updateTime(time: number, deltaTime: number): void;
|
|
1823
|
+
dispose(): void;
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
export declare interface PanoCircleMeshCustomOptions {
|
|
1827
|
+
scale?: number;
|
|
1828
|
+
color?: number;
|
|
1829
|
+
map?: THREE_2.Texture;
|
|
1830
|
+
mapAlpha?: number;
|
|
1831
|
+
borderWidth?: number;
|
|
1832
|
+
borderColor?: number;
|
|
1833
|
+
mapUseColor?: boolean;
|
|
1834
|
+
mapUseReverse?: boolean;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* 地面提示点位接口
|
|
1839
|
+
*
|
|
1840
|
+
* 点位状态
|
|
1841
|
+
* 1. 默认状态: 无任何操作的情况
|
|
1842
|
+
* 2. 高亮状态: 高亮,认为是合适的下一个点位,或者设备选中了某个点位
|
|
1843
|
+
* 3. 进度状态: 点位加载中,存在进度的情况
|
|
1844
|
+
* 4. 加载状态: 点位加载中,不存在进度的情况
|
|
1845
|
+
* 5. 不可用状态:点位不可用,存在点位,但是点位是个摆设
|
|
1846
|
+
* 6. 点击动画: 点位被选择,触发全景图切换
|
|
1847
|
+
* 7. 透明度改变: 一般会处理为近的点位透明度高,远的点位透明度低
|
|
1848
|
+
*/
|
|
1452
1849
|
export declare interface PanoCircleMeshInterface extends THREE_2.Object3D {
|
|
1453
1850
|
needsRender: boolean;
|
|
1851
|
+
hitTestMesh?: THREE_2.Mesh;
|
|
1852
|
+
/** 当前高亮 */
|
|
1853
|
+
current: boolean;
|
|
1854
|
+
/** 是否当前高亮 */
|
|
1855
|
+
setCurrent(current: boolean): void;
|
|
1454
1856
|
loading: boolean;
|
|
1857
|
+
setLoading(loading: boolean): void;
|
|
1455
1858
|
disabled: boolean;
|
|
1456
|
-
panoIndex: number;
|
|
1457
|
-
setLoading(shown: boolean): void;
|
|
1458
1859
|
setDisabled(disabled: boolean): void;
|
|
1860
|
+
progress: number;
|
|
1861
|
+
setProgress(progress: number): void;
|
|
1862
|
+
opacity: number;
|
|
1863
|
+
setOpacity(opacity: number): void;
|
|
1864
|
+
updateTime?(time: number, deltaTime: number): void;
|
|
1865
|
+
/** 点击交互 */
|
|
1866
|
+
tap?(): Promise<void>;
|
|
1867
|
+
dispose(): void;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
export declare interface PanoCircleMeshOptions {
|
|
1871
|
+
scale?: number;
|
|
1872
|
+
color?: number;
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
export declare class PanoCircleMeshSolid extends THREE_2.Object3D implements PanoCircleMeshInterface {
|
|
1876
|
+
needsRender: boolean;
|
|
1877
|
+
private currentStartTime;
|
|
1878
|
+
private currentMotion;
|
|
1879
|
+
private tapMotion;
|
|
1880
|
+
private loadingOpacityMotion;
|
|
1881
|
+
private progressMotion;
|
|
1882
|
+
private progressOpacityMotion;
|
|
1883
|
+
private opacityMotion;
|
|
1884
|
+
private disableMotion;
|
|
1885
|
+
progress: number;
|
|
1886
|
+
opacity: number;
|
|
1887
|
+
current: boolean;
|
|
1888
|
+
loading: boolean;
|
|
1889
|
+
disabled: boolean;
|
|
1890
|
+
private panoMesh;
|
|
1891
|
+
constructor(options?: PanoCircleMeshSolidOptions);
|
|
1459
1892
|
setProgress(progress: number): void;
|
|
1460
1893
|
setOpacity(opacity: number): void;
|
|
1894
|
+
setCurrent(current: boolean): void;
|
|
1895
|
+
setLoading(loading: boolean): void;
|
|
1896
|
+
setDisabled(disabled: boolean): void;
|
|
1897
|
+
tap(): Promise<void>;
|
|
1898
|
+
updateTime(time: number, deltaTime: number): void;
|
|
1461
1899
|
dispose(): void;
|
|
1462
1900
|
}
|
|
1463
1901
|
|
|
1902
|
+
export declare interface PanoCircleMeshSolidOptions {
|
|
1903
|
+
scale?: number;
|
|
1904
|
+
color?: number;
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1464
1907
|
export declare interface PanoramaControllerCustomInitArgs extends PanoramaLikeControllerCustomInitArgs {
|
|
1465
|
-
/** 自动亮度调整 默认 false */
|
|
1466
|
-
enableLuminanceAdaptiveEffect?: boolean;
|
|
1467
1908
|
/** 最远可移动观察点距离 */
|
|
1468
1909
|
maxAccessibleDistance?: number;
|
|
1469
1910
|
/**
|
|
@@ -1474,7 +1915,16 @@ export declare interface PanoramaControllerCustomInitArgs extends PanoramaLikeCo
|
|
|
1474
1915
|
*/
|
|
1475
1916
|
panoTapTriggerRadius?: number;
|
|
1476
1917
|
/** 地面观察点标识自定义创建器 */
|
|
1477
|
-
panoCircleMeshCreator?: () => PanoCircleMeshInterface;
|
|
1918
|
+
panoCircleMeshCreator?: (panoIndex: number) => PanoCircleMeshInterface;
|
|
1919
|
+
/**
|
|
1920
|
+
* 全景瓦片登记
|
|
1921
|
+
* @param fov - 当前 fov
|
|
1922
|
+
* @param viewSize - 当前绘制区域大小
|
|
1923
|
+
* @returns 返回瓦片等级
|
|
1924
|
+
*/
|
|
1925
|
+
tileLevelForFov?: false | ((fov: number, viewSize: THREE_2.Vector2) => number);
|
|
1926
|
+
/** 是否开启光照自适应效果 */
|
|
1927
|
+
luminanceAdaptiveEffectEnable?: boolean;
|
|
1478
1928
|
}
|
|
1479
1929
|
|
|
1480
1930
|
export declare interface PanoramaLikeControllerCustomInitArgs {
|
|
@@ -1502,14 +1952,31 @@ export declare interface PanoramaLikeControllerCustomInitArgs {
|
|
|
1502
1952
|
intersectMeshCreator?: () => IntersectMeshInterface;
|
|
1503
1953
|
}
|
|
1504
1954
|
|
|
1505
|
-
|
|
1955
|
+
/**
|
|
1956
|
+
* 解析 Work 数据
|
|
1957
|
+
* @param obj - work 数据,从如数开发者平台获取
|
|
1958
|
+
* @param options - 配置参数, 可以在此二次设置 baseURL 等参数
|
|
1959
|
+
* @param urlTransform - 配置参数, URL 解析规则
|
|
1960
|
+
* @returns - 签署过的 Work 数据结构
|
|
1961
|
+
*/
|
|
1962
|
+
export declare function parseWork(obj: Work | LooseWork | string | any, options?: ParseWorkOptions, urlTransform?: (origin: string, absolute: string, relative: string, type: "panorama" | "texture" | "model") => void): Work;
|
|
1963
|
+
|
|
1964
|
+
export declare type ParseWorkOptions = {
|
|
1965
|
+
/** 重写 work 中的资源前缀 */
|
|
1966
|
+
baseURL?: string;
|
|
1967
|
+
/** work 中的资源地址使用短地址 */
|
|
1968
|
+
shortPath?: boolean;
|
|
1969
|
+
/** work 中的资源使用 jsonp 方式发布 */
|
|
1970
|
+
jsonp?: boolean;
|
|
1971
|
+
/** work 中模型是否计算bvh碰撞数,默认计算 true */
|
|
1972
|
+
modelBvh?: boolean;
|
|
1973
|
+
};
|
|
1506
1974
|
|
|
1507
1975
|
/** PBM 模型组 */
|
|
1508
|
-
export declare class
|
|
1509
|
-
/** 楼层序号 */
|
|
1510
|
-
floorIndex: number;
|
|
1976
|
+
export declare class PBMContainer extends THREE_2.Group {
|
|
1511
1977
|
/** 是否需要更新按需渲染 */
|
|
1512
1978
|
needsRender: boolean;
|
|
1979
|
+
private enableTransparent;
|
|
1513
1980
|
/** 获取是否有透明参数 */
|
|
1514
1981
|
getTransparent(): boolean;
|
|
1515
1982
|
/** 设置透明参数 */
|
|
@@ -1524,39 +1991,39 @@ export declare class PBMGroup extends THREE_2.Group {
|
|
|
1524
1991
|
disposeGeometry(): void;
|
|
1525
1992
|
}
|
|
1526
1993
|
|
|
1994
|
+
/** PBM 模型组 */
|
|
1995
|
+
export declare class PBMGroup extends PBMContainer {
|
|
1996
|
+
/** 楼层序号 */
|
|
1997
|
+
floorIndex: number;
|
|
1998
|
+
}
|
|
1999
|
+
|
|
1527
2000
|
/** PBM 材质 */
|
|
1528
2001
|
export declare class PBMMaterial extends THREE_2.ShaderMaterial implements PBMParameters {
|
|
1529
|
-
/**
|
|
1530
|
-
|
|
1531
|
-
/**
|
|
1532
|
-
|
|
1533
|
-
/** 结束点位全景图 */
|
|
1534
|
-
pano1Map: HashCubeTexture | null;
|
|
1535
|
-
/** 结束点全景图变换矩阵 4x4 */
|
|
1536
|
-
pano1Matrix: THREE_2.Matrix4;
|
|
2002
|
+
/** 起始点 */
|
|
2003
|
+
pano0: PBMPanoPicture | null;
|
|
2004
|
+
/** 结束点 */
|
|
2005
|
+
pano1: PBMPanoPicture | null;
|
|
1537
2006
|
/** 模型贴图和全景图的混合程度 [0-1] */
|
|
1538
2007
|
modelAlpha: number;
|
|
1539
2008
|
/** 全景图混合程度 [0-1] */
|
|
1540
2009
|
progress: number;
|
|
1541
2010
|
/** 全景图通过过度黑色混合 */
|
|
1542
2011
|
useBlackTransition: boolean;
|
|
1543
|
-
perspToOrtho: number;
|
|
1544
2012
|
/** 模型透明度 */
|
|
1545
2013
|
opacity: number;
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
panoTileMappings: THREE_2.Vector4[][] | null;
|
|
2014
|
+
originOpacity: number;
|
|
2015
|
+
/** 楼层参数*/
|
|
2016
|
+
floorIndex: number;
|
|
2017
|
+
/** 楼层切割参数*/
|
|
2018
|
+
floorInfo: THREE_2.Vector3 | null;
|
|
2019
|
+
/** 对外模型裁切参数*/
|
|
2020
|
+
clippers: ClipperParameter | ClipperParameter[] | null;
|
|
2021
|
+
/** 对内模型裁切参数 裁切平面*/
|
|
2022
|
+
clipperPlanesArray: Float32Array | null;
|
|
2023
|
+
/** 对内模型裁切参数 裁切盒关联楼层*/
|
|
2024
|
+
clipperFloors: number[] | null;
|
|
2025
|
+
/** 模型颜色*/
|
|
2026
|
+
modelColorInfo: THREE_2.Vector3 | null;
|
|
1560
2027
|
constructor(parameters?: Partial<PBMParameters>);
|
|
1561
2028
|
}
|
|
1562
2029
|
|
|
@@ -1568,39 +2035,41 @@ export declare class PBMMesh extends THREE_2.Mesh<THREE_2.BufferGeometry, PBMMat
|
|
|
1568
2035
|
needsRender: boolean;
|
|
1569
2036
|
}
|
|
1570
2037
|
|
|
1571
|
-
|
|
1572
|
-
export declare interface PBMParameters {
|
|
2038
|
+
export declare interface PBMPanoPicture {
|
|
1573
2039
|
/** 起始点位全景图 */
|
|
1574
|
-
|
|
2040
|
+
map: THREE_2.CubeTexture | TileCubeTextureTarget;
|
|
2041
|
+
/** 亮度增益 */
|
|
2042
|
+
luminanceMap: null | THREE_2.CubeTexture | TileCubeTextureTarget;
|
|
1575
2043
|
/** 起始点全景图变换矩阵 4x4 */
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
2044
|
+
matrix: THREE_2.Matrix4;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
/** PBM 材质参数 */
|
|
2048
|
+
export declare interface PBMParameters {
|
|
2049
|
+
/** 起始点 */
|
|
2050
|
+
pano0: PBMPanoPicture | null;
|
|
2051
|
+
/** 结束点 */
|
|
2052
|
+
pano1: PBMPanoPicture | null;
|
|
1581
2053
|
/** 模型贴图和全景图的混合程度 [0-1] */
|
|
1582
2054
|
modelAlpha: number;
|
|
1583
2055
|
/** 全景图混合程度 [0-1] */
|
|
1584
2056
|
progress: number;
|
|
1585
2057
|
/** 全景图通过过度黑色混合 */
|
|
1586
2058
|
useBlackTransition: boolean;
|
|
1587
|
-
perspToOrtho: number;
|
|
1588
2059
|
/** 模型透明度 */
|
|
1589
2060
|
opacity: number;
|
|
1590
|
-
/**
|
|
1591
|
-
|
|
1592
|
-
/**
|
|
1593
|
-
|
|
1594
|
-
/**
|
|
1595
|
-
|
|
1596
|
-
/**
|
|
1597
|
-
|
|
1598
|
-
/**
|
|
1599
|
-
|
|
1600
|
-
/**
|
|
1601
|
-
|
|
1602
|
-
/** 瓦片寻址规则 */
|
|
1603
|
-
panoTileMappings: THREE_2.Vector4[][] | null;
|
|
2061
|
+
/** 楼层参数*/
|
|
2062
|
+
floorIndex: number;
|
|
2063
|
+
/** 楼层切割参数*/
|
|
2064
|
+
floorInfo?: THREE_2.Vector3 | null;
|
|
2065
|
+
/** 模型裁切参数(工程侧调用)*/
|
|
2066
|
+
clippers?: ClipperParameter | ClipperParameter[] | null;
|
|
2067
|
+
/** 模型裁切平面参数(内部调用) */
|
|
2068
|
+
clipperPlanesArray?: Float32Array | null;
|
|
2069
|
+
/** 模型裁切平面参数(内部调用) */
|
|
2070
|
+
clipperFloors?: number[] | null;
|
|
2071
|
+
/** 模型颜色*/
|
|
2072
|
+
modelColorInfo?: THREE_2.Vector3 | null;
|
|
1604
2073
|
}
|
|
1605
2074
|
|
|
1606
2075
|
/**
|
|
@@ -1608,17 +2077,19 @@ export declare interface PBMParameters {
|
|
|
1608
2077
|
* [[include: coordinate.md]]
|
|
1609
2078
|
*/
|
|
1610
2079
|
export declare interface Pose {
|
|
1611
|
-
/** 相机俯仰角 */
|
|
1612
|
-
longitude: number;
|
|
1613
2080
|
/** 相机偏航角 */
|
|
2081
|
+
longitude: number;
|
|
2082
|
+
/** 相机俯仰角 */
|
|
1614
2083
|
latitude: number;
|
|
1615
2084
|
/** 相机可视角度(垂直)*/
|
|
1616
2085
|
fov: number;
|
|
1617
2086
|
/** 相机位置*/
|
|
1618
2087
|
offset: THREE_2.Vector3;
|
|
2088
|
+
/** 相机距离 */
|
|
2089
|
+
distance: number;
|
|
1619
2090
|
}
|
|
1620
2091
|
|
|
1621
|
-
export declare const PROXY_CONTROLLER_EVENT_NAMES: readonly ["cameraDirectionUpdate", "cameraUpdate", "cameraPositionUpdate", "panoSelected", "moveToPano", "moveToPanoCanceled", "panoWillArrive", "movingToPano", "panoArrived", "panoWillLoad", "panoLoaded", "panoLoadError", "initAnimationEnded", "initAnimationWillStart", "wantsGesture", "gesture", "wantsTapGesture", "tapGesture", "wantsPanGesture", "wantsInteriaPan", "panGesture", "interiaPan", "wantsPinchGesture", "pinchGesture", "wantsMouseWheel", "mouseWheel", "wantsShowIntersectionOnModel", "intersectionOnModelUpdate", "intersectionHidden", "textureStartLoad", "textureLoading", "textureAbort", "textureLoaded", "textureError"];
|
|
2092
|
+
export declare const PROXY_CONTROLLER_EVENT_NAMES: readonly ["cameraDirectionUpdate", "cameraUpdate", "cameraPositionUpdate", "panoSelected", "moveToPano", "moveToPanoCanceled", "panoWillArrive", "movingToPano", "panoArrived", "panoWillLoad", "panoLoaded", "panoLoadError", "initAnimationEnded", "initAnimationWillStart", "wantsGesture", "gesture", "wantsTapGesture", "tapGesture", "wantsPressGesture", "pressGesture", "wantsPanGesture", "wantsInteriaPan", "panGesture", "interiaPan", "wantsPinchGesture", "pinchGesture", "wantsMouseWheel", "mouseWheel", "wantsShowIntersectionOnModel", "intersectionOnModelUpdate", "intersectionHidden", "textureStartLoad", "textureLoading", "textureAbort", "textureLoaded", "textureError", "webXRSessionStart", "webXRSessionEnd", "webXRSelected"];
|
|
1622
2093
|
|
|
1623
2094
|
/** Five 场景*/
|
|
1624
2095
|
export declare class Scene extends THREE_2.Scene {
|
|
@@ -1660,8 +2131,6 @@ export declare interface State extends Pose {
|
|
|
1660
2131
|
panoIndex: number;
|
|
1661
2132
|
}
|
|
1662
2133
|
|
|
1663
|
-
export declare function stringifyWork(work: Work): LooseWork;
|
|
1664
|
-
|
|
1665
2134
|
/**
|
|
1666
2135
|
* 监听者模式
|
|
1667
2136
|
* @template T - 预设的监听回调类型
|
|
@@ -1740,69 +2209,731 @@ export declare namespace SubscribeMixinType {
|
|
|
1740
2209
|
}
|
|
1741
2210
|
}
|
|
1742
2211
|
|
|
1743
|
-
export declare
|
|
2212
|
+
export declare class TextureLoader {
|
|
2213
|
+
private timeout?;
|
|
2214
|
+
private allowHosts?;
|
|
2215
|
+
private requestProxy?;
|
|
2216
|
+
private networkSubscribe?;
|
|
2217
|
+
constructor(options: NetworkOptions);
|
|
2218
|
+
setAllowHosts(allowHosts: string[]): void;
|
|
2219
|
+
setRequestProxy(requestProxy: (url: string) => string): void;
|
|
2220
|
+
setNetworkSubscribe(networkSubscribe: NetworkSubscribe): void;
|
|
2221
|
+
loadTexture(source: string, options?: {
|
|
2222
|
+
imageURL?: {
|
|
2223
|
+
transform?: (source: string, options: ImageURLOptions) => string;
|
|
2224
|
+
options?: ImageURLOptions;
|
|
2225
|
+
};
|
|
2226
|
+
flipY?: boolean;
|
|
2227
|
+
format?: THREE_2.PixelFormat;
|
|
2228
|
+
minFilter?: THREE_2.TextureFilter;
|
|
2229
|
+
magFilter?: THREE_2.TextureFilter;
|
|
2230
|
+
wrapS?: THREE_2.Wrapping;
|
|
2231
|
+
wrapT?: THREE_2.Wrapping;
|
|
2232
|
+
maxSize?: THREE_2.Vector2;
|
|
2233
|
+
viaAjax?: boolean;
|
|
2234
|
+
}, onLoad?: (response: NetworkResponse<THREE_2.Texture>) => void, onError?: (error: Error) => void, onProgress?: (percent: number) => void, renderer?: THREE_2.WebGLRenderer): Promise<NetworkResponse<THREE_2.Texture>>;
|
|
2235
|
+
loadCubeTexture(sources: WorkCubeImage, options: {
|
|
2236
|
+
imageURL?: {
|
|
2237
|
+
transform?: (source: string, options: ImageURLOptions) => string;
|
|
2238
|
+
options?: ImageURLOptions;
|
|
2239
|
+
};
|
|
2240
|
+
format?: THREE_2.PixelFormat;
|
|
2241
|
+
minFilter?: THREE_2.TextureFilter;
|
|
2242
|
+
magFilter?: THREE_2.TextureFilter;
|
|
2243
|
+
wrapS?: THREE_2.Wrapping;
|
|
2244
|
+
wrapT?: THREE_2.Wrapping;
|
|
2245
|
+
viaAjax?: boolean;
|
|
2246
|
+
}, onLoad: (response: NetworkResponse<THREE_2.CubeTexture, NetWorkMeta[]>) => void, onError: (error: Error) => void, onProgress: (percent: number) => void, renderer: THREE_2.WebGLRenderer): Promise<NetworkResponse<THREE_2.CubeTexture, NetWorkMeta[]>>;
|
|
2247
|
+
loadTiledCubeTexture(sources: WorkCubeImage, tileSources: WorkTile[], options: {
|
|
2248
|
+
tileImageSize?: number;
|
|
2249
|
+
tileMaxLevel?: number;
|
|
2250
|
+
imageURL?: {
|
|
2251
|
+
transform?: (source: string, options: ImageURLOptions) => string;
|
|
2252
|
+
options?: ImageURLOptions;
|
|
2253
|
+
};
|
|
2254
|
+
format?: THREE_2.PixelFormat;
|
|
2255
|
+
minFilter?: THREE_2.TextureFilter;
|
|
2256
|
+
magFilter?: THREE_2.TextureFilter;
|
|
2257
|
+
wrapS?: THREE_2.Wrapping;
|
|
2258
|
+
wrapT?: THREE_2.Wrapping;
|
|
2259
|
+
viaAjax?: boolean;
|
|
2260
|
+
}, onLoad: (response: NetworkResponse<TileCubeTextureTarget, NetWorkMeta[]>) => void, onError: (error: Error) => void, onProgress: (percent: number) => void, renderer: THREE_2.WebGLRenderer): Promise<NetworkResponse<TileCubeTextureTarget, NetWorkMeta[]>>;
|
|
1744
2261
|
}
|
|
1745
2262
|
|
|
1746
|
-
|
|
2263
|
+
/**
|
|
2264
|
+
* 图片参数
|
|
2265
|
+
*/
|
|
2266
|
+
export declare interface TextureOptions {
|
|
1747
2267
|
/**
|
|
1748
|
-
*
|
|
1749
|
-
* @
|
|
1750
|
-
*
|
|
2268
|
+
* url 地址转化
|
|
2269
|
+
* @param url - 原始地址
|
|
2270
|
+
* @param options - 当前地址参数
|
|
2271
|
+
* @returns 转化后地址
|
|
1751
2272
|
*/
|
|
1752
|
-
|
|
2273
|
+
transform?: (url: string, options: ImageURLOptions) => string;
|
|
2274
|
+
/** 图片尺寸参数 尽量使用 2 的幂次 如 256 512 1024 */
|
|
2275
|
+
size?: number;
|
|
2276
|
+
/** 图片质量参数(0-100) */
|
|
2277
|
+
quality?: number;
|
|
2278
|
+
/** 图片格式参数 */
|
|
2279
|
+
format?: "jpg" | "png" | "heif" | "webp" | "avif";
|
|
2280
|
+
/** 针对 textureOptions 是否自动通过模型贴图的数量计算需要的模型贴图的尺寸 默认 true */
|
|
2281
|
+
autoResize?: boolean;
|
|
2282
|
+
/** 锐化参数 海外不支持 */
|
|
2283
|
+
sharpen?: number;
|
|
2284
|
+
mappings?: ImageURLMappings;
|
|
1753
2285
|
}
|
|
1754
2286
|
|
|
1755
|
-
|
|
1756
|
-
|
|
2287
|
+
/**
|
|
2288
|
+
* A Tile3DHeader represents a tile as Tileset3D. When a tile is first created, its content is not loaded;
|
|
2289
|
+
* the content is loaded on-demand when needed based on the view.
|
|
2290
|
+
* Do not construct this directly, instead access tiles through {@link Tileset3D#tileVisible}.
|
|
2291
|
+
*/
|
|
2292
|
+
export declare class Tile3D {
|
|
2293
|
+
cacheNode?: TileCacheNode<Tile3D>;
|
|
2294
|
+
tileset: Tileset3D;
|
|
2295
|
+
header: TilesetJSONNode;
|
|
2296
|
+
content?: TileContent;
|
|
2297
|
+
parent?: Tile3D;
|
|
2298
|
+
boundingVolume: TileOrientedBoundingBox;
|
|
2299
|
+
contentState: "UNLOADED" | "LOADING" | "PROCESSING" | "READY" | "FAILED";
|
|
2300
|
+
children: Tile3D[];
|
|
2301
|
+
depth: number;
|
|
2302
|
+
selectionDepth: number;
|
|
2303
|
+
transform: Matrix4;
|
|
2304
|
+
computedTransform: Matrix4;
|
|
2305
|
+
frameNumber: number;
|
|
2306
|
+
touchedFrameNumber: number;
|
|
2307
|
+
requestedFrameNumber: number;
|
|
2308
|
+
selectedFrameNumber: number;
|
|
2309
|
+
distanceToCamera: number;
|
|
2310
|
+
centerZDepth: number;
|
|
2311
|
+
screenSpaceError: number;
|
|
2312
|
+
visibilityPlaneMask: number;
|
|
2313
|
+
visible: boolean;
|
|
2314
|
+
shouldRefine: boolean;
|
|
2315
|
+
/**
|
|
2316
|
+
* @constructs
|
|
2317
|
+
* Create a TileHeader instance
|
|
2318
|
+
* @param tileset - Tileset3D instance
|
|
2319
|
+
* @param header - tile header - JSON loaded from a dataset
|
|
2320
|
+
* @param parentHeader - parent TileHeader instance
|
|
2321
|
+
*/
|
|
2322
|
+
constructor(tileset: Tileset3D, header: TilesetJSONNode, parentHeader?: Tile3D);
|
|
2323
|
+
get id(): string;
|
|
2324
|
+
get refine(): "REPLACE" | "ADD";
|
|
2325
|
+
get type(): "EMPTY" | "SCENEGRAPH" | "MESH";
|
|
2326
|
+
get contentUrl(): string;
|
|
2327
|
+
get lodMetricType(): "geometricError";
|
|
2328
|
+
get lodMetricValue(): number;
|
|
2329
|
+
get hasEmptyContent(): boolean;
|
|
2330
|
+
get selected(): boolean;
|
|
2331
|
+
/** Returns true if tile is not an empty tile and not an external tileset */
|
|
2332
|
+
get hasRenderContent(): boolean;
|
|
2333
|
+
/** Returns true if tile has children */
|
|
2334
|
+
get hasChildren(): boolean;
|
|
2335
|
+
/**
|
|
2336
|
+
* Determines if the tile's content is ready. This is automatically `true` for
|
|
2337
|
+
* tiles with empty content.
|
|
2338
|
+
*/
|
|
2339
|
+
get contentReady(): boolean;
|
|
2340
|
+
/**
|
|
2341
|
+
* Determines if the tile has available content to render. `true` if the tile's
|
|
2342
|
+
* content is ready or if it has expired content this renders while new content loads; otherwise,
|
|
2343
|
+
*/
|
|
2344
|
+
get contentAvailable(): boolean;
|
|
2345
|
+
/** Returns true if tile has renderable content but it's unloaded */
|
|
2346
|
+
get hasUnloadedContent(): boolean;
|
|
2347
|
+
/**
|
|
2348
|
+
* Determines if the tile's content has not be requested. `true` if tile's
|
|
2349
|
+
* content has not be requested; otherwise, `false`.
|
|
2350
|
+
*/
|
|
2351
|
+
get contentUnloaded(): boolean;
|
|
2352
|
+
get contentFailed(): boolean;
|
|
2353
|
+
/** Get the tile's screen space error. */
|
|
2354
|
+
getScreenSpaceError(frameState: TileFrameState, useParentLodMetric: boolean): number;
|
|
2355
|
+
private getPriority;
|
|
2356
|
+
/**
|
|
2357
|
+
* Requests the tile's content.
|
|
2358
|
+
* The request may not be made if the Request Scheduler can't prioritize it.
|
|
2359
|
+
*/
|
|
2360
|
+
loadContent(): Promise<boolean>;
|
|
2361
|
+
unloadContent(): void;
|
|
2362
|
+
/**
|
|
2363
|
+
* Update the tile's visibility
|
|
2364
|
+
*/
|
|
2365
|
+
updateVisibility(frameState: TileFrameState): void;
|
|
2366
|
+
private visibility;
|
|
2367
|
+
/**
|
|
2368
|
+
* Computes the (potentially approximate) distance from the closest point of the tile's bounding volume to the camera.
|
|
2369
|
+
* @param frameState - The frame state.
|
|
2370
|
+
* @returns The distance, in meters, or zero if the camera is inside the bounding volume.
|
|
2371
|
+
*/
|
|
2372
|
+
private distanceToTile;
|
|
2373
|
+
private updateTransform;
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
export declare class Tile3DModel extends PBMContainer {
|
|
2377
|
+
tileset?: Tileset3D;
|
|
2378
|
+
private options;
|
|
2379
|
+
private nodeGroup;
|
|
2380
|
+
private boundingGroup;
|
|
2381
|
+
private nodes;
|
|
2382
|
+
private boundings;
|
|
2383
|
+
private unloadTileQueue;
|
|
2384
|
+
private timer;
|
|
2385
|
+
private clock;
|
|
2386
|
+
private lastCameraTransform;
|
|
2387
|
+
private lastCameraAspect;
|
|
2388
|
+
private lastCameraFov;
|
|
2389
|
+
private sseDenominator;
|
|
2390
|
+
private lastCamera;
|
|
2391
|
+
private lastRenderer;
|
|
2392
|
+
private enabled;
|
|
2393
|
+
constructor(loaderOptions?: Partial<Tile3DModelLoaderOptions>);
|
|
2394
|
+
get enable(): boolean;
|
|
2395
|
+
set enable(value: boolean);
|
|
2396
|
+
load(url: WorkModelTiles): void;
|
|
2397
|
+
update(renderer: THREE_2.WebGLRenderer, camera: Camera): void;
|
|
2398
|
+
private tilesetUpdate;
|
|
2399
|
+
reset(): void;
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2402
|
+
/** Advanced loader options */
|
|
2403
|
+
export declare interface Tile3DModelLoaderOptions {
|
|
2404
|
+
updateInterval: number;
|
|
2405
|
+
maxMemoryUsage: number;
|
|
2406
|
+
maxScreenSpaceError: number;
|
|
2407
|
+
viewDistanceScale: number;
|
|
2408
|
+
throttleRequests: boolean;
|
|
2409
|
+
maxRequests: number;
|
|
2410
|
+
onNodeCreated: (node: PBMGroup) => void;
|
|
2411
|
+
allowHosts?: string[];
|
|
2412
|
+
requestProxy?: (url: string) => string | Promise<string>;
|
|
2413
|
+
networkSubscribe?: NetworkSubscribe;
|
|
2414
|
+
maxDepth?: number;
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
export declare class TileBoundingSphere {
|
|
2418
|
+
center: Vector3;
|
|
2419
|
+
radius: number;
|
|
2420
|
+
constructor(center?: number[], radius?: number);
|
|
2421
|
+
fromCenterRadius(center: number[], radius: number): this;
|
|
2422
|
+
fromCornerPoints(corner: number[], oppositeCorner: number[]): this;
|
|
2423
|
+
equals(right: TileBoundingSphere): boolean;
|
|
2424
|
+
clone(): TileBoundingSphere;
|
|
2425
|
+
union(boundingSphere: TileBoundingSphere): TileBoundingSphere;
|
|
2426
|
+
expand(point: number[]): this;
|
|
2427
|
+
transform(transform: Matrix4): this;
|
|
2428
|
+
distanceSquaredTo(point: number[]): number;
|
|
2429
|
+
distanceTo(point: number[]): number;
|
|
2430
|
+
intersectPlane(plane: Plane): 0 | 1 | -1;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
export declare interface TileBoundingVolume {
|
|
2434
|
+
/**
|
|
2435
|
+
* Applies a 4x4 affine transformation matrix to a bounding sphere.
|
|
2436
|
+
* @param sphere - The bounding sphere to apply the transformation to.
|
|
2437
|
+
* @param transform - The transformation matrix to apply to the bounding sphere.
|
|
2438
|
+
* @returns itself, i.e. the modified BoundingVolume.
|
|
2439
|
+
*/
|
|
2440
|
+
transform(transform: readonly number[]): this;
|
|
2441
|
+
/** Computes the estimated distance squared from the closest point on a bounding sphere to a point. */
|
|
2442
|
+
distanceSquaredTo(point: readonly number[]): number;
|
|
2443
|
+
/** Computes the estimated distance from the closest point on a bounding sphere to a point. */
|
|
2444
|
+
distanceTo(point: readonly number[]): number;
|
|
2445
|
+
/**
|
|
2446
|
+
* Determines which side of a plane the oriented bounding box is located.
|
|
2447
|
+
*
|
|
2448
|
+
* @param plane - The plane to test against.
|
|
2449
|
+
* @returns
|
|
2450
|
+
* - `INTERSECTION.INSIDE` if the entire box is on the side of the plane the normal is pointing.
|
|
2451
|
+
* - `INTERSECTION.OUTSIDE` if the entire box is on the opposite side.
|
|
2452
|
+
* - `INTERSECTION.INTERSECTING` if the box intersects the plane.
|
|
2453
|
+
*/
|
|
2454
|
+
intersectPlane(plane: Plane): number;
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
export declare class TileCacheNode<T> {
|
|
2458
|
+
item: T;
|
|
2459
|
+
previous: TileCacheNode<T> | null;
|
|
2460
|
+
next: TileCacheNode<T> | null;
|
|
2461
|
+
constructor(item: T, previous: TileCacheNode<T> | null, next: TileCacheNode<T> | null);
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
export declare interface TileContent {
|
|
2465
|
+
version: 1;
|
|
2466
|
+
magic: number;
|
|
2467
|
+
byteLength: number;
|
|
2468
|
+
header: {
|
|
2469
|
+
featureTableJsonByteLength: number;
|
|
2470
|
+
featureTableBinaryByteLength: number;
|
|
2471
|
+
batchTableJsonByteLength: number;
|
|
2472
|
+
batchTableBinaryByteLength: number;
|
|
2473
|
+
batchLength: number;
|
|
2474
|
+
};
|
|
2475
|
+
featureTableJson: Record<string, any>;
|
|
2476
|
+
featureTableBinary: Uint8Array;
|
|
2477
|
+
batchTableJson: Record<string, any>;
|
|
2478
|
+
batchTableBinary: Uint8Array;
|
|
2479
|
+
rotateYtoZ: boolean;
|
|
2480
|
+
gltfUpAxis: "X" | "Y" | "Z";
|
|
2481
|
+
gltfArrayBuffer: ArrayBuffer;
|
|
2482
|
+
gltfByteOffset: number;
|
|
2483
|
+
gltfByteLength: number;
|
|
2484
|
+
rtcCenter?: Float32Array;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
export declare interface TileCubeNode {
|
|
2488
|
+
level: number;
|
|
2489
|
+
face: "up" | "down" | "left" | "right" | "front" | "back";
|
|
2490
|
+
position: THREE_2.Vector2;
|
|
2491
|
+
size: number;
|
|
2492
|
+
box: THREE_2.Box3;
|
|
2493
|
+
children: TileCubeNode[];
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
export declare class TileCubeTextureTarget {
|
|
2497
|
+
private tileTree;
|
|
2498
|
+
private tileSources;
|
|
2499
|
+
private options;
|
|
2500
|
+
private renderer;
|
|
2501
|
+
name: string;
|
|
2502
|
+
needsRender: boolean;
|
|
2503
|
+
private disposed;
|
|
2504
|
+
private loadedCubeNodes;
|
|
2505
|
+
private loadingCubeNodes;
|
|
2506
|
+
private baseCubeTexture;
|
|
2507
|
+
private _cubeRenderTarget;
|
|
2508
|
+
private textures;
|
|
2509
|
+
constructor(baseCubeTexture: THREE_2.CubeTexture, tileTree: TileCubeTree, tileSources: WorkTile[], options: {
|
|
2510
|
+
textureSize: number;
|
|
2511
|
+
tileImageSize: number;
|
|
2512
|
+
textureLoader: TextureLoader;
|
|
2513
|
+
imageURL?: {
|
|
2514
|
+
transform?: (source: string, options: ImageURLOptions) => string;
|
|
2515
|
+
options?: ImageURLOptions;
|
|
2516
|
+
};
|
|
2517
|
+
format?: THREE_2.PixelFormat;
|
|
2518
|
+
minFilter?: THREE_2.TextureFilter;
|
|
2519
|
+
magFilter?: THREE_2.TextureFilter;
|
|
2520
|
+
wrapS?: THREE_2.Wrapping;
|
|
2521
|
+
wrapT?: THREE_2.Wrapping;
|
|
2522
|
+
}, renderer: THREE_2.WebGLRenderer);
|
|
2523
|
+
get cubeRenderTarget(): THREE_2.WebGLCubeRenderTarget | null;
|
|
2524
|
+
set cubeRenderTarget(cubeRenderTarget: THREE_2.WebGLCubeRenderTarget | null);
|
|
2525
|
+
private requestTile;
|
|
2526
|
+
update(frustum: THREE_2.Frustum, level: number): void;
|
|
2527
|
+
get tilePending(): number;
|
|
2528
|
+
get texture(): THREE_2.Texture;
|
|
2529
|
+
dispose(): void;
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2532
|
+
export declare interface TileCubeTree {
|
|
2533
|
+
children: TileCubeNode[];
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
export declare class TileCullingVolume {
|
|
2537
|
+
static get MASK_OUTSIDE(): number;
|
|
2538
|
+
static get MASK_INSIDE(): number;
|
|
2539
|
+
static get MASK_INDETERMINATE(): number;
|
|
2540
|
+
planes: Plane[];
|
|
2541
|
+
constructor(planes?: Plane[]);
|
|
2542
|
+
fromBoundingSphere(boundingSphere: {
|
|
2543
|
+
center: Vector3;
|
|
2544
|
+
radius: number;
|
|
2545
|
+
}): this;
|
|
2546
|
+
computeVisibilityWithPlaneMask(boundingVolume: TileBoundingVolume, parentPlaneMask: number): number;
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
export declare type TileFrameState = {
|
|
2550
|
+
camera: {
|
|
2551
|
+
position: number[];
|
|
2552
|
+
direction: number[];
|
|
2553
|
+
up: number[];
|
|
2554
|
+
};
|
|
2555
|
+
height: number;
|
|
2556
|
+
cullingVolume: TileCullingVolume;
|
|
2557
|
+
frameNumber: number;
|
|
2558
|
+
sseDenominator: number;
|
|
2559
|
+
};
|
|
2560
|
+
|
|
2561
|
+
export declare class TileOrientedBoundingBox {
|
|
2562
|
+
center: Vector3;
|
|
2563
|
+
halfAxes: Matrix3;
|
|
2564
|
+
constructor(center?: number[], halfAxes?: number[]);
|
|
2565
|
+
clone(): TileOrientedBoundingBox;
|
|
2566
|
+
equals(right: TileOrientedBoundingBox): boolean;
|
|
2567
|
+
getBoundingSphere(result?: TileBoundingSphere): TileBoundingSphere;
|
|
2568
|
+
intersectPlane(plane: Plane): 0 | 1 | -1;
|
|
2569
|
+
distanceTo(point: number[]): number;
|
|
2570
|
+
distanceSquaredTo(point: number[]): number;
|
|
2571
|
+
computePlaneDistances(position: Vector3, direction: Vector3, result?: number[]): number[];
|
|
2572
|
+
transform(transformation: number[]): this;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
/** Tracks one request */
|
|
2576
|
+
export declare type TileRequest<Identiy> = {
|
|
2577
|
+
identiy: Identiy;
|
|
2578
|
+
priority: number;
|
|
2579
|
+
getPriority: (identiy: Identiy) => number;
|
|
2580
|
+
resolve: (requestResult: TileRequestResult) => void;
|
|
2581
|
+
};
|
|
2582
|
+
|
|
2583
|
+
export declare type TileRequestResult = null | {
|
|
2584
|
+
done: () => void;
|
|
2585
|
+
};
|
|
2586
|
+
|
|
2587
|
+
/**
|
|
2588
|
+
* Used to issue a request, without having them "deeply queued" by the browser.
|
|
2589
|
+
* @todo - Track requests globally, across multiple servers
|
|
2590
|
+
*/
|
|
2591
|
+
export declare class TileRequestScheduler<Identiy> {
|
|
2592
|
+
private props;
|
|
2593
|
+
private activeRequestCount;
|
|
2594
|
+
/** Tracks the number of active requests and prioritizes/cancels queued requests. */
|
|
2595
|
+
private requestQueue;
|
|
2596
|
+
private requestMap;
|
|
2597
|
+
private deferred;
|
|
2598
|
+
constructor(props?: TileRequestSchedulerOptions);
|
|
2599
|
+
/**
|
|
2600
|
+
* Called by an application that wants to issue a request, without having it deeply queued by the browser
|
|
2601
|
+
*
|
|
2602
|
+
* When the returned promise resolved, it is OK for the application to issue a request.
|
|
2603
|
+
* The promise resolves to an object that contains a `done` method.
|
|
2604
|
+
* When the application's request has completed (or failed), the application must call the `done` function
|
|
2605
|
+
*
|
|
2606
|
+
* @param identiy - Identiy
|
|
2607
|
+
* @param getPriority - will be called when request "slots" open up, allowing the caller to update priority or cancel the request Highest priority executes first, priority less than 0 cancels the request
|
|
2608
|
+
* @returns a promise resolves to a object (with a `done` field) when the request can be issued without queueing, resolves to `null` if the request has been cancelled (by the callback return less than 0). In this case the application should not issue the request
|
|
2609
|
+
*/
|
|
2610
|
+
scheduleRequest(identiy: Identiy, getPriority?: (identiy: Identiy) => number): Promise<TileRequestResult>;
|
|
2611
|
+
private issueRequest;
|
|
2612
|
+
/** We check requests asynchronously, to prevent multiple updates */
|
|
2613
|
+
private issueNewRequests;
|
|
2614
|
+
/** Refresh all requests */
|
|
2615
|
+
private issueNewRequestsAsync;
|
|
2616
|
+
/** Ensure all requests have updated priorities, and that no longer valid requests are cancelled */
|
|
2617
|
+
private updateAllRequests;
|
|
2618
|
+
/** Update a single request by calling the callback */
|
|
2619
|
+
private updateRequest;
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
/** RequestScheduler Options */
|
|
2623
|
+
export declare type TileRequestSchedulerOptions = {
|
|
2624
|
+
throttleRequests?: boolean;
|
|
2625
|
+
maxRequests?: number;
|
|
2626
|
+
};
|
|
2627
|
+
|
|
2628
|
+
export declare class Tileset3D {
|
|
2629
|
+
rawJson: any;
|
|
2630
|
+
options: Tileset3dOptions;
|
|
2631
|
+
root: Tile3D;
|
|
2632
|
+
traverser: Tileset3DTraverser;
|
|
2633
|
+
cache: TilesetCache;
|
|
2634
|
+
requestScheduler: TileRequestScheduler<string>;
|
|
2635
|
+
selectedTiles: Tile3D[];
|
|
2636
|
+
requestedTiles: Tile3D[];
|
|
2637
|
+
memoryUsageInBytes: number;
|
|
2638
|
+
frameNumber: number;
|
|
2639
|
+
private _tiles;
|
|
2640
|
+
private pendingCount;
|
|
2641
|
+
b3dmMapping: TilesetJSON['b3dmMapping'];
|
|
2642
|
+
/**
|
|
2643
|
+
* Create a new Tileset3D
|
|
2644
|
+
* @param json - TilesetJSON
|
|
2645
|
+
* @param options - Tileset3dOptions
|
|
2646
|
+
*/
|
|
2647
|
+
constructor(json: TilesetJSON, options: Tileset3dOptions);
|
|
2648
|
+
get maxMemoryUsage(): number;
|
|
2649
|
+
get asset(): any;
|
|
2650
|
+
get type(): any;
|
|
2651
|
+
get basePath(): any;
|
|
2652
|
+
get modelMatrix(): Matrix4;
|
|
2653
|
+
get geometricError(): number;
|
|
2654
|
+
get lodMetricType(): number;
|
|
2655
|
+
get lodMetricValue(): number;
|
|
2656
|
+
get refine(): 'ADD' | "REPLACE";
|
|
2657
|
+
get tiles(): Tile3D[];
|
|
2658
|
+
get floorInfo(): TilesetJSON['floorInfo'];
|
|
2659
|
+
/** Release resources */
|
|
2660
|
+
reset(): void;
|
|
2661
|
+
/** Is the tileset loaded (update needs to have been called at least once) */
|
|
2662
|
+
isLoaded(): boolean;
|
|
2663
|
+
/**
|
|
2664
|
+
* The callback to post-process tiles after traversal procedure
|
|
2665
|
+
* @param frameState - frame state for tile culling
|
|
2666
|
+
*/
|
|
2667
|
+
private onTraversalEnd;
|
|
2668
|
+
loadTile(tile: Tile3D): void;
|
|
2669
|
+
unloadTile(tile: Tile3D): void;
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
export declare interface Tileset3dOptions {
|
|
2673
|
+
throttleRequests: boolean;
|
|
2674
|
+
maxRequests: number;
|
|
2675
|
+
maxMemoryUsage: number;
|
|
2676
|
+
modelMatrix: Matrix4;
|
|
2677
|
+
maxScreenSpaceError: number;
|
|
2678
|
+
viewDistanceScale: number;
|
|
2679
|
+
onTileLoad: (tile: Tile3D) => any;
|
|
2680
|
+
onTileUnload: (tile: Tile3D) => any;
|
|
2681
|
+
onTileError: (tile: Tile3D, message: string) => any;
|
|
2682
|
+
contentLoader: (tile: Tile3D) => Promise<void>;
|
|
2683
|
+
onTraversalComplete: (selectedTiles: Tile3D[]) => Tile3D[];
|
|
2684
|
+
allowHosts?: string[];
|
|
2685
|
+
requestProxy?: (url: string) => string | Promise<string>;
|
|
2686
|
+
networkSubscribe?: NetworkSubscribe;
|
|
2687
|
+
maxDepth?: number;
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
export declare class Tileset3DTraverser {
|
|
2691
|
+
root: Tile3D | null;
|
|
2692
|
+
options: TilesetTraverserProps;
|
|
2693
|
+
requestedTiles: Record<string, Tile3D>;
|
|
2694
|
+
selectedTiles: Record<string, Tile3D>;
|
|
2695
|
+
emptyTiles: Record<string, Tile3D>;
|
|
2696
|
+
private _traversalStack;
|
|
2697
|
+
private _emptyTraversalStack;
|
|
2698
|
+
private _frameNumber;
|
|
2699
|
+
constructor(options: TilesetTraverserProps);
|
|
2700
|
+
traverse(root: Tile3D, frameState: TileFrameState): void;
|
|
2701
|
+
reset(): void;
|
|
2702
|
+
private executeTraversal;
|
|
2703
|
+
private updateChildTiles;
|
|
2704
|
+
private updateAndPushChildren;
|
|
2705
|
+
updateTile(tile: Tile3D, frameState: TileFrameState): void;
|
|
2706
|
+
selectTile(tile: Tile3D, frameState: TileFrameState): void;
|
|
2707
|
+
loadTile(tile: Tile3D, frameState: TileFrameState): void;
|
|
2708
|
+
touchTile(tile: Tile3D, frameState: TileFrameState): void;
|
|
2709
|
+
private canTraverse;
|
|
2710
|
+
private shouldLoadTile;
|
|
2711
|
+
private shouldSelectTile;
|
|
2712
|
+
private shouldRefine;
|
|
2713
|
+
private updateTileVisibility;
|
|
2714
|
+
private meetsScreenSpaceErrorEarly;
|
|
2715
|
+
private compareDistanceToCamera;
|
|
2716
|
+
private anyChildrenVisible;
|
|
2717
|
+
private everyChildrenVisibleIsLoaded;
|
|
2718
|
+
private executeEmptyTraversal;
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
export declare class TilesetCache {
|
|
2722
|
+
private list;
|
|
2723
|
+
private sentinel;
|
|
2724
|
+
constructor();
|
|
2725
|
+
reset(): void;
|
|
2726
|
+
touch(tile: Tile3D): void;
|
|
2727
|
+
add(tile: Tile3D, addCallback?: (tile: Tile3D) => void): void;
|
|
2728
|
+
unloadTile(tile: Tile3D, unloadCallback?: (tile: Tile3D) => void): void;
|
|
2729
|
+
unloadTiles(isOverMemory: () => boolean, unloadCallback?: (tile: Tile3D) => void): void;
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
export declare interface TilesetJSON {
|
|
2733
|
+
asset: {
|
|
2734
|
+
gltfUpAxis: "X" | "Y" | "Z";
|
|
2735
|
+
version: "1.0";
|
|
2736
|
+
};
|
|
2737
|
+
basePath: string;
|
|
2738
|
+
lodMetricType: "geometricError";
|
|
2739
|
+
geometricError: number;
|
|
2740
|
+
lodMetricValue: number;
|
|
2741
|
+
root: TilesetJSONNode;
|
|
2742
|
+
type: "TILES3D";
|
|
2743
|
+
floorInfo: {
|
|
2744
|
+
ground: number;
|
|
2745
|
+
height: number;
|
|
2746
|
+
}[];
|
|
2747
|
+
b3dmMapping: {
|
|
2748
|
+
b3dm_base_url: string;
|
|
2749
|
+
b3dm_url: Record<string, string>;
|
|
2750
|
+
};
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
export declare interface TilesetJSONNode {
|
|
2754
|
+
boundingVolume: {
|
|
2755
|
+
box: number[];
|
|
2756
|
+
};
|
|
2757
|
+
content: {
|
|
2758
|
+
uri: string;
|
|
2759
|
+
};
|
|
2760
|
+
id: string;
|
|
2761
|
+
transform?: number[];
|
|
2762
|
+
contentUrl?: string;
|
|
2763
|
+
children: TilesetJSONNode[];
|
|
2764
|
+
lodMetricType: "geometricError";
|
|
2765
|
+
geometricError: number;
|
|
2766
|
+
lodMetricValue: number;
|
|
2767
|
+
refine: "REPLACE" | "ADD";
|
|
2768
|
+
type: "EMPTY" | "SCENEGRAPH" | "MESH";
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
export declare type TilesetTraverserProps = {
|
|
2772
|
+
loadSiblings: boolean;
|
|
2773
|
+
skipLevelOfDetail: boolean;
|
|
2774
|
+
maxScreenSpaceError: number;
|
|
2775
|
+
maxDepth?: number;
|
|
2776
|
+
onTraversalEnd: (frameState: TileFrameState) => any;
|
|
2777
|
+
};
|
|
2778
|
+
|
|
2779
|
+
export declare interface TopviewControllerCustomInitArgs extends Omit<FloorplanControllerCustomInitArgs, "defaultLongitude" | "defaultLatitude" | "maxLatitude" | "minLatitude"> {
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
export declare interface VRPanoramaControllerCustomInitArgs extends Omit<PanoramaControllerCustomInitArgs, "maxLatitude" | "minLatitude"> {
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
export declare type WebXREventTypes = {
|
|
2786
|
+
/** WebXR模式开始,session完成坐标系设置*/
|
|
2787
|
+
webXRSessionStart(): void;
|
|
2788
|
+
/** WebXR模式结束,销毁session*/
|
|
2789
|
+
webXRSessionEnd(): void;
|
|
2790
|
+
};
|
|
2791
|
+
|
|
2792
|
+
export declare interface WebXRSelectParams {
|
|
2793
|
+
axes: readonly number[];
|
|
2794
|
+
raycaster: THREE_2.Raycaster;
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
export declare type WebXRSelectType = "Select" | "Squeeze" | "Axes" | "LeftButtonA" | "LeftButtonB" | "RightButtonA" | "RightButtonB" | "LeftAxesLeftTap" | "LeftAxesRightTap" | "LeftAxesUpTap" | "LeftAxesDownTap" | "RightAxesLeftTap" | "RightAxesRightTap" | "RightAxesUpTap" | "RightAxesDownTap";
|
|
2798
|
+
|
|
2799
|
+
export declare class Work {
|
|
2800
|
+
/** 名称 */
|
|
2801
|
+
name: string;
|
|
2802
|
+
/** 编号 */
|
|
2803
|
+
workCode: string;
|
|
2804
|
+
/** 允许访问的安全域名 */
|
|
2805
|
+
allowHosts: string[];
|
|
2806
|
+
/** 过期时间 */
|
|
2807
|
+
expire: Date;
|
|
2808
|
+
/** 初始化参数 */
|
|
1757
2809
|
initial: WorkInitial;
|
|
2810
|
+
/** 模型参数 */
|
|
1758
2811
|
model?: WorkModel;
|
|
2812
|
+
/** 全景点位信息 */
|
|
1759
2813
|
observers: WorkObserver[];
|
|
1760
|
-
|
|
2814
|
+
/** 包围盒子 */
|
|
2815
|
+
boundingBox: THREE_2.Box3;
|
|
2816
|
+
/** 数据签发人 */
|
|
2817
|
+
issuer: string;
|
|
2818
|
+
/** 原始数据 */
|
|
2819
|
+
raw: {
|
|
2820
|
+
works: string[];
|
|
2821
|
+
options: string;
|
|
2822
|
+
};
|
|
2823
|
+
/**
|
|
2824
|
+
* 解析 Work 数据
|
|
2825
|
+
* @param obj - work 数据,从如数开发者平台获取
|
|
2826
|
+
* @param options - 配置参数, 可以在此二次设置 baseURL 等参数
|
|
2827
|
+
* @param urlTransform - 配置参数, URL 解析规则
|
|
2828
|
+
* @returns - 签署过的 Work 数据结构
|
|
2829
|
+
*/
|
|
2830
|
+
static parse: typeof parseWork;
|
|
2831
|
+
constructor();
|
|
2832
|
+
toJSON(): any;
|
|
2833
|
+
}
|
|
1761
2834
|
|
|
1762
|
-
|
|
1763
|
-
|
|
2835
|
+
export declare interface WorkCubeImage {
|
|
2836
|
+
/** 全景图 up */
|
|
1764
2837
|
up: string;
|
|
2838
|
+
/** 全景图 down */
|
|
1765
2839
|
down: string;
|
|
2840
|
+
/** 全景图 right */
|
|
1766
2841
|
right: string;
|
|
2842
|
+
/** 全景图 left */
|
|
1767
2843
|
left: string;
|
|
2844
|
+
/** 全景图 front */
|
|
1768
2845
|
front: string;
|
|
2846
|
+
/** 全景图 back */
|
|
1769
2847
|
back: string;
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
/** 全景图 */
|
|
2851
|
+
export declare interface WorkImage extends WorkCubeImage {
|
|
2852
|
+
/** 深度图 */
|
|
1770
2853
|
depth?: string;
|
|
1771
|
-
|
|
1772
|
-
|
|
2854
|
+
/** 光照强度图 */
|
|
2855
|
+
luminance?: WorkCubeImage;
|
|
2856
|
+
/** 瓦片信息 */
|
|
2857
|
+
tiles?: WorkTile[];
|
|
2858
|
+
}
|
|
1773
2859
|
|
|
1774
2860
|
/** 初始化位姿参数 */
|
|
1775
|
-
export declare
|
|
2861
|
+
export declare interface WorkInitial extends Omit<State, "offset" | "distance"> {
|
|
2862
|
+
}
|
|
1776
2863
|
|
|
1777
2864
|
/** 模型数据 */
|
|
1778
|
-
export declare
|
|
2865
|
+
export declare interface WorkModel {
|
|
2866
|
+
/** 模型文件地址 at3d / domez */
|
|
1779
2867
|
file: string;
|
|
2868
|
+
/** 模型贴图文件地址 */
|
|
1780
2869
|
textures: string[];
|
|
2870
|
+
/** 模型贴图文件地址的父目录 */
|
|
1781
2871
|
textureBase: string;
|
|
2872
|
+
/** 是否开启 bvh 碰撞树,开启会大大加快射线碰撞的执行效率 */
|
|
1782
2873
|
bvh: boolean;
|
|
1783
|
-
|
|
1784
|
-
}
|
|
2874
|
+
tiles?: WorkModelTiles;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
/** 模型瓦片 */
|
|
2878
|
+
export declare interface WorkModelTiles {
|
|
2879
|
+
tileset_url: string;
|
|
2880
|
+
tileset_url_md5: string;
|
|
2881
|
+
b3md_mappings_url: string;
|
|
2882
|
+
b3md_mappings_url_md5: string;
|
|
2883
|
+
}
|
|
1785
2884
|
|
|
1786
2885
|
/** 每个点位的数据 */
|
|
1787
|
-
export declare
|
|
2886
|
+
export declare interface WorkObserver {
|
|
2887
|
+
/** 点位序号 */
|
|
1788
2888
|
panoIndex: number;
|
|
2889
|
+
/** 点位是否激活可用 */
|
|
1789
2890
|
active: boolean;
|
|
2891
|
+
/** 点位是否可加载 */
|
|
1790
2892
|
loadable: boolean;
|
|
1791
|
-
|
|
2893
|
+
/** 点位全景图 */
|
|
2894
|
+
images: WorkImage;
|
|
2895
|
+
/** 点位视频 */
|
|
1792
2896
|
video?: WorkVideo;
|
|
2897
|
+
/** 可以看到的相关点位序号 */
|
|
1793
2898
|
visibleNodes: number[];
|
|
2899
|
+
/** 可以连通的相关点位序号 */
|
|
1794
2900
|
accessibleNodes: number[];
|
|
2901
|
+
/** 点位和模型的旋转对齐关系四元数 */
|
|
1795
2902
|
quaternion: THREE_2.Quaternion;
|
|
2903
|
+
/** 点位和模型的地面位置坐标关系 */
|
|
1796
2904
|
standingPosition: THREE_2.Vector3;
|
|
2905
|
+
/** 点位和模型的观察点坐标关系 */
|
|
1797
2906
|
position: THREE_2.Vector3;
|
|
2907
|
+
/** 点位所在楼层 */
|
|
1798
2908
|
floorIndex: number;
|
|
1799
|
-
}
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
export declare interface WorkTile {
|
|
2912
|
+
level: number;
|
|
2913
|
+
size: number;
|
|
2914
|
+
up: string;
|
|
2915
|
+
down: string;
|
|
2916
|
+
right: string;
|
|
2917
|
+
left: string;
|
|
2918
|
+
front: string;
|
|
2919
|
+
back: string;
|
|
2920
|
+
}
|
|
1800
2921
|
|
|
1801
2922
|
/** 全景视频贴片 */
|
|
1802
|
-
export declare
|
|
2923
|
+
export declare interface WorkVideo {
|
|
2924
|
+
/** 视频源 url */
|
|
1803
2925
|
source: string;
|
|
2926
|
+
/** 视频源变化矩阵 */
|
|
1804
2927
|
matrix: THREE_2.Matrix4;
|
|
2928
|
+
/** 视频源长宽尺寸 */
|
|
1805
2929
|
size: THREE_2.Vector2;
|
|
1806
|
-
}
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
export declare class XRButton {
|
|
2933
|
+
static createButton(onClickHook: () => void): HTMLAnchorElement | HTMLButtonElement;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
export declare interface XRPanoramaControllerCustomInitArgs extends Omit<PanoramaControllerCustomInitArgs, "maxLatitude" | "minLatitude"> {
|
|
2937
|
+
}
|
|
1807
2938
|
|
|
1808
2939
|
export { }
|