@realsee/five 6.8.0-alpha.3 → 6.8.0-alpha.30
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/AGENTS_READ_ME.md +6 -1
- package/AI_CONTEXT.md +6 -1
- package/README.md +10 -6
- package/ai_guides/README.md +40 -2
- package/ai_guides/ai-doc-guidelines.md +31 -1
- package/ai_guides/api.md +107 -13
- package/ai_guides/features/3dtile.md +49 -141
- package/ai_guides/features/camera-animation.md +42 -4
- package/ai_guides/features/clipper.md +4 -2
- package/ai_guides/features/{coordnate-system.md → coordinate-system.md} +22 -2
- package/ai_guides/features/event.md +108 -10
- package/ai_guides/features/five.md +20 -16
- package/ai_guides/features/flowing-light-2d-pass.md +442 -0
- package/ai_guides/features/flowing-light-3d-pass.md +425 -0
- package/ai_guides/features/gaussian-blur-pass.md +202 -0
- package/ai_guides/features/gesture.md +4 -1
- package/ai_guides/features/get-screen-pixels.md +4 -2
- package/ai_guides/features/image-options.md +5 -2
- package/ai_guides/features/load-external-model.md +27 -2
- package/ai_guides/features/load-progress.md +140 -0
- package/ai_guides/features/material.md +159 -0
- package/ai_guides/features/mode.md +5 -1
- package/ai_guides/features/model.md +5 -2
- package/ai_guides/features/move-pano-effect.md +3 -1
- package/ai_guides/features/multi-work.md +3 -1
- package/ai_guides/features/pano-filter.md +149 -0
- package/ai_guides/features/pano-tile.md +8 -15
- package/ai_guides/features/pano-uv.md +131 -0
- package/ai_guides/features/parameter.md +117 -118
- package/ai_guides/features/plugin.md +210 -0
- package/ai_guides/features/postprocessing.md +40 -5
- package/ai_guides/features/raycast.md +16 -2
- package/ai_guides/features/request-proxy.md +3 -1
- package/ai_guides/features/screen-project.md +4 -1
- package/ai_guides/features/state.md +25 -3
- package/ai_guides/features/view-layer.md +187 -0
- package/ai_guides/features/work.md +64 -3
- package/ai_guides/glossary.md +28 -7
- package/ai_guides/intro.md +1 -1
- package/ai_guides/quick-start.md +1 -0
- package/ai_guides/release_notes/6.8.md +222 -0
- package/ai_guides/template.md +28 -3
- package/docs/00_FOR_AI_AGENTS.md +3 -2
- package/docs/README.md +3 -2
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/main.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/five.AdaptiveLuminancePass.html +7 -6
- package/docs/classes/five.AnimationFrameLoop.html +1 -1
- package/docs/classes/five.BoundingMesh.html +2 -2
- package/docs/classes/five.Camera.html +3 -3
- package/docs/classes/five.EyeDomeLightingPass.html +1 -1
- package/docs/classes/five.Five.html +77 -76
- package/docs/classes/five.FivePass.html +1 -1
- package/docs/classes/five.Histogram.html +19 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -1
- package/docs/classes/five.Model.html +32 -32
- package/docs/classes/five.ModelScene.html +1 -1
- package/docs/classes/five.NetworkSubscribe.html +5 -5
- package/docs/classes/five.PBMContainer.html +1 -1
- package/docs/classes/five.PBMCustomShader.html +42 -3
- package/docs/classes/five.PBMGSObject.html +5 -3
- package/docs/classes/five.PBMGroup.html +1 -1
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PBMMeshMaterial.html +16 -7
- package/docs/classes/five.PBMPanoFilter.html +61 -0
- package/docs/classes/five.PBMPointCloud.html +1 -1
- package/docs/classes/five.PBMPointCloudMaterial.html +5 -6
- package/docs/classes/five.PBMSkinnedMesh.html +1 -1
- package/docs/classes/five.PBMUpdateable.html +41 -0
- package/docs/classes/five.PanoCircleMesh.html +1 -1
- package/docs/classes/five.PanoCircleMeshCustom.html +1 -1
- package/docs/classes/five.PanoCircleMeshSolid.html +1 -1
- package/docs/classes/five.Parameter.html +59 -55
- package/docs/classes/five.Scene.html +1 -1
- package/docs/classes/five.Subscribe.html +5 -5
- package/docs/classes/five.Tile.html +1 -1
- package/docs/classes/five.Tile3D.html +30 -26
- package/docs/classes/five.TileNode.html +1 -1
- package/docs/classes/five.Tileset.html +3 -2
- package/docs/classes/five.Trajectory.html +1 -1
- package/docs/classes/five.TrajectoryNode.html +1 -1
- package/docs/classes/five.Work.html +16 -16
- package/docs/classes/five.WorkResolvedObserver.html +41 -16
- 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 +2 -2
- package/docs/classes/gltf-loader.GLTFObject.html +1 -1
- package/docs/classes/gltf-loader.GLTFParser.html +1 -1
- package/docs/classes/gltf-loader.THREEGLTFLoader.html +2 -2
- package/docs/classes/line.Line.html +1 -1
- package/docs/classes/line.LineGeometry.html +1 -1
- package/docs/classes/line.LineMaterial.html +1 -1
- package/docs/classes/line.LineSegmentsGeometry.html +1 -1
- package/docs/classes/line.THREE_Line2.html +1 -1
- package/docs/classes/line.THREE_LineSegments2.html +1 -1
- package/docs/classes/plugins.BasePlugin.Controller.html +1 -1
- package/docs/classes/plugins.CSS3DObject.html +7 -0
- package/docs/classes/plugins.CSS3DSprite.html +7 -0
- package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
- package/docs/classes/sticker.Sticker.html +1 -1
- package/docs/classes/vfx.Airflow.html +1 -1
- package/docs/classes/vfx.Flame.html +1 -1
- package/docs/classes/vfx.Particle.html +6 -6
- package/docs/classes/vfx.ParticleGPU.html +3 -3
- package/docs/classes/vfx.SpotLight.html +1 -1
- package/docs/documents/README.html +132 -3
- package/docs/documents/ai-doc-guidelines.html +48 -3
- package/docs/documents/api.html +179 -26
- package/docs/documents/features_3dtile.html +143 -46
- package/docs/documents/features_camera-animation.html +79 -6
- package/docs/documents/features_clipper.html +5 -2
- package/docs/documents/{features_coordnate-system.html → features_coordinate-system.html} +56 -4
- package/docs/documents/features_event.html +47 -8
- package/docs/documents/features_five.html +20 -16
- package/docs/documents/features_flowing-light-2d-pass.html +259 -0
- package/docs/documents/features_flowing-light-3d-pass.html +249 -0
- package/docs/documents/features_gaussian-blur-pass.html +182 -0
- package/docs/documents/features_gesture.html +5 -1
- package/docs/documents/features_get-screen-pixels.html +5 -2
- package/docs/documents/features_image-options.html +5 -2
- package/docs/documents/features_load-external-model.html +31 -4
- package/docs/documents/features_load-progress.html +110 -0
- package/docs/documents/features_material.html +341 -0
- package/docs/documents/features_mode.html +6 -1
- package/docs/documents/features_model.html +6 -2
- package/docs/documents/features_move-pano-effect.html +4 -1
- package/docs/documents/features_multi-work.html +4 -1
- package/docs/documents/features_pano-filter.html +123 -0
- package/docs/documents/features_pano-tile.html +35 -20
- package/docs/documents/features_pano-uv.html +82 -0
- package/docs/documents/features_parameter.html +84 -56
- package/docs/documents/features_plugin.html +105 -0
- package/docs/documents/features_postprocessing.html +23 -6
- package/docs/documents/features_raycast.html +9 -3
- package/docs/documents/features_request-proxy.html +4 -1
- package/docs/documents/features_screen-project.html +5 -1
- package/docs/documents/features_state.html +12 -2
- package/docs/documents/features_view-layer.html +158 -0
- package/docs/documents/features_work.html +64 -3
- package/docs/documents/glossary.html +33 -8
- package/docs/documents/intro.html +1 -1
- package/docs/documents/quick-start.html +1 -0
- package/docs/documents/release_notes_6.8.html +203 -0
- package/docs/documents/template.html +54 -4
- package/docs/functions/five.createDebugBoundingMesh.html +1 -1
- package/docs/functions/five.loadAt3d.html +1 -1
- package/docs/functions/five.loadB3dm.html +1 -1
- package/docs/functions/five.loadDome.html +1 -1
- package/docs/functions/five.loadDomez.html +1 -1
- package/docs/functions/five.loadFbx.html +1 -1
- package/docs/functions/five.loadGltf.html +1 -1
- package/docs/functions/five.loadPbm.html +1 -1
- package/docs/functions/five.loadPly.html +1 -1
- package/docs/functions/five.loadPnts.html +1 -1
- package/docs/functions/five.loadSplat.html +1 -1
- package/docs/functions/five.loadSpz.html +1 -1
- package/docs/functions/five.loadX3p.html +1 -1
- package/docs/functions/five.parseWork.html +1 -1
- package/docs/functions/plugins.CSS3DPlugin.html +1 -0
- package/docs/functions/plugins.GaussianSplattingEntranceAnimationPlugin.html +1 -0
- package/docs/functions/react.useFiveCurrentObserver.html +2 -2
- package/docs/functions/react.useFiveFloor.html +2 -2
- package/docs/functions/react.useFiveProject2d.html +2 -2
- package/docs/functions/vue.useFiveCurrentObserver.html +2 -2
- package/docs/functions/vue.useFiveFloor.html +2 -2
- package/docs/functions/vue.useFiveWorks.html +2 -2
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +132 -3
- package/docs/interfaces/five.AddableObject.html +1 -1
- package/docs/interfaces/five.AjaxOptions.html +1 -1
- package/docs/interfaces/five.BaseEvent.html +7 -2
- package/docs/interfaces/five.BaseExtendableEvent.html +11 -0
- package/docs/interfaces/five.EventCallback.html +60 -52
- package/docs/interfaces/five.FiveInitArgs.html +2 -2
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.GestureEvent.html +21 -2
- package/docs/interfaces/five.GesturePointer.html +20 -0
- package/docs/interfaces/five.ImageOptions.html +1 -1
- package/docs/interfaces/five.IntersectEvent.html +10 -2
- package/docs/interfaces/five.IntersectMesh.html +1 -1
- package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/five.Intersection.html +4 -3
- package/docs/interfaces/five.LooseWorkObserver.html +2 -2
- package/docs/interfaces/five.LooseWorkPanorama.html +2 -2
- package/docs/interfaces/five.LooseWorkWithExtrinsics.html +6 -6
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +10 -10
- package/docs/interfaces/five.ModeChangeEvent.html +9 -2
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelEvent.html +7 -2
- package/docs/interfaces/five.ModelSceneEvent.html +7 -2
- package/docs/interfaces/five.ModelTileEvent.html +13 -0
- package/docs/interfaces/five.MovePanoOptions.html +8 -8
- package/docs/interfaces/five.NetworkAbortError.html +1 -1
- package/docs/interfaces/five.NetworkFirbiddenError.html +1 -1
- package/docs/interfaces/five.NetworkOptions.html +1 -1
- package/docs/interfaces/five.NetworkProxyError.html +1 -1
- package/docs/interfaces/five.NetworkResourceEvent.html +7 -2
- package/docs/interfaces/five.NetworkResponseError.html +1 -1
- package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/five.ObjectEvent.html +7 -2
- package/docs/interfaces/five.PBMClipperParameter.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderInitArgs.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderSlots.html +2 -2
- package/docs/interfaces/five.PBMMaterial.html +1 -1
- package/docs/interfaces/five.PBMMeshMaterialParameters.html +5 -3
- package/docs/interfaces/five.PBMPanoDepth.html +5 -5
- package/docs/interfaces/five.PBMPanoFilterValue.html +6 -0
- package/docs/interfaces/five.PBMPanoPicture.html +8 -6
- package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +2 -3
- package/docs/interfaces/five.PBMRefinedScreen.html +2 -2
- package/docs/interfaces/five.PanoCircleMeshInterface.html +2 -2
- package/docs/interfaces/five.PanoEvent.html +15 -2
- package/docs/interfaces/five.PanoPrepareEvent.html +15 -0
- package/docs/interfaces/five.PanoTextureEvent.html +11 -2
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ParameterMaterialValue.html +42 -38
- package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/five.ParameterValue.html +56 -52
- package/docs/interfaces/five.Pose.html +1 -1
- package/docs/interfaces/five.RenderEvent.html +7 -2
- package/docs/interfaces/five.ResolvedParameterValue.html +57 -54
- package/docs/interfaces/five.RgbaData.html +7 -0
- package/docs/interfaces/five.SplatData.html +2 -2
- package/docs/interfaces/five.State.html +1 -1
- package/docs/interfaces/five.StateEvent.html +9 -2
- package/docs/interfaces/five.TextureOptions.html +1 -1
- package/docs/interfaces/five.Tile3DOptions.html +2 -2
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -7
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ViewLayer.html +30 -26
- package/docs/interfaces/five.WorkCubeImage.html +3 -2
- package/docs/interfaces/five.WorkImage.html +6 -5
- package/docs/interfaces/five.WorkInitial.html +8 -8
- package/docs/interfaces/five.WorkModel.html +8 -8
- package/docs/interfaces/five.WorkModelLayer.html +6 -6
- package/docs/interfaces/five.WorkObserver.html +42 -17
- package/docs/interfaces/five.WorkObserverJson.html +2 -2
- package/docs/interfaces/five.WorkObserverProto.html +26 -0
- package/docs/interfaces/five.WorkPanoramaJson.html +2 -2
- package/docs/interfaces/five.WorkTile.html +6 -5
- package/docs/interfaces/five.WorkVideo.html +4 -4
- package/docs/interfaces/five.WorksEvent.html +7 -2
- package/docs/interfaces/five.XRControllerEvent.html +10 -2
- package/docs/interfaces/five.XRControllerState.html +8 -0
- package/docs/interfaces/five.XRGestureEvent.html +13 -2
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.XRSessionEvent.html +9 -2
- package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
- package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.BasePlugin.State.html +1 -1
- package/docs/interfaces/plugins.CSS3DPluginController.html +50 -0
- package/docs/interfaces/plugins.CSS3DPluginType.Config.html +2 -0
- package/docs/interfaces/plugins.CSS3DPluginType.CreateCSS3DObjectType.html +10 -0
- package/docs/interfaces/plugins.CSS3DPluginType.EventMap.html +10 -0
- package/docs/interfaces/plugins.CSS3DPluginType.Params.html +4 -0
- package/docs/interfaces/plugins.CSS3DPluginType.State.html +8 -0
- package/docs/interfaces/plugins.DynamicPathLinePluginController.html +3 -3
- package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +1 -1
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationController.html +44 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.BoundingAABB2D.html +3 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.Config.html +8 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.EventMap.html +10 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.Keyframe.html +3 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.State.html +8 -0
- package/docs/interfaces/plugins.ItemMaskController.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.State.html +2 -2
- package/docs/interfaces/plugins.OrientationPluginController.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
- package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
- package/docs/interfaces/plugins.PlayingState.html +2 -2
- package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
- package/docs/interfaces/plugins.TrajectoryController.html +8 -8
- package/docs/interfaces/react.FiveInjectionTypes.html +21 -21
- package/docs/interfaces/sticker.IntersectionLike.html +2 -2
- package/docs/interfaces/vfx.ParticleArgs.html +4 -4
- package/docs/interfaces/vue.FiveActionVueCallbacks.html +3 -3
- package/docs/modules/five.html +1 -1
- package/docs/modules/plugins.CSS3DPluginType.html +1 -0
- package/docs/modules/plugins.GaussianSplattingEntranceAnimationPluginType.html +1 -0
- package/docs/modules/plugins.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/five.ControllerEventTypes.html +30 -26
- package/docs/types/five.EasingFunction.html +1 -0
- package/docs/types/five.EventTypes.html +27 -25
- package/docs/types/five.LegacyEventType.html +7 -7
- package/docs/types/five.NetworkProgressCallback.html +1 -1
- package/docs/types/five.PBMAlphaMode.html +1 -1
- package/docs/types/five.PBMColorStyle.html +1 -1
- package/docs/types/five.PBMFloorStyle.html +1 -1
- package/docs/types/five.PBMMeshShaderType.html +1 -1
- package/docs/types/five.PBMPointBack.html +1 -1
- package/docs/types/five.PBMPointCloudShaderType.html +1 -1
- package/docs/types/five.PBMPointShape.html +1 -1
- package/docs/types/five.PBMPointSize.html +1 -1
- package/docs/types/five.PBMTransition.html +1 -1
- package/docs/types/five.ParseOptions.html +6 -6
- package/docs/types/five.Works.html +1 -1
- package/docs/types/plugins.BasePlugin.EventMap.html +1 -1
- package/docs/types/plugins.CSS3DPluginType.PluginData.html +1 -0
- package/docs/types/plugins.CSS3DPluginType.ServerData.html +1 -0
- package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
- package/five/application/analysis.d.ts +40 -0
- package/five/application/controllers.d.ts +41 -0
- package/five/application/events-legacy.d.ts +454 -0
- package/five/application/events.d.ts +69 -0
- package/five/application/five.d.ts +519 -0
- package/five/application/fiveInitArgs.d.ts +176 -0
- package/five/application/fiveLoadOptions.d.ts +21 -0
- package/five/application/generateDefaultVideoElement.d.ts +2 -0
- package/five/application/getViewportScale.d.ts +2 -0
- package/five/application/initLights.d.ts +3 -0
- package/five/application/mode.d.ts +28 -0
- package/five/application/renderPoweredByRealsee.d.ts +3 -0
- package/five/assets/cardboard-png-data-url.d.ts +2 -0
- package/five/assets/gradient-png-data-url.d.ts +2 -0
- package/five/assets/loading-png-data-url.d.ts +2 -0
- package/five/assets/phone-png-data-url.d.ts +2 -0
- package/five/assets/realsee-png-data-url.d.ts +2 -0
- package/five/bvh/bvhMath.d.ts +33 -0
- package/five/bvh/bvhMesh.d.ts +7 -0
- package/five/bvh/bvhNode.d.ts +29 -0
- package/five/bvh/bvhObject.d.ts +18 -0
- package/five/bvh/bvhPoints.d.ts +6 -0
- package/five/bvh/index.d.ts +10 -0
- package/five/bvh/worker.d.ts +35 -0
- package/five/cardboard/helper.d.ts +2 -0
- package/five/cardboard/index.d.ts +13 -0
- package/five/cardboard/sensor.d.ts +158 -0
- package/five/certificates/hardware.d.ts +1 -0
- package/five/controllers/base.d.ts +167 -0
- package/five/controllers/events.d.ts +73 -0
- package/five/controllers/floorplan.d.ts +119 -0
- package/five/controllers/mapview.d.ts +139 -0
- package/five/controllers/model.d.ts +57 -0
- package/five/controllers/panorama.d.ts +144 -0
- package/five/controllers/panoramaLike.d.ts +87 -0
- package/five/controllers/topview.d.ts +42 -0
- package/five/controllers/vrPanorama.d.ts +56 -0
- package/five/controllers/xrPanorama.d.ts +81 -0
- package/five/core/camera.d.ts +65 -0
- package/five/core/internalWebGLRenderer.d.ts +14 -0
- package/five/core/panoVideo.d.ts +18 -0
- package/five/core/scene.d.ts +10 -0
- package/five/core/tiling.d.ts +43 -0
- package/five/declare.d.ts +2 -1
- package/five/gaussian-splatting/util/renderData.d.ts +66 -0
- package/five/gaussian-splatting/wasm/data.d.ts +20 -0
- package/five/gaussian-splatting/wasm/sort.d.ts +18 -0
- package/five/gaussian-splatting/worker/dataWorker.d.ts +1 -0
- package/five/gaussian-splatting/worker/sortWorker.d.ts +1 -0
- package/five/index.d.ts +60 -4636
- package/five/index.js +272 -392
- package/five/index.mjs +26890 -31013
- package/five/meshes/boundingMesh.d.ts +13 -0
- package/five/meshes/intersectMesh.d.ts +8 -0
- package/five/meshes/panoCircleMesh.d.ts +35 -0
- package/five/meshes/panoCircleMeshCustom.d.ts +40 -0
- package/five/meshes/panoCircleMeshSolid.d.ts +34 -0
- package/five/meshes/panoSphereMesh.d.ts +27 -0
- package/five/model/helpers/coordinate-transform.d.ts +3 -0
- package/five/model/helpers/ellipsoid-coordinates.d.ts +14 -0
- package/five/model/helpers/get-edges-by-sphere.d.ts +8 -0
- package/five/model/helpers/get-recommend-tile3d-parameters.d.ts +8 -0
- package/five/model/index.d.ts +70 -0
- package/five/model/intersection.d.ts +18 -0
- package/five/model/loaders/at3d.d.ts +12 -0
- package/five/model/loaders/b3dm.d.ts +9 -0
- package/five/model/loaders/dome.d.ts +22 -0
- package/five/model/loaders/domez.d.ts +11 -0
- package/five/model/loaders/fbx.d.ts +8 -0
- package/five/model/loaders/glTF-helpers/extensions/CESIUM_RTC.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/EXT_meshopt_compression.d.ts +8 -0
- package/five/model/loaders/glTF-helpers/extensions/EXT_texture_webp.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_animation_pointer.d.ts +6 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_binary_glTF.d.ts +25 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_draco_mesh_compression.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting.d.ts +26 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts +13 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_clearcoat.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_emissive_strength.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_sheen.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_transmission.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_unlit.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_mesh_quantization.d.ts +6 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_node_visibility.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_texture_basisu.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_texture_transform.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/REALSEE_materials_lightmap.d.ts +7 -0
- package/five/model/loaders/glTF-helpers/extensions/base.d.ts +25 -0
- package/five/model/loaders/glTF-helpers/glTF.d.ts +713 -0
- package/five/model/loaders/glTF-helpers/index.d.ts +51 -0
- package/five/model/loaders/glTF-helpers/parser.d.ts +115 -0
- package/five/model/loaders/glTF-helpers/type.d.ts +14 -0
- package/five/model/loaders/gltf.d.ts +10 -0
- package/five/model/loaders/obj.d.ts +9 -0
- package/five/model/loaders/pbm.d.ts +26 -0
- package/five/model/loaders/ply.d.ts +24 -0
- package/five/model/loaders/pnts.d.ts +8 -0
- package/five/model/loaders/protobuf/dome.d.ts +540 -0
- package/five/model/loaders/protobuf/pbm.d.ts +203 -0
- package/five/model/loaders/shared.d.ts +16 -0
- package/five/model/loaders/splat.d.ts +8 -0
- package/five/model/loaders/spz.d.ts +14 -0
- package/five/model/loaders/tile3d-helpers/feature-table.d.ts +15 -0
- package/five/model/loaders/tile3d-helpers/gl-type.d.ts +20 -0
- package/five/model/loaders/tile3d-helpers/parse-gltf-array-buffer.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-header.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.worker.d.ts +6 -0
- package/five/model/loaders/tile3d-helpers/parse-table.d.ts +3 -0
- package/five/model/loaders/tile3d-helpers/tile3d-type.d.ts +35 -0
- package/five/model/loaders/x3p.d.ts +22 -0
- package/five/model/materials/pbmMaterial.d.ts +137 -0
- package/five/model/materials/pbmMeshMaterial.d.ts +126 -0
- package/five/model/materials/pbmPointCloudMaterial.d.ts +70 -0
- package/five/model/model-scene.d.ts +172 -0
- package/five/model/model.d.ts +209 -0
- package/five/model/objects/pbmContainer.d.ts +28 -0
- package/five/model/objects/pbmGaussianSplattingObject.d.ts +43 -0
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +59 -0
- package/five/model/objects/pbmGaussianSplattingTestMesh.d.ts +7 -0
- package/five/model/objects/pbmGroup.d.ts +8 -0
- package/five/model/objects/pbmMesh.d.ts +10 -0
- package/five/model/objects/pbmPointCloud.d.ts +7 -0
- package/five/model/parameter.d.ts +141 -0
- package/five/model/shaders/pbm_gaussian_splatting/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_gaussian_splatting/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_basic/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_basic/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_none/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_none/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_phong/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_phong/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_standard/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_standard/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_pointcloud/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_pointcloud/vertex.d.ts +2 -0
- package/five/model/tile3d/header.d.ts +88 -0
- package/five/model/tile3d/index.d.ts +216 -0
- package/five/model/tile3d/tile-cache.d.ts +18 -0
- package/five/model/tile3d/tile-content.d.ts +10 -0
- package/five/model/tile3d/tile-node.d.ts +24 -0
- package/five/model/tile3d/tile-request-scheduler.d.ts +17 -0
- package/five/model/tile3d/tile.d.ts +79 -0
- package/five/model/tile3d/tileset-base-traverser.d.ts +59 -0
- package/five/model/tile3d/tileset-most-detail-traverser.d.ts +14 -0
- package/five/model/tile3d/tileset-normal-traverser.d.ts +15 -0
- package/five/model/tile3d/tileset-skip-traverser.d.ts +60 -0
- package/five/model/tile3d/tileset.d.ts +70 -0
- package/five/model/tile3d/trajectory-content.d.ts +9 -0
- package/five/model/tile3d/trajectory-node.d.ts +15 -0
- package/five/model/tile3d/trajectory.d.ts +30 -0
- package/five/model/tile3d/types.d.ts +33 -0
- package/five/model/view-layer.d.ts +20 -0
- package/five/renderer/five-renderer.d.ts +17 -0
- package/five/renderer/index.d.ts +3 -0
- package/five/renderer/postprocessing/composer.d.ts +37 -0
- package/five/renderer/postprocessing/index.d.ts +7 -0
- package/five/renderer/postprocessing/passes/adaptive-luminance-pass.d.ts +17 -0
- package/five/renderer/postprocessing/passes/eye-dome-lighting-pass.d.ts +14 -0
- package/five/renderer/postprocessing/passes/flowing-light-2d-pass.d.ts +36 -0
- package/five/renderer/postprocessing/passes/flowing-light-3d-pass.d.ts +36 -0
- package/five/renderer/postprocessing/passes/gaussian-blur-pass.d.ts +12 -0
- package/five/renderer/postprocessing/passes/pass.d.ts +38 -0
- package/five/renderer/scene-renderers/point-cloud-high-quality-scene-renderer.d.ts +11 -0
- package/five/renderer/scene-renderers/scene-renderer.d.ts +9 -0
- package/five/renderer/scene-renderers/ssaa-scene-renderer.d.ts +15 -0
- package/five/renderer/tools/full-screen-quad.d.ts +15 -0
- package/five/renderer/tools/render-cube-to-equirectangular.d.ts +7 -0
- package/five/renderer/tools/render-full-screen-depth.d.ts +2 -0
- package/five/renderer/tools/render-full-screen.d.ts +2 -0
- package/five/texture/histogram.d.ts +54 -0
- package/five/texture/imageBitmap.d.ts +13 -0
- package/five/texture/initTexture.d.ts +3 -0
- package/five/texture/loader.d.ts +39 -0
- package/five/texture/textureData.d.ts +11 -0
- package/five/thirdparty/fflate.d.ts +1407 -0
- package/five/thirdparty/hammer.d.ts +375 -0
- package/five/thirdparty/jsrsasign.d.ts +753 -0
- package/five/thirdparty/meshopt_decoder.d.ts +15 -0
- package/five/three-version-check.d.ts +1 -0
- package/five/types/addableObject.d.ts +12 -0
- package/five/types/cube.d.ts +1 -0
- package/five/types/gestureInput.d.ts +24 -0
- package/five/types/imageOptions.d.ts +20 -0
- package/five/types/intersectMeshInterface.d.ts +8 -0
- package/five/types/movePanoEffect.d.ts +13 -0
- package/five/types/movePanoOptions.d.ts +36 -0
- package/five/types/panoCircleMeshInterface.d.ts +34 -0
- package/five/types/plugin.d.ts +25 -0
- package/five/types/pose.d.ts +17 -0
- package/five/types/state.d.ts +20 -0
- package/five/types/viewport.d.ts +22 -0
- package/five/utils/ajax.d.ts +66 -0
- package/five/utils/animationFrameLoop.d.ts +45 -0
- package/five/utils/array.d.ts +31 -0
- package/five/utils/asyncTaskQueue.d.ts +8 -0
- package/five/utils/bufferGeometry.d.ts +33 -0
- package/five/utils/calculateProgress.d.ts +39 -0
- package/five/utils/calculateThreeMouse.d.ts +13 -0
- package/five/utils/canplayVideo.d.ts +2 -0
- package/five/utils/clamp.d.ts +2 -0
- package/five/utils/clock.d.ts +17 -0
- package/five/utils/createSymbol.d.ts +5 -0
- package/five/utils/decodeText.d.ts +2 -0
- package/five/utils/deepEqual.d.ts +2 -0
- package/five/utils/deepFreeze.d.ts +2 -0
- package/five/utils/defineProperty.d.ts +9 -0
- package/five/utils/detector.d.ts +14 -0
- package/five/utils/distance.d.ts +10 -0
- package/five/utils/draco.d.ts +26 -0
- package/five/utils/easing.d.ts +63 -0
- package/five/utils/error.d.ts +1 -0
- package/five/utils/event.d.ts +210 -0
- package/five/utils/formatRad.d.ts +7 -0
- package/five/utils/imageSupport.d.ts +6 -0
- package/five/utils/imageURL.d.ts +42 -0
- package/five/utils/isEmptyObject.d.ts +2 -0
- package/five/utils/isNil.d.ts +6 -0
- package/five/utils/isNumber.d.ts +2 -0
- package/five/utils/isPowerOfTwo.d.ts +2 -0
- package/five/utils/isPromise.d.ts +2 -0
- package/five/utils/isSimilar.d.ts +6 -0
- package/five/utils/json.d.ts +7 -0
- package/five/utils/ktx2.d.ts +30 -0
- package/five/utils/lzma/index.d.ts +2 -0
- package/five/utils/lzma/lzma.d.ts +3 -0
- package/five/utils/lzma/lzmaWASM.d.ts +2 -0
- package/five/utils/lzma/lzmaWorker.d.ts +14 -0
- package/five/utils/memoryUsage.d.ts +29 -0
- package/five/utils/motion.d.ts +38 -0
- package/five/utils/noop.d.ts +6 -0
- package/five/utils/now.d.ts +7 -0
- package/five/utils/pano.d.ts +9 -0
- package/five/utils/pick.d.ts +3 -0
- package/five/utils/poseUtils.d.ts +5 -0
- package/five/utils/renderCubeTextureToCubeRenderTarget.d.ts +3 -0
- package/five/utils/renderDepth.d.ts +2 -0
- package/five/utils/renderTexturesToCubeRenderTarget.d.ts +10 -0
- package/five/utils/requestPermission.d.ts +3 -0
- package/five/utils/shaderContentFix.d.ts +7 -0
- package/five/utils/shaderMaterial.d.ts +20 -0
- package/five/utils/stateUtils.d.ts +5 -0
- package/five/utils/string-pattern.d.ts +8 -0
- package/five/utils/subscribe.d.ts +67 -0
- package/five/utils/tileCube.d.ts +19 -0
- package/five/utils/toFastProperties.d.ts +1 -0
- package/five/utils/typedCache.d.ts +10 -0
- package/five/utils/uniform.d.ts +15 -0
- package/five/utils/url.d.ts +35 -0
- package/five/utils/uuid.d.ts +5 -0
- package/five/utils/values.d.ts +2 -0
- package/five/utils/vectorCoordinates.d.ts +29 -0
- package/five/utils/volume.d.ts +111 -0
- package/five/utils/webglError.d.ts +7 -0
- package/five/utils/worker.d.ts +26 -0
- package/five/webxr/XRControllerModelFactory.d.ts +28 -0
- package/five/webxr/motionHelper.d.ts +68 -0
- package/five/webxr/xrButton.d.ts +4 -0
- package/five/webxr/xrController.d.ts +24 -0
- package/five/webxr/xrManager.d.ts +84 -0
- package/five/work/_ALLOW_HOST.d.ts +2 -0
- package/five/work/index.d.ts +7 -0
- package/five/work/keychain.d.ts +5 -0
- package/five/work/looseWorkType.d.ts +121 -0
- package/five/work/verify.d.ts +7 -0
- package/five/work/work.d.ts +206 -0
- package/five/work/workFetcher.d.ts +4 -0
- package/five/work/workJson.d.ts +3 -0
- package/five/work/workJsonType.d.ts +73 -0
- package/five/work/workObserverProto.d.ts +39 -0
- package/five/work/workParser.d.ts +6 -0
- package/five/work/workResolvedObserver.d.ts +12 -0
- package/five/work/workVerify.d.ts +2 -0
- package/five/work/works.d.ts +10 -0
- package/gltf-loader/gltf-object.d.ts +17 -0
- package/gltf-loader/index.d.ts +60 -160
- package/gltf-loader/index.js +9 -9
- package/gltf-loader/index.mjs +1351 -1451
- package/gltf-loader/thirdparty/DDSLoader.d.ts +23 -0
- package/gltf-loader/thirdparty/DRACOLoader.d.ts +18 -0
- package/gltf-loader/thirdparty/GLTFLoader.d.ts +59 -0
- package/line/circle_png.d.ts +1 -0
- package/line/index.d.ts +19 -69
- package/line/index.js +4 -4
- package/line/index.mjs +334 -513
- package/line/utils/Line2.d.ts +7 -0
- package/line/utils/LineGeometry.d.ts +10 -0
- package/line/utils/LineMaterial.d.ts +20 -0
- package/line/utils/LineSegments2.d.ts +11 -0
- package/line/utils/LineSegmentsGeometry.d.ts +15 -0
- package/llms.txt +48 -3
- package/package.json +4 -4
- package/plugins/BackgroundPlugin/Controller.d.ts +20 -0
- package/plugins/BackgroundPlugin/index.d.ts +5 -0
- package/plugins/BackgroundPlugin/typings.d.ts +44 -0
- package/plugins/BasePlugin/index.d.ts +119 -0
- package/plugins/CSS3DPlugin/Controller.d.ts +60 -0
- package/plugins/CSS3DPlugin/index.d.ts +5 -0
- package/plugins/CSS3DPlugin/typing.d.ts +32 -0
- package/plugins/DynamicPathLinePlugin/Controller.d.ts +167 -0
- package/plugins/DynamicPathLinePlugin/index.d.ts +5 -0
- package/plugins/DynamicPathLinePlugin/line2/Line2.d.ts +7 -0
- package/plugins/DynamicPathLinePlugin/line2/LineGeometry.d.ts +10 -0
- package/plugins/DynamicPathLinePlugin/line2/LineMaterial.d.ts +17 -0
- package/plugins/DynamicPathLinePlugin/line2/LineSegments2.d.ts +11 -0
- package/plugins/DynamicPathLinePlugin/line2/LineSegmentsGeometry.d.ts +15 -0
- package/plugins/DynamicPathLinePlugin/typing.d.ts +129 -0
- package/plugins/DynamicPathLinePlugin/typings.d.ts +72 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.d.ts +30 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.d.ts +5 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/typing.d.ts +28 -0
- package/plugins/ItemMaskPlugin/Controller.d.ts +48 -0
- package/plugins/ItemMaskPlugin/index.d.ts +5 -0
- package/plugins/ItemMaskPlugin/typing.d.ts +58 -0
- package/plugins/OrientationPlugin/Controller.d.ts +82 -0
- package/plugins/OrientationPlugin/RoundedBoxGeometry.d.ts +11 -0
- package/plugins/OrientationPlugin/index.d.ts +6 -0
- package/plugins/OrientationPlugin/typing.d.ts +25 -0
- package/plugins/PanoAnimePlugin/Controller.d.ts +46 -0
- package/plugins/PanoAnimePlugin/index.d.ts +5 -0
- package/plugins/PanoAnimePlugin/typing.d.ts +37 -0
- package/plugins/PluginTemplate/Controller.d.ts +27 -0
- package/plugins/PluginTemplate/index.d.ts +5 -0
- package/plugins/PluginTemplate/typing.d.ts +21 -0
- package/plugins/TrajectoryPlugin/Controller.d.ts +85 -0
- package/plugins/TrajectoryPlugin/index.d.ts +6 -0
- package/plugins/TrajectoryPlugin/typing.d.ts +25 -0
- package/plugins/index.d.ts +11 -1102
- package/plugins/index.js +37 -21
- package/plugins/index.mjs +3630 -4247
- package/plugins/thirdParty/CSS3DRenderer.d.ts +32 -0
- package/plugins/thirdParty/OrbitControls.d.ts +78 -0
- package/plugins/utils/absoluteUrl.d.ts +5 -0
- package/plugins/utils/clamp.d.ts +2 -0
- package/plugins/utils/loadImage.d.ts +1 -0
- package/plugins/utils/motion.d.ts +38 -0
- package/plugins/utils/now.d.ts +6 -0
- package/plugins/utils/uuid.d.ts +2 -0
- package/react/canvas.d.ts +19 -0
- package/react/context.d.ts +12 -0
- package/react/createProvider.d.ts +95 -0
- package/react/createStore.d.ts +144 -0
- package/react/hooks/unsafe__useFiveInstance.d.ts +9 -0
- package/react/hooks/useFiveAction.d.ts +147 -0
- package/react/hooks/useFiveCameraDirection.d.ts +7 -0
- package/react/hooks/useFiveCameraRaycaster.d.ts +7 -0
- package/react/hooks/useFiveCurrentObserver.d.ts +11 -0
- package/react/hooks/useFiveCurrentState.d.ts +15 -0
- package/react/hooks/useFiveEventCallback.d.ts +12 -0
- package/react/hooks/useFiveFloor.d.ts +15 -0
- package/react/hooks/useFiveHelper.d.ts +14 -0
- package/react/hooks/useFiveModelBounding.d.ts +5 -0
- package/react/hooks/useFiveModelEffect.d.ts +14 -0
- package/react/hooks/useFiveModelIntersectRaycaster.d.ts +22 -0
- package/react/hooks/useFiveModelReadyState.d.ts +8 -0
- package/react/hooks/useFiveProject2d.d.ts +20 -0
- package/react/hooks/useFiveSceneEffect.d.ts +21 -0
- package/react/hooks/useFiveState.d.ts +6 -0
- package/react/hooks/useFiveWork.d.ts +29 -0
- package/react/index.d.ts +24 -830
- package/react/index.js +3 -3
- package/react/index.mjs +572 -783
- package/react/rendererPool.d.ts +7 -0
- package/react/withFive.d.ts +213 -0
- package/shader-lib/EvenessPlane/index.d.ts +10 -0
- package/shader-lib/PointCloudExpand/index.d.ts +59 -0
- package/shader-lib/PolygonCuter/index.d.ts +52 -0
- package/shader-lib/PolygonCuter/worker.d.ts +14 -0
- package/shader-lib/ShineModel/index.d.ts +7 -0
- package/shader-lib/SweepModel/index.d.ts +7 -0
- package/shader-lib/index.d.ts +5 -86
- package/shader-lib/index.js +13 -14
- package/shader-lib/index.mjs +424 -824
- package/sticker/geometry.d.ts +3 -0
- package/sticker/index.d.ts +68 -71
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +102 -142
- package/umd/five-gltf-loader.js +9 -9
- package/umd/five-line.js +4 -4
- package/umd/five-plugins.js +37 -21
- package/umd/five-react.js +3 -3
- package/umd/five-shader-lib.js +13 -14
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +21 -21
- package/umd/five-vue.js +3 -3
- package/umd/five.js +267 -387
- package/vfx/airflow/airflow.d.ts +18 -0
- package/vfx/airflow/fragment-shader.d.ts +2 -0
- package/vfx/airflow/vertex-shader.d.ts +2 -0
- package/vfx/common/scale-shader.d.ts +2 -0
- package/vfx/common/simplex-noise-shader.d.ts +2 -0
- package/vfx/frame/fragment-shader.d.ts +2 -0
- package/vfx/frame/frame.d.ts +22 -0
- package/vfx/frame/vertex-shader.d.ts +2 -0
- package/vfx/index.d.ts +7 -363
- package/vfx/index.js +21 -21
- package/vfx/index.mjs +454 -910
- package/vfx/particle/fragment-shader.d.ts +2 -0
- package/vfx/particle/instance.d.ts +36 -0
- package/vfx/particle/particle.d.ts +205 -0
- package/vfx/particle/utils.d.ts +11 -0
- package/vfx/particle/vertex-shader.d.ts +2 -0
- package/vfx/particle-gpu/fragment-shader.d.ts +2 -0
- package/vfx/particle-gpu/instance.d.ts +36 -0
- package/vfx/particle-gpu/particle.d.ts +95 -0
- package/vfx/particle-gpu/utils.d.ts +11 -0
- package/vfx/particle-gpu/vertex-shader.d.ts +2 -0
- package/vfx/spotLight/fragment-shader.d.ts +2 -0
- package/vfx/spotLight/spotLight.d.ts +15 -0
- package/vfx/spotLight/vertex-shader.d.ts +2 -0
- package/vue/context.d.ts +7 -0
- package/vue/hooks/FiveCanvas.d.ts +36 -0
- package/vue/hooks/FiveProvider.d.ts +35 -0
- package/vue/hooks/unsafe__useFiveInject.d.ts +9 -0
- package/vue/hooks/useFiveAction.d.ts +178 -0
- package/vue/hooks/useFiveCameraDirection.d.ts +8 -0
- package/vue/hooks/useFiveCameraRaycaster.d.ts +8 -0
- package/vue/hooks/useFiveCurrentObserver.d.ts +12 -0
- package/vue/hooks/useFiveCurrentState.d.ts +16 -0
- package/vue/hooks/useFiveEventCallback.d.ts +11 -0
- package/vue/hooks/useFiveFloor.d.ts +16 -0
- package/vue/hooks/useFiveHelper.d.ts +15 -0
- package/vue/hooks/useFiveModel.d.ts +7 -0
- package/vue/hooks/useFiveModelBounding.d.ts +7 -0
- package/vue/hooks/useFiveModelIntersectRaycaster.d.ts +23 -0
- package/vue/hooks/useFiveModelReadyState.d.ts +9 -0
- package/vue/hooks/useFiveProject2d.d.ts +26 -0
- package/vue/hooks/useFiveScene.d.ts +6 -0
- package/vue/hooks/useFiveState.d.ts +16 -0
- package/vue/hooks/useFiveWork.d.ts +30 -0
- package/vue/index.d.ts +23 -467
- package/vue/index.js +3 -3
- package/vue/index.mjs +309 -301
- package/vue/rendererPool.d.ts +10 -0
- package/work-downloader/components/model-3d-tile.d.ts +2 -0
- package/work-downloader/components/model.d.ts +3 -0
- package/work-downloader/components/observer.d.ts +7 -0
- package/work-downloader/download.d.ts +16 -0
- package/work-downloader/index.d.ts +2 -33
- package/work-downloader/index.js +3 -3
- package/work-downloader/index.mjs +317 -556
- package/work-downloader/type.d.ts +28 -0
- package/work-downloader/utils/download-to-file.d.ts +1 -0
- package/work-downloader/utils/image-processing.d.ts +7 -0
- package/work-downloader/utils/join-url.d.ts +2 -0
- package/work-downloader/utils/log.d.ts +1 -0
- package/work-downloader/utils/relative-url.d.ts +1 -0
- package/ai_guides/plugin.md +0 -206
- package/docs/documents/plugin.html +0 -60
- package/docs/media/five.ts +0 -2881
- package/docs/media/pass.ts +0 -64
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PluginData | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">如视 Five SDK</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/plugins.html">plugins</a></li><li><a href="../modules/plugins.CSS3DPluginType.html">CSS3DPluginType</a></li><li><a href="" aria-current="page">PluginData</a></li></ul><h1>Type Alias PluginData</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">PluginData</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div><aside class="tsd-sources"><ul><li>Defined in lib/plugins/CSS3DPlugin/typing.ts:3</li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">如视 Five SDK</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ServerData | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">如视 Five SDK</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/plugins.html">plugins</a></li><li><a href="../modules/plugins.CSS3DPluginType.html">CSS3DPluginType</a></li><li><a href="" aria-current="page">ServerData</a></li></ul><h1>Type Alias ServerData</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">ServerData</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div><aside class="tsd-sources"><ul><li>Defined in lib/plugins/CSS3DPlugin/typing.ts:5</li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">如视 Five SDK</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PROXY_CONTROLLER_EVENT_NAMES | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">如视 Five SDK</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/five.html">five</a></li><li><a href="" aria-current="page">PROXY_CONTROLLER_EVENT_NAMES</a></li></ul><h1>Variable PROXY_CONTROLLER_EVENT_NAMES<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">PROXY_CONTROLLER_EVENT_NAMES</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">readonly</span> <span class="tsd-signature-symbol">[</span><br/> <span class="tsd-signature-type">"gesture.pan"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.tap"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.dbltap"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.press"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.pinch"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.mousewheel"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.mousemove"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.momentum"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"initAnimation.start"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"initAnimation.end"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"camera.update"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"intersect.update"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.select"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.moveTo"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.moving"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.arrived"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.cancel"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.error"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.texture.load"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.texture.progress"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.texture.success"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.texture.error"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.texture.abort"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.session.start"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.session.end"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.gesture.tap"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.gesture.press"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.gesture.buttonUp"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.gesture.buttonDown"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.controller.update"</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/application/events.ts:5</li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">如视 Five SDK</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PROXY_CONTROLLER_EVENT_NAMES | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">如视 Five SDK</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/five.html">five</a></li><li><a href="" aria-current="page">PROXY_CONTROLLER_EVENT_NAMES</a></li></ul><h1>Variable PROXY_CONTROLLER_EVENT_NAMES<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">PROXY_CONTROLLER_EVENT_NAMES</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">readonly</span> <span class="tsd-signature-symbol">[</span><br/> <span class="tsd-signature-type">"gesture.pan"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.tap"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.dbltap"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.press"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.pinch"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.mousewheel"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.mousemove"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.momentum"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"gesture.fire"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"initAnimation.start"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"initAnimation.end"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"camera.update"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"intersect.update"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.select"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.moveTo"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.moving"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.arrived"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.cancel"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.error"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.prepare"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.texture.load"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.texture.progress"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.texture.success"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.texture.error"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"pano.texture.abort"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.session.start"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.session.end"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.gesture.tap"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.gesture.press"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.gesture.buttonUp"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.gesture.buttonDown"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"xr.controller.update"</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/application/events.ts:5</li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">如视 Five SDK</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { NetworkState, NetworkType } from "../utils/ajax";
|
|
2
|
+
import { Subscribe } from "../utils/subscribe";
|
|
3
|
+
import { State } from "../types/state";
|
|
4
|
+
import { Works } from "../work";
|
|
5
|
+
declare class AnalysisWebSocketConnect extends Subscribe<{
|
|
6
|
+
error(event: Error): void;
|
|
7
|
+
retry(count: number): void;
|
|
8
|
+
open(): void;
|
|
9
|
+
close(): void;
|
|
10
|
+
}> {
|
|
11
|
+
private static maxRetryCount;
|
|
12
|
+
private url;
|
|
13
|
+
private socket?;
|
|
14
|
+
private opening;
|
|
15
|
+
private retryCount;
|
|
16
|
+
private messageCache;
|
|
17
|
+
private timer?;
|
|
18
|
+
constructor(url: string);
|
|
19
|
+
connect(): void;
|
|
20
|
+
private tryReconnect;
|
|
21
|
+
private clean;
|
|
22
|
+
close(): void;
|
|
23
|
+
private onClose;
|
|
24
|
+
private onOpen;
|
|
25
|
+
private onError;
|
|
26
|
+
send(message: string): void;
|
|
27
|
+
}
|
|
28
|
+
declare class Analysis extends AnalysisWebSocketConnect {
|
|
29
|
+
constructor(url: string);
|
|
30
|
+
deviceInfo(): {
|
|
31
|
+
userAgent: string;
|
|
32
|
+
language: string;
|
|
33
|
+
referer: string;
|
|
34
|
+
timeStamp: number;
|
|
35
|
+
};
|
|
36
|
+
state(works: Works | undefined, state: State): void;
|
|
37
|
+
work(works: Works): void;
|
|
38
|
+
network(works: Works | undefined, source: string, type: NetworkType, state: NetworkState, detail: any): void;
|
|
39
|
+
}
|
|
40
|
+
export { Analysis };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FloorplanController, FloorplanControllerCustomInitArgs } from "../controllers/floorplan";
|
|
2
|
+
import { TopviewController, TopviewControllerCustomInitArgs } from "../controllers/topview";
|
|
3
|
+
import { PanoramaController, PanoramaControllerCustomInitArgs } from "../controllers/panorama";
|
|
4
|
+
import { VRPanoramaController, VRPanoramaControllerCustomInitArgs } from "../controllers/vrPanorama";
|
|
5
|
+
import { ModelController, ModelControllerCustomInitArgs } from "../controllers/model";
|
|
6
|
+
import { MapviewController, MapviewControllerCustomInitArgs } from "../controllers/mapview";
|
|
7
|
+
import { XRPanoramaController, XRPanoramaControllerCustomInitArgs } from "../controllers/xrPanorama";
|
|
8
|
+
import { BaseControllerInitArgs as BaseControllerInitType } from "../controllers/base";
|
|
9
|
+
import { Mode } from "./mode";
|
|
10
|
+
declare const Controllers: {
|
|
11
|
+
readonly Floorplan: typeof FloorplanController;
|
|
12
|
+
readonly Topview: typeof TopviewController;
|
|
13
|
+
readonly Panorama: typeof PanoramaController;
|
|
14
|
+
readonly VRPanorama: typeof VRPanoramaController;
|
|
15
|
+
readonly Model: typeof ModelController;
|
|
16
|
+
readonly Mapview: typeof MapviewController;
|
|
17
|
+
readonly XRPanorama: typeof XRPanoramaController;
|
|
18
|
+
};
|
|
19
|
+
declare const controllersDefaultInitArgs: {
|
|
20
|
+
Floorplan: Required<FloorplanControllerCustomInitArgs>;
|
|
21
|
+
Topview: Required<TopviewControllerCustomInitArgs>;
|
|
22
|
+
Panorama: Required<PanoramaControllerCustomInitArgs>;
|
|
23
|
+
VRPanorama: Required<VRPanoramaControllerCustomInitArgs>;
|
|
24
|
+
Model: Required<ModelControllerCustomInitArgs>;
|
|
25
|
+
Mapview: Required<MapviewControllerCustomInitArgs>;
|
|
26
|
+
XRPanorama: Required<XRPanoramaControllerCustomInitArgs>;
|
|
27
|
+
};
|
|
28
|
+
type ControllerCustomInitTypes = {
|
|
29
|
+
Floorplan: FloorplanControllerCustomInitArgs;
|
|
30
|
+
Topview: TopviewControllerCustomInitArgs;
|
|
31
|
+
Panorama: PanoramaControllerCustomInitArgs;
|
|
32
|
+
VRPanorama: VRPanoramaControllerCustomInitArgs;
|
|
33
|
+
Model: ModelControllerCustomInitArgs;
|
|
34
|
+
Mapview: MapviewControllerCustomInitArgs;
|
|
35
|
+
XRPanorama: XRPanoramaControllerCustomInitArgs;
|
|
36
|
+
};
|
|
37
|
+
type ControllerType<T extends Mode = Mode> = typeof Controllers[T];
|
|
38
|
+
type ControllerInitType<T extends Mode = Mode> = ConstructorParameters<ControllerType<T>>[0];
|
|
39
|
+
type ControllerInstanceType<T extends Mode = Mode> = InstanceType<typeof Controllers[T]>;
|
|
40
|
+
export { Controllers, controllersDefaultInitArgs, };
|
|
41
|
+
export type { ControllerType, ControllerInitType, ControllerInstanceType, BaseControllerInitType, ControllerCustomInitTypes, };
|
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { Model } from "../model";
|
|
3
|
+
import { MovePanoOptions } from "../types/movePanoOptions";
|
|
4
|
+
import { State } from "../types/state";
|
|
5
|
+
import { Pose } from "../types/pose";
|
|
6
|
+
import { Intersection } from "../model/intersection";
|
|
7
|
+
import { NetworkState, NetworkType } from "../utils/ajax";
|
|
8
|
+
import { NetWorkMeta } from "../utils/ajax";
|
|
9
|
+
import { Work, WorkModel } from "../work";
|
|
10
|
+
import { Mode } from "./mode";
|
|
11
|
+
import { XRGestureEvent } from '../utils/event';
|
|
12
|
+
import type { Five } from './five';
|
|
13
|
+
export type GestureTypes = "pan" | "tap" | "dbltap" | "pinch" | "press" | "mouseWheel" | "mouseMove";
|
|
14
|
+
export type WebXRControllerType = 'tap' | 'press' | 'axes' | 'buttonUp' | 'buttonDown';
|
|
15
|
+
export type WebXRControllerKey = XRGestureEvent['buttons'];
|
|
16
|
+
export interface WebXRControllerParams {
|
|
17
|
+
raycaster: {
|
|
18
|
+
leftRay: THREE.Raycaster;
|
|
19
|
+
rightRay: THREE.Raycaster;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface WebXRAxesParams {
|
|
23
|
+
raycaster: {
|
|
24
|
+
leftRay?: THREE.Raycaster;
|
|
25
|
+
rightRay?: THREE.Raycaster;
|
|
26
|
+
};
|
|
27
|
+
axesState: {
|
|
28
|
+
up: number;
|
|
29
|
+
down: number;
|
|
30
|
+
left: number;
|
|
31
|
+
right: number;
|
|
32
|
+
};
|
|
33
|
+
deltaTime: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 过时的事件列表
|
|
37
|
+
*/
|
|
38
|
+
export type LegacyEventType = {
|
|
39
|
+
/**
|
|
40
|
+
* 模态间切换动画开始
|
|
41
|
+
* @param panoIndex - 当前点位
|
|
42
|
+
* @param pose - 相机姿态
|
|
43
|
+
* @param userAction - 是否用户触发
|
|
44
|
+
*/
|
|
45
|
+
initAnimationWillStart(panoIndex: number, pose: Pose, userAction: boolean): void;
|
|
46
|
+
/**
|
|
47
|
+
* 模态间切换动画结束
|
|
48
|
+
* @param panoIndex - 当前点位
|
|
49
|
+
* @param pose - 相机姿态
|
|
50
|
+
* @param userAction - 是否用户触发
|
|
51
|
+
*/
|
|
52
|
+
initAnimationEnded(panoIndex: number, pose: Pose, userAction: boolean): void;
|
|
53
|
+
/**
|
|
54
|
+
* 意图要触发手势, 可以通过 `return false` 阻止
|
|
55
|
+
* @param type - 手势类型
|
|
56
|
+
* @param pointers - 手指位置
|
|
57
|
+
* @param final - 是否手势结束
|
|
58
|
+
* @returns 可以通过 `return false` 阻止
|
|
59
|
+
*/
|
|
60
|
+
wantsGesture(type: GestureTypes, pointers: {
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
delta?: number;
|
|
64
|
+
}[], final: boolean): void | false;
|
|
65
|
+
/**
|
|
66
|
+
* 手势 触发
|
|
67
|
+
* @param type - 手势类型
|
|
68
|
+
* @param pointers - 手指位置
|
|
69
|
+
* @param final - 是否手势结束
|
|
70
|
+
*/
|
|
71
|
+
gesture(type: GestureTypes, pointers: {
|
|
72
|
+
x: number;
|
|
73
|
+
y: number;
|
|
74
|
+
delta?: number;
|
|
75
|
+
}[], final: boolean): void;
|
|
76
|
+
/**
|
|
77
|
+
* 意图要触发 pan 手势(滑动屏幕), 可以通过 `return false` 阻止
|
|
78
|
+
* @param pose - 意图的相机姿态
|
|
79
|
+
* @param final - 是否手势结束
|
|
80
|
+
* @returns 可以通过 `return false` 阻止
|
|
81
|
+
*/
|
|
82
|
+
wantsPanGesture(pose: Pose, final: boolean): void | false;
|
|
83
|
+
/**
|
|
84
|
+
* pan 手势(滑动屏幕) 被触发
|
|
85
|
+
* @param pose - 相机姿态
|
|
86
|
+
* @param final - 是否手势结束
|
|
87
|
+
*/
|
|
88
|
+
panGesture(pose: Pose, final: boolean): void;
|
|
89
|
+
/**
|
|
90
|
+
* 意图要触发 tap 手势(点击屏幕), 可以通过 `return false` 阻止
|
|
91
|
+
* @param raycaster - 点击对应的三维射线
|
|
92
|
+
* @param tapPosition - 点击对应的屏幕位置
|
|
93
|
+
* @param final - 是否手势结束
|
|
94
|
+
* @returns 可以通过 `return false` 阻止
|
|
95
|
+
*/
|
|
96
|
+
wantsTapGesture(raycaster: THREE.Raycaster, tapPosition: THREE.Vector2, final: boolean): void | false;
|
|
97
|
+
/**
|
|
98
|
+
* tap 手势(点击屏幕) 被触发
|
|
99
|
+
* @param raycaster - 点击对应的三维射线
|
|
100
|
+
* @param tapPosition - 点击对应的屏幕位置
|
|
101
|
+
* @param final - 是否手势结束
|
|
102
|
+
*/
|
|
103
|
+
tapGesture(raycaster: THREE.Raycaster, tapPosition: THREE.Vector2, final: boolean): void;
|
|
104
|
+
/**
|
|
105
|
+
* 意图要触发 dlbtap 手势(点击屏幕), 可以通过 `return false` 阻止
|
|
106
|
+
* @param raycaster - 点击对应的三维射线
|
|
107
|
+
* @param tapPosition - 点击对应的屏幕位置
|
|
108
|
+
* @param final - 是否手势结束
|
|
109
|
+
* @returns 可以通过 `return false` 阻止
|
|
110
|
+
*/
|
|
111
|
+
wantsDblTapGesture(raycaster: THREE.Raycaster, tapPosition: THREE.Vector2, final: boolean): void | false;
|
|
112
|
+
/**
|
|
113
|
+
* dbltap 手势(点击屏幕) 被触发
|
|
114
|
+
* @param raycaster - 点击对应的三维射线
|
|
115
|
+
* @param tapPosition - 点击对应的屏幕位置
|
|
116
|
+
* @param final - 是否手势结束
|
|
117
|
+
*/
|
|
118
|
+
dblTapGesture(raycaster: THREE.Raycaster, tapPosition: THREE.Vector2, final: boolean): void;
|
|
119
|
+
/**
|
|
120
|
+
* 意图要触发 pinch 手势(双指缩放),可以通过 `return false` 阻止
|
|
121
|
+
* @param scale - 缩放数值
|
|
122
|
+
* @param nextFov - 意图的fov变更
|
|
123
|
+
* @param final - 是否手势结束
|
|
124
|
+
* @returns 可以通过 `return false` 阻止
|
|
125
|
+
*/
|
|
126
|
+
wantsPinchGesture(scale: number, nextFov: number, final: boolean): void | false;
|
|
127
|
+
/**
|
|
128
|
+
* 意图要触发 press 手势(长按屏幕), 可以通过 `return false` 阻止
|
|
129
|
+
* @param raycaster - 长按对应的三维射线
|
|
130
|
+
* @param tapPosition - 长按对应的屏幕位置
|
|
131
|
+
* @param duration - 长按持续时间
|
|
132
|
+
* @param final - 是否手势结束
|
|
133
|
+
* @returns 可以通过 `return false` 阻止
|
|
134
|
+
*/
|
|
135
|
+
wantsPressGesture(raycaster: THREE.Raycaster, tapPosition: THREE.Vector2, duration: number, final: boolean): void | false;
|
|
136
|
+
/**
|
|
137
|
+
* tap 手势(点击屏幕) 被触发
|
|
138
|
+
* @param raycaster - 点击对应的三维射线
|
|
139
|
+
* @param tapPosition - 点击对应的屏幕位置
|
|
140
|
+
* @param duration - 长按持续时间
|
|
141
|
+
* @param final - 是否手势结束
|
|
142
|
+
*/
|
|
143
|
+
pressGesture(raycaster: THREE.Raycaster, tapPosition: THREE.Vector2, duration: number, final: boolean): void;
|
|
144
|
+
/**
|
|
145
|
+
* pinch 手势(双指缩放) 被触发
|
|
146
|
+
* @param scale - 缩放数值
|
|
147
|
+
* @param fov - 意图的fov变更
|
|
148
|
+
* @param final - 是否手势结束
|
|
149
|
+
*/
|
|
150
|
+
pinchGesture(scale: number, fov: number, final: boolean): void;
|
|
151
|
+
/**
|
|
152
|
+
* 意图要触发 鼠标滚轮 可以通过 `return false` 阻止
|
|
153
|
+
* @param delta - 滚轮数值
|
|
154
|
+
* @param nextFov - 意图的fov变更
|
|
155
|
+
* @param final - 是否手势结束
|
|
156
|
+
* @returns 可以通过 `return false` 阻止
|
|
157
|
+
*/
|
|
158
|
+
wantsMouseWheel(delta: number, nextFov: number, final: boolean): void | false;
|
|
159
|
+
/**
|
|
160
|
+
* 鼠标滚轮被触发
|
|
161
|
+
* @param delta - 滚轮数值
|
|
162
|
+
* @param fov - 意图的fov变更
|
|
163
|
+
* @param final - 是否手势结束
|
|
164
|
+
*/
|
|
165
|
+
mouseWheel(delta: number, fov: number, final: boolean): void;
|
|
166
|
+
/**
|
|
167
|
+
* 意图要触发 pan 手势(滑动屏幕) 的惯性运动, 可以通过 `return false` 阻止
|
|
168
|
+
* @param pose - 意图的相机姿态
|
|
169
|
+
* @returns 可以通过 `return false` 阻止
|
|
170
|
+
*/
|
|
171
|
+
wantsInteriaPan(pose: Pose): void | false;
|
|
172
|
+
/**
|
|
173
|
+
* pan 手势(滑动屏幕) 的惯性运动
|
|
174
|
+
* @param pose - 意图的相机姿态
|
|
175
|
+
* @param final - 是否手势结束
|
|
176
|
+
*/
|
|
177
|
+
interiaPan(pose: Pose, final: boolean): void;
|
|
178
|
+
/**
|
|
179
|
+
* 意图要变化相机的可视角度 可以通过 `return false` 阻止
|
|
180
|
+
* @deprecated
|
|
181
|
+
* 建议通过 初始化设置的 `defaultFov`, `maxFov`, `minFov` 来限制
|
|
182
|
+
* @param fov - 意图要变化相机的可视角度
|
|
183
|
+
* @returns 可以通过 `return false` 阻止
|
|
184
|
+
*/
|
|
185
|
+
wantsChangeCameraFov(fov: number): void | false;
|
|
186
|
+
/**
|
|
187
|
+
* 相机姿态变化
|
|
188
|
+
* @param pose - 相机姿态
|
|
189
|
+
* @param userAction - 是否用户触发
|
|
190
|
+
*/
|
|
191
|
+
cameraUpdate(pose: Pose, userAction: boolean): void;
|
|
192
|
+
/**
|
|
193
|
+
* 相机姿态中可视角度变化
|
|
194
|
+
* @param fov - 相机的可视角度
|
|
195
|
+
* @param userAction - 是否用户触发
|
|
196
|
+
*/
|
|
197
|
+
cameraFovUpdate(fov: Pose["fov"], userAction: boolean): void;
|
|
198
|
+
/**
|
|
199
|
+
* 相机姿态中相机位置变化
|
|
200
|
+
* @param offset - 相机位置
|
|
201
|
+
* @param userAction - 是否用户触发
|
|
202
|
+
*/
|
|
203
|
+
cameraPositionUpdate(offset: Pose["offset"], userAction: boolean): void;
|
|
204
|
+
/**
|
|
205
|
+
* 相机姿态中相机方向变化
|
|
206
|
+
* @param coordinates - 相机姿态的俯仰角和偏航角
|
|
207
|
+
* @param userAction - 是否用户触发
|
|
208
|
+
*/
|
|
209
|
+
cameraDirectionUpdate(coordinates: Pick<Pose, "longitude" | "latitude">, userAction: boolean): void;
|
|
210
|
+
/**
|
|
211
|
+
* 鼠标焦点环位置被重新计算
|
|
212
|
+
* @param intersection - 焦点碰撞结果
|
|
213
|
+
* @param mesh - 焦点环 mesh
|
|
214
|
+
*/
|
|
215
|
+
intersectionOnModelUpdate(intersection: Intersection, mesh: THREE.Object3D): void;
|
|
216
|
+
/**
|
|
217
|
+
* 意图要展示鼠标焦点环,可以通过 `return false` 阻止
|
|
218
|
+
* @param raycaster - 射线
|
|
219
|
+
* @returns 可以通过 `return false` 阻止
|
|
220
|
+
*/
|
|
221
|
+
wantsShowIntersectionOnModel(raycaster: THREE.Raycaster): void | false;
|
|
222
|
+
/** 鼠标焦点环被隐藏 */
|
|
223
|
+
intersectionHidden(): void;
|
|
224
|
+
/**
|
|
225
|
+
* 意图要移动到某个点时, 可以通过 return false 阻止
|
|
226
|
+
* @param panoIndex - 意图要移动到点位
|
|
227
|
+
* @param options - 移动参数
|
|
228
|
+
* @param userAction - 是否用户触发
|
|
229
|
+
* @returns 可以通过 return false 阻止
|
|
230
|
+
*/
|
|
231
|
+
wantsMoveToPano(panoIndex: number, options: MovePanoOptions, userAction: boolean): void | false;
|
|
232
|
+
/**
|
|
233
|
+
* 同 wantsMoveToPano
|
|
234
|
+
* @description
|
|
235
|
+
* @param panoIndex - 意图要移动到点位
|
|
236
|
+
* @param options - 移动参数
|
|
237
|
+
* @param userAction - 是否用户触发
|
|
238
|
+
* @returns 可以通过 return false 阻止
|
|
239
|
+
*/
|
|
240
|
+
wantsToMoveToPano(panoIndex: number, options: MovePanoOptions, userAction: boolean): void;
|
|
241
|
+
/**
|
|
242
|
+
* 观察点位被选择
|
|
243
|
+
* @param panoIndex - 选择的点位
|
|
244
|
+
*/
|
|
245
|
+
panoSelected(panoIndex: number | null): void;
|
|
246
|
+
/**
|
|
247
|
+
* 开始加载并移动到某个观察点位
|
|
248
|
+
* @description
|
|
249
|
+
* 可 panoWillArrive 相比
|
|
250
|
+
* - moveToPano 在加载全景图资源前触发
|
|
251
|
+
* - panoWillArrive 在加载全景图资源后触发
|
|
252
|
+
* @param panoIndex - 移动到的点位
|
|
253
|
+
* @param userAction - 是否用户触发
|
|
254
|
+
*/
|
|
255
|
+
moveToPano(panoIndex: number, userAction: boolean): void;
|
|
256
|
+
/**
|
|
257
|
+
* 移动中, 会告知移动状态(耗时百分比)
|
|
258
|
+
* @param panoIndex - 将要移动到的点位下标
|
|
259
|
+
* @param prevPanoIndex - 上一个点位下标
|
|
260
|
+
* @param progress - 整个过程经度 [0-1]
|
|
261
|
+
*/
|
|
262
|
+
movingToPano(panoIndex: number, prevPanoIndex: number, progress: number): void;
|
|
263
|
+
/**
|
|
264
|
+
* 开始加载某个观察点的全景资源
|
|
265
|
+
* @param panoIndex - 移动到的点位
|
|
266
|
+
*/
|
|
267
|
+
panoWillLoad(panoIndex: number): void;
|
|
268
|
+
/**
|
|
269
|
+
* 某个观察点的全景资源加载完成
|
|
270
|
+
* @param panoIndex - 对应的点位
|
|
271
|
+
*/
|
|
272
|
+
panoLoaded(panoIndex: number): void;
|
|
273
|
+
/**
|
|
274
|
+
* 开始移动到某个观察点位
|
|
275
|
+
* @description
|
|
276
|
+
* 和 moveToPano 相比
|
|
277
|
+
* - moveToPano 在加载全景图资源前触发
|
|
278
|
+
* - panoWillArrive 在加载全景图资源后触发
|
|
279
|
+
* @param panoIndex - 移动到点位
|
|
280
|
+
* @param pose - 相机姿态
|
|
281
|
+
* @param userAction - 是否用户触发
|
|
282
|
+
*/
|
|
283
|
+
panoWillArrive(panoIndex: number, pose: Pose, userAction: boolean): void;
|
|
284
|
+
/**
|
|
285
|
+
* 移动到某个观察点位
|
|
286
|
+
* @param panoIndex - 移动到点位
|
|
287
|
+
* @param pose - 相机姿态
|
|
288
|
+
* @param userAction - 是否用户触发
|
|
289
|
+
*/
|
|
290
|
+
panoArrived(panoIndex: number, pose: Pose, userAction: boolean): void;
|
|
291
|
+
/**
|
|
292
|
+
* 某个观察点的全景资源加载失败
|
|
293
|
+
* @param error - 错误对象
|
|
294
|
+
* @param panoIndex - 对应的点位
|
|
295
|
+
*/
|
|
296
|
+
panoLoadError(error: Error, panoIndex: number): void;
|
|
297
|
+
/**
|
|
298
|
+
* 移动到某个观察点位被取消
|
|
299
|
+
* @description
|
|
300
|
+
* 这个有一些情况会导致
|
|
301
|
+
* - 移动过程中切换模态
|
|
302
|
+
* - 移动过程中 five 被析构
|
|
303
|
+
* - 移动过程点击切换到另一个点位
|
|
304
|
+
* @param panoIndex - 对应的点位
|
|
305
|
+
*/
|
|
306
|
+
moveToPanoCanceled(panoIndex: number): void;
|
|
307
|
+
/**
|
|
308
|
+
* 观察点的全景资源开始加载
|
|
309
|
+
* @param panoIndex - 加载点位
|
|
310
|
+
*/
|
|
311
|
+
textureStartLoad(panoIndex: number): void;
|
|
312
|
+
/**
|
|
313
|
+
* 观察点的全景资源加载中,可获取到进度
|
|
314
|
+
* @param progress - 加载进度 [0-1]
|
|
315
|
+
* @param panoIndex - 加载点位下标
|
|
316
|
+
*/
|
|
317
|
+
textureLoading(progress: number, panoIndex: number): void;
|
|
318
|
+
/**
|
|
319
|
+
* 观察点的全景资源加载被中止
|
|
320
|
+
* @param panoIndex - 加载点位
|
|
321
|
+
*/
|
|
322
|
+
textureAbort(panoIndex: number): void;
|
|
323
|
+
/**
|
|
324
|
+
* 观察点的全景资源加载失败
|
|
325
|
+
* @param error - 错误对象
|
|
326
|
+
* @param panoIndex - 加载点位
|
|
327
|
+
*/
|
|
328
|
+
textureError(error: Error, panoIndex: number): void;
|
|
329
|
+
/**
|
|
330
|
+
* 观察点的全景资源加载完成
|
|
331
|
+
* @param panoIndex - 加载点位
|
|
332
|
+
*/
|
|
333
|
+
textureLoaded(panoIndex: number, meta: (NetWorkMeta | null)[]): void;
|
|
334
|
+
/**
|
|
335
|
+
* webXR模式开始,webxr session完成坐标系矫正
|
|
336
|
+
*/
|
|
337
|
+
webXRSessionStart(): void;
|
|
338
|
+
/**
|
|
339
|
+
* webXR模式结束,webxr session销毁
|
|
340
|
+
*/
|
|
341
|
+
webXRSessionEnd(): void;
|
|
342
|
+
/**
|
|
343
|
+
* axes代表控制杆,axes数组的0-1元素分别代表左控制器的左(-1)右(1),左控制器的上(-1)下(1),axes数组的2-3元素同理
|
|
344
|
+
*/
|
|
345
|
+
webXRControllerEvent(type: WebXRControllerType, key: WebXRControllerKey, params: WebXRControllerParams): void;
|
|
346
|
+
/**
|
|
347
|
+
* xr控制器的Axes原始实时数据状态
|
|
348
|
+
*/
|
|
349
|
+
webXRAxesUpdate(type: 'left' | 'right', param: WebXRAxesParams): void;
|
|
350
|
+
/**
|
|
351
|
+
* xr控制器的控制器射线更新
|
|
352
|
+
*/
|
|
353
|
+
webXRControllerRayUpdate(raycaster: {
|
|
354
|
+
leftRay?: THREE.Raycaster;
|
|
355
|
+
rightRay?: THREE.Raycaster;
|
|
356
|
+
}): void;
|
|
357
|
+
/**
|
|
358
|
+
* 准备加载 Work 数据
|
|
359
|
+
* @param input - 输入的 work
|
|
360
|
+
* @param work - 归一化的标准 work
|
|
361
|
+
* @param state - 加载时的姿态
|
|
362
|
+
*/
|
|
363
|
+
willLoad(input: any, work: Work, state: Partial<State>): void;
|
|
364
|
+
/**
|
|
365
|
+
* 开始加载 Work 数据
|
|
366
|
+
* @param input - 输入的 work
|
|
367
|
+
* @param work - 归一化的标准 work
|
|
368
|
+
* @param state - 加载时的姿态
|
|
369
|
+
*/
|
|
370
|
+
load(input: any, work: Work, state: Partial<State>): void;
|
|
371
|
+
/**
|
|
372
|
+
* 加载完 Work 数据
|
|
373
|
+
* @param input - 输入的 work
|
|
374
|
+
* @param work - 归一化的标准 work
|
|
375
|
+
*/
|
|
376
|
+
loaded(input: any, work: Work): void;
|
|
377
|
+
/**
|
|
378
|
+
* 当目标 state 变化时
|
|
379
|
+
* @param state - 当前姿态状态
|
|
380
|
+
* @param userAction - 是否用户触发
|
|
381
|
+
*/
|
|
382
|
+
stateChange(state: State, userAction: boolean): void;
|
|
383
|
+
/**
|
|
384
|
+
* 当前实时 state 变化时
|
|
385
|
+
* @param state - 当前姿态状态
|
|
386
|
+
* @param userAction - 是否用户触发
|
|
387
|
+
*/
|
|
388
|
+
currentStateChange(state: State, userAction: boolean): void;
|
|
389
|
+
/**
|
|
390
|
+
* 当 setState 方法被调用
|
|
391
|
+
* @param state - 当前姿态状态
|
|
392
|
+
*/
|
|
393
|
+
setState(state: State): void;
|
|
394
|
+
/**
|
|
395
|
+
* 当 state 被同步完成时
|
|
396
|
+
* @param state - 当前姿态状态
|
|
397
|
+
*/
|
|
398
|
+
stateSynced(state: State): void;
|
|
399
|
+
/**
|
|
400
|
+
* 模型开始加载
|
|
401
|
+
* @param workModel - 归一化的标准 work 中的 model 值
|
|
402
|
+
*/
|
|
403
|
+
modelWillLoad(workModel: WorkModel): void;
|
|
404
|
+
/**
|
|
405
|
+
* 模型加载错误
|
|
406
|
+
* @param error - 错误对象
|
|
407
|
+
* @param model - 加载完的 model
|
|
408
|
+
*/
|
|
409
|
+
modelLoadError(error: Error, model: Model): void;
|
|
410
|
+
/**
|
|
411
|
+
* 模型加载完成
|
|
412
|
+
* @param model - 加载完的 model
|
|
413
|
+
*/
|
|
414
|
+
modelLoaded(model: Model): void;
|
|
415
|
+
/**
|
|
416
|
+
* 模型楼层切换
|
|
417
|
+
* @param shownFloor - 模型楼层
|
|
418
|
+
*/
|
|
419
|
+
modelShownFloorChange(shownFloor: number | null, floorLength: number): void;
|
|
420
|
+
/**
|
|
421
|
+
* 渲染循环
|
|
422
|
+
* @param rendered - 是否渲染了
|
|
423
|
+
*/
|
|
424
|
+
renderFrame(rendered: boolean): void;
|
|
425
|
+
/**
|
|
426
|
+
* 意图要切换到某个模态, 可以通过 return false 阻止
|
|
427
|
+
* @param mode - 意图要切换到的模态
|
|
428
|
+
* @param prevMode - 当前模态
|
|
429
|
+
* @returns 可以通过 return false 阻止
|
|
430
|
+
*/
|
|
431
|
+
wantsChangeMode(mode: Mode, prevMode: Mode): void | false;
|
|
432
|
+
/**
|
|
433
|
+
* 模态切换完成
|
|
434
|
+
* @param mode - 切换到的模态
|
|
435
|
+
* @param prevMode - 上本质是一个模态
|
|
436
|
+
* @param panoIndex - 初始化动画结束后的点位下标
|
|
437
|
+
* @param toPose - 初始化动画结束后的状态
|
|
438
|
+
* @param userAction - 是否用户触发
|
|
439
|
+
*/
|
|
440
|
+
modeChange(mode: Mode, prevMode: Mode, panoIndex: number, toPose: Pose, userAction: boolean): void;
|
|
441
|
+
/**
|
|
442
|
+
* 帮助元素显应的变换
|
|
443
|
+
* @param visible - 帮助元素的是否开启
|
|
444
|
+
*/
|
|
445
|
+
helpersVisibleChange(visible: boolean): void;
|
|
446
|
+
/**
|
|
447
|
+
* 网络资源分析
|
|
448
|
+
* @param source - 资源地址
|
|
449
|
+
* @param state - 状态
|
|
450
|
+
* @param detail - 详情
|
|
451
|
+
*/
|
|
452
|
+
network(source: string, type: NetworkType, state: NetworkState, detail: string): void;
|
|
453
|
+
};
|
|
454
|
+
export declare function initLegacyEvent(five: Five): void;
|