@realsee/five 5.0.0-alpha.201 → 5.0.0-alpha.203
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 +1 -1
- package/docs/classes/five.BVH.html +2 -2
- 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.Clipper.html +1 -1
- package/docs/classes/five.Five.html +54 -56
- package/docs/classes/five.InternalWebGLRenderer.html +1 -1
- package/docs/classes/five.IntersectMesh.html +1 -1
- package/docs/classes/five.Model.html +36 -28
- package/docs/classes/five.NetworkSubscribe.html +1 -1
- package/docs/classes/five.PBMContainer.html +1 -1
- package/docs/classes/five.PBMGroup.html +1 -1
- package/docs/classes/five.PBMMaterial.html +1 -1
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PanoCircleMesh.html +1 -1
- package/docs/classes/five.PanoCircleMeshCustom.html +1 -1
- package/docs/classes/five.PanoCircleMeshSolid.html +1 -1
- package/docs/classes/five.Scene.html +1 -1
- package/docs/classes/five.Subscribe.html +1 -1
- package/docs/classes/five.TextureLoader.html +1 -1
- package/docs/classes/five.Tile3D.html +12 -12
- 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.TileCubeTextureTarget.html +1 -1
- package/docs/classes/five.TileCullingVolume.html +1 -1
- package/docs/classes/five.TileOrientedBoundingBox.html +1 -1
- package/docs/classes/five.TileRequestScheduler.html +1 -1
- package/docs/classes/five.Tileset3D.html +4 -4
- package/docs/classes/five.Tileset3DTraverser.html +1 -1
- package/docs/classes/five.TilesetCache.html +1 -1
- package/docs/classes/five.Work.html +4 -4
- package/docs/classes/five.XRButton.html +1 -1
- package/docs/classes/gltf_loader.DDSLoader.html +1 -1
- package/docs/classes/gltf_loader.DRACOLoader.html +1 -1
- package/docs/classes/gltf_loader.GLTFLoader.html +1 -1
- package/docs/classes/gltf_loader.GLTFObject.html +1 -1
- package/docs/classes/gltf_loader.GLTFParser.html +1 -1
- package/docs/classes/gltf_loader.THREEGLTFLoader.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.PBMContainer.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/classes/vfx.Airflow.html +1 -1
- package/docs/classes/vfx.Flame.html +1 -1
- package/docs/classes/vfx.Particle.html +1 -1
- package/docs/classes/vfx.SpotLight.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.ClipperParameter.html +1 -1
- package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.EventCallback.html +6 -7
- package/docs/interfaces/five.FiveInitArgs.html +1 -1
- 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 +7 -7
- package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/five.Intersection.html +3 -3
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelEventCallback.html +9 -9
- package/docs/interfaces/five.ModelLodOptions.html +1 -1
- package/docs/interfaces/five.MotionKeyframe.html +1 -1
- package/docs/interfaces/five.MovePanoOptions.html +1 -1
- package/docs/interfaces/five.NetworkOptions.html +1 -1
- package/docs/interfaces/five.PBMPanoPicture.html +1 -1
- package/docs/interfaces/five.PBMParameters.html +1 -1
- package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +1 -1
- package/docs/interfaces/five.PanoCircleMeshInterface.html +1 -1
- package/docs/interfaces/five.PanoCircleMeshOptions.html +1 -1
- package/docs/interfaces/five.PanoCircleMeshSolidOptions.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 +2 -2
- package/docs/interfaces/five.TileBoundingVolume.html +1 -1
- package/docs/interfaces/five.TileContent.html +1 -1
- package/docs/interfaces/five.TileCubeNode.html +1 -1
- package/docs/interfaces/five.TileCubeTree.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.WebXRControllerParams.html +1 -0
- 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 +1 -1
- package/docs/interfaces/gltf_loader.DDS.html +1 -1
- package/docs/interfaces/gltf_loader.GLTF.html +1 -1
- package/docs/interfaces/gltf_loader.GLTFReference.html +1 -1
- package/docs/interfaces/gltf_loader.THREEGLTF.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/vfx.ParticleArgs.html +1 -1
- package/docs/interfaces/vfx.ParticleTweenKeyframe.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 -14
- 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/vfx.html +1 -1
- package/docs/modules/vue.html +1 -1
- package/docs/modules.html +1 -1
- package/five/index.d.ts +26 -16
- package/five/index.js +8 -8
- package/gltf-loader/index.js +3 -3
- package/line/index.js +3 -3
- package/package.json +1 -1
- package/react/index.js +3 -3
- package/server/index.js +6 -6
- package/sticker/index.js +3 -3
- package/umd/five-gltf-loader.js +1 -1
- package/umd/five-line.js +1 -1
- package/umd/five-react.js +1 -1
- package/umd/five-sticker.js +1 -1
- package/umd/five.js +1 -1
- package/vfx/index.js +2 -2
- package/vue/index.js +2 -2
- package/docs/interfaces/five.WebXRSelectParams.html +0 -1
package/five/index.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ export declare class BVH {
|
|
|
64
64
|
* @return 碰撞焦点数组
|
|
65
65
|
*/
|
|
66
66
|
intersectRay(rayOrigin: BVHVector3, rayDirection: BVHVector3, backfaceCulling: boolean): BVHIntersect[];
|
|
67
|
+
trianglesInSphere(center: BVHVector3, radius: number): Float32Array;
|
|
67
68
|
dispose(): void;
|
|
68
69
|
}
|
|
69
70
|
|
|
@@ -471,10 +472,9 @@ export declare type ControllerEventTypes = {
|
|
|
471
472
|
*/
|
|
472
473
|
webXRSessionEnd(): void;
|
|
473
474
|
/**
|
|
474
|
-
* webXR模式结束,webxr session销毁
|
|
475
475
|
* axes代表控制杆,axes数组的0-1元素分别代表左控制器的左(-1)右(1),左控制器的上(-1)下(1),axes数组的2-3元素同理
|
|
476
476
|
*/
|
|
477
|
-
|
|
477
|
+
webXRControllerEvent(type: WebXRControllerType, key: WebXRControllerKey, params: WebXRControllerParams): void;
|
|
478
478
|
};
|
|
479
479
|
|
|
480
480
|
/**
|
|
@@ -706,8 +706,6 @@ export declare class Five extends Subscribe<EventTypes> {
|
|
|
706
706
|
scene: Scene;
|
|
707
707
|
/** 内部使用的产生视差的物体Scene `THREE.Scene` */
|
|
708
708
|
parallaxScene: Scene;
|
|
709
|
-
/** 用于承载nerf物体的scene `THREE.Scene` */
|
|
710
|
-
nerfScene: Scene;
|
|
711
709
|
/** 内部使用的 `Camera` */
|
|
712
710
|
camera: Camera;
|
|
713
711
|
/**
|
|
@@ -1346,8 +1344,10 @@ export declare function imageSupport(): Promise<{
|
|
|
1346
1344
|
|
|
1347
1345
|
export declare interface ImageURLMappings {
|
|
1348
1346
|
[publicDomain: string]: {
|
|
1347
|
+
"type"?: string;
|
|
1349
1348
|
"pano": [string, string];
|
|
1350
1349
|
"tile": [string, string];
|
|
1350
|
+
"model": [string, string];
|
|
1351
1351
|
"texture": [string];
|
|
1352
1352
|
"default": [string];
|
|
1353
1353
|
};
|
|
@@ -1612,10 +1612,18 @@ export declare class Model extends PBMContainer implements Subscribe<ModelEventT
|
|
|
1612
1612
|
updateTexture(textureOptions: TextureOptions): Promise<void>;
|
|
1613
1613
|
/**
|
|
1614
1614
|
* 获取模型边界线
|
|
1615
|
+
* @deprecated 请使用 getEdgesBySphere 替代
|
|
1615
1616
|
* @param threshold - 面片间夹角阈值
|
|
1616
1617
|
* @returns 所有模型边界线
|
|
1617
1618
|
*/
|
|
1618
1619
|
getEdges(threshold?: number): THREE_2.Line3[];
|
|
1620
|
+
/**
|
|
1621
|
+
* 获取模型边界线
|
|
1622
|
+
* @param sphere - 获取区域
|
|
1623
|
+
* @param threshold - 面片间夹角阈值
|
|
1624
|
+
* @returns 所有模型边界线
|
|
1625
|
+
*/
|
|
1626
|
+
getEdgesBySphere(sphere: THREE_2.Sphere, threshold?: number): THREE_2.Line3[];
|
|
1619
1627
|
/**
|
|
1620
1628
|
* 获取当前楼层数
|
|
1621
1629
|
* @deprecated
|
|
@@ -2115,7 +2123,7 @@ export declare interface Pose {
|
|
|
2115
2123
|
distance: number;
|
|
2116
2124
|
}
|
|
2117
2125
|
|
|
2118
|
-
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", "
|
|
2126
|
+
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", "webXRControllerEvent"];
|
|
2119
2127
|
|
|
2120
2128
|
/** Five 场景*/
|
|
2121
2129
|
export declare class Scene extends THREE_2.Scene {
|
|
@@ -2343,9 +2351,9 @@ export declare class Tile3D {
|
|
|
2343
2351
|
* Create a TileHeader instance
|
|
2344
2352
|
* @param tileset - Tileset3D instance
|
|
2345
2353
|
* @param header - tile header - JSON loaded from a dataset
|
|
2346
|
-
* @param
|
|
2354
|
+
* @param parent - parent TileHeader instance
|
|
2347
2355
|
*/
|
|
2348
|
-
constructor(tileset: Tileset3D, header: TilesetJSONNode,
|
|
2356
|
+
constructor(tileset: Tileset3D, header: TilesetJSONNode, parent?: Tile3D);
|
|
2349
2357
|
get id(): string;
|
|
2350
2358
|
get refine(): "REPLACE" | "ADD";
|
|
2351
2359
|
get type(): "EMPTY" | "SCENEGRAPH" | "MESH";
|
|
@@ -2418,7 +2426,7 @@ export declare class Tile3DModel extends PBMContainer {
|
|
|
2418
2426
|
private lastRenderer;
|
|
2419
2427
|
private enabled;
|
|
2420
2428
|
listener: Subscribe<TileEventType>;
|
|
2421
|
-
|
|
2429
|
+
basicTiles: Tile3D[];
|
|
2422
2430
|
private parseTask;
|
|
2423
2431
|
private originModel;
|
|
2424
2432
|
private renderer?;
|
|
@@ -2606,7 +2614,7 @@ export declare type TileFrameState = {
|
|
|
2606
2614
|
export declare class TileOrientedBoundingBox {
|
|
2607
2615
|
center: Vector3;
|
|
2608
2616
|
halfAxes: Matrix3;
|
|
2609
|
-
constructor(center
|
|
2617
|
+
constructor(center: number[], halfAxes: number[]);
|
|
2610
2618
|
clone(): TileOrientedBoundingBox;
|
|
2611
2619
|
equals(right: TileOrientedBoundingBox): boolean;
|
|
2612
2620
|
getBoundingSphere(result?: TileBoundingSphere): TileBoundingSphere;
|
|
@@ -2772,6 +2780,7 @@ export declare class TilesetCache {
|
|
|
2772
2780
|
add(tile: Tile3D, addCallback?: (tile: Tile3D) => void): void;
|
|
2773
2781
|
unloadTile(tile: Tile3D, unloadCallback?: (tile: Tile3D) => void): void;
|
|
2774
2782
|
unloadTiles(isOverMemory: () => boolean, unloadCallback?: (tile: Tile3D) => void): void;
|
|
2783
|
+
toArray(): Tile3D[];
|
|
2775
2784
|
}
|
|
2776
2785
|
|
|
2777
2786
|
export declare interface TilesetJSON {
|
|
@@ -2827,6 +2836,14 @@ export declare interface TopviewControllerCustomInitArgs extends Omit<FloorplanC
|
|
|
2827
2836
|
export declare interface VRPanoramaControllerCustomInitArgs extends Omit<PanoramaControllerCustomInitArgs, "maxLatitude" | "minLatitude"> {
|
|
2828
2837
|
}
|
|
2829
2838
|
|
|
2839
|
+
export declare type WebXRControllerKey = 'A' | 'B' | 'X' | 'Y' | 'RightTrigger' | 'RightPinch' | 'LeftTrigger' | 'LeftPinch' | 'LeftAxesLeft' | 'LeftAxesRight' | 'LeftAxesUp' | 'LeftAxesDown' | 'RightAxesLeft' | 'RightAxesRight' | 'RightAxesUp' | 'RightAxesDown';
|
|
2840
|
+
|
|
2841
|
+
export declare interface WebXRControllerParams {
|
|
2842
|
+
raycaster: THREE_2.Raycaster[];
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
export declare type WebXRControllerType = 'tap' | 'press' | 'axes';
|
|
2846
|
+
|
|
2830
2847
|
export declare type WebXREventTypes = {
|
|
2831
2848
|
/** WebXR模式开始,session完成坐标系设置*/
|
|
2832
2849
|
webXRSessionStart(): void;
|
|
@@ -2834,13 +2851,6 @@ export declare type WebXREventTypes = {
|
|
|
2834
2851
|
webXRSessionEnd(): void;
|
|
2835
2852
|
};
|
|
2836
2853
|
|
|
2837
|
-
export declare interface WebXRSelectParams {
|
|
2838
|
-
axes: readonly number[];
|
|
2839
|
-
raycaster: THREE_2.Raycaster;
|
|
2840
|
-
}
|
|
2841
|
-
|
|
2842
|
-
export declare type WebXRSelectType = "Select" | "Squeeze" | "Axes" | "LeftButtonA" | "LeftButtonB" | "RightButtonA" | "RightButtonB" | "LeftAxesLeftTap" | "LeftAxesRightTap" | "LeftAxesUpTap" | "LeftAxesDownTap" | "RightAxesLeftTap" | "RightAxesRightTap" | "RightAxesUpTap" | "RightAxesDownTap";
|
|
2843
|
-
|
|
2844
2854
|
export declare class Work {
|
|
2845
2855
|
/** 名称 */
|
|
2846
2856
|
name: string;
|