@realsee/five 6.7.2 → 6.8.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -391
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/highlight.css +16 -30
- package/docs/assets/icons.js +1 -1
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/main.js +2 -2
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +3 -3
- package/docs/classes/five.AdaptiveLuminancePass.html +2 -2
- package/docs/classes/five.AnimationFrameLoop.html +5 -5
- package/docs/classes/five.BoundingMesh.html +1 -1
- package/docs/classes/five.Camera.html +5 -5
- package/docs/classes/five.EffectComposer.html +1 -1
- package/docs/classes/five.EyeDomeLightingPass.html +2 -2
- package/docs/classes/five.Five.html +125 -119
- package/docs/classes/five.FivePass.html +2 -2
- package/docs/classes/five.FullScreenQuad.html +2 -2
- package/docs/classes/five.InternalWebGLRenderer.html +1 -1
- package/docs/classes/five.Model.html +26 -26
- package/docs/classes/five.ModelScene.html +12 -12
- package/docs/classes/five.Motion.html +1 -1
- package/docs/classes/five.NetworkSubscribe.html +23 -23
- package/docs/classes/five.PBMContainer.html +3 -3
- package/docs/classes/five.PBMGSObject.html +22 -0
- package/docs/classes/five.PBMGroup.html +1 -1
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PBMMeshMaterial.html +3 -3
- package/docs/classes/five.PBMPointCloud.html +1 -1
- package/docs/classes/five.PBMPointCloudMaterial.html +3 -3
- package/docs/classes/five.PBMSkinnedMesh.html +1 -1
- package/docs/classes/five.PanoCircleMesh.html +4 -4
- package/docs/classes/five.PanoCircleMeshCustom.html +4 -4
- package/docs/classes/five.PanoCircleMeshSolid.html +4 -4
- package/docs/classes/five.Parameter.html +50 -50
- package/docs/classes/five.Scene.html +3 -3
- package/docs/classes/five.Subscribe.html +26 -25
- package/docs/classes/five.Tile3D.html +26 -26
- package/docs/classes/five.TileNode.html +2 -2
- package/docs/classes/five.Tileset.html +11 -11
- package/docs/classes/five.TrajectoryNode.html +1 -1
- package/docs/classes/five.Work.html +14 -14
- package/docs/classes/five.WorkResolvedObserver.html +15 -15
- 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 +6 -6
- package/docs/classes/gltf-loader.GLTFObject.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 +4 -4
- package/docs/classes/line.LineMaterial.html +1 -1
- package/docs/classes/line.LineSegmentsGeometry.html +4 -4
- package/docs/classes/line.THREE_Line2.html +1 -1
- package/docs/classes/line.THREE_LineSegments2.html +1 -1
- package/docs/classes/plugins.BasePlugin.Controller.html +16 -16
- package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
- package/docs/classes/react.Store.html +12 -11
- package/docs/classes/sticker.Sticker.html +11 -11
- package/docs/classes/vfx.Airflow.html +1 -1
- package/docs/classes/vfx.Flame.html +1 -1
- package/docs/classes/vfx.Particle.html +31 -31
- package/docs/classes/vfx.ParticleGPU.html +7 -7
- package/docs/classes/vfx.SpotLight.html +1 -1
- package/docs/documents/coordinate.html +7 -3
- package/docs/documents/five.FivePlugin.plugins.html +32 -17
- package/docs/documents/five.Pose.coordinate.html +7 -3
- package/docs/documents/intro.html +6 -0
- package/docs/documents/mode.html +15 -0
- package/docs/documents/plugins.html +32 -17
- package/docs/documents/quick-start.html +54 -0
- package/docs/documents/release_notes_6.7.html +209 -0
- package/docs/documents/state.html +2 -0
- package/docs/documents/support.html +25 -0
- package/docs/documents/work.html +67 -0
- package/docs/functions/five.coordinatesToVector.html +1 -1
- package/docs/functions/five.defaultImageURLTransform.html +3 -3
- package/docs/functions/five.headingToLongitude.html +1 -1
- package/docs/functions/five.loadSplat.html +1 -0
- package/docs/functions/five.loadSpz.html +1 -0
- package/docs/functions/five.longitudeToHeading.html +1 -1
- package/docs/functions/five.parseWork.html +3 -3
- package/docs/functions/five.vectorToCoordinates.html +1 -1
- package/docs/functions/react.createFiveProvider.html +2 -2
- package/docs/functions/react.createStore.html +8 -8
- package/docs/functions/react.useFiveAction.html +5 -5
- package/docs/functions/react.useFiveCameraDirection.html +1 -1
- package/docs/functions/react.useFiveCameraRaycaster.html +1 -1
- package/docs/functions/react.useFiveCurrentObserver.html +1 -1
- package/docs/functions/react.useFiveCurrentState.html +1 -1
- package/docs/functions/react.useFiveFloor.html +1 -1
- package/docs/functions/react.useFiveHelper.html +1 -1
- package/docs/functions/react.useFiveModelIntersectRaycaster.html +2 -2
- package/docs/functions/react.useFiveModelReadyState.html +1 -1
- package/docs/functions/react.useFiveProject2d.html +2 -2
- package/docs/functions/react.useFiveSceneEffect.html +1 -1
- package/docs/functions/react.useFiveWork.html +2 -2
- package/docs/functions/vue.useFiveAction.html +7 -7
- package/docs/functions/vue.useFiveCameraDirection.html +1 -1
- package/docs/functions/vue.useFiveCameraRaycaster.html +1 -1
- package/docs/functions/vue.useFiveCurrentObserver.html +1 -1
- package/docs/functions/vue.useFiveCurrentState.html +1 -1
- package/docs/functions/vue.useFiveFloor.html +1 -1
- package/docs/functions/vue.useFiveHelper.html +1 -1
- package/docs/functions/vue.useFiveModel.html +1 -1
- package/docs/functions/vue.useFiveModelBounding.html +1 -1
- package/docs/functions/vue.useFiveModelIntersectRaycaster.html +2 -2
- package/docs/functions/vue.useFiveModelReadyState.html +1 -1
- package/docs/functions/vue.useFiveProject2d.html +2 -2
- package/docs/functions/vue.useFiveScene.html +1 -1
- package/docs/functions/vue.useFiveState.html +1 -1
- package/docs/functions/vue.useFiveWorks.html +2 -2
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +10 -183
- package/docs/interfaces/five.AddableObject.html +5 -5
- package/docs/interfaces/five.AjaxOptions.html +5 -5
- package/docs/interfaces/five.BaseEvent.html +1 -1
- package/docs/interfaces/five.EventCallback.html +194 -194
- package/docs/interfaces/five.FiveInitArgs.html +18 -18
- package/docs/interfaces/five.FiveLoadOptions.html +3 -3
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +8 -8
- package/docs/interfaces/five.GestureEvent.html +1 -1
- package/docs/interfaces/five.ImageOptions.html +11 -11
- package/docs/interfaces/five.ImageURLOptions.html +8 -8
- package/docs/interfaces/five.IntersectEvent.html +1 -1
- package/docs/interfaces/five.IntersectMesh.html +1 -1
- package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/five.Intersection.html +2 -2
- package/docs/interfaces/five.LooseWorkWithExtrinsics.html +7 -7
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +8 -8
- package/docs/interfaces/five.ModeChangeEvent.html +1 -1
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.ModelEvent.html +1 -1
- package/docs/interfaces/five.ModelOptions.html +3 -3
- package/docs/interfaces/five.ModelSceneEvent.html +1 -1
- package/docs/interfaces/five.MovePanoOptions.html +10 -10
- package/docs/interfaces/five.NetworkAbortError.html +1 -1
- package/docs/interfaces/five.NetworkFirbiddenError.html +1 -1
- package/docs/interfaces/five.NetworkOptions.html +4 -4
- package/docs/interfaces/five.NetworkProxyError.html +1 -1
- package/docs/interfaces/five.NetworkResourceEvent.html +1 -1
- package/docs/interfaces/five.NetworkResponseError.html +1 -1
- package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/five.ObjectEvent.html +1 -1
- package/docs/interfaces/five.PBMMaterial.html +1 -1
- package/docs/interfaces/five.PBMMeshMaterialParameters.html +1 -1
- package/docs/interfaces/five.PBMPanoDepth.html +4 -4
- package/docs/interfaces/five.PBMPanoPicture.html +5 -5
- package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +1 -1
- package/docs/interfaces/five.PanoCircleMeshInterface.html +4 -4
- package/docs/interfaces/five.PanoEvent.html +1 -1
- package/docs/interfaces/five.PanoTextureEvent.html +1 -1
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +15 -15
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.ParameterMaterialValue.html +36 -36
- package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/five.ParameterValue.html +50 -50
- package/docs/interfaces/five.Pass.html +1 -1
- package/docs/interfaces/five.Pose.html +6 -6
- package/docs/interfaces/five.RenderEvent.html +1 -1
- package/docs/interfaces/five.ResolvedParameterValue.html +50 -50
- package/docs/interfaces/five.State.html +9 -9
- package/docs/interfaces/five.StateEvent.html +1 -1
- package/docs/interfaces/five.TextureOptions.html +12 -12
- package/docs/interfaces/five.Tile3DOptions.html +2 -2
- package/docs/interfaces/five.TileCoordinateSystem.html +2 -2
- package/docs/interfaces/five.TilesetHeader.html +12 -12
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -7
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +13 -13
- package/docs/interfaces/five.ViewLayer.html +26 -26
- package/docs/interfaces/five.Viewport.html +4 -4
- package/docs/interfaces/five.WorkCubeImage.html +1 -1
- package/docs/interfaces/five.WorkImage.html +4 -4
- package/docs/interfaces/five.WorkInitial.html +8 -8
- package/docs/interfaces/five.WorkModel.html +8 -8
- package/docs/interfaces/five.WorkModelLayer.html +5 -5
- package/docs/interfaces/five.WorkObserver.html +15 -15
- package/docs/interfaces/five.WorkTile.html +4 -4
- package/docs/interfaces/five.WorkVideo.html +4 -4
- package/docs/interfaces/five.WorksEvent.html +1 -1
- package/docs/interfaces/five.XRControllerEvent.html +1 -1
- package/docs/interfaces/five.XRGestureEvent.html +1 -1
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +13 -13
- package/docs/interfaces/five.XRSessionEvent.html +1 -1
- package/docs/interfaces/plugins.BackgroundPluginController.html +11 -11
- package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +8 -8
- package/docs/interfaces/plugins.BasePlugin.BaseOptions.html +1 -1
- package/docs/interfaces/plugins.BasePlugin.Config.html +2 -2
- package/docs/interfaces/plugins.BasePlugin.State.html +4 -4
- package/docs/interfaces/plugins.BasePlugin.StateChangeParams.html +3 -3
- package/docs/interfaces/plugins.DynamicPathLinePluginController.html +45 -45
- package/docs/interfaces/plugins.DynamicPathLinePluginType.Config.html +18 -18
- package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +13 -13
- package/docs/interfaces/plugins.DynamicPathLinePluginType.Params.html +2 -2
- package/docs/interfaces/plugins.DynamicPathLinePluginType.PathConfig.html +14 -14
- package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +5 -5
- package/docs/interfaces/plugins.ItemMaskController.html +12 -12
- package/docs/interfaces/plugins.ItemMaskPluginType.Config.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +5 -5
- package/docs/interfaces/plugins.ItemMaskPluginType.Params.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.State.html +7 -7
- package/docs/interfaces/plugins.OrientationPluginController.html +12 -12
- package/docs/interfaces/plugins.OrientationPluginType.Config.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +5 -5
- package/docs/interfaces/plugins.OrientationPluginType.Params.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.State.html +5 -5
- package/docs/interfaces/plugins.PanoAnimeController.html +14 -14
- package/docs/interfaces/plugins.PanoAnimePluginType.Config.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.ConfigChangeEvent.html +3 -3
- package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +6 -6
- package/docs/interfaces/plugins.PanoAnimePluginType.Params.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.State.html +4 -4
- package/docs/interfaces/plugins.PluginTemplateType.Config.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +5 -5
- package/docs/interfaces/plugins.PluginTemplateType.Params.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.State.html +4 -4
- package/docs/interfaces/plugins.TrajectoryController.html +19 -21
- package/docs/interfaces/react.FiveActionReactCallbacks.html +23 -23
- package/docs/interfaces/react.FiveCanvasProps.html +2 -2
- package/docs/interfaces/react.FiveInjectionTypes.html +70 -70
- package/docs/interfaces/sticker.IntersectionLike.html +2 -2
- package/docs/interfaces/vfx.ParticleArgs.html +26 -26
- package/docs/interfaces/vfx.ParticleGPUArgs.html +30 -30
- package/docs/interfaces/vue.FiveActionVueCallbacks.html +23 -23
- package/docs/modules/five.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/five.ControllerEventTypes.html +32 -32
- package/docs/types/five.EventTypes.html +23 -23
- package/docs/types/five.FivePlugin.html +2 -2
- package/docs/types/five.FivePluginInit.html +1 -1
- package/docs/types/five.FivePluginInstance.html +1 -1
- package/docs/types/five.LegacyEventType.html +142 -142
- package/docs/types/five.LoadResultType.html +2 -2
- package/docs/types/five.Mode.html +1 -1
- package/docs/types/five.MotionCircle.html +1 -1
- package/docs/types/five.ParseOptions.html +6 -6
- package/docs/types/plugins.BasePlugin.EventMap.html +5 -5
- package/docs/types/plugins.DynamicPathLinePluginType.PluginData.html +1 -1
- package/docs/types/plugins.DynamicPathLinePluginType.ServerData.html +1 -1
- package/docs/variables/react.FiveCanvas.html +1 -1
- package/docs/variables/react.useFiveScene.html +1 -1
- package/docs/variables/vue.FiveCanvas.html +1 -1
- package/docs/variables/vue.FiveProvider.html +1 -1
- package/docs_markdown/README.md +33 -0
- package/docs_markdown/_media/coordinate.jpg +0 -0
- package/docs_markdown/documents/coordinate.md +29 -0
- package/docs_markdown/documents/intro.md +15 -0
- package/docs_markdown/documents/mode.md +21 -0
- package/docs_markdown/documents/plugins.md +226 -0
- package/docs_markdown/documents/quick-start.md +105 -0
- package/docs_markdown/documents/release_notes/6.7.md +407 -0
- package/docs_markdown/documents/state.md +7 -0
- package/docs_markdown/documents/support.md +13 -0
- package/docs_markdown/documents/work.md +148 -0
- package/docs_markdown/five/README.md +309 -0
- package/docs_markdown/five/classes/AdaptiveLuminancePass.md +238 -0
- package/docs_markdown/five/classes/AnimationFrameLoop.md +195 -0
- package/docs_markdown/five/classes/BoundingMesh.md +75 -0
- package/docs_markdown/five/classes/Camera.md +527 -0
- package/docs_markdown/five/classes/EffectComposer.md +241 -0
- package/docs_markdown/five/classes/EyeDomeLightingPass.md +232 -0
- package/docs_markdown/five/classes/Fetcher.md +133 -0
- package/docs_markdown/five/classes/Five.md +2231 -0
- package/docs_markdown/five/classes/FivePass.md +193 -0
- package/docs_markdown/five/classes/FiveRenderer.md +107 -0
- package/docs_markdown/five/classes/FullScreenQuad.md +95 -0
- package/docs_markdown/five/classes/InternalWebGLRenderer.md +65 -0
- package/docs_markdown/five/classes/Model.md +1009 -0
- package/docs_markdown/five/classes/ModelScene.md +495 -0
- package/docs_markdown/five/classes/Motion.md +235 -0
- package/docs_markdown/five/classes/NetworkSubscribe.md +289 -0
- package/docs_markdown/five/classes/PBMContainer.md +137 -0
- package/docs_markdown/five/classes/PBMCustomShader.md +171 -0
- package/docs_markdown/five/classes/PBMGSObject.md +257 -0
- package/docs_markdown/five/classes/PBMGroup.md +35 -0
- package/docs_markdown/five/classes/PBMMesh.md +43 -0
- package/docs_markdown/five/classes/PBMMeshMaterial.md +889 -0
- package/docs_markdown/five/classes/PBMPointCloud.md +41 -0
- package/docs_markdown/five/classes/PBMPointCloudMaterial.md +371 -0
- package/docs_markdown/five/classes/PBMSkinnedMesh.md +67 -0
- package/docs_markdown/five/classes/PanoCircleMesh.md +296 -0
- package/docs_markdown/five/classes/PanoCircleMeshCustom.md +296 -0
- package/docs_markdown/five/classes/PanoCircleMeshSolid.md +296 -0
- package/docs_markdown/five/classes/Parameter.md +905 -0
- package/docs_markdown/five/classes/Scene.md +109 -0
- package/docs_markdown/five/classes/Subscribe.md +271 -0
- package/docs_markdown/five/classes/TextureLoader.md +199 -0
- package/docs_markdown/five/classes/Tile.md +517 -0
- package/docs_markdown/five/classes/Tile3D.md +1287 -0
- package/docs_markdown/five/classes/TileCache.md +123 -0
- package/docs_markdown/five/classes/TileNode.md +171 -0
- package/docs_markdown/five/classes/TileRequestScheduler.md +69 -0
- package/docs_markdown/five/classes/Tileset.md +379 -0
- package/docs_markdown/five/classes/Trajectory.md +111 -0
- package/docs_markdown/five/classes/TrajectoryNode.md +129 -0
- package/docs_markdown/five/classes/Work.md +299 -0
- package/docs_markdown/five/classes/WorkResolvedObserver.md +302 -0
- package/docs_markdown/five/classes/XRButton.md +37 -0
- package/docs_markdown/five/enumerations/VolumePlaneIntersect.md +33 -0
- package/docs_markdown/five/functions/coordinatesToVector.md +33 -0
- package/docs_markdown/five/functions/createDebugBoundingMesh.md +25 -0
- package/docs_markdown/five/functions/createWorks.md +21 -0
- package/docs_markdown/five/functions/defaultImageURLTransform.md +33 -0
- package/docs_markdown/five/functions/getViewportScale.md +15 -0
- package/docs_markdown/five/functions/headingToLongitude.md +29 -0
- package/docs_markdown/five/functions/imageSupport.md +15 -0
- package/docs_markdown/five/functions/isBoundingVolume.md +21 -0
- package/docs_markdown/five/functions/isPanoId.md +21 -0
- package/docs_markdown/five/functions/loadAt3d.md +47 -0
- package/docs_markdown/five/functions/loadB3dm.md +39 -0
- package/docs_markdown/five/functions/loadDome.md +43 -0
- package/docs_markdown/five/functions/loadDomez.md +43 -0
- package/docs_markdown/five/functions/loadFbx.md +35 -0
- package/docs_markdown/five/functions/loadGltf.md +39 -0
- package/docs_markdown/five/functions/loadPbm.md +47 -0
- package/docs_markdown/five/functions/loadPly.md +61 -0
- package/docs_markdown/five/functions/loadPnts.md +35 -0
- package/docs_markdown/five/functions/loadSplat.md +35 -0
- package/docs_markdown/five/functions/loadSpz.md +35 -0
- package/docs_markdown/five/functions/loadX3p.md +39 -0
- package/docs_markdown/five/functions/longitudeToHeading.md +29 -0
- package/docs_markdown/five/functions/makeBoundingVolume.md +21 -0
- package/docs_markdown/five/functions/panoEqual.md +25 -0
- package/docs_markdown/five/functions/panoParse.md +21 -0
- package/docs_markdown/five/functions/panoStringify.md +21 -0
- package/docs_markdown/five/functions/parseWork.md +33 -0
- package/docs_markdown/five/functions/vectorToCoordinates.md +31 -0
- package/docs_markdown/five/functions/workToJson.md +21 -0
- package/docs_markdown/five/interfaces/AddableObject.md +77 -0
- package/docs_markdown/five/interfaces/AjaxOptions.md +81 -0
- package/docs_markdown/five/interfaces/AnimationFrame.md +67 -0
- package/docs_markdown/five/interfaces/AnimationFrameContext.md +55 -0
- package/docs_markdown/five/interfaces/BaseEvent.md +60 -0
- package/docs_markdown/five/interfaces/BoundingVolume.md +241 -0
- package/docs_markdown/five/interfaces/BoxBoundingVolume.md +325 -0
- package/docs_markdown/five/interfaces/CameraPose.md +49 -0
- package/docs_markdown/five/interfaces/CullingVolume.md +141 -0
- package/docs_markdown/five/interfaces/Draco.md +219 -0
- package/docs_markdown/five/interfaces/EventCallback.md +3374 -0
- package/docs_markdown/five/interfaces/FiveInitArgs.md +435 -0
- package/docs_markdown/five/interfaces/FiveLoadOptions.md +71 -0
- package/docs_markdown/five/interfaces/FloorplanControllerCustomInitArgs.md +93 -0
- package/docs_markdown/five/interfaces/GestureEvent.md +233 -0
- package/docs_markdown/five/interfaces/ImageOptions.md +147 -0
- package/docs_markdown/five/interfaces/ImageURLMappings.md +13 -0
- package/docs_markdown/five/interfaces/ImageURLOptions.md +89 -0
- package/docs_markdown/five/interfaces/IntersectEvent.md +89 -0
- package/docs_markdown/five/interfaces/IntersectMesh.md +33 -0
- package/docs_markdown/five/interfaces/IntersectMeshInterface.md +27 -0
- package/docs_markdown/five/interfaces/Intersection.md +53 -0
- package/docs_markdown/five/interfaces/KTX2.md +131 -0
- package/docs_markdown/five/interfaces/LoosePanoWork.md +81 -0
- package/docs_markdown/five/interfaces/LooseWork.md +145 -0
- package/docs_markdown/five/interfaces/LooseWorkInitial.md +89 -0
- package/docs_markdown/five/interfaces/LooseWorkModel.md +113 -0
- package/docs_markdown/five/interfaces/LooseWorkObserver.md +153 -0
- package/docs_markdown/five/interfaces/LooseWorkPanorama.md +121 -0
- package/docs_markdown/five/interfaces/LooseWorkVideo.md +33 -0
- package/docs_markdown/five/interfaces/LooseWorkWithExtrinsics.md +93 -0
- package/docs_markdown/five/interfaces/MapviewControllerCustomInitArgs.md +96 -0
- package/docs_markdown/five/interfaces/ModeChangeEvent.md +105 -0
- package/docs_markdown/five/interfaces/ModelControllerCustomInitArgs.md +147 -0
- package/docs_markdown/five/interfaces/ModelEvent.md +89 -0
- package/docs_markdown/five/interfaces/ModelOptions.md +54 -0
- package/docs_markdown/five/interfaces/ModelSceneEvent.md +73 -0
- package/docs_markdown/five/interfaces/MotionKeyframe.md +39 -0
- package/docs_markdown/five/interfaces/MovePanoOptions.md +192 -0
- package/docs_markdown/five/interfaces/NetworkAbortError.md +13 -0
- package/docs_markdown/five/interfaces/NetworkFirbiddenError.md +13 -0
- package/docs_markdown/five/interfaces/NetworkOptions.md +53 -0
- package/docs_markdown/five/interfaces/NetworkProxyError.md +13 -0
- package/docs_markdown/five/interfaces/NetworkResourceEvent.md +97 -0
- package/docs_markdown/five/interfaces/NetworkResponseError.md +21 -0
- package/docs_markdown/five/interfaces/NetworkTimeoutError.md +13 -0
- package/docs_markdown/five/interfaces/ObjectEvent.md +73 -0
- package/docs_markdown/five/interfaces/PBMClipperParameter.md +25 -0
- package/docs_markdown/five/interfaces/PBMCustomShaderInitArgs.md +57 -0
- package/docs_markdown/five/interfaces/PBMCustomShaderSlots.md +53 -0
- package/docs_markdown/five/interfaces/PBMMaterial.md +18 -0
- package/docs_markdown/five/interfaces/PBMMeshMaterialParameters.md +221 -0
- package/docs_markdown/five/interfaces/PBMPanoDepth.md +49 -0
- package/docs_markdown/five/interfaces/PBMPanoPicture.md +59 -0
- package/docs_markdown/five/interfaces/PBMPointCloudMaterialParameters.md +221 -0
- package/docs_markdown/five/interfaces/PBMRefinedScreen.md +49 -0
- package/docs_markdown/five/interfaces/PanoCircleMeshCustomOptions.md +73 -0
- package/docs_markdown/five/interfaces/PanoCircleMeshInterface.md +222 -0
- package/docs_markdown/five/interfaces/PanoCircleMeshOptions.md +25 -0
- package/docs_markdown/five/interfaces/PanoCircleMeshSolidOptions.md +25 -0
- package/docs_markdown/five/interfaces/PanoEvent.md +121 -0
- package/docs_markdown/five/interfaces/PanoTextureEvent.md +97 -0
- package/docs_markdown/five/interfaces/PanoramaControllerCustomInitArgs.md +260 -0
- package/docs_markdown/five/interfaces/PanoramaLikeControllerCustomInitArgs.md +112 -0
- package/docs_markdown/five/interfaces/ParameterMaterialValue.md +363 -0
- package/docs_markdown/five/interfaces/ParameterTilesetValue.md +161 -0
- package/docs_markdown/five/interfaces/ParameterValue.md +715 -0
- package/docs_markdown/five/interfaces/Pass.md +100 -0
- package/docs_markdown/five/interfaces/Pose.md +69 -0
- package/docs_markdown/five/interfaces/RegionBoundingVolume.md +349 -0
- package/docs_markdown/five/interfaces/RenderEvent.md +73 -0
- package/docs_markdown/five/interfaces/ResolvedParameterValue.md +727 -0
- package/docs_markdown/five/interfaces/SphereBoundingVolume.md +317 -0
- package/docs_markdown/five/interfaces/State.md +123 -0
- package/docs_markdown/five/interfaces/StateEvent.md +87 -0
- package/docs_markdown/five/interfaces/TextureOptions.md +157 -0
- package/docs_markdown/five/interfaces/Tile3DOptions.md +83 -0
- package/docs_markdown/five/interfaces/TileCoordinateSystem.md +25 -0
- package/docs_markdown/five/interfaces/TileHeader.md +89 -0
- package/docs_markdown/five/interfaces/TilesetHeader.md +209 -0
- package/docs_markdown/five/interfaces/TilesetOptions.md +205 -0
- package/docs_markdown/five/interfaces/TopviewControllerCustomInitArgs.md +101 -0
- package/docs_markdown/five/interfaces/TrajectoryHeader.md +41 -0
- package/docs_markdown/five/interfaces/VRPanoramaControllerCustomInitArgs.md +264 -0
- package/docs_markdown/five/interfaces/ViewLayer.md +1505 -0
- package/docs_markdown/five/interfaces/Viewport.md +57 -0
- package/docs_markdown/five/interfaces/WebXRAxesParams.md +57 -0
- package/docs_markdown/five/interfaces/WebXRControllerParams.md +25 -0
- package/docs_markdown/five/interfaces/WorkCubeImage.md +86 -0
- package/docs_markdown/five/interfaces/WorkImage.md +117 -0
- package/docs_markdown/five/interfaces/WorkInitial.md +89 -0
- package/docs_markdown/five/interfaces/WorkInitialJson.md +65 -0
- package/docs_markdown/five/interfaces/WorkJson.md +89 -0
- package/docs_markdown/five/interfaces/WorkModel.md +113 -0
- package/docs_markdown/five/interfaces/WorkModelJson.md +49 -0
- package/docs_markdown/five/interfaces/WorkModelLayer.md +59 -0
- package/docs_markdown/five/interfaces/WorkModelLayerJson.md +41 -0
- package/docs_markdown/five/interfaces/WorkObserver.md +184 -0
- package/docs_markdown/five/interfaces/WorkObserverJson.md +97 -0
- package/docs_markdown/five/interfaces/WorkPanoramaJson.md +125 -0
- package/docs_markdown/five/interfaces/WorkPanoramasJson.md +25 -0
- package/docs_markdown/five/interfaces/WorkTile.md +115 -0
- package/docs_markdown/five/interfaces/WorkVideo.md +49 -0
- package/docs_markdown/five/interfaces/WorksEvent.md +89 -0
- package/docs_markdown/five/interfaces/XRControllerEvent.md +177 -0
- package/docs_markdown/five/interfaces/XRGestureEvent.md +125 -0
- package/docs_markdown/five/interfaces/XRPanoramaControllerCustomInitArgs.md +264 -0
- package/docs_markdown/five/interfaces/XRSessionEvent.md +81 -0
- package/docs_markdown/five/interfaces/documents/coordinate.md +29 -0
- package/docs_markdown/five/type-aliases/AjaxResponseType.md +11 -0
- package/docs_markdown/five/type-aliases/AjaxResponseTypeMapping.md +17 -0
- package/docs_markdown/five/type-aliases/AnimationFrameLoopType.md +11 -0
- package/docs_markdown/five/type-aliases/BoundingVolumeJson.md +11 -0
- package/docs_markdown/five/type-aliases/BoxBoundingVolumeJson.md +19 -0
- package/docs_markdown/five/type-aliases/ControllerCustomInitTypes.md +67 -0
- package/docs_markdown/five/type-aliases/ControllerEventTypes.md +669 -0
- package/docs_markdown/five/type-aliases/CubeFace.md +11 -0
- package/docs_markdown/five/type-aliases/EventTypes.md +381 -0
- package/docs_markdown/five/type-aliases/FivePlugin.md +31 -0
- package/docs_markdown/five/type-aliases/FivePluginInit.md +21 -0
- package/docs_markdown/five/type-aliases/FivePluginInstance.md +21 -0
- package/docs_markdown/five/type-aliases/GestureTypes.md +11 -0
- package/docs_markdown/five/type-aliases/LegacyEventType.md +1852 -0
- package/docs_markdown/five/type-aliases/LoadResultType.md +109 -0
- package/docs_markdown/five/type-aliases/Mode.md +19 -0
- package/docs_markdown/five/type-aliases/Models.md +121 -0
- package/docs_markdown/five/type-aliases/MotionCircle.md +13 -0
- package/docs_markdown/five/type-aliases/MotionConfig.md +17 -0
- package/docs_markdown/five/type-aliases/MotionInitalValue.md +17 -0
- package/docs_markdown/five/type-aliases/MotionValue.md +17 -0
- package/docs_markdown/five/type-aliases/MovePanoEffect.md +24 -0
- package/docs_markdown/five/type-aliases/NetWorkMeta.md +71 -0
- package/docs_markdown/five/type-aliases/NetworkError.md +11 -0
- package/docs_markdown/five/type-aliases/NetworkErrorCallback.md +21 -0
- package/docs_markdown/five/type-aliases/NetworkProgressCallback.md +21 -0
- package/docs_markdown/five/type-aliases/NetworkResponse.md +37 -0
- package/docs_markdown/five/type-aliases/NetworkState.md +11 -0
- package/docs_markdown/five/type-aliases/NetworkSuccessCallback.md +27 -0
- package/docs_markdown/five/type-aliases/NetworkType.md +11 -0
- package/docs_markdown/five/type-aliases/PBMAlphaMode.md +11 -0
- package/docs_markdown/five/type-aliases/PBMColorStyle.md +11 -0
- package/docs_markdown/five/type-aliases/PBMFloorStyle.md +11 -0
- package/docs_markdown/five/type-aliases/PBMMeshShaderType.md +11 -0
- package/docs_markdown/five/type-aliases/PBMPointBack.md +11 -0
- package/docs_markdown/five/type-aliases/PBMPointCloudShaderType.md +11 -0
- package/docs_markdown/five/type-aliases/PBMPointShape.md +11 -0
- package/docs_markdown/five/type-aliases/PBMPointSize.md +11 -0
- package/docs_markdown/five/type-aliases/PBMTransition.md +11 -0
- package/docs_markdown/five/type-aliases/Pano.md +27 -0
- package/docs_markdown/five/type-aliases/PanoId.md +11 -0
- package/docs_markdown/five/type-aliases/ParseOptions.md +65 -0
- package/docs_markdown/five/type-aliases/PostProcessingType.md +11 -0
- package/docs_markdown/five/type-aliases/RegionBoundingVolumeJson.md +19 -0
- package/docs_markdown/five/type-aliases/RequestAnimationFrameArgs.md +17 -0
- package/docs_markdown/five/type-aliases/Scissor.md +15 -0
- package/docs_markdown/five/type-aliases/SphereBoundingVolumeJson.md +19 -0
- package/docs_markdown/five/type-aliases/SubscribeEventMap.md +15 -0
- package/docs_markdown/five/type-aliases/TileCacheOptions.md +47 -0
- package/docs_markdown/five/type-aliases/TileContentData.md +51 -0
- package/docs_markdown/five/type-aliases/TileRequestOrder.md +11 -0
- package/docs_markdown/five/type-aliases/TileRequestSchedulerOptions.md +69 -0
- package/docs_markdown/five/type-aliases/TilesetFrameState.md +199 -0
- package/docs_markdown/five/type-aliases/TrajectoryContentData.md +59 -0
- package/docs_markdown/five/type-aliases/WebXRControllerKey.md +11 -0
- package/docs_markdown/five/type-aliases/WebXRControllerType.md +11 -0
- package/docs_markdown/five/type-aliases/Works.md +59 -0
- package/docs_markdown/five/type-aliases/documents/plugins.md +226 -0
- package/docs_markdown/five/variables/PROXY_CONTROLLER_EVENT_NAMES.md +11 -0
- package/docs_markdown/five/variables/controllersDefaultInitArgs.md +41 -0
- package/docs_markdown/five/variables/draco.md +11 -0
- package/docs_markdown/five/variables/ktx2.md +11 -0
- package/docs_markdown/gltf-loader/README.md +23 -0
- package/docs_markdown/gltf-loader/classes/DDSLoader.md +57 -0
- package/docs_markdown/gltf-loader/classes/DRACOLoader.md +143 -0
- package/docs_markdown/gltf-loader/classes/GLTFLoader.md +208 -0
- package/docs_markdown/gltf-loader/classes/GLTFObject.md +76 -0
- package/docs_markdown/gltf-loader/classes/GLTFParser.md +75 -0
- package/docs_markdown/gltf-loader/classes/THREEGLTFLoader.md +151 -0
- package/docs_markdown/gltf-loader/interfaces/DDS.md +57 -0
- package/docs_markdown/gltf-loader/interfaces/GLTF.md +98 -0
- package/docs_markdown/gltf-loader/interfaces/GLTFReference.md +25 -0
- package/docs_markdown/gltf-loader/interfaces/THREEGLTF.md +89 -0
- package/docs_markdown/line/README.md +20 -0
- package/docs_markdown/line/classes/Line.md +151 -0
- package/docs_markdown/line/classes/LineGeometry.md +273 -0
- package/docs_markdown/line/classes/LineMaterial.md +83 -0
- package/docs_markdown/line/classes/LineSegmentsGeometry.md +219 -0
- package/docs_markdown/line/classes/THREE_Line2.md +81 -0
- package/docs_markdown/line/classes/THREE_LineSegments2.md +81 -0
- package/docs_markdown/line/type-aliases/LineMaterialParameters.md +67 -0
- package/docs_markdown/modules.md +28 -0
- package/docs_markdown/plugins/README.md +43 -0
- package/docs_markdown/plugins/classes/CSS3DRenderer.md +93 -0
- package/docs_markdown/plugins/classes/OrbitControls.md +461 -0
- package/docs_markdown/plugins/classes/RoundedBoxGeometry.md +79 -0
- package/docs_markdown/plugins/functions/BackgroundPlugin.md +25 -0
- package/docs_markdown/plugins/functions/DynamicPathLinePlugin.md +25 -0
- package/docs_markdown/plugins/functions/ItemMaskPlugin.md +25 -0
- package/docs_markdown/plugins/functions/OrientationPlugin.md +25 -0
- package/docs_markdown/plugins/functions/PanoAnimePlugin.md +25 -0
- package/docs_markdown/plugins/functions/TrajectoryPlugin.md +25 -0
- package/docs_markdown/plugins/interfaces/BackgroundPluginController.md +313 -0
- package/docs_markdown/plugins/interfaces/DynamicPathLinePluginController.md +755 -0
- package/docs_markdown/plugins/interfaces/ItemMaskController.md +393 -0
- package/docs_markdown/plugins/interfaces/Keyframe.md +25 -0
- package/docs_markdown/plugins/interfaces/OrientationPluginController.md +491 -0
- package/docs_markdown/plugins/interfaces/PanoAnimeController.md +365 -0
- package/docs_markdown/plugins/interfaces/PlayingState.md +25 -0
- package/docs_markdown/plugins/interfaces/TrajectoryController.md +609 -0
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/README.md +25 -0
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/enumerations/WarningCodeType.md +17 -0
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/interfaces/Config.md +9 -0
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/interfaces/EventMap.md +205 -0
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/interfaces/Params.md +25 -0
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/interfaces/PluginDataItem.md +9 -0
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/type-aliases/Mirror.md +17 -0
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/type-aliases/Mode.md +11 -0
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/type-aliases/PluginData.md +11 -0
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/type-aliases/State.md +19 -0
- package/docs_markdown/plugins/namespaces/BasePlugin/README.md +22 -0
- package/docs_markdown/plugins/namespaces/BasePlugin/classes/Controller.md +318 -0
- package/docs_markdown/plugins/namespaces/BasePlugin/interfaces/BaseOptions.md +19 -0
- package/docs_markdown/plugins/namespaces/BasePlugin/interfaces/Config.md +39 -0
- package/docs_markdown/plugins/namespaces/BasePlugin/interfaces/State.md +49 -0
- package/docs_markdown/plugins/namespaces/BasePlugin/interfaces/StateChangeParams.md +45 -0
- package/docs_markdown/plugins/namespaces/BasePlugin/type-aliases/EventMap.md +110 -0
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/README.md +20 -0
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/interfaces/Config.md +181 -0
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/interfaces/EventMap.md +261 -0
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/interfaces/Params.md +37 -0
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/interfaces/PathConfig.md +141 -0
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/interfaces/State.md +67 -0
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/type-aliases/PluginData.md +21 -0
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/type-aliases/ServerData.md +73 -0
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/README.md +21 -0
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/Config.md +11 -0
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/EventMap.md +109 -0
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/ItemType.md +121 -0
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/MaskType.md +33 -0
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/Params.md +27 -0
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/State.md +87 -0
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/type-aliases/PluginData.md +27 -0
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/type-aliases/ServerData.md +27 -0
- package/docs_markdown/plugins/namespaces/OrientationPluginType/README.md +19 -0
- package/docs_markdown/plugins/namespaces/OrientationPluginType/interfaces/Config.md +27 -0
- package/docs_markdown/plugins/namespaces/OrientationPluginType/interfaces/EventMap.md +109 -0
- package/docs_markdown/plugins/namespaces/OrientationPluginType/interfaces/Params.md +27 -0
- package/docs_markdown/plugins/namespaces/OrientationPluginType/interfaces/State.md +67 -0
- package/docs_markdown/plugins/namespaces/OrientationPluginType/type-aliases/PluginData.md +11 -0
- package/docs_markdown/plugins/namespaces/OrientationPluginType/type-aliases/ServerData.md +11 -0
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/README.md +20 -0
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/interfaces/Config.md +19 -0
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/interfaces/ConfigChangeEvent.md +39 -0
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/interfaces/EventMap.md +157 -0
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/interfaces/Params.md +27 -0
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/interfaces/State.md +57 -0
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/type-aliases/PluginData.md +11 -0
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/type-aliases/ServerData.md +11 -0
- package/docs_markdown/plugins/namespaces/PluginTemplateType/README.md +19 -0
- package/docs_markdown/plugins/namespaces/PluginTemplateType/interfaces/Config.md +19 -0
- package/docs_markdown/plugins/namespaces/PluginTemplateType/interfaces/EventMap.md +109 -0
- package/docs_markdown/plugins/namespaces/PluginTemplateType/interfaces/Params.md +27 -0
- package/docs_markdown/plugins/namespaces/PluginTemplateType/interfaces/State.md +57 -0
- package/docs_markdown/plugins/namespaces/PluginTemplateType/type-aliases/PluginData.md +11 -0
- package/docs_markdown/plugins/namespaces/PluginTemplateType/type-aliases/ServerData.md +19 -0
- package/docs_markdown/react/README.md +58 -0
- package/docs_markdown/react/classes/Store.md +184 -0
- package/docs_markdown/react/functions/createFiveFeature.md +27 -0
- package/docs_markdown/react/functions/createFiveProvider.md +42 -0
- package/docs_markdown/react/functions/createStore.md +158 -0
- package/docs_markdown/react/functions/unsafe__useFiveInstance.md +27 -0
- package/docs_markdown/react/functions/useFiveAction.md +82 -0
- package/docs_markdown/react/functions/useFiveCameraDirection.md +19 -0
- package/docs_markdown/react/functions/useFiveCameraRaycaster.md +19 -0
- package/docs_markdown/react/functions/useFiveCurrentObserver.md +25 -0
- package/docs_markdown/react/functions/useFiveCurrentState.md +25 -0
- package/docs_markdown/react/functions/useFiveEventCallback.md +44 -0
- package/docs_markdown/react/functions/useFiveFloor.md +25 -0
- package/docs_markdown/react/functions/useFiveHelper.md +25 -0
- package/docs_markdown/react/functions/useFiveModelIntersectRaycaster.md +45 -0
- package/docs_markdown/react/functions/useFiveModelReadyState.md +20 -0
- package/docs_markdown/react/functions/useFiveProject2d.md +49 -0
- package/docs_markdown/react/functions/useFiveSceneEffect.md +39 -0
- package/docs_markdown/react/functions/useFiveState.md +15 -0
- package/docs_markdown/react/functions/useFiveWork.md +39 -0
- package/docs_markdown/react/functions/withFive.md +47 -0
- package/docs_markdown/react/interfaces/FiveActionReactCallbacks.md +270 -0
- package/docs_markdown/react/interfaces/FiveCanvasProps.md +29 -0
- package/docs_markdown/react/interfaces/FiveInjectionTypes.md +1075 -0
- package/docs_markdown/react/interfaces/PropTypeOfFiveFeatures.md +23 -0
- package/docs_markdown/react/type-aliases/FiveInjectionActionFeature.md +11 -0
- package/docs_markdown/react/type-aliases/FiveInjectionDataFeature.md +11 -0
- package/docs_markdown/react/type-aliases/FiveInjectionFeature.md +11 -0
- package/docs_markdown/react/type-aliases/FiveProviderPropTypes.md +139 -0
- package/docs_markdown/react/type-aliases/FiveProviderType.md +11 -0
- package/docs_markdown/react/type-aliases/StoreActionMapHanlder.md +25 -0
- package/docs_markdown/react/type-aliases/StoreActionMapType.md +15 -0
- package/docs_markdown/react/type-aliases/StoreProviderType.md +11 -0
- package/docs_markdown/react/type-aliases/StoreValueMapType.md +11 -0
- package/docs_markdown/react/variables/FiveCanvas.md +25 -0
- package/docs_markdown/react/variables/INJECTION_PROPNAME.md +11 -0
- package/docs_markdown/react/variables/useFiveScene.md +43 -0
- package/docs_markdown/sticker/README.md +15 -0
- package/docs_markdown/sticker/classes/Sticker.md +208 -0
- package/docs_markdown/sticker/interfaces/IntersectionLike.md +39 -0
- package/docs_markdown/vfx/README.md +27 -0
- package/docs_markdown/vfx/classes/Airflow.md +175 -0
- package/docs_markdown/vfx/classes/Flame.md +241 -0
- package/docs_markdown/vfx/classes/Particle.md +488 -0
- package/docs_markdown/vfx/classes/ParticleGPU.md +195 -0
- package/docs_markdown/vfx/classes/SpotLight.md +159 -0
- package/docs_markdown/vfx/interfaces/ParticleArgs.md +338 -0
- package/docs_markdown/vfx/interfaces/ParticleGPUArgs.md +301 -0
- package/docs_markdown/vfx/interfaces/ParticleGPUTweenKeyframe.md +31 -0
- package/docs_markdown/vfx/interfaces/ParticleTweenKeyframe.md +31 -0
- package/docs_markdown/vfx/type-aliases/ParticleGPUType.md +11 -0
- package/docs_markdown/vfx/type-aliases/ParticleType.md +11 -0
- package/docs_markdown/vue/README.md +42 -0
- package/docs_markdown/vue/functions/unsafe__useFiveInject.md +27 -0
- package/docs_markdown/vue/functions/useFiveAction.md +104 -0
- package/docs_markdown/vue/functions/useFiveCameraDirection.md +19 -0
- package/docs_markdown/vue/functions/useFiveCameraRaycaster.md +19 -0
- package/docs_markdown/vue/functions/useFiveCurrentObserver.md +25 -0
- package/docs_markdown/vue/functions/useFiveCurrentState.md +25 -0
- package/docs_markdown/vue/functions/useFiveEventCallback.md +40 -0
- package/docs_markdown/vue/functions/useFiveFloor.md +25 -0
- package/docs_markdown/vue/functions/useFiveHelper.md +25 -0
- package/docs_markdown/vue/functions/useFiveModel.md +17 -0
- package/docs_markdown/vue/functions/useFiveModelBounding.md +17 -0
- package/docs_markdown/vue/functions/useFiveModelIntersectRaycaster.md +35 -0
- package/docs_markdown/vue/functions/useFiveModelReadyState.md +20 -0
- package/docs_markdown/vue/functions/useFiveProject2d.md +38 -0
- package/docs_markdown/vue/functions/useFiveScene.md +17 -0
- package/docs_markdown/vue/functions/useFiveState.md +25 -0
- package/docs_markdown/vue/functions/useFiveWorks.md +39 -0
- package/docs_markdown/vue/interfaces/FiveActionVueCallbacks.md +301 -0
- package/docs_markdown/vue/type-aliases/FiveModelIntersectRaycaster.md +21 -0
- package/docs_markdown/vue/type-aliases/FiveProviderComponent.md +11 -0
- package/docs_markdown/vue/type-aliases/Project2d.md +25 -0
- package/docs_markdown/vue/variables/FiveCanvas.md +37 -0
- package/docs_markdown/vue/variables/FiveProvider.md +32 -0
- package/five/index.d.ts +64 -2
- package/five/index.js +160 -72
- package/five/index.mjs +7500 -6606
- package/gltf-loader/index.js +3 -3
- package/gltf-loader/index.mjs +146 -146
- package/line/index.js +3 -3
- package/line/index.mjs +10 -10
- package/package.json +1 -1
- package/plugins/index.d.ts +0 -2
- package/plugins/index.js +2 -2
- package/plugins/index.mjs +2 -2
- package/react/index.js +2 -2
- package/react/index.mjs +2 -2
- package/shader-lib/index.js +2 -2
- package/shader-lib/index.mjs +2 -2
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +7 -7
- package/umd/five-gltf-loader.js +3 -3
- package/umd/five-line.js +3 -3
- package/umd/five-plugins.js +2 -2
- package/umd/five-react.js +2 -2
- package/umd/five-shader-lib.js +2 -2
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +2 -2
- package/umd/five-vue.js +2 -2
- package/umd/five.js +160 -72
- package/vfx/index.js +2 -2
- package/vfx/index.mjs +2 -2
- package/vue/index.js +2 -2
- package/vue/index.mjs +2 -2
- package/work-downloader/index.js +2 -2
- package/work-downloader/index.mjs +2 -2
- package/docs/documents/react-component.html +0 -32
|
@@ -0,0 +1,2231 @@
|
|
|
1
|
+
[**如视 Five SDK**](../../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[如视 Five SDK](../../modules.md) / [five](../README.md) / Five
|
|
6
|
+
|
|
7
|
+
# Class: Five
|
|
8
|
+
|
|
9
|
+
Defined in: lib/five/application/five.ts:97
|
|
10
|
+
|
|
11
|
+
如视 VR Web展示器
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
// 初始化构造函数
|
|
17
|
+
const five = new Five();
|
|
18
|
+
// 将绘制区域添加到页面上
|
|
19
|
+
five.appendTo(document.body);
|
|
20
|
+
// 加载 Work 数据
|
|
21
|
+
five.load({...});
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Extends
|
|
25
|
+
|
|
26
|
+
- [`Subscribe`](Subscribe.md)\<[`EventTypes`](../type-aliases/EventTypes.md)\>
|
|
27
|
+
|
|
28
|
+
## Constructors
|
|
29
|
+
|
|
30
|
+
### Constructor
|
|
31
|
+
|
|
32
|
+
> **new Five**(`initArgs`): `Five`
|
|
33
|
+
|
|
34
|
+
Defined in: lib/five/application/five.ts:293
|
|
35
|
+
|
|
36
|
+
#### Parameters
|
|
37
|
+
|
|
38
|
+
##### initArgs
|
|
39
|
+
|
|
40
|
+
[`FiveInitArgs`](../interfaces/FiveInitArgs.md) = `{}`
|
|
41
|
+
|
|
42
|
+
#### Returns
|
|
43
|
+
|
|
44
|
+
`Five`
|
|
45
|
+
|
|
46
|
+
#### Overrides
|
|
47
|
+
|
|
48
|
+
[`Subscribe`](Subscribe.md).[`constructor`](Subscribe.md#constructor)
|
|
49
|
+
|
|
50
|
+
## Properties
|
|
51
|
+
|
|
52
|
+
### backgroundAlpha
|
|
53
|
+
|
|
54
|
+
> **backgroundAlpha**: `number`
|
|
55
|
+
|
|
56
|
+
Defined in: lib/five/application/five.ts:215
|
|
57
|
+
|
|
58
|
+
背景透明度
|
|
59
|
+
|
|
60
|
+
***
|
|
61
|
+
|
|
62
|
+
### backgroundColor
|
|
63
|
+
|
|
64
|
+
> **backgroundColor**: `Color`
|
|
65
|
+
|
|
66
|
+
Defined in: lib/five/application/five.ts:212
|
|
67
|
+
|
|
68
|
+
背景颜色
|
|
69
|
+
|
|
70
|
+
***
|
|
71
|
+
|
|
72
|
+
### camera
|
|
73
|
+
|
|
74
|
+
> **camera**: [`Camera`](Camera.md)
|
|
75
|
+
|
|
76
|
+
Defined in: lib/five/application/five.ts:172
|
|
77
|
+
|
|
78
|
+
内部使用的 `Camera`
|
|
79
|
+
|
|
80
|
+
***
|
|
81
|
+
|
|
82
|
+
### currentMode
|
|
83
|
+
|
|
84
|
+
> **currentMode**: [`Mode`](../type-aliases/Mode.md)
|
|
85
|
+
|
|
86
|
+
Defined in: lib/five/application/five.ts:161
|
|
87
|
+
|
|
88
|
+
当前展示的模式
|
|
89
|
+
|
|
90
|
+
***
|
|
91
|
+
|
|
92
|
+
### fiveId
|
|
93
|
+
|
|
94
|
+
> `readonly` **fiveId**: `string`
|
|
95
|
+
|
|
96
|
+
Defined in: lib/five/application/five.ts:264
|
|
97
|
+
|
|
98
|
+
***
|
|
99
|
+
|
|
100
|
+
### imageOptions
|
|
101
|
+
|
|
102
|
+
> **imageOptions**: [`ImageOptions`](../interfaces/ImageOptions.md)
|
|
103
|
+
|
|
104
|
+
Defined in: lib/five/application/five.ts:223
|
|
105
|
+
|
|
106
|
+
全景图的配置参数
|
|
107
|
+
|
|
108
|
+
#### Description
|
|
109
|
+
|
|
110
|
+
可以动态对配置在 `work` 数据中的全景图片在 runtime 做 url 调整。
|
|
111
|
+
平衡加载时间和图片质量
|
|
112
|
+
|
|
113
|
+
***
|
|
114
|
+
|
|
115
|
+
### modelScene
|
|
116
|
+
|
|
117
|
+
> **modelScene**: [`ModelScene`](ModelScene.md)
|
|
118
|
+
|
|
119
|
+
Defined in: lib/five/application/five.ts:166
|
|
120
|
+
|
|
121
|
+
内部模型部分使用的 `THREE.Scene`
|
|
122
|
+
|
|
123
|
+
***
|
|
124
|
+
|
|
125
|
+
### needsRender
|
|
126
|
+
|
|
127
|
+
> **needsRender**: `boolean`
|
|
128
|
+
|
|
129
|
+
Defined in: lib/five/application/five.ts:201
|
|
130
|
+
|
|
131
|
+
是否需要渲染
|
|
132
|
+
|
|
133
|
+
#### Description
|
|
134
|
+
|
|
135
|
+
如果初始化设置了 `onlyRenderIfNeeds: true`, 则会激活按需渲染
|
|
136
|
+
可以通过设置 `five.needsRender = true` 来告知,five 会在下一帧渲染画面。
|
|
137
|
+
|
|
138
|
+
***
|
|
139
|
+
|
|
140
|
+
### onlyRenderIfNeeds
|
|
141
|
+
|
|
142
|
+
> **onlyRenderIfNeeds**: `boolean`
|
|
143
|
+
|
|
144
|
+
Defined in: lib/five/application/five.ts:206
|
|
145
|
+
|
|
146
|
+
是否按需渲染
|
|
147
|
+
|
|
148
|
+
***
|
|
149
|
+
|
|
150
|
+
### pano
|
|
151
|
+
|
|
152
|
+
> **pano**: [`Pano`](../type-aliases/Pano.md)
|
|
153
|
+
|
|
154
|
+
Defined in: lib/five/application/five.ts:158
|
|
155
|
+
|
|
156
|
+
当前点位序号
|
|
157
|
+
|
|
158
|
+
***
|
|
159
|
+
|
|
160
|
+
### paused
|
|
161
|
+
|
|
162
|
+
> **paused**: `boolean`
|
|
163
|
+
|
|
164
|
+
Defined in: lib/five/application/five.ts:155
|
|
165
|
+
|
|
166
|
+
自动播放状态是否暂停
|
|
167
|
+
|
|
168
|
+
#### Description
|
|
169
|
+
|
|
170
|
+
可以通过 `five.play` `five.pause` 方法播放或暂停
|
|
171
|
+
|
|
172
|
+
***
|
|
173
|
+
|
|
174
|
+
### plugins
|
|
175
|
+
|
|
176
|
+
> **plugins**: `object`
|
|
177
|
+
|
|
178
|
+
Defined in: lib/five/application/five.ts:262
|
|
179
|
+
|
|
180
|
+
插件暴露的方法
|
|
181
|
+
|
|
182
|
+
#### Index Signature
|
|
183
|
+
|
|
184
|
+
\[`key`: `string`\]: `any`
|
|
185
|
+
|
|
186
|
+
***
|
|
187
|
+
|
|
188
|
+
### poweredByRealsee
|
|
189
|
+
|
|
190
|
+
> **poweredByRealsee**: `boolean`
|
|
191
|
+
|
|
192
|
+
Defined in: lib/five/application/five.ts:209
|
|
193
|
+
|
|
194
|
+
是否显示 Powered By Realsee
|
|
195
|
+
|
|
196
|
+
***
|
|
197
|
+
|
|
198
|
+
### renderer?
|
|
199
|
+
|
|
200
|
+
> `optional` **renderer**: `WebGLRenderer`
|
|
201
|
+
|
|
202
|
+
Defined in: lib/five/application/five.ts:193
|
|
203
|
+
|
|
204
|
+
当前使用的 THREE.WebGLRenderer。
|
|
205
|
+
|
|
206
|
+
#### Description
|
|
207
|
+
|
|
208
|
+
如果初始化时传入了 `renderer` 则直接时该值
|
|
209
|
+
否则会通过 `preserveDrawingBuffer` `backgroundColor` `backgroundAlpha` `antialias` 创建一个 `THREE.WebGLRenderer`
|
|
210
|
+
|
|
211
|
+
***
|
|
212
|
+
|
|
213
|
+
### scene
|
|
214
|
+
|
|
215
|
+
> **scene**: [`Scene`](Scene.md)
|
|
216
|
+
|
|
217
|
+
Defined in: lib/five/application/five.ts:164
|
|
218
|
+
|
|
219
|
+
非模型部分使用的 `THREE.Scene`
|
|
220
|
+
|
|
221
|
+
***
|
|
222
|
+
|
|
223
|
+
### state
|
|
224
|
+
|
|
225
|
+
> **state**: [`State`](../interfaces/State.md)
|
|
226
|
+
|
|
227
|
+
Defined in: lib/five/application/five.ts:259
|
|
228
|
+
|
|
229
|
+
当前状态
|
|
230
|
+
|
|
231
|
+
#### Description
|
|
232
|
+
|
|
233
|
+
```text
|
|
234
|
+
five 设置了以下状态
|
|
235
|
+
|
|
236
|
+
- mode: Mode
|
|
237
|
+
- panoIndex: number
|
|
238
|
+
- longitude: number
|
|
239
|
+
- latitude: number
|
|
240
|
+
- fov: number
|
|
241
|
+
- offset: THREE.Vector3
|
|
242
|
+
|
|
243
|
+
可以通过 five.state 和 five.setState 来获取和设置。
|
|
244
|
+
通过 state 设置后,five 会通过合适的动画运动来达到设置的位置。
|
|
245
|
+
来迎合一些通过数据驱动的场景。
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
***
|
|
249
|
+
|
|
250
|
+
### textureOptions
|
|
251
|
+
|
|
252
|
+
> **textureOptions**: [`TextureOptions`](../interfaces/TextureOptions.md)
|
|
253
|
+
|
|
254
|
+
Defined in: lib/five/application/five.ts:231
|
|
255
|
+
|
|
256
|
+
模型贴图的配置参数
|
|
257
|
+
|
|
258
|
+
#### Description
|
|
259
|
+
|
|
260
|
+
可以动态对配置在 `work` 数据中的模型贴图在 runtime 做 url 调整。
|
|
261
|
+
平衡加载时间和图片质量
|
|
262
|
+
|
|
263
|
+
***
|
|
264
|
+
|
|
265
|
+
### videoTexture
|
|
266
|
+
|
|
267
|
+
> **videoTexture**: `VideoTexture`
|
|
268
|
+
|
|
269
|
+
Defined in: lib/five/application/five.ts:239
|
|
270
|
+
|
|
271
|
+
模型贴图的配置参数
|
|
272
|
+
|
|
273
|
+
#### Description
|
|
274
|
+
|
|
275
|
+
可以动态对配置在 `work` 数据中的模型贴图在 runtime 做 url 调整。
|
|
276
|
+
平衡加载时间和图片质量
|
|
277
|
+
|
|
278
|
+
***
|
|
279
|
+
|
|
280
|
+
### viewport
|
|
281
|
+
|
|
282
|
+
> **viewport**: [`Viewport`](../interfaces/Viewport.md)
|
|
283
|
+
|
|
284
|
+
Defined in: lib/five/application/five.ts:185
|
|
285
|
+
|
|
286
|
+
当前设置的 `viewport`
|
|
287
|
+
|
|
288
|
+
#### Description
|
|
289
|
+
|
|
290
|
+
可通过初始化,或者 setScissor 方式设置
|
|
291
|
+
`viewport` 是将屏幕中的内容渲染到 `renderer` 的指定区域。
|
|
292
|
+
页面整体长宽均为 `1`。通过类似 css 的 `left` `bottom` `width` `height` 来确定区域。
|
|
293
|
+
|
|
294
|
+
#### Example
|
|
295
|
+
|
|
296
|
+
```
|
|
297
|
+
viewport: { left: 0.75, bottom: 0, width: 0.25, height: 1 }
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
***
|
|
301
|
+
|
|
302
|
+
### xrCustomObjectsScene
|
|
303
|
+
|
|
304
|
+
> **xrCustomObjectsScene**: `Scene`
|
|
305
|
+
|
|
306
|
+
Defined in: lib/five/application/five.ts:169
|
|
307
|
+
|
|
308
|
+
供外部放置需要在xr场景下产生遮挡的物体们
|
|
309
|
+
|
|
310
|
+
***
|
|
311
|
+
|
|
312
|
+
### Mode
|
|
313
|
+
|
|
314
|
+
> `static` **Mode**: `object`
|
|
315
|
+
|
|
316
|
+
Defined in: lib/five/application/five.ts:140
|
|
317
|
+
|
|
318
|
+
Five 的显示模式,可以通过 `five.changeMode` `five.setState` 来切换
|
|
319
|
+
|
|
320
|
+
#### Floorplan
|
|
321
|
+
|
|
322
|
+
> `readonly` **Floorplan**: `"Floorplan"` = `"Floorplan"`
|
|
323
|
+
|
|
324
|
+
#### Mapview
|
|
325
|
+
|
|
326
|
+
> `readonly` **Mapview**: `"Mapview"` = `"Mapview"`
|
|
327
|
+
|
|
328
|
+
#### Model
|
|
329
|
+
|
|
330
|
+
> `readonly` **Model**: `"Model"` = `"Model"`
|
|
331
|
+
|
|
332
|
+
#### Panorama
|
|
333
|
+
|
|
334
|
+
> `readonly` **Panorama**: `"Panorama"` = `"Panorama"`
|
|
335
|
+
|
|
336
|
+
#### Topview
|
|
337
|
+
|
|
338
|
+
> `readonly` **Topview**: `"Topview"` = `"Topview"`
|
|
339
|
+
|
|
340
|
+
#### VRPanorama
|
|
341
|
+
|
|
342
|
+
> `readonly` **VRPanorama**: `"VRPanorama"` = `"VRPanorama"`
|
|
343
|
+
|
|
344
|
+
#### XRPanorama
|
|
345
|
+
|
|
346
|
+
> `readonly` **XRPanorama**: `"XRPanorama"` = `"XRPanorama"`
|
|
347
|
+
|
|
348
|
+
#### Description
|
|
349
|
+
|
|
350
|
+
```text
|
|
351
|
+
Panorama 全景图游走模式
|
|
352
|
+
Model 模型游走模式
|
|
353
|
+
Floorplan 模型查看模式
|
|
354
|
+
Topview 户型图模式
|
|
355
|
+
VRPanorama VR眼镜模式
|
|
356
|
+
XRPanorama VR硬件模式
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
## Accessors
|
|
360
|
+
|
|
361
|
+
### boundingMesh
|
|
362
|
+
|
|
363
|
+
#### Get Signature
|
|
364
|
+
|
|
365
|
+
> **get** **boundingMesh**(): [`BoundingMesh`](BoundingMesh.md)
|
|
366
|
+
|
|
367
|
+
Defined in: lib/five/application/five.ts:594
|
|
368
|
+
|
|
369
|
+
获取 boundingMesh
|
|
370
|
+
|
|
371
|
+
##### Returns
|
|
372
|
+
|
|
373
|
+
[`BoundingMesh`](BoundingMesh.md)
|
|
374
|
+
|
|
375
|
+
***
|
|
376
|
+
|
|
377
|
+
### enableAdaptiveLuminance
|
|
378
|
+
|
|
379
|
+
#### Get Signature
|
|
380
|
+
|
|
381
|
+
> **get** **enableAdaptiveLuminance**(): `boolean`
|
|
382
|
+
|
|
383
|
+
Defined in: lib/five/application/five.ts:2845
|
|
384
|
+
|
|
385
|
+
开启 AdaptiveLuminance
|
|
386
|
+
|
|
387
|
+
##### Returns
|
|
388
|
+
|
|
389
|
+
`boolean`
|
|
390
|
+
|
|
391
|
+
#### Set Signature
|
|
392
|
+
|
|
393
|
+
> **set** **enableAdaptiveLuminance**(`enable`): `void`
|
|
394
|
+
|
|
395
|
+
Defined in: lib/five/application/five.ts:2848
|
|
396
|
+
|
|
397
|
+
##### Parameters
|
|
398
|
+
|
|
399
|
+
###### enable
|
|
400
|
+
|
|
401
|
+
`boolean`
|
|
402
|
+
|
|
403
|
+
##### Returns
|
|
404
|
+
|
|
405
|
+
`void`
|
|
406
|
+
|
|
407
|
+
***
|
|
408
|
+
|
|
409
|
+
### enableEDL
|
|
410
|
+
|
|
411
|
+
#### Get Signature
|
|
412
|
+
|
|
413
|
+
> **get** **enableEDL**(): `boolean`
|
|
414
|
+
|
|
415
|
+
Defined in: lib/five/application/five.ts:2836
|
|
416
|
+
|
|
417
|
+
开启 edl
|
|
418
|
+
|
|
419
|
+
##### Returns
|
|
420
|
+
|
|
421
|
+
`boolean`
|
|
422
|
+
|
|
423
|
+
#### Set Signature
|
|
424
|
+
|
|
425
|
+
> **set** **enableEDL**(`enable`): `void`
|
|
426
|
+
|
|
427
|
+
Defined in: lib/five/application/five.ts:2839
|
|
428
|
+
|
|
429
|
+
##### Parameters
|
|
430
|
+
|
|
431
|
+
###### enable
|
|
432
|
+
|
|
433
|
+
`boolean`
|
|
434
|
+
|
|
435
|
+
##### Returns
|
|
436
|
+
|
|
437
|
+
`void`
|
|
438
|
+
|
|
439
|
+
***
|
|
440
|
+
|
|
441
|
+
### enableHQ
|
|
442
|
+
|
|
443
|
+
#### Get Signature
|
|
444
|
+
|
|
445
|
+
> **get** **enableHQ**(): `boolean`
|
|
446
|
+
|
|
447
|
+
Defined in: lib/five/application/five.ts:2827
|
|
448
|
+
|
|
449
|
+
开启 HQ
|
|
450
|
+
|
|
451
|
+
##### Returns
|
|
452
|
+
|
|
453
|
+
`boolean`
|
|
454
|
+
|
|
455
|
+
#### Set Signature
|
|
456
|
+
|
|
457
|
+
> **set** **enableHQ**(`enable`): `void`
|
|
458
|
+
|
|
459
|
+
Defined in: lib/five/application/five.ts:2830
|
|
460
|
+
|
|
461
|
+
##### Parameters
|
|
462
|
+
|
|
463
|
+
###### enable
|
|
464
|
+
|
|
465
|
+
`boolean`
|
|
466
|
+
|
|
467
|
+
##### Returns
|
|
468
|
+
|
|
469
|
+
`void`
|
|
470
|
+
|
|
471
|
+
***
|
|
472
|
+
|
|
473
|
+
### enableIOSEDR
|
|
474
|
+
|
|
475
|
+
#### Get Signature
|
|
476
|
+
|
|
477
|
+
> **get** **enableIOSEDR**(): `boolean`
|
|
478
|
+
|
|
479
|
+
Defined in: lib/five/application/five.ts:2857
|
|
480
|
+
|
|
481
|
+
##### Deprecated
|
|
482
|
+
|
|
483
|
+
不可用
|
|
484
|
+
|
|
485
|
+
##### Returns
|
|
486
|
+
|
|
487
|
+
`boolean`
|
|
488
|
+
|
|
489
|
+
#### Set Signature
|
|
490
|
+
|
|
491
|
+
> **set** **enableIOSEDR**(`enable`): `void`
|
|
492
|
+
|
|
493
|
+
Defined in: lib/five/application/five.ts:2860
|
|
494
|
+
|
|
495
|
+
##### Parameters
|
|
496
|
+
|
|
497
|
+
###### enable
|
|
498
|
+
|
|
499
|
+
`boolean`
|
|
500
|
+
|
|
501
|
+
##### Returns
|
|
502
|
+
|
|
503
|
+
`void`
|
|
504
|
+
|
|
505
|
+
***
|
|
506
|
+
|
|
507
|
+
### enablePostProcessing
|
|
508
|
+
|
|
509
|
+
#### Get Signature
|
|
510
|
+
|
|
511
|
+
> **get** **enablePostProcessing**(): `boolean`
|
|
512
|
+
|
|
513
|
+
Defined in: lib/five/application/five.ts:2867
|
|
514
|
+
|
|
515
|
+
##### Deprecated
|
|
516
|
+
|
|
517
|
+
不可用
|
|
518
|
+
|
|
519
|
+
##### Returns
|
|
520
|
+
|
|
521
|
+
`boolean`
|
|
522
|
+
|
|
523
|
+
#### Set Signature
|
|
524
|
+
|
|
525
|
+
> **set** **enablePostProcessing**(`enable`): `void`
|
|
526
|
+
|
|
527
|
+
Defined in: lib/five/application/five.ts:2870
|
|
528
|
+
|
|
529
|
+
##### Parameters
|
|
530
|
+
|
|
531
|
+
###### enable
|
|
532
|
+
|
|
533
|
+
`boolean`
|
|
534
|
+
|
|
535
|
+
##### Returns
|
|
536
|
+
|
|
537
|
+
`void`
|
|
538
|
+
|
|
539
|
+
***
|
|
540
|
+
|
|
541
|
+
### helperVisible
|
|
542
|
+
|
|
543
|
+
#### Get Signature
|
|
544
|
+
|
|
545
|
+
> **get** **helperVisible**(): `boolean`
|
|
546
|
+
|
|
547
|
+
Defined in: lib/five/application/five.ts:601
|
|
548
|
+
|
|
549
|
+
帮助元素显示/隐藏
|
|
550
|
+
|
|
551
|
+
##### Returns
|
|
552
|
+
|
|
553
|
+
`boolean`
|
|
554
|
+
|
|
555
|
+
#### Set Signature
|
|
556
|
+
|
|
557
|
+
> **set** **helperVisible**(`visible`): `void`
|
|
558
|
+
|
|
559
|
+
Defined in: lib/five/application/five.ts:604
|
|
560
|
+
|
|
561
|
+
##### Parameters
|
|
562
|
+
|
|
563
|
+
###### visible
|
|
564
|
+
|
|
565
|
+
`boolean`
|
|
566
|
+
|
|
567
|
+
##### Returns
|
|
568
|
+
|
|
569
|
+
`void`
|
|
570
|
+
|
|
571
|
+
***
|
|
572
|
+
|
|
573
|
+
### ident
|
|
574
|
+
|
|
575
|
+
#### Get Signature
|
|
576
|
+
|
|
577
|
+
> **get** **ident**(): `string`
|
|
578
|
+
|
|
579
|
+
Defined in: lib/five/application/five.ts:507
|
|
580
|
+
|
|
581
|
+
##### Returns
|
|
582
|
+
|
|
583
|
+
`string`
|
|
584
|
+
|
|
585
|
+
***
|
|
586
|
+
|
|
587
|
+
### internalLightsEnabled
|
|
588
|
+
|
|
589
|
+
#### Get Signature
|
|
590
|
+
|
|
591
|
+
> **get** **internalLightsEnabled**(): `boolean`
|
|
592
|
+
|
|
593
|
+
Defined in: lib/five/application/five.ts:2676
|
|
594
|
+
|
|
595
|
+
##### Returns
|
|
596
|
+
|
|
597
|
+
`boolean`
|
|
598
|
+
|
|
599
|
+
#### Set Signature
|
|
600
|
+
|
|
601
|
+
> **set** **internalLightsEnabled**(`value`): `void`
|
|
602
|
+
|
|
603
|
+
Defined in: lib/five/application/five.ts:2685
|
|
604
|
+
|
|
605
|
+
##### Parameters
|
|
606
|
+
|
|
607
|
+
###### value
|
|
608
|
+
|
|
609
|
+
`boolean`
|
|
610
|
+
|
|
611
|
+
##### Returns
|
|
612
|
+
|
|
613
|
+
`void`
|
|
614
|
+
|
|
615
|
+
***
|
|
616
|
+
|
|
617
|
+
### model
|
|
618
|
+
|
|
619
|
+
#### Get Signature
|
|
620
|
+
|
|
621
|
+
> **get** **model**(): [`Model`](Model.md)
|
|
622
|
+
|
|
623
|
+
Defined in: lib/five/application/five.ts:846
|
|
624
|
+
|
|
625
|
+
##### Returns
|
|
626
|
+
|
|
627
|
+
[`Model`](Model.md)
|
|
628
|
+
|
|
629
|
+
***
|
|
630
|
+
|
|
631
|
+
### models
|
|
632
|
+
|
|
633
|
+
#### Get Signature
|
|
634
|
+
|
|
635
|
+
> **get** **models**(): [`Models`](../type-aliases/Models.md)
|
|
636
|
+
|
|
637
|
+
Defined in: lib/five/application/five.ts:842
|
|
638
|
+
|
|
639
|
+
##### Returns
|
|
640
|
+
|
|
641
|
+
[`Models`](../type-aliases/Models.md)
|
|
642
|
+
|
|
643
|
+
***
|
|
644
|
+
|
|
645
|
+
### modelSceneNeedsRender
|
|
646
|
+
|
|
647
|
+
#### Get Signature
|
|
648
|
+
|
|
649
|
+
> **get** **modelSceneNeedsRender**(): `boolean`
|
|
650
|
+
|
|
651
|
+
Defined in: lib/five/application/five.ts:2877
|
|
652
|
+
|
|
653
|
+
##### Deprecated
|
|
654
|
+
|
|
655
|
+
use five.modelScene.needsRender instead
|
|
656
|
+
|
|
657
|
+
##### Returns
|
|
658
|
+
|
|
659
|
+
`boolean`
|
|
660
|
+
|
|
661
|
+
#### Set Signature
|
|
662
|
+
|
|
663
|
+
> **set** **modelSceneNeedsRender**(`needsRender`): `void`
|
|
664
|
+
|
|
665
|
+
Defined in: lib/five/application/five.ts:2880
|
|
666
|
+
|
|
667
|
+
##### Parameters
|
|
668
|
+
|
|
669
|
+
###### needsRender
|
|
670
|
+
|
|
671
|
+
`boolean`
|
|
672
|
+
|
|
673
|
+
##### Returns
|
|
674
|
+
|
|
675
|
+
`void`
|
|
676
|
+
|
|
677
|
+
***
|
|
678
|
+
|
|
679
|
+
### observers
|
|
680
|
+
|
|
681
|
+
#### Get Signature
|
|
682
|
+
|
|
683
|
+
> **get** **observers**(): readonly [`WorkObserver`](../interfaces/WorkObserver.md)[]
|
|
684
|
+
|
|
685
|
+
Defined in: lib/five/application/five.ts:838
|
|
686
|
+
|
|
687
|
+
##### Returns
|
|
688
|
+
|
|
689
|
+
readonly [`WorkObserver`](../interfaces/WorkObserver.md)[]
|
|
690
|
+
|
|
691
|
+
***
|
|
692
|
+
|
|
693
|
+
### panoIndex
|
|
694
|
+
|
|
695
|
+
#### Get Signature
|
|
696
|
+
|
|
697
|
+
> **get** **panoIndex**(): `number`
|
|
698
|
+
|
|
699
|
+
Defined in: lib/five/application/five.ts:511
|
|
700
|
+
|
|
701
|
+
##### Returns
|
|
702
|
+
|
|
703
|
+
`number`
|
|
704
|
+
|
|
705
|
+
***
|
|
706
|
+
|
|
707
|
+
### renderMode
|
|
708
|
+
|
|
709
|
+
#### Get Signature
|
|
710
|
+
|
|
711
|
+
> **get** **renderMode**(): `"default"` \| `"ssaa"` \| `"point-cloud-high-quality"`
|
|
712
|
+
|
|
713
|
+
Defined in: lib/five/application/five.ts:2819
|
|
714
|
+
|
|
715
|
+
设置渲染模式
|
|
716
|
+
|
|
717
|
+
##### Returns
|
|
718
|
+
|
|
719
|
+
`"default"` \| `"ssaa"` \| `"point-cloud-high-quality"`
|
|
720
|
+
|
|
721
|
+
#### Set Signature
|
|
722
|
+
|
|
723
|
+
> **set** **renderMode**(`value`): `void`
|
|
724
|
+
|
|
725
|
+
Defined in: lib/five/application/five.ts:2822
|
|
726
|
+
|
|
727
|
+
##### Parameters
|
|
728
|
+
|
|
729
|
+
###### value
|
|
730
|
+
|
|
731
|
+
`"default"` | `"ssaa"` | `"point-cloud-high-quality"`
|
|
732
|
+
|
|
733
|
+
##### Returns
|
|
734
|
+
|
|
735
|
+
`void`
|
|
736
|
+
|
|
737
|
+
***
|
|
738
|
+
|
|
739
|
+
### scissor
|
|
740
|
+
|
|
741
|
+
#### Get Signature
|
|
742
|
+
|
|
743
|
+
> **get** **scissor**(): [`Viewport`](../interfaces/Viewport.md)
|
|
744
|
+
|
|
745
|
+
Defined in: lib/five/application/five.ts:2702
|
|
746
|
+
|
|
747
|
+
##### Deprecated
|
|
748
|
+
|
|
749
|
+
use Viewport instead.
|
|
750
|
+
|
|
751
|
+
##### Returns
|
|
752
|
+
|
|
753
|
+
[`Viewport`](../interfaces/Viewport.md)
|
|
754
|
+
|
|
755
|
+
***
|
|
756
|
+
|
|
757
|
+
### work
|
|
758
|
+
|
|
759
|
+
#### Get Signature
|
|
760
|
+
|
|
761
|
+
> **get** **work**(): [`Work`](Work.md)
|
|
762
|
+
|
|
763
|
+
Defined in: lib/five/application/five.ts:834
|
|
764
|
+
|
|
765
|
+
##### Returns
|
|
766
|
+
|
|
767
|
+
[`Work`](Work.md)
|
|
768
|
+
|
|
769
|
+
***
|
|
770
|
+
|
|
771
|
+
### works
|
|
772
|
+
|
|
773
|
+
#### Get Signature
|
|
774
|
+
|
|
775
|
+
> **get** **works**(): [`Works`](../type-aliases/Works.md)
|
|
776
|
+
|
|
777
|
+
Defined in: lib/five/application/five.ts:826
|
|
778
|
+
|
|
779
|
+
当前加载的 work 数据
|
|
780
|
+
|
|
781
|
+
##### Returns
|
|
782
|
+
|
|
783
|
+
[`Works`](../type-aliases/Works.md)
|
|
784
|
+
|
|
785
|
+
***
|
|
786
|
+
|
|
787
|
+
### dracoPath
|
|
788
|
+
|
|
789
|
+
#### Get Signature
|
|
790
|
+
|
|
791
|
+
> **get** `static` **dracoPath**(): `string`
|
|
792
|
+
|
|
793
|
+
Defined in: lib/five/application/five.ts:104
|
|
794
|
+
|
|
795
|
+
##### Returns
|
|
796
|
+
|
|
797
|
+
`string`
|
|
798
|
+
|
|
799
|
+
#### Set Signature
|
|
800
|
+
|
|
801
|
+
> **set** `static` **dracoPath**(`path`): `void`
|
|
802
|
+
|
|
803
|
+
Defined in: lib/five/application/five.ts:108
|
|
804
|
+
|
|
805
|
+
##### Parameters
|
|
806
|
+
|
|
807
|
+
###### path
|
|
808
|
+
|
|
809
|
+
`string`
|
|
810
|
+
|
|
811
|
+
##### Returns
|
|
812
|
+
|
|
813
|
+
`void`
|
|
814
|
+
|
|
815
|
+
***
|
|
816
|
+
|
|
817
|
+
### ktx2Path
|
|
818
|
+
|
|
819
|
+
#### Get Signature
|
|
820
|
+
|
|
821
|
+
> **get** `static` **ktx2Path**(): `string`
|
|
822
|
+
|
|
823
|
+
Defined in: lib/five/application/five.ts:112
|
|
824
|
+
|
|
825
|
+
##### Returns
|
|
826
|
+
|
|
827
|
+
`string`
|
|
828
|
+
|
|
829
|
+
#### Set Signature
|
|
830
|
+
|
|
831
|
+
> **set** `static` **ktx2Path**(`path`): `void`
|
|
832
|
+
|
|
833
|
+
Defined in: lib/five/application/five.ts:116
|
|
834
|
+
|
|
835
|
+
##### Parameters
|
|
836
|
+
|
|
837
|
+
###### path
|
|
838
|
+
|
|
839
|
+
`string`
|
|
840
|
+
|
|
841
|
+
##### Returns
|
|
842
|
+
|
|
843
|
+
`void`
|
|
844
|
+
|
|
845
|
+
***
|
|
846
|
+
|
|
847
|
+
### useNativeImageBitmap
|
|
848
|
+
|
|
849
|
+
#### Get Signature
|
|
850
|
+
|
|
851
|
+
> **get** `static` **useNativeImageBitmap**(): `boolean`
|
|
852
|
+
|
|
853
|
+
Defined in: lib/five/application/five.ts:120
|
|
854
|
+
|
|
855
|
+
##### Returns
|
|
856
|
+
|
|
857
|
+
`boolean`
|
|
858
|
+
|
|
859
|
+
#### Set Signature
|
|
860
|
+
|
|
861
|
+
> **set** `static` **useNativeImageBitmap**(`enable`): `void`
|
|
862
|
+
|
|
863
|
+
Defined in: lib/five/application/five.ts:124
|
|
864
|
+
|
|
865
|
+
##### Parameters
|
|
866
|
+
|
|
867
|
+
###### enable
|
|
868
|
+
|
|
869
|
+
`boolean`
|
|
870
|
+
|
|
871
|
+
##### Returns
|
|
872
|
+
|
|
873
|
+
`void`
|
|
874
|
+
|
|
875
|
+
***
|
|
876
|
+
|
|
877
|
+
### version
|
|
878
|
+
|
|
879
|
+
#### Get Signature
|
|
880
|
+
|
|
881
|
+
> **get** `static` **version**(): `string`
|
|
882
|
+
|
|
883
|
+
Defined in: lib/five/application/five.ts:99
|
|
884
|
+
|
|
885
|
+
##### Returns
|
|
886
|
+
|
|
887
|
+
`string`
|
|
888
|
+
|
|
889
|
+
## Methods
|
|
890
|
+
|
|
891
|
+
### addExtraElement()
|
|
892
|
+
|
|
893
|
+
> **addExtraElement**(`element`): () => `void`
|
|
894
|
+
|
|
895
|
+
Defined in: lib/five/application/five.ts:749
|
|
896
|
+
|
|
897
|
+
绑定一个额外 DOM 区域,接受触控/鼠标事件
|
|
898
|
+
|
|
899
|
+
#### Parameters
|
|
900
|
+
|
|
901
|
+
##### element
|
|
902
|
+
|
|
903
|
+
`HTMLElement`
|
|
904
|
+
|
|
905
|
+
#### Returns
|
|
906
|
+
|
|
907
|
+
解除该绑定
|
|
908
|
+
|
|
909
|
+
> (): `void`
|
|
910
|
+
|
|
911
|
+
##### Returns
|
|
912
|
+
|
|
913
|
+
`void`
|
|
914
|
+
|
|
915
|
+
***
|
|
916
|
+
|
|
917
|
+
### addPass()
|
|
918
|
+
|
|
919
|
+
> **addPass**(`pass`): `void`
|
|
920
|
+
|
|
921
|
+
Defined in: lib/five/application/five.ts:2774
|
|
922
|
+
|
|
923
|
+
增加后处理PASS
|
|
924
|
+
|
|
925
|
+
#### Parameters
|
|
926
|
+
|
|
927
|
+
##### pass
|
|
928
|
+
|
|
929
|
+
[`Pass`](../interfaces/Pass.md)
|
|
930
|
+
|
|
931
|
+
要添加的Pass实例
|
|
932
|
+
|
|
933
|
+
#### Returns
|
|
934
|
+
|
|
935
|
+
`void`
|
|
936
|
+
|
|
937
|
+
***
|
|
938
|
+
|
|
939
|
+
### appendTo()
|
|
940
|
+
|
|
941
|
+
> **appendTo**(`element`, `size`): `void`
|
|
942
|
+
|
|
943
|
+
Defined in: lib/five/application/five.ts:680
|
|
944
|
+
|
|
945
|
+
将显示区域加载到页面 DOM 中
|
|
946
|
+
|
|
947
|
+
#### Parameters
|
|
948
|
+
|
|
949
|
+
##### element
|
|
950
|
+
|
|
951
|
+
`HTMLElement`
|
|
952
|
+
|
|
953
|
+
加载到页面的 DOM 元素
|
|
954
|
+
|
|
955
|
+
##### size
|
|
956
|
+
|
|
957
|
+
显示区域尺寸 默认铺满这个 DOM 元素
|
|
958
|
+
|
|
959
|
+
###### height?
|
|
960
|
+
|
|
961
|
+
`number`
|
|
962
|
+
|
|
963
|
+
###### width?
|
|
964
|
+
|
|
965
|
+
`number`
|
|
966
|
+
|
|
967
|
+
#### Returns
|
|
968
|
+
|
|
969
|
+
`void`
|
|
970
|
+
|
|
971
|
+
#### Description
|
|
972
|
+
|
|
973
|
+
如果你是传入的 `renderer`. 则你需要自行来方式显示区域该方法并不生效
|
|
974
|
+
|
|
975
|
+
***
|
|
976
|
+
|
|
977
|
+
### changeMode()
|
|
978
|
+
|
|
979
|
+
> **changeMode**\<`T`\>(`mode`, `state`, `options?`, `userAction?`, `force?`): `Promise`\<`void`\>
|
|
980
|
+
|
|
981
|
+
Defined in: lib/five/application/five.ts:1272
|
|
982
|
+
|
|
983
|
+
切换模态
|
|
984
|
+
|
|
985
|
+
#### Type Parameters
|
|
986
|
+
|
|
987
|
+
##### T
|
|
988
|
+
|
|
989
|
+
`T` *extends* [`Mode`](../type-aliases/Mode.md)
|
|
990
|
+
|
|
991
|
+
#### Parameters
|
|
992
|
+
|
|
993
|
+
##### mode
|
|
994
|
+
|
|
995
|
+
`T`
|
|
996
|
+
|
|
997
|
+
切换到的模态
|
|
998
|
+
|
|
999
|
+
##### state
|
|
1000
|
+
|
|
1001
|
+
`Partial`\<`Omit`\<[`State`](../interfaces/State.md), `"mode"`\>\> = `{}`
|
|
1002
|
+
|
|
1003
|
+
切换完成时的姿态
|
|
1004
|
+
|
|
1005
|
+
##### options?
|
|
1006
|
+
|
|
1007
|
+
模态切换动画用时
|
|
1008
|
+
|
|
1009
|
+
`number` | \{ `duration?`: `number`; `effect?`: [`MovePanoEffect`](../type-aliases/MovePanoEffect.md); \}
|
|
1010
|
+
|
|
1011
|
+
##### userAction?
|
|
1012
|
+
|
|
1013
|
+
`boolean` = `true`
|
|
1014
|
+
|
|
1015
|
+
是否时用户动作触发 默认 true
|
|
1016
|
+
|
|
1017
|
+
##### force?
|
|
1018
|
+
|
|
1019
|
+
`boolean` = `false`
|
|
1020
|
+
|
|
1021
|
+
必须重新初始化 controller
|
|
1022
|
+
|
|
1023
|
+
#### Returns
|
|
1024
|
+
|
|
1025
|
+
`Promise`\<`void`\>
|
|
1026
|
+
|
|
1027
|
+
***
|
|
1028
|
+
|
|
1029
|
+
### dispose()
|
|
1030
|
+
|
|
1031
|
+
> **dispose**(): `void`
|
|
1032
|
+
|
|
1033
|
+
Defined in: lib/five/application/five.ts:521
|
|
1034
|
+
|
|
1035
|
+
析构 five 对象。
|
|
1036
|
+
|
|
1037
|
+
#### Returns
|
|
1038
|
+
|
|
1039
|
+
`void`
|
|
1040
|
+
|
|
1041
|
+
#### Description
|
|
1042
|
+
|
|
1043
|
+
一旦调用了析构方法,则不能再使用当前 five 对象了。
|
|
1044
|
+
你可以新建一个新的。
|
|
1045
|
+
|
|
1046
|
+
***
|
|
1047
|
+
|
|
1048
|
+
### emit()
|
|
1049
|
+
|
|
1050
|
+
> **emit**\<`K`\>(`name`, ...`data`): `boolean`
|
|
1051
|
+
|
|
1052
|
+
Defined in: lib/five/utils/subscribe.ts:131
|
|
1053
|
+
|
|
1054
|
+
触发事件
|
|
1055
|
+
|
|
1056
|
+
#### Type Parameters
|
|
1057
|
+
|
|
1058
|
+
##### K
|
|
1059
|
+
|
|
1060
|
+
`K` *extends* `"dispose"` \| `"error"` \| `"render"` \| `"gesture.pan"` \| `"gesture.tap"` \| `"gesture.dbltap"` \| `"gesture.press"` \| `"gesture.pinch"` \| `"gesture.mousewheel"` \| `"gesture.mousemove"` \| `"gesture.momentum"` \| `"initAnimation.start"` \| `"initAnimation.end"` \| `"camera.update"` \| `"intersect.update"` \| `"pano.select"` \| `"pano.request"` \| `"pano.moveTo"` \| `"pano.moving"` \| `"pano.arrived"` \| `"pano.cancel"` \| `"pano.error"` \| `"pano.texture.load"` \| `"pano.texture.progress"` \| `"pano.texture.success"` \| `"pano.texture.error"` \| `"pano.texture.abort"` \| `"xr.session.end"` \| `"xr.session.start"` \| `"xr.gesture.tap"` \| `"xr.gesture.press"` \| `"xr.gesture.buttonUp"` \| `"xr.gesture.buttonDown"` \| `"xr.controller.update"` \| keyof LegacyEventType \| `"works.request"` \| `"works.load"` \| `"works.ready"` \| `"state.set"` \| `"state.change"` \| `"state.synced"` \| `"currentState.change"` \| `"model.request"` \| `"model.load"` \| `"model.error"` \| `"model.changeShownFloor"` \| `"models.load"` \| `"models.refined"` \| `"render.prepare"` \| `"mode.change.request"` \| `"mode.change"` \| `"helpers.visible"` \| `"network.resource"` \| `"fps"`
|
|
1061
|
+
|
|
1062
|
+
预设的监听事件名称
|
|
1063
|
+
|
|
1064
|
+
#### Parameters
|
|
1065
|
+
|
|
1066
|
+
##### name
|
|
1067
|
+
|
|
1068
|
+
`K`
|
|
1069
|
+
|
|
1070
|
+
事件类型
|
|
1071
|
+
|
|
1072
|
+
##### data
|
|
1073
|
+
|
|
1074
|
+
...`Parameters`\<[`EventTypes`](../type-aliases/EventTypes.md)\[`K`\]\>
|
|
1075
|
+
|
|
1076
|
+
触发事件的数据
|
|
1077
|
+
|
|
1078
|
+
#### Returns
|
|
1079
|
+
|
|
1080
|
+
`boolean`
|
|
1081
|
+
|
|
1082
|
+
canceled 是否被触发取消
|
|
1083
|
+
|
|
1084
|
+
#### Inherited from
|
|
1085
|
+
|
|
1086
|
+
[`Subscribe`](Subscribe.md).[`emit`](Subscribe.md#emit)
|
|
1087
|
+
|
|
1088
|
+
***
|
|
1089
|
+
|
|
1090
|
+
### exitFullscreen()
|
|
1091
|
+
|
|
1092
|
+
> **exitFullscreen**(): `void`
|
|
1093
|
+
|
|
1094
|
+
Defined in: lib/five/application/five.ts:2428
|
|
1095
|
+
|
|
1096
|
+
退出全屏
|
|
1097
|
+
|
|
1098
|
+
#### Returns
|
|
1099
|
+
|
|
1100
|
+
`void`
|
|
1101
|
+
|
|
1102
|
+
***
|
|
1103
|
+
|
|
1104
|
+
### ~~getCameraLocal()~~
|
|
1105
|
+
|
|
1106
|
+
> **getCameraLocal**(): `object`
|
|
1107
|
+
|
|
1108
|
+
Defined in: lib/five/application/five.ts:2744
|
|
1109
|
+
|
|
1110
|
+
获取当前相机的姿态(用于内部的 python 脚本截图)
|
|
1111
|
+
|
|
1112
|
+
#### Returns
|
|
1113
|
+
|
|
1114
|
+
`object`
|
|
1115
|
+
|
|
1116
|
+
##### ~~lookAtVector~~
|
|
1117
|
+
|
|
1118
|
+
> **lookAtVector**: `Vector3`
|
|
1119
|
+
|
|
1120
|
+
##### ~~phi~~
|
|
1121
|
+
|
|
1122
|
+
> **phi**: `number`
|
|
1123
|
+
|
|
1124
|
+
##### ~~theta~~
|
|
1125
|
+
|
|
1126
|
+
> **theta**: `number`
|
|
1127
|
+
|
|
1128
|
+
#### Deprecated
|
|
1129
|
+
|
|
1130
|
+
这是用于内部的 python 脚本截图
|
|
1131
|
+
|
|
1132
|
+
***
|
|
1133
|
+
|
|
1134
|
+
### getCurrentState()
|
|
1135
|
+
|
|
1136
|
+
> **getCurrentState**(): [`State`](../interfaces/State.md)
|
|
1137
|
+
|
|
1138
|
+
Defined in: lib/five/application/five.ts:2034
|
|
1139
|
+
|
|
1140
|
+
#### Returns
|
|
1141
|
+
|
|
1142
|
+
[`State`](../interfaces/State.md)
|
|
1143
|
+
|
|
1144
|
+
***
|
|
1145
|
+
|
|
1146
|
+
### getDrawingBufferSize()
|
|
1147
|
+
|
|
1148
|
+
> **getDrawingBufferSize**(`target`): `Vector2`
|
|
1149
|
+
|
|
1150
|
+
Defined in: lib/five/application/five.ts:781
|
|
1151
|
+
|
|
1152
|
+
#### Parameters
|
|
1153
|
+
|
|
1154
|
+
##### target
|
|
1155
|
+
|
|
1156
|
+
`Vector2`
|
|
1157
|
+
|
|
1158
|
+
#### Returns
|
|
1159
|
+
|
|
1160
|
+
`Vector2`
|
|
1161
|
+
|
|
1162
|
+
***
|
|
1163
|
+
|
|
1164
|
+
### getElement()
|
|
1165
|
+
|
|
1166
|
+
> **getElement**(): `HTMLCanvasElement`
|
|
1167
|
+
|
|
1168
|
+
Defined in: lib/five/application/five.ts:1656
|
|
1169
|
+
|
|
1170
|
+
获取显示用的画布(Canvas DOM节点)
|
|
1171
|
+
|
|
1172
|
+
#### Returns
|
|
1173
|
+
|
|
1174
|
+
`HTMLCanvasElement`
|
|
1175
|
+
|
|
1176
|
+
***
|
|
1177
|
+
|
|
1178
|
+
### ~~getLongitudeAndLatitude()~~
|
|
1179
|
+
|
|
1180
|
+
> **getLongitudeAndLatitude**(): `Pick`\<[`Pose`](../interfaces/Pose.md), `"longitude"` \| `"latitude"`\>
|
|
1181
|
+
|
|
1182
|
+
Defined in: lib/five/application/five.ts:2727
|
|
1183
|
+
|
|
1184
|
+
获取当前相机经纬度
|
|
1185
|
+
|
|
1186
|
+
#### Returns
|
|
1187
|
+
|
|
1188
|
+
`Pick`\<[`Pose`](../interfaces/Pose.md), `"longitude"` \| `"latitude"`\>
|
|
1189
|
+
|
|
1190
|
+
#### Deprecated
|
|
1191
|
+
|
|
1192
|
+
请使用使用 getPose
|
|
1193
|
+
|
|
1194
|
+
***
|
|
1195
|
+
|
|
1196
|
+
### getMaxShDegree()
|
|
1197
|
+
|
|
1198
|
+
> **getMaxShDegree**(): `number`
|
|
1199
|
+
|
|
1200
|
+
Defined in: lib/five/application/five.ts:2812
|
|
1201
|
+
|
|
1202
|
+
获取当前球谐阶数
|
|
1203
|
+
|
|
1204
|
+
#### Returns
|
|
1205
|
+
|
|
1206
|
+
`number`
|
|
1207
|
+
|
|
1208
|
+
当前球谐阶数,如果没有 pbmGSRenderMesh 则返回 0
|
|
1209
|
+
|
|
1210
|
+
***
|
|
1211
|
+
|
|
1212
|
+
### ~~getOffset()~~
|
|
1213
|
+
|
|
1214
|
+
> **getOffset**(): `Vector3`
|
|
1215
|
+
|
|
1216
|
+
Defined in: lib/five/application/five.ts:2736
|
|
1217
|
+
|
|
1218
|
+
获取当前相机位置
|
|
1219
|
+
|
|
1220
|
+
#### Returns
|
|
1221
|
+
|
|
1222
|
+
`Vector3`
|
|
1223
|
+
|
|
1224
|
+
#### Deprecated
|
|
1225
|
+
|
|
1226
|
+
请使用使用 getPose
|
|
1227
|
+
|
|
1228
|
+
***
|
|
1229
|
+
|
|
1230
|
+
### getPixels()
|
|
1231
|
+
|
|
1232
|
+
#### Call Signature
|
|
1233
|
+
|
|
1234
|
+
> **getPixels**\<`T`\>(`x`, `y`, `width`, `height`, `pixelRatio?`, `flipY?`, `buffer?`): `T`
|
|
1235
|
+
|
|
1236
|
+
Defined in: lib/five/application/five.ts:1452
|
|
1237
|
+
|
|
1238
|
+
获取画面中的像素颜色
|
|
1239
|
+
|
|
1240
|
+
##### Type Parameters
|
|
1241
|
+
|
|
1242
|
+
###### T
|
|
1243
|
+
|
|
1244
|
+
`T` *extends* `Uint8Array`\<`ArrayBufferLike`\> \| `Uint8ClampedArray`\<`ArrayBufferLike`\> = `Uint8Array`\<`ArrayBufferLike`\>
|
|
1245
|
+
|
|
1246
|
+
##### Parameters
|
|
1247
|
+
|
|
1248
|
+
###### x
|
|
1249
|
+
|
|
1250
|
+
`number`
|
|
1251
|
+
|
|
1252
|
+
获取像素区域的起始坐标 x
|
|
1253
|
+
|
|
1254
|
+
###### y
|
|
1255
|
+
|
|
1256
|
+
`number`
|
|
1257
|
+
|
|
1258
|
+
获取像素区域的起始坐标 y
|
|
1259
|
+
|
|
1260
|
+
###### width
|
|
1261
|
+
|
|
1262
|
+
`number`
|
|
1263
|
+
|
|
1264
|
+
获取像素区域的宽度
|
|
1265
|
+
|
|
1266
|
+
###### height
|
|
1267
|
+
|
|
1268
|
+
`number`
|
|
1269
|
+
|
|
1270
|
+
获取像素区域的高度
|
|
1271
|
+
|
|
1272
|
+
###### pixelRatio?
|
|
1273
|
+
|
|
1274
|
+
`number`
|
|
1275
|
+
|
|
1276
|
+
获取区域的像素比
|
|
1277
|
+
|
|
1278
|
+
###### flipY?
|
|
1279
|
+
|
|
1280
|
+
`boolean`
|
|
1281
|
+
|
|
1282
|
+
是否Y轴翻转
|
|
1283
|
+
|
|
1284
|
+
###### buffer?
|
|
1285
|
+
|
|
1286
|
+
`T`
|
|
1287
|
+
|
|
1288
|
+
存储数组
|
|
1289
|
+
|
|
1290
|
+
##### Returns
|
|
1291
|
+
|
|
1292
|
+
`T`
|
|
1293
|
+
|
|
1294
|
+
rgba颜色平铺的 Uint8Array
|
|
1295
|
+
|
|
1296
|
+
#### Call Signature
|
|
1297
|
+
|
|
1298
|
+
> **getPixels**\<`T`\>(`options`): `T`
|
|
1299
|
+
|
|
1300
|
+
Defined in: lib/five/application/five.ts:1466
|
|
1301
|
+
|
|
1302
|
+
获取画面中的像素颜色
|
|
1303
|
+
|
|
1304
|
+
##### Type Parameters
|
|
1305
|
+
|
|
1306
|
+
###### T
|
|
1307
|
+
|
|
1308
|
+
`T` *extends* `Uint8Array`\<`ArrayBufferLike`\> \| `Uint8ClampedArray`\<`ArrayBufferLike`\> = `Uint8Array`\<`ArrayBufferLike`\>
|
|
1309
|
+
|
|
1310
|
+
##### Parameters
|
|
1311
|
+
|
|
1312
|
+
###### options
|
|
1313
|
+
|
|
1314
|
+
参数
|
|
1315
|
+
|
|
1316
|
+
###### buffer?
|
|
1317
|
+
|
|
1318
|
+
`T`
|
|
1319
|
+
|
|
1320
|
+
存储数组
|
|
1321
|
+
|
|
1322
|
+
###### flipY?
|
|
1323
|
+
|
|
1324
|
+
`boolean`
|
|
1325
|
+
|
|
1326
|
+
是否Y轴翻转
|
|
1327
|
+
|
|
1328
|
+
###### height
|
|
1329
|
+
|
|
1330
|
+
`number`
|
|
1331
|
+
|
|
1332
|
+
获取像素区域的高度
|
|
1333
|
+
|
|
1334
|
+
###### helperVisible?
|
|
1335
|
+
|
|
1336
|
+
`boolean`
|
|
1337
|
+
|
|
1338
|
+
###### pixelRatio?
|
|
1339
|
+
|
|
1340
|
+
`number`
|
|
1341
|
+
|
|
1342
|
+
获取区域的像素比
|
|
1343
|
+
|
|
1344
|
+
###### skipPanorama?
|
|
1345
|
+
|
|
1346
|
+
`boolean`
|
|
1347
|
+
|
|
1348
|
+
###### width
|
|
1349
|
+
|
|
1350
|
+
`number`
|
|
1351
|
+
|
|
1352
|
+
获取像素区域的宽度
|
|
1353
|
+
|
|
1354
|
+
###### x
|
|
1355
|
+
|
|
1356
|
+
`number`
|
|
1357
|
+
|
|
1358
|
+
获取像素区域的起始坐标 x
|
|
1359
|
+
|
|
1360
|
+
###### y
|
|
1361
|
+
|
|
1362
|
+
`number`
|
|
1363
|
+
|
|
1364
|
+
获取像素区域的起始坐标 y
|
|
1365
|
+
|
|
1366
|
+
##### Returns
|
|
1367
|
+
|
|
1368
|
+
`T`
|
|
1369
|
+
|
|
1370
|
+
***
|
|
1371
|
+
|
|
1372
|
+
### ~~getPose()~~
|
|
1373
|
+
|
|
1374
|
+
> **getPose**(): [`Pose`](../interfaces/Pose.md)
|
|
1375
|
+
|
|
1376
|
+
Defined in: lib/five/application/five.ts:2718
|
|
1377
|
+
|
|
1378
|
+
#### Returns
|
|
1379
|
+
|
|
1380
|
+
[`Pose`](../interfaces/Pose.md)
|
|
1381
|
+
|
|
1382
|
+
#### Deprecated
|
|
1383
|
+
|
|
1384
|
+
获取当前相机姿态, 可以使用 getCurrentState 代替
|
|
1385
|
+
|
|
1386
|
+
***
|
|
1387
|
+
|
|
1388
|
+
### getSize()
|
|
1389
|
+
|
|
1390
|
+
> **getSize**(`target`): `Vector2`
|
|
1391
|
+
|
|
1392
|
+
Defined in: lib/five/application/five.ts:771
|
|
1393
|
+
|
|
1394
|
+
#### Parameters
|
|
1395
|
+
|
|
1396
|
+
##### target
|
|
1397
|
+
|
|
1398
|
+
`Vector2`
|
|
1399
|
+
|
|
1400
|
+
#### Returns
|
|
1401
|
+
|
|
1402
|
+
`Vector2`
|
|
1403
|
+
|
|
1404
|
+
***
|
|
1405
|
+
|
|
1406
|
+
### hasListener()
|
|
1407
|
+
|
|
1408
|
+
> **hasListener**(`name`): `boolean`
|
|
1409
|
+
|
|
1410
|
+
Defined in: lib/five/utils/subscribe.ts:44
|
|
1411
|
+
|
|
1412
|
+
判断是否注册了事件
|
|
1413
|
+
|
|
1414
|
+
#### Parameters
|
|
1415
|
+
|
|
1416
|
+
##### name
|
|
1417
|
+
|
|
1418
|
+
事件类型
|
|
1419
|
+
|
|
1420
|
+
`"dispose"` | `"error"` | `"render"` | `"gesture.pan"` | `"gesture.tap"` | `"gesture.dbltap"` | `"gesture.press"` | `"gesture.pinch"` | `"gesture.mousewheel"` | `"gesture.mousemove"` | `"gesture.momentum"` | `"initAnimation.start"` | `"initAnimation.end"` | `"camera.update"` | `"intersect.update"` | `"pano.select"` | `"pano.request"` | `"pano.moveTo"` | `"pano.moving"` | `"pano.arrived"` | `"pano.cancel"` | `"pano.error"` | `"pano.texture.load"` | `"pano.texture.progress"` | `"pano.texture.success"` | `"pano.texture.error"` | `"pano.texture.abort"` | `"xr.session.end"` | `"xr.session.start"` | `"xr.gesture.tap"` | `"xr.gesture.press"` | `"xr.gesture.buttonUp"` | `"xr.gesture.buttonDown"` | `"xr.controller.update"` | keyof LegacyEventType | `"works.request"` | `"works.load"` | `"works.ready"` | `"state.set"` | `"state.change"` | `"state.synced"` | `"currentState.change"` | `"model.request"` | `"model.load"` | `"model.error"` | `"model.changeShownFloor"` | `"models.load"` | `"models.refined"` | `"render.prepare"` | `"mode.change.request"` | `"mode.change"` | `"helpers.visible"` | `"network.resource"` | `"fps"`
|
|
1421
|
+
|
|
1422
|
+
#### Returns
|
|
1423
|
+
|
|
1424
|
+
`boolean`
|
|
1425
|
+
|
|
1426
|
+
#### Inherited from
|
|
1427
|
+
|
|
1428
|
+
[`Subscribe`](Subscribe.md).[`hasListener`](Subscribe.md#haslistener)
|
|
1429
|
+
|
|
1430
|
+
***
|
|
1431
|
+
|
|
1432
|
+
### insertPass()
|
|
1433
|
+
|
|
1434
|
+
> **insertPass**(`pass`, `index`): `void`
|
|
1435
|
+
|
|
1436
|
+
Defined in: lib/five/application/five.ts:2794
|
|
1437
|
+
|
|
1438
|
+
在指定位置插入后处理Pass
|
|
1439
|
+
|
|
1440
|
+
#### Parameters
|
|
1441
|
+
|
|
1442
|
+
##### pass
|
|
1443
|
+
|
|
1444
|
+
[`Pass`](../interfaces/Pass.md)
|
|
1445
|
+
|
|
1446
|
+
要插入的Pass实例
|
|
1447
|
+
|
|
1448
|
+
##### index
|
|
1449
|
+
|
|
1450
|
+
`number`
|
|
1451
|
+
|
|
1452
|
+
插入位置的索引
|
|
1453
|
+
|
|
1454
|
+
#### Returns
|
|
1455
|
+
|
|
1456
|
+
`void`
|
|
1457
|
+
|
|
1458
|
+
***
|
|
1459
|
+
|
|
1460
|
+
### load()
|
|
1461
|
+
|
|
1462
|
+
> **load**(`inputWork`, `state?`, `options?`, `userAction?`): `Promise`\<`void`\>
|
|
1463
|
+
|
|
1464
|
+
Defined in: lib/five/application/five.ts:859
|
|
1465
|
+
|
|
1466
|
+
加载 Work 数据
|
|
1467
|
+
|
|
1468
|
+
#### Parameters
|
|
1469
|
+
|
|
1470
|
+
##### inputWork
|
|
1471
|
+
|
|
1472
|
+
Work 数据
|
|
1473
|
+
|
|
1474
|
+
`string` | `string`[] | [`LooseWork`](../interfaces/LooseWork.md) | [`Work`](Work.md) | [`Work`](Work.md)[] | [`LooseWork`](../interfaces/LooseWork.md)[] | [`LooseWorkWithExtrinsics`](../interfaces/LooseWorkWithExtrinsics.md)[] | `Promise`\<[`LooseWork`](../interfaces/LooseWork.md) \| [`Work`](Work.md) \| [`Work`](Work.md)[] \| [`LooseWork`](../interfaces/LooseWork.md)[] \| [`LooseWorkWithExtrinsics`](../interfaces/LooseWorkWithExtrinsics.md)[]\>
|
|
1475
|
+
|
|
1476
|
+
##### state?
|
|
1477
|
+
|
|
1478
|
+
初始化姿态
|
|
1479
|
+
- "inherit" 使用当前姿态
|
|
1480
|
+
- "initial" 使用 Work 数据中的 initial 姿态
|
|
1481
|
+
- State 自定义姿态
|
|
1482
|
+
|
|
1483
|
+
`"initial"` | `"inherit"` | `Partial`\<[`State`](../interfaces/State.md)\>
|
|
1484
|
+
|
|
1485
|
+
##### options?
|
|
1486
|
+
|
|
1487
|
+
切换时间, 切换效果
|
|
1488
|
+
|
|
1489
|
+
`number` | [`FiveLoadOptions`](../interfaces/FiveLoadOptions.md)
|
|
1490
|
+
|
|
1491
|
+
##### userAction?
|
|
1492
|
+
|
|
1493
|
+
`boolean` = `true`
|
|
1494
|
+
|
|
1495
|
+
#### Returns
|
|
1496
|
+
|
|
1497
|
+
`Promise`\<`void`\>
|
|
1498
|
+
|
|
1499
|
+
***
|
|
1500
|
+
|
|
1501
|
+
### moveToPano()
|
|
1502
|
+
|
|
1503
|
+
> **moveToPano**(`pano`, `options`, `userAction`): `Promise`\<`void`\>
|
|
1504
|
+
|
|
1505
|
+
Defined in: lib/five/application/five.ts:1925
|
|
1506
|
+
|
|
1507
|
+
转化到 Panorama 模态,并移动到对应序号的观察点。
|
|
1508
|
+
|
|
1509
|
+
#### Parameters
|
|
1510
|
+
|
|
1511
|
+
##### pano
|
|
1512
|
+
|
|
1513
|
+
观察点序号
|
|
1514
|
+
|
|
1515
|
+
`number` | [`Pano`](../type-aliases/Pano.md) | `` `${string}[${number}]` ``
|
|
1516
|
+
|
|
1517
|
+
##### options
|
|
1518
|
+
|
|
1519
|
+
[`MovePanoOptions`](../interfaces/MovePanoOptions.md) = `{}`
|
|
1520
|
+
|
|
1521
|
+
移动点位参数
|
|
1522
|
+
|
|
1523
|
+
##### userAction
|
|
1524
|
+
|
|
1525
|
+
`boolean` = `true`
|
|
1526
|
+
|
|
1527
|
+
是否用户触犯
|
|
1528
|
+
|
|
1529
|
+
#### Returns
|
|
1530
|
+
|
|
1531
|
+
`Promise`\<`void`\>
|
|
1532
|
+
|
|
1533
|
+
***
|
|
1534
|
+
|
|
1535
|
+
### off()
|
|
1536
|
+
|
|
1537
|
+
> **off**\<`K`\>(`name?`, `callback?`): `void`
|
|
1538
|
+
|
|
1539
|
+
Defined in: lib/five/utils/subscribe.ts:97
|
|
1540
|
+
|
|
1541
|
+
解除事件
|
|
1542
|
+
|
|
1543
|
+
如果 name 不传的话解除对应所有事件
|
|
1544
|
+
如果 name, callback 不传的话解除所有name的所有事件
|
|
1545
|
+
|
|
1546
|
+
#### Type Parameters
|
|
1547
|
+
|
|
1548
|
+
##### K
|
|
1549
|
+
|
|
1550
|
+
`K` *extends* `"dispose"` \| `"error"` \| `"render"` \| `"gesture.pan"` \| `"gesture.tap"` \| `"gesture.dbltap"` \| `"gesture.press"` \| `"gesture.pinch"` \| `"gesture.mousewheel"` \| `"gesture.mousemove"` \| `"gesture.momentum"` \| `"initAnimation.start"` \| `"initAnimation.end"` \| `"camera.update"` \| `"intersect.update"` \| `"pano.select"` \| `"pano.request"` \| `"pano.moveTo"` \| `"pano.moving"` \| `"pano.arrived"` \| `"pano.cancel"` \| `"pano.error"` \| `"pano.texture.load"` \| `"pano.texture.progress"` \| `"pano.texture.success"` \| `"pano.texture.error"` \| `"pano.texture.abort"` \| `"xr.session.end"` \| `"xr.session.start"` \| `"xr.gesture.tap"` \| `"xr.gesture.press"` \| `"xr.gesture.buttonUp"` \| `"xr.gesture.buttonDown"` \| `"xr.controller.update"` \| keyof LegacyEventType \| `"works.request"` \| `"works.load"` \| `"works.ready"` \| `"state.set"` \| `"state.change"` \| `"state.synced"` \| `"currentState.change"` \| `"model.request"` \| `"model.load"` \| `"model.error"` \| `"model.changeShownFloor"` \| `"models.load"` \| `"models.refined"` \| `"render.prepare"` \| `"mode.change.request"` \| `"mode.change"` \| `"helpers.visible"` \| `"network.resource"` \| `"fps"`
|
|
1551
|
+
|
|
1552
|
+
预设的监听事件名称
|
|
1553
|
+
|
|
1554
|
+
#### Parameters
|
|
1555
|
+
|
|
1556
|
+
##### name?
|
|
1557
|
+
|
|
1558
|
+
`K`
|
|
1559
|
+
|
|
1560
|
+
事件类型
|
|
1561
|
+
|
|
1562
|
+
##### callback?
|
|
1563
|
+
|
|
1564
|
+
(...`args`) => `ReturnType`\<[`EventTypes`](../type-aliases/EventTypes.md)\[`K`\]\>
|
|
1565
|
+
|
|
1566
|
+
事件回调函数
|
|
1567
|
+
|
|
1568
|
+
#### Returns
|
|
1569
|
+
|
|
1570
|
+
`void`
|
|
1571
|
+
|
|
1572
|
+
#### Inherited from
|
|
1573
|
+
|
|
1574
|
+
[`Subscribe`](Subscribe.md).[`off`](Subscribe.md#off)
|
|
1575
|
+
|
|
1576
|
+
***
|
|
1577
|
+
|
|
1578
|
+
### on()
|
|
1579
|
+
|
|
1580
|
+
> **on**\<`K`\>(`name`, `callback`, `once?`): () => `void`
|
|
1581
|
+
|
|
1582
|
+
Defined in: lib/five/utils/subscribe.ts:58
|
|
1583
|
+
|
|
1584
|
+
注册事件
|
|
1585
|
+
|
|
1586
|
+
#### Type Parameters
|
|
1587
|
+
|
|
1588
|
+
##### K
|
|
1589
|
+
|
|
1590
|
+
`K` *extends* `"dispose"` \| `"error"` \| `"render"` \| `"gesture.pan"` \| `"gesture.tap"` \| `"gesture.dbltap"` \| `"gesture.press"` \| `"gesture.pinch"` \| `"gesture.mousewheel"` \| `"gesture.mousemove"` \| `"gesture.momentum"` \| `"initAnimation.start"` \| `"initAnimation.end"` \| `"camera.update"` \| `"intersect.update"` \| `"pano.select"` \| `"pano.request"` \| `"pano.moveTo"` \| `"pano.moving"` \| `"pano.arrived"` \| `"pano.cancel"` \| `"pano.error"` \| `"pano.texture.load"` \| `"pano.texture.progress"` \| `"pano.texture.success"` \| `"pano.texture.error"` \| `"pano.texture.abort"` \| `"xr.session.end"` \| `"xr.session.start"` \| `"xr.gesture.tap"` \| `"xr.gesture.press"` \| `"xr.gesture.buttonUp"` \| `"xr.gesture.buttonDown"` \| `"xr.controller.update"` \| keyof LegacyEventType \| `"works.request"` \| `"works.load"` \| `"works.ready"` \| `"state.set"` \| `"state.change"` \| `"state.synced"` \| `"currentState.change"` \| `"model.request"` \| `"model.load"` \| `"model.error"` \| `"model.changeShownFloor"` \| `"models.load"` \| `"models.refined"` \| `"render.prepare"` \| `"mode.change.request"` \| `"mode.change"` \| `"helpers.visible"` \| `"network.resource"` \| `"fps"`
|
|
1591
|
+
|
|
1592
|
+
预设的监听事件名称
|
|
1593
|
+
|
|
1594
|
+
#### Parameters
|
|
1595
|
+
|
|
1596
|
+
##### name
|
|
1597
|
+
|
|
1598
|
+
`K`
|
|
1599
|
+
|
|
1600
|
+
事件类型
|
|
1601
|
+
|
|
1602
|
+
##### callback
|
|
1603
|
+
|
|
1604
|
+
(...`args`) => `ReturnType`\<[`EventTypes`](../type-aliases/EventTypes.md)\[`K`\]\>
|
|
1605
|
+
|
|
1606
|
+
事件回调函数
|
|
1607
|
+
|
|
1608
|
+
##### once?
|
|
1609
|
+
|
|
1610
|
+
`boolean`
|
|
1611
|
+
|
|
1612
|
+
是否只执行一次
|
|
1613
|
+
|
|
1614
|
+
#### Returns
|
|
1615
|
+
|
|
1616
|
+
解除事件
|
|
1617
|
+
|
|
1618
|
+
> (): `void`
|
|
1619
|
+
|
|
1620
|
+
##### Returns
|
|
1621
|
+
|
|
1622
|
+
`void`
|
|
1623
|
+
|
|
1624
|
+
#### Inherited from
|
|
1625
|
+
|
|
1626
|
+
[`Subscribe`](Subscribe.md).[`on`](Subscribe.md#on)
|
|
1627
|
+
|
|
1628
|
+
***
|
|
1629
|
+
|
|
1630
|
+
### once()
|
|
1631
|
+
|
|
1632
|
+
> **once**\<`K`\>(`name`, `callback`): () => `void`
|
|
1633
|
+
|
|
1634
|
+
Defined in: lib/five/utils/subscribe.ts:81
|
|
1635
|
+
|
|
1636
|
+
注册事件(是否只执行一次)
|
|
1637
|
+
|
|
1638
|
+
#### Type Parameters
|
|
1639
|
+
|
|
1640
|
+
##### K
|
|
1641
|
+
|
|
1642
|
+
`K` *extends* `"dispose"` \| `"error"` \| `"render"` \| `"gesture.pan"` \| `"gesture.tap"` \| `"gesture.dbltap"` \| `"gesture.press"` \| `"gesture.pinch"` \| `"gesture.mousewheel"` \| `"gesture.mousemove"` \| `"gesture.momentum"` \| `"initAnimation.start"` \| `"initAnimation.end"` \| `"camera.update"` \| `"intersect.update"` \| `"pano.select"` \| `"pano.request"` \| `"pano.moveTo"` \| `"pano.moving"` \| `"pano.arrived"` \| `"pano.cancel"` \| `"pano.error"` \| `"pano.texture.load"` \| `"pano.texture.progress"` \| `"pano.texture.success"` \| `"pano.texture.error"` \| `"pano.texture.abort"` \| `"xr.session.end"` \| `"xr.session.start"` \| `"xr.gesture.tap"` \| `"xr.gesture.press"` \| `"xr.gesture.buttonUp"` \| `"xr.gesture.buttonDown"` \| `"xr.controller.update"` \| keyof LegacyEventType \| `"works.request"` \| `"works.load"` \| `"works.ready"` \| `"state.set"` \| `"state.change"` \| `"state.synced"` \| `"currentState.change"` \| `"model.request"` \| `"model.load"` \| `"model.error"` \| `"model.changeShownFloor"` \| `"models.load"` \| `"models.refined"` \| `"render.prepare"` \| `"mode.change.request"` \| `"mode.change"` \| `"helpers.visible"` \| `"network.resource"` \| `"fps"`
|
|
1643
|
+
|
|
1644
|
+
预设的监听事件名称
|
|
1645
|
+
|
|
1646
|
+
#### Parameters
|
|
1647
|
+
|
|
1648
|
+
##### name
|
|
1649
|
+
|
|
1650
|
+
`K`
|
|
1651
|
+
|
|
1652
|
+
事件类型
|
|
1653
|
+
|
|
1654
|
+
##### callback
|
|
1655
|
+
|
|
1656
|
+
(...`args`) => `ReturnType`\<[`EventTypes`](../type-aliases/EventTypes.md)\[`K`\]\>
|
|
1657
|
+
|
|
1658
|
+
事件回调函数
|
|
1659
|
+
|
|
1660
|
+
#### Returns
|
|
1661
|
+
|
|
1662
|
+
解除事件
|
|
1663
|
+
|
|
1664
|
+
> (): `void`
|
|
1665
|
+
|
|
1666
|
+
##### Returns
|
|
1667
|
+
|
|
1668
|
+
`void`
|
|
1669
|
+
|
|
1670
|
+
#### Inherited from
|
|
1671
|
+
|
|
1672
|
+
[`Subscribe`](Subscribe.md).[`once`](Subscribe.md#once)
|
|
1673
|
+
|
|
1674
|
+
***
|
|
1675
|
+
|
|
1676
|
+
### pause()
|
|
1677
|
+
|
|
1678
|
+
> **pause**(): `void`
|
|
1679
|
+
|
|
1680
|
+
Defined in: lib/five/application/five.ts:1907
|
|
1681
|
+
|
|
1682
|
+
暂停自动播放
|
|
1683
|
+
|
|
1684
|
+
#### Returns
|
|
1685
|
+
|
|
1686
|
+
`void`
|
|
1687
|
+
|
|
1688
|
+
***
|
|
1689
|
+
|
|
1690
|
+
### play()
|
|
1691
|
+
|
|
1692
|
+
> **play**(): `void`
|
|
1693
|
+
|
|
1694
|
+
Defined in: lib/five/application/five.ts:1914
|
|
1695
|
+
|
|
1696
|
+
#### Returns
|
|
1697
|
+
|
|
1698
|
+
`void`
|
|
1699
|
+
|
|
1700
|
+
***
|
|
1701
|
+
|
|
1702
|
+
### preloadPano()
|
|
1703
|
+
|
|
1704
|
+
> **preloadPano**(`pano`, `callback`): `Promise`\<`number`\>
|
|
1705
|
+
|
|
1706
|
+
Defined in: lib/five/application/five.ts:1978
|
|
1707
|
+
|
|
1708
|
+
预加载点位图片资源
|
|
1709
|
+
|
|
1710
|
+
#### Parameters
|
|
1711
|
+
|
|
1712
|
+
##### pano
|
|
1713
|
+
|
|
1714
|
+
观察点序号
|
|
1715
|
+
|
|
1716
|
+
`number` | [`Pano`](../type-aliases/Pano.md) | `` `${string}[${number}]` ``
|
|
1717
|
+
|
|
1718
|
+
##### callback
|
|
1719
|
+
|
|
1720
|
+
(`costs`) => `void`
|
|
1721
|
+
|
|
1722
|
+
加载完成回调, 并传递加载用时。
|
|
1723
|
+
|
|
1724
|
+
#### Returns
|
|
1725
|
+
|
|
1726
|
+
`Promise`\<`number`\>
|
|
1727
|
+
|
|
1728
|
+
加载完成的 Promise 参数同 callback
|
|
1729
|
+
|
|
1730
|
+
***
|
|
1731
|
+
|
|
1732
|
+
### project2d()
|
|
1733
|
+
|
|
1734
|
+
> **project2d**(`vector`, `testModel`): `Vector2`
|
|
1735
|
+
|
|
1736
|
+
Defined in: lib/five/application/five.ts:2013
|
|
1737
|
+
|
|
1738
|
+
计算三维坐标对应到屏幕的二维坐标
|
|
1739
|
+
|
|
1740
|
+
#### Parameters
|
|
1741
|
+
|
|
1742
|
+
##### vector
|
|
1743
|
+
|
|
1744
|
+
`Vector3`
|
|
1745
|
+
|
|
1746
|
+
三维坐标
|
|
1747
|
+
|
|
1748
|
+
##### testModel
|
|
1749
|
+
|
|
1750
|
+
`boolean` = `false`
|
|
1751
|
+
|
|
1752
|
+
是否计算模型遮挡
|
|
1753
|
+
|
|
1754
|
+
#### Returns
|
|
1755
|
+
|
|
1756
|
+
`Vector2`
|
|
1757
|
+
|
|
1758
|
+
二维坐标 或者 null
|
|
1759
|
+
|
|
1760
|
+
#### Description
|
|
1761
|
+
|
|
1762
|
+
如果三维坐标不在屏幕中,则返回 null
|
|
1763
|
+
|
|
1764
|
+
***
|
|
1765
|
+
|
|
1766
|
+
### ready()
|
|
1767
|
+
|
|
1768
|
+
> **ready**(`args`): `Promise`\<`void`\>
|
|
1769
|
+
|
|
1770
|
+
Defined in: lib/five/application/five.ts:2401
|
|
1771
|
+
|
|
1772
|
+
当前页面静态
|
|
1773
|
+
|
|
1774
|
+
#### Parameters
|
|
1775
|
+
|
|
1776
|
+
##### args
|
|
1777
|
+
|
|
1778
|
+
###### tile?
|
|
1779
|
+
|
|
1780
|
+
`boolean`
|
|
1781
|
+
|
|
1782
|
+
#### Returns
|
|
1783
|
+
|
|
1784
|
+
`Promise`\<`void`\>
|
|
1785
|
+
|
|
1786
|
+
***
|
|
1787
|
+
|
|
1788
|
+
### refresh()
|
|
1789
|
+
|
|
1790
|
+
> **refresh**(`size`, `pixelRatio?`): `void`
|
|
1791
|
+
|
|
1792
|
+
Defined in: lib/five/application/five.ts:709
|
|
1793
|
+
|
|
1794
|
+
设置显示区域尺寸
|
|
1795
|
+
|
|
1796
|
+
#### Parameters
|
|
1797
|
+
|
|
1798
|
+
##### size
|
|
1799
|
+
|
|
1800
|
+
显示区域尺寸 默认铺满这个 DOM 元素
|
|
1801
|
+
|
|
1802
|
+
###### height?
|
|
1803
|
+
|
|
1804
|
+
`number`
|
|
1805
|
+
|
|
1806
|
+
###### width?
|
|
1807
|
+
|
|
1808
|
+
`number`
|
|
1809
|
+
|
|
1810
|
+
##### pixelRatio?
|
|
1811
|
+
|
|
1812
|
+
`number`
|
|
1813
|
+
|
|
1814
|
+
像素比 默认继承之前的设置
|
|
1815
|
+
|
|
1816
|
+
#### Returns
|
|
1817
|
+
|
|
1818
|
+
`void`
|
|
1819
|
+
|
|
1820
|
+
#### Description
|
|
1821
|
+
|
|
1822
|
+
如果你是传入的 `renderer`. 则你需要自行来设置显示区域尺寸,该方法并不生效
|
|
1823
|
+
|
|
1824
|
+
***
|
|
1825
|
+
|
|
1826
|
+
### removeExtraElement()
|
|
1827
|
+
|
|
1828
|
+
> **removeExtraElement**(`element`): `void`
|
|
1829
|
+
|
|
1830
|
+
Defined in: lib/five/application/five.ts:762
|
|
1831
|
+
|
|
1832
|
+
解除绑定的一个额外 DOM 区域
|
|
1833
|
+
|
|
1834
|
+
#### Parameters
|
|
1835
|
+
|
|
1836
|
+
##### element
|
|
1837
|
+
|
|
1838
|
+
`HTMLElement`
|
|
1839
|
+
|
|
1840
|
+
#### Returns
|
|
1841
|
+
|
|
1842
|
+
`void`
|
|
1843
|
+
|
|
1844
|
+
***
|
|
1845
|
+
|
|
1846
|
+
### removePass()
|
|
1847
|
+
|
|
1848
|
+
> **removePass**(`pass`): `void`
|
|
1849
|
+
|
|
1850
|
+
Defined in: lib/five/application/five.ts:2782
|
|
1851
|
+
|
|
1852
|
+
移除后处理Pass
|
|
1853
|
+
|
|
1854
|
+
#### Parameters
|
|
1855
|
+
|
|
1856
|
+
##### pass
|
|
1857
|
+
|
|
1858
|
+
[`Pass`](../interfaces/Pass.md)
|
|
1859
|
+
|
|
1860
|
+
要移除的Pass实例
|
|
1861
|
+
|
|
1862
|
+
#### Returns
|
|
1863
|
+
|
|
1864
|
+
`void`
|
|
1865
|
+
|
|
1866
|
+
***
|
|
1867
|
+
|
|
1868
|
+
### render()
|
|
1869
|
+
|
|
1870
|
+
> **render**(`callback?`): `void`
|
|
1871
|
+
|
|
1872
|
+
Defined in: lib/five/application/five.ts:1671
|
|
1873
|
+
|
|
1874
|
+
强制渲染
|
|
1875
|
+
|
|
1876
|
+
#### Parameters
|
|
1877
|
+
|
|
1878
|
+
##### callback?
|
|
1879
|
+
|
|
1880
|
+
() => `void`
|
|
1881
|
+
|
|
1882
|
+
渲染完成回调
|
|
1883
|
+
|
|
1884
|
+
#### Returns
|
|
1885
|
+
|
|
1886
|
+
`void`
|
|
1887
|
+
|
|
1888
|
+
#### Description
|
|
1889
|
+
|
|
1890
|
+
调用 `five.render()` 和设置 `five.needsRender = true` 均可在按需渲染时,使得画面渲染一次
|
|
1891
|
+
区别在于:
|
|
1892
|
+
- `five.needsRender = true` 为在下帧渲染画面
|
|
1893
|
+
- `five.render()` 在当前帧渲染画面
|
|
1894
|
+
推荐使用 `five.needsRender = true`, 可以更加流畅。但是如果需要截图等同步操作,可以使用 `five.render()`
|
|
1895
|
+
|
|
1896
|
+
***
|
|
1897
|
+
|
|
1898
|
+
### requestFullscreen()
|
|
1899
|
+
|
|
1900
|
+
> **requestFullscreen**(): `void`
|
|
1901
|
+
|
|
1902
|
+
Defined in: lib/five/application/five.ts:2417
|
|
1903
|
+
|
|
1904
|
+
请求全屏
|
|
1905
|
+
|
|
1906
|
+
#### Returns
|
|
1907
|
+
|
|
1908
|
+
`void`
|
|
1909
|
+
|
|
1910
|
+
***
|
|
1911
|
+
|
|
1912
|
+
### reset()
|
|
1913
|
+
|
|
1914
|
+
> **reset**(): `Promise`\<`void`\>
|
|
1915
|
+
|
|
1916
|
+
Defined in: lib/five/application/five.ts:1204
|
|
1917
|
+
|
|
1918
|
+
#### Returns
|
|
1919
|
+
|
|
1920
|
+
`Promise`\<`void`\>
|
|
1921
|
+
|
|
1922
|
+
***
|
|
1923
|
+
|
|
1924
|
+
### reset\_()
|
|
1925
|
+
|
|
1926
|
+
> **reset\_**(): `Promise`\<`void`\>
|
|
1927
|
+
|
|
1928
|
+
Defined in: lib/five/application/five.ts:1214
|
|
1929
|
+
|
|
1930
|
+
#### Returns
|
|
1931
|
+
|
|
1932
|
+
`Promise`\<`void`\>
|
|
1933
|
+
|
|
1934
|
+
***
|
|
1935
|
+
|
|
1936
|
+
### setMaxShDegree()
|
|
1937
|
+
|
|
1938
|
+
> **setMaxShDegree**(`degree`): `void`
|
|
1939
|
+
|
|
1940
|
+
Defined in: lib/five/application/five.ts:2802
|
|
1941
|
+
|
|
1942
|
+
设置球谐阶数
|
|
1943
|
+
|
|
1944
|
+
#### Parameters
|
|
1945
|
+
|
|
1946
|
+
##### degree
|
|
1947
|
+
|
|
1948
|
+
`number`
|
|
1949
|
+
|
|
1950
|
+
球谐阶数
|
|
1951
|
+
|
|
1952
|
+
#### Returns
|
|
1953
|
+
|
|
1954
|
+
`void`
|
|
1955
|
+
|
|
1956
|
+
***
|
|
1957
|
+
|
|
1958
|
+
### ~~setScissor()~~
|
|
1959
|
+
|
|
1960
|
+
> **setScissor**(`scissor`): `void`
|
|
1961
|
+
|
|
1962
|
+
Defined in: lib/five/application/five.ts:2710
|
|
1963
|
+
|
|
1964
|
+
#### Parameters
|
|
1965
|
+
|
|
1966
|
+
##### scissor
|
|
1967
|
+
|
|
1968
|
+
[`Viewport`](../interfaces/Viewport.md)
|
|
1969
|
+
|
|
1970
|
+
#### Returns
|
|
1971
|
+
|
|
1972
|
+
`void`
|
|
1973
|
+
|
|
1974
|
+
#### Deprecated
|
|
1975
|
+
|
|
1976
|
+
use setViewport instead.
|
|
1977
|
+
|
|
1978
|
+
***
|
|
1979
|
+
|
|
1980
|
+
### setState()
|
|
1981
|
+
|
|
1982
|
+
> **setState**(`state`, `immediately`, `userAction`): `void`
|
|
1983
|
+
|
|
1984
|
+
Defined in: lib/five/application/five.ts:2065
|
|
1985
|
+
|
|
1986
|
+
设置 State
|
|
1987
|
+
|
|
1988
|
+
#### Parameters
|
|
1989
|
+
|
|
1990
|
+
##### state
|
|
1991
|
+
|
|
1992
|
+
`Partial`\<[`State`](../interfaces/State.md)\>
|
|
1993
|
+
|
|
1994
|
+
目标状态
|
|
1995
|
+
|
|
1996
|
+
##### immediately
|
|
1997
|
+
|
|
1998
|
+
`boolean` = `false`
|
|
1999
|
+
|
|
2000
|
+
是否马上转换,马上转换会尽快达到目标状态,尽量减少中间状态,更少动画。
|
|
2001
|
+
|
|
2002
|
+
##### userAction
|
|
2003
|
+
|
|
2004
|
+
`boolean` = `true`
|
|
2005
|
+
|
|
2006
|
+
是否是用户触发的动作
|
|
2007
|
+
|
|
2008
|
+
#### Returns
|
|
2009
|
+
|
|
2010
|
+
`void`
|
|
2011
|
+
|
|
2012
|
+
#### Description
|
|
2013
|
+
|
|
2014
|
+
```text
|
|
2015
|
+
five 设置了以下状态
|
|
2016
|
+
|
|
2017
|
+
- mode: Mode
|
|
2018
|
+
- panoIndex: number
|
|
2019
|
+
- longitude: number
|
|
2020
|
+
- latitude: number
|
|
2021
|
+
- distance: number
|
|
2022
|
+
- fov: number
|
|
2023
|
+
- offset: THREE.Vector3
|
|
2024
|
+
|
|
2025
|
+
可以通过 five.state 和 five.setState 来获取和设置。
|
|
2026
|
+
通过 state 设置后,five 会通过合适的动画运动来达到设置的位置。
|
|
2027
|
+
来迎合一些通过数据驱动的场景。
|
|
2028
|
+
```
|
|
2029
|
+
|
|
2030
|
+
***
|
|
2031
|
+
|
|
2032
|
+
### setViewport()
|
|
2033
|
+
|
|
2034
|
+
> **setViewport**(`viewport`): `void`
|
|
2035
|
+
|
|
2036
|
+
Defined in: lib/five/application/five.ts:586
|
|
2037
|
+
|
|
2038
|
+
设置 `viewport`
|
|
2039
|
+
|
|
2040
|
+
#### Parameters
|
|
2041
|
+
|
|
2042
|
+
##### viewport
|
|
2043
|
+
|
|
2044
|
+
[`Viewport`](../interfaces/Viewport.md)
|
|
2045
|
+
|
|
2046
|
+
指定区域
|
|
2047
|
+
`scissor` 是将屏幕中的内容渲染到 `renderer` 的指定区域。
|
|
2048
|
+
请确保在 five 初始化时传入 `renderer` 对象
|
|
2049
|
+
页面整体长宽均为 `1`。通过类似 css 的 `left` `bottom` `width` `height` 来确定区域。
|
|
2050
|
+
|
|
2051
|
+
#### Returns
|
|
2052
|
+
|
|
2053
|
+
`void`
|
|
2054
|
+
|
|
2055
|
+
#### Example
|
|
2056
|
+
|
|
2057
|
+
```
|
|
2058
|
+
five.setViewport({ left: 0.75, bottom: 0, width: 0.25, height: 1 })
|
|
2059
|
+
```
|
|
2060
|
+
|
|
2061
|
+
***
|
|
2062
|
+
|
|
2063
|
+
### updateCamera()
|
|
2064
|
+
|
|
2065
|
+
> **updateCamera**(`pose`, `duration`, `userAction`): `Promise`\<`void`\>
|
|
2066
|
+
|
|
2067
|
+
Defined in: lib/five/application/five.ts:801
|
|
2068
|
+
|
|
2069
|
+
移动相机。(不触发点位移动)
|
|
2070
|
+
|
|
2071
|
+
#### Parameters
|
|
2072
|
+
|
|
2073
|
+
##### pose
|
|
2074
|
+
|
|
2075
|
+
`Partial`\<[`Pose`](../interfaces/Pose.md)\>
|
|
2076
|
+
|
|
2077
|
+
相机目标位置
|
|
2078
|
+
|
|
2079
|
+
##### duration
|
|
2080
|
+
|
|
2081
|
+
`number`
|
|
2082
|
+
|
|
2083
|
+
动画触发的时常
|
|
2084
|
+
|
|
2085
|
+
##### userAction
|
|
2086
|
+
|
|
2087
|
+
`boolean` = `true`
|
|
2088
|
+
|
|
2089
|
+
是否用户触发
|
|
2090
|
+
|
|
2091
|
+
#### Returns
|
|
2092
|
+
|
|
2093
|
+
`Promise`\<`void`\>
|
|
2094
|
+
|
|
2095
|
+
Promise 是否移动成功
|
|
2096
|
+
|
|
2097
|
+
#### Description
|
|
2098
|
+
|
|
2099
|
+
如果动画中途被打断(用户触发行为,或者调用 setState, load, changeMode)的等
|
|
2100
|
+
会 Promise.reject。运动完成则 Promise.resolve
|
|
2101
|
+
|
|
2102
|
+
***
|
|
2103
|
+
|
|
2104
|
+
### updateCameraWithKeyframes()
|
|
2105
|
+
|
|
2106
|
+
> **updateCameraWithKeyframes**(`keyframes`, `duration`, `userAction`): `Promise`\<`void`\>
|
|
2107
|
+
|
|
2108
|
+
Defined in: lib/five/application/five.ts:818
|
|
2109
|
+
|
|
2110
|
+
通过帧动画移动相机。(不触发点位移动)
|
|
2111
|
+
|
|
2112
|
+
#### Parameters
|
|
2113
|
+
|
|
2114
|
+
##### keyframes
|
|
2115
|
+
|
|
2116
|
+
`object`[]
|
|
2117
|
+
|
|
2118
|
+
动画帧
|
|
2119
|
+
|
|
2120
|
+
##### duration
|
|
2121
|
+
|
|
2122
|
+
`number`
|
|
2123
|
+
|
|
2124
|
+
动画触发的时常
|
|
2125
|
+
|
|
2126
|
+
##### userAction
|
|
2127
|
+
|
|
2128
|
+
`boolean` = `true`
|
|
2129
|
+
|
|
2130
|
+
是否用户触发
|
|
2131
|
+
|
|
2132
|
+
#### Returns
|
|
2133
|
+
|
|
2134
|
+
`Promise`\<`void`\>
|
|
2135
|
+
|
|
2136
|
+
Promise 是否移动成功
|
|
2137
|
+
|
|
2138
|
+
#### Description
|
|
2139
|
+
|
|
2140
|
+
如果动画中途被打断(用户触发行为,或者调用 setState, load, changeMode)的等
|
|
2141
|
+
会 Promise.reject。运动完成则 Promise.resolve
|
|
2142
|
+
|
|
2143
|
+
***
|
|
2144
|
+
|
|
2145
|
+
### updateConfiguration()
|
|
2146
|
+
|
|
2147
|
+
> **updateConfiguration**(`args`, `refresh`): `void`
|
|
2148
|
+
|
|
2149
|
+
Defined in: lib/five/application/five.ts:615
|
|
2150
|
+
|
|
2151
|
+
#### Parameters
|
|
2152
|
+
|
|
2153
|
+
##### args
|
|
2154
|
+
|
|
2155
|
+
`Pick`\<[`FiveInitArgs`](../interfaces/FiveInitArgs.md), `"panorama"` \| `"model"` \| `"floorplan"` \| `"topview"` \| `"mapview"` \| `"vrPanorama"` \| `"imageOptions"` \| `"textureOptions"`\>
|
|
2156
|
+
|
|
2157
|
+
##### refresh
|
|
2158
|
+
|
|
2159
|
+
`boolean` = `true`
|
|
2160
|
+
|
|
2161
|
+
#### Returns
|
|
2162
|
+
|
|
2163
|
+
`void`
|
|
2164
|
+
|
|
2165
|
+
***
|
|
2166
|
+
|
|
2167
|
+
### updateTime()
|
|
2168
|
+
|
|
2169
|
+
> **updateTime**(`time`, `deltaTime`, ...`args`): `void`
|
|
2170
|
+
|
|
2171
|
+
Defined in: lib/five/application/five.ts:1738
|
|
2172
|
+
|
|
2173
|
+
#### Parameters
|
|
2174
|
+
|
|
2175
|
+
##### time
|
|
2176
|
+
|
|
2177
|
+
`number`
|
|
2178
|
+
|
|
2179
|
+
##### deltaTime
|
|
2180
|
+
|
|
2181
|
+
`number`
|
|
2182
|
+
|
|
2183
|
+
##### args
|
|
2184
|
+
|
|
2185
|
+
...`any`[]
|
|
2186
|
+
|
|
2187
|
+
#### Returns
|
|
2188
|
+
|
|
2189
|
+
`void`
|
|
2190
|
+
|
|
2191
|
+
***
|
|
2192
|
+
|
|
2193
|
+
### waitUntil()
|
|
2194
|
+
|
|
2195
|
+
> **waitUntil**\<`K`\>(`name`, `filter?`): `Promise`\<`Parameters`\<[`EventTypes`](../type-aliases/EventTypes.md)\[`K`\]\>\>
|
|
2196
|
+
|
|
2197
|
+
Defined in: lib/five/utils/subscribe.ts:155
|
|
2198
|
+
|
|
2199
|
+
等待事件
|
|
2200
|
+
|
|
2201
|
+
#### Type Parameters
|
|
2202
|
+
|
|
2203
|
+
##### K
|
|
2204
|
+
|
|
2205
|
+
`K` *extends* `"dispose"` \| `"error"` \| `"render"` \| `"gesture.pan"` \| `"gesture.tap"` \| `"gesture.dbltap"` \| `"gesture.press"` \| `"gesture.pinch"` \| `"gesture.mousewheel"` \| `"gesture.mousemove"` \| `"gesture.momentum"` \| `"initAnimation.start"` \| `"initAnimation.end"` \| `"camera.update"` \| `"intersect.update"` \| `"pano.select"` \| `"pano.request"` \| `"pano.moveTo"` \| `"pano.moving"` \| `"pano.arrived"` \| `"pano.cancel"` \| `"pano.error"` \| `"pano.texture.load"` \| `"pano.texture.progress"` \| `"pano.texture.success"` \| `"pano.texture.error"` \| `"pano.texture.abort"` \| `"xr.session.end"` \| `"xr.session.start"` \| `"xr.gesture.tap"` \| `"xr.gesture.press"` \| `"xr.gesture.buttonUp"` \| `"xr.gesture.buttonDown"` \| `"xr.controller.update"` \| keyof LegacyEventType \| `"works.request"` \| `"works.load"` \| `"works.ready"` \| `"state.set"` \| `"state.change"` \| `"state.synced"` \| `"currentState.change"` \| `"model.request"` \| `"model.load"` \| `"model.error"` \| `"model.changeShownFloor"` \| `"models.load"` \| `"models.refined"` \| `"render.prepare"` \| `"mode.change.request"` \| `"mode.change"` \| `"helpers.visible"` \| `"network.resource"` \| `"fps"`
|
|
2206
|
+
|
|
2207
|
+
预设的监听事件名称
|
|
2208
|
+
|
|
2209
|
+
#### Parameters
|
|
2210
|
+
|
|
2211
|
+
##### name
|
|
2212
|
+
|
|
2213
|
+
`K`
|
|
2214
|
+
|
|
2215
|
+
事件类型
|
|
2216
|
+
|
|
2217
|
+
##### filter?
|
|
2218
|
+
|
|
2219
|
+
(...`args`) => `boolean` \| `void`
|
|
2220
|
+
|
|
2221
|
+
事件类型
|
|
2222
|
+
|
|
2223
|
+
#### Returns
|
|
2224
|
+
|
|
2225
|
+
`Promise`\<`Parameters`\<[`EventTypes`](../type-aliases/EventTypes.md)\[`K`\]\>\>
|
|
2226
|
+
|
|
2227
|
+
触发事件的数据
|
|
2228
|
+
|
|
2229
|
+
#### Inherited from
|
|
2230
|
+
|
|
2231
|
+
[`Subscribe`](Subscribe.md).[`waitUntil`](Subscribe.md#waituntil)
|