@realsee/five 5.0.0-alpha.135 → 5.0.0-alpha.138
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/docs/assets/search.js +1 -1
- package/docs/classes/five.AnimationFrameLoop.html +4 -4
- package/docs/classes/five.BVH.html +1 -1
- package/docs/classes/five.BVHIntersect.html +1 -1
- package/docs/classes/five.BVHNode.html +1 -1
- package/docs/classes/five.BVHVector3.html +1 -1
- package/docs/classes/five.Camera.html +1 -1
- package/docs/classes/five.Five.html +57 -56
- package/docs/classes/five.InternalWebGLRenderer.html +1 -1
- package/docs/classes/five.IntersectMesh.html +1 -1
- package/docs/classes/five.LegacyPanoCircleMesh.html +1 -1
- package/docs/classes/five.Model.html +4 -4
- package/docs/classes/five.NetworkSubscribe.html +1 -1
- package/docs/classes/five.PBMContainer.html +4 -4
- package/docs/classes/five.PBMGroup.html +4 -4
- package/docs/classes/five.PBMMaterial.html +8 -6
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PanoCircleMesh.html +1 -1
- package/docs/classes/five.Scene.html +1 -1
- package/docs/classes/five.Subscribe.html +1 -1
- package/docs/classes/five.Tile3D.html +1 -1
- package/docs/classes/five.Tile3DModel.html +4 -4
- package/docs/classes/five.TileBoundingSphere.html +1 -1
- package/docs/classes/five.TileCacheNode.html +1 -1
- package/docs/classes/five.TileCullingVolume.html +1 -1
- package/docs/classes/five.TileOrientedBoundingBox.html +1 -1
- package/docs/classes/five.TilePlane.html +1 -1
- package/docs/classes/five.TileRequestScheduler.html +1 -1
- package/docs/classes/five.Tileset3D.html +1 -1
- package/docs/classes/five.Tileset3DTraverser.html +1 -1
- package/docs/classes/five.TilesetCache.html +1 -1
- package/docs/classes/five.Work.html +1 -1
- package/docs/classes/five.XRButton.html +1 -0
- package/docs/classes/gltf_loader.GLTFLoader.html +1 -1
- package/docs/classes/gltf_loader.GLTFObject.html +1 -1
- package/docs/classes/line.Line.html +1 -1
- package/docs/classes/line.LineGeometry.html +1 -1
- package/docs/classes/line.LineMaterial.html +1 -1
- package/docs/classes/line.LineSegmentsGeometry.html +1 -1
- package/docs/classes/line.THREE_Line2.html +1 -1
- package/docs/classes/line.THREE_LineSegments2.html +1 -1
- package/docs/classes/react.Store.html +1 -1
- package/docs/classes/server.BVH.html +1 -1
- package/docs/classes/server.BVHIntersect.html +1 -1
- package/docs/classes/server.BVHNode.html +1 -1
- package/docs/classes/server.BVHVector3.html +1 -1
- package/docs/classes/server.Model.html +1 -1
- package/docs/classes/server.PBMGroup.html +1 -1
- package/docs/classes/server.PBMMesh.html +1 -1
- package/docs/classes/sticker.Sticker.html +1 -1
- package/docs/index.html +1 -1
- package/docs/interfaces/five.AddableObject.html +1 -1
- package/docs/interfaces/five.AnimationFrame.html +1 -1
- package/docs/interfaces/five.CameraPose.html +1 -1
- package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.EventCallback.html +31 -27
- package/docs/interfaces/five.FiveInitArgs.html +10 -8
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ImageOptions.html +1 -1
- package/docs/interfaces/five.ImageURLMappings.html +1 -1
- package/docs/interfaces/five.ImageURLOptions.html +1 -1
- package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/five.Intersection.html +1 -1
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelEventCallback.html +1 -1
- package/docs/interfaces/five.MovePanoOptions.html +1 -1
- package/docs/interfaces/five.PBMPanoPicture.html +1 -1
- package/docs/interfaces/five.PBMParameters.html +7 -5
- package/docs/interfaces/five.PanoCircleMeshInterface.html +1 -1
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.Pose.html +1 -1
- package/docs/interfaces/five.Scissor.html +1 -1
- package/docs/interfaces/five.State.html +1 -1
- package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -1
- package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -1
- package/docs/interfaces/five.SubscribeMixinType.off.html +1 -1
- package/docs/interfaces/five.SubscribeMixinType.on.html +1 -1
- package/docs/interfaces/five.SubscribeMixinType.once.html +1 -1
- package/docs/interfaces/five.TextureOptions.html +1 -1
- package/docs/interfaces/five.Tile3DModelLoaderOptions.html +1 -1
- package/docs/interfaces/five.TileBoundingVolume.html +1 -1
- package/docs/interfaces/five.TileContent.html +1 -1
- package/docs/interfaces/five.Tileset3dOptions.html +1 -1
- package/docs/interfaces/five.TilesetJSON.html +1 -1
- package/docs/interfaces/five.TilesetJSONNode.html +1 -1
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.WorkCubeImage.html +1 -1
- package/docs/interfaces/five.WorkImage.html +1 -1
- package/docs/interfaces/five.WorkInitial.html +1 -1
- package/docs/interfaces/five.WorkModel.html +1 -1
- package/docs/interfaces/five.WorkModelTiles.html +1 -1
- package/docs/interfaces/five.WorkObserver.html +1 -1
- package/docs/interfaces/five.WorkTile.html +1 -1
- package/docs/interfaces/five.WorkVideo.html +1 -1
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +29 -0
- package/docs/interfaces/gltf_loader.GLTF.html +1 -1
- package/docs/interfaces/react.FiveActionReactCallbacks.html +1 -1
- package/docs/interfaces/react.FiveInjectionTypes.html +4 -4
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -1
- package/docs/interfaces/server.Intersection.html +1 -1
- package/docs/interfaces/server.ModelEventCallback.html +1 -1
- package/docs/interfaces/sticker.IntersectionLike.html +1 -1
- package/docs/interfaces/vue.FiveActionVueCallbacks.html +1 -1
- package/docs/modules/five.SubscribeMixinType.html +1 -1
- package/docs/modules/five.html +13 -5
- package/docs/modules/gltf_loader.html +1 -1
- package/docs/modules/line.html +1 -1
- package/docs/modules/react.html +1 -1
- package/docs/modules/server.html +1 -1
- package/docs/modules/sticker.html +1 -1
- package/docs/modules/vue.html +1 -1
- package/docs/modules.html +1 -1
- package/five/index.d.ts +46 -6
- package/five/index.js +12 -12
- package/gltf-loader/index.js +2 -2
- package/line/index.js +2 -2
- package/package.json +1 -1
- package/react/index.js +2 -2
- package/server/index.d.ts +3 -1
- package/server/index.js +2 -2
- package/sticker/index.js +2 -2
- package/umd/five.js +1 -1
- package/vue/index.js +2 -2
package/five/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare interface AddableObject extends THREE_2.Object3D {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export declare interface AnimationFrame {
|
|
14
|
-
callback: (time: number, deltaTime: number) => void;
|
|
14
|
+
callback: (time: number, deltaTime: number, ...args: any[]) => void;
|
|
15
15
|
once: boolean;
|
|
16
16
|
delay: number;
|
|
17
17
|
order: number;
|
|
@@ -21,11 +21,17 @@ export declare class AnimationFrameLoop {
|
|
|
21
21
|
private frames;
|
|
22
22
|
private time;
|
|
23
23
|
private stoped;
|
|
24
|
+
private context?;
|
|
25
|
+
private requestId;
|
|
24
26
|
private static sharedInstance?;
|
|
25
27
|
static get shared(): AnimationFrameLoop;
|
|
26
28
|
static getFrameTime(): number;
|
|
27
29
|
constructor();
|
|
28
30
|
private loop;
|
|
31
|
+
setContext(context: any): void;
|
|
32
|
+
getContext(): any;
|
|
33
|
+
private requestAnimationFrame;
|
|
34
|
+
private cancelAnimationFrame;
|
|
29
35
|
private remove;
|
|
30
36
|
/**
|
|
31
37
|
* 添加到动画循环
|
|
@@ -124,6 +130,7 @@ export declare type ControllerCustomInitTypes = {
|
|
|
124
130
|
Model: ModelControllerCustomInitArgs;
|
|
125
131
|
DepthPanorama: DepthPanoramaControllerCustomInitArgs;
|
|
126
132
|
Mapview: MapviewControllerCustomInitArgs;
|
|
133
|
+
XRPanorama: XRPanoramaControllerCustomInitArgs;
|
|
127
134
|
};
|
|
128
135
|
|
|
129
136
|
export declare type ControllerEventTypes = {
|
|
@@ -411,6 +418,14 @@ export declare type ControllerEventTypes = {
|
|
|
411
418
|
* @param error - 抛出错误
|
|
412
419
|
*/
|
|
413
420
|
error(error: Error): void;
|
|
421
|
+
/**
|
|
422
|
+
* webXR模式开始,webxr session完成坐标系矫正
|
|
423
|
+
*/
|
|
424
|
+
webXRSessionStart(): void;
|
|
425
|
+
/**
|
|
426
|
+
* webXR模式结束,webxr session销毁
|
|
427
|
+
*/
|
|
428
|
+
webXRSessionEnd(): void;
|
|
414
429
|
};
|
|
415
430
|
|
|
416
431
|
/**
|
|
@@ -618,6 +633,7 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
618
633
|
* Topview 户型图模式
|
|
619
634
|
* DepthPanorama 深度图游走模式
|
|
620
635
|
* VRPanorama VR眼镜模式
|
|
636
|
+
* XRPanorama VR硬件模式
|
|
621
637
|
* ```
|
|
622
638
|
*/
|
|
623
639
|
static Mode: Mirror<Mode>;
|
|
@@ -913,7 +929,7 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
913
929
|
* @param callback - 渲染完成回调
|
|
914
930
|
*/
|
|
915
931
|
render(callback?: () => void, updateObjectResolution?: boolean): THREE_2.WebGLRenderTarget;
|
|
916
|
-
updateTime(time: number, deltaTime: number): void;
|
|
932
|
+
updateTime(time: number, deltaTime: number, ...args: any[]): void;
|
|
917
933
|
/**
|
|
918
934
|
* 但停自动播放
|
|
919
935
|
*/
|
|
@@ -925,7 +941,7 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
925
941
|
* @param options - 移动点位参数
|
|
926
942
|
* @param userAction - 是否用户触犯
|
|
927
943
|
*/
|
|
928
|
-
moveToPano(panoIndex: number, options?: MovePanoOptions, userAction?: boolean): void
|
|
944
|
+
moveToPano(panoIndex: number, options?: MovePanoOptions, userAction?: boolean): Promise<void>;
|
|
929
945
|
/**
|
|
930
946
|
* 预加载点位图片资源
|
|
931
947
|
* @param panoIndex - 观察点序号
|
|
@@ -975,7 +991,9 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
975
991
|
/**
|
|
976
992
|
* 当前页面静态
|
|
977
993
|
*/
|
|
978
|
-
ready(
|
|
994
|
+
ready(args?: {
|
|
995
|
+
tile?: boolean;
|
|
996
|
+
}): Promise<void>;
|
|
979
997
|
/**
|
|
980
998
|
* 请求全屏
|
|
981
999
|
*/
|
|
@@ -1132,6 +1150,8 @@ export declare interface FiveInitArgs {
|
|
|
1132
1150
|
depthPanorama?: ControllerCustomInitTypes["DepthPanorama"];
|
|
1133
1151
|
/** VR眼镜模式下的特定参数 */
|
|
1134
1152
|
vrPanorama?: ControllerCustomInitTypes["VRPanorama"];
|
|
1153
|
+
/** XR眼镜模式下的特定参数 */
|
|
1154
|
+
xrPanorama?: ControllerCustomInitTypes["XRPanorama"];
|
|
1135
1155
|
/**
|
|
1136
1156
|
* 模式间切换时的过度动画时间
|
|
1137
1157
|
* @description
|
|
@@ -1439,7 +1459,9 @@ export declare type Mode =
|
|
|
1439
1459
|
/** 模型游走模式 */
|
|
1440
1460
|
"Model" |
|
|
1441
1461
|
/** 深度图游走模式 */
|
|
1442
|
-
"DepthPanorama"
|
|
1462
|
+
"DepthPanorama" |
|
|
1463
|
+
/** XR眼镜模式*/
|
|
1464
|
+
"XRPanorama";
|
|
1443
1465
|
|
|
1444
1466
|
/**
|
|
1445
1467
|
* Five 模型
|
|
@@ -1834,6 +1856,8 @@ export declare class PBMMaterial extends THREE_2.ShaderMaterial implements PBMPa
|
|
|
1834
1856
|
progress: number;
|
|
1835
1857
|
/** 全景图通过过度黑色混合 */
|
|
1836
1858
|
useBlackTransition: boolean;
|
|
1859
|
+
/** XR模式防止申请纹理显存时的黑色过渡 */
|
|
1860
|
+
useXRBlackTransition: boolean;
|
|
1837
1861
|
perspToOrtho: number;
|
|
1838
1862
|
/** 模型透明度 */
|
|
1839
1863
|
opacity: number;
|
|
@@ -1872,6 +1896,8 @@ export declare interface PBMParameters {
|
|
|
1872
1896
|
progress: number;
|
|
1873
1897
|
/** 全景图通过过度黑色混合 */
|
|
1874
1898
|
useBlackTransition: boolean;
|
|
1899
|
+
/** XR模式防止申请纹理显存时的黑色过渡 */
|
|
1900
|
+
useXRBlackTransition: boolean;
|
|
1875
1901
|
perspToOrtho: number;
|
|
1876
1902
|
/** 模型透明度 */
|
|
1877
1903
|
opacity: number;
|
|
@@ -1896,7 +1922,7 @@ export declare interface Pose {
|
|
|
1896
1922
|
distance: number;
|
|
1897
1923
|
}
|
|
1898
1924
|
|
|
1899
|
-
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"];
|
|
1925
|
+
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"];
|
|
1900
1926
|
|
|
1901
1927
|
/** Five 场景*/
|
|
1902
1928
|
export declare class Scene extends THREE_2.Scene {
|
|
@@ -2506,6 +2532,13 @@ export declare interface TopviewControllerCustomInitArgs extends Omit<FloorplanC
|
|
|
2506
2532
|
export declare interface VRPanoramaControllerCustomInitArgs extends Omit<PanoramaControllerCustomInitArgs, "maxLatitude" | "minLatitude"> {
|
|
2507
2533
|
}
|
|
2508
2534
|
|
|
2535
|
+
export declare type WebXREventTypes = {
|
|
2536
|
+
/** WebXR模式开始,session完成坐标系设置*/
|
|
2537
|
+
webXRSessionStart(): void;
|
|
2538
|
+
/** WebXR模式结束,销毁session*/
|
|
2539
|
+
webXRSessionEnd(): void;
|
|
2540
|
+
};
|
|
2541
|
+
|
|
2509
2542
|
export declare class Work {
|
|
2510
2543
|
/** 名称 */
|
|
2511
2544
|
name: string;
|
|
@@ -2637,4 +2670,11 @@ export declare interface WorkVideo {
|
|
|
2637
2670
|
size: THREE_2.Vector2;
|
|
2638
2671
|
}
|
|
2639
2672
|
|
|
2673
|
+
export declare class XRButton {
|
|
2674
|
+
static createButton(onClickHook: () => void): HTMLAnchorElement | HTMLButtonElement;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
export declare interface XRPanoramaControllerCustomInitArgs extends Omit<PanoramaControllerCustomInitArgs, "maxLatitude" | "minLatitude"> {
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2640
2680
|
export { }
|