@realsee/five 6.8.0-alpha.0 → 6.8.0-alpha.10
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 +4 -0
- package/AI_CONTEXT.md +4 -0
- package/README.md +50 -389
- package/ai_guides/README.md +122 -0
- package/ai_guides/ai-doc-guidelines.md +102 -0
- package/ai_guides/api.md +274 -0
- package/ai_guides/features/3dtile.md +172 -0
- package/ai_guides/features/camera-animation.md +205 -0
- package/ai_guides/features/clipper.md +135 -0
- package/ai_guides/features/coordinate-system.md +128 -0
- package/ai_guides/features/event.md +154 -0
- package/ai_guides/features/five.md +184 -0
- package/ai_guides/features/flowing-light-2d-pass.md +438 -0
- package/ai_guides/features/flowing-light-3d-pass.md +420 -0
- package/ai_guides/features/gaussian-blur-pass.md +202 -0
- package/ai_guides/features/gesture.md +180 -0
- package/ai_guides/features/get-screen-pixels.md +182 -0
- package/ai_guides/features/image-options.md +164 -0
- package/ai_guides/features/load-external-model.md +350 -0
- package/ai_guides/features/load-progress.md +140 -0
- package/ai_guides/features/material.md +151 -0
- package/ai_guides/features/mode.md +269 -0
- package/ai_guides/features/model.md +186 -0
- package/ai_guides/features/move-pano-effect.md +145 -0
- package/ai_guides/features/multi-work.md +146 -0
- package/ai_guides/features/pano-tile.md +132 -0
- package/ai_guides/features/pano-uv.md +131 -0
- package/ai_guides/features/parameter.md +153 -0
- package/ai_guides/features/plugin.md +210 -0
- package/ai_guides/features/postprocessing.md +259 -0
- package/ai_guides/features/raycast.md +175 -0
- package/ai_guides/features/request-proxy.md +112 -0
- package/ai_guides/features/screen-project.md +165 -0
- package/ai_guides/features/state.md +101 -0
- package/ai_guides/features/view-layer.md +187 -0
- package/ai_guides/features/work.md +303 -0
- package/ai_guides/glossary.md +93 -0
- package/ai_guides/intro.md +23 -0
- package/ai_guides/quick-start.md +69 -0
- package/ai_guides/release_notes/6.6.md +86 -0
- package/ai_guides/release_notes/6.7.md +401 -0
- package/ai_guides/release_notes/6.8.md +90 -0
- package/ai_guides/support.md +23 -0
- package/ai_guides/template.md +70 -0
- package/docs/00_FOR_AI_AGENTS.md +11 -0
- package/docs/README.md +11 -0
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/highlight.css +29 -29
- 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 +134 -134
- 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 +36 -36
- 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 +24 -0
- package/docs/classes/five.PBMGroup.html +1 -1
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PBMMeshMaterial.html +15 -6
- 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 +55 -51
- package/docs/classes/five.Scene.html +3 -3
- package/docs/classes/five.Subscribe.html +26 -25
- package/docs/classes/five.Tile.html +1 -1
- package/docs/classes/five.Tile3D.html +30 -26
- package/docs/classes/five.TileNode.html +2 -2
- package/docs/classes/five.Tileset.html +11 -11
- package/docs/classes/five.Trajectory.html +1 -1
- package/docs/classes/five.TrajectoryNode.html +1 -1
- package/docs/classes/five.Work.html +19 -19
- 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 +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/README.html +138 -0
- package/docs/documents/ai-doc-guidelines.html +117 -0
- package/docs/documents/api.html +337 -0
- package/docs/documents/features_3dtile.html +216 -0
- package/docs/documents/features_camera-animation.html +157 -0
- package/docs/documents/features_clipper.html +80 -0
- package/docs/documents/features_coordinate-system.html +127 -0
- package/docs/documents/features_event.html +104 -0
- package/docs/documents/features_five.html +147 -0
- package/docs/documents/features_flowing-light-2d-pass.html +356 -0
- package/docs/documents/features_flowing-light-3d-pass.html +351 -0
- package/docs/documents/features_gaussian-blur-pass.html +182 -0
- package/docs/documents/features_gesture.html +120 -0
- package/docs/documents/features_get-screen-pixels.html +88 -0
- package/docs/documents/features_image-options.html +108 -0
- package/docs/documents/features_load-external-model.html +600 -0
- package/docs/documents/features_load-progress.html +110 -0
- package/docs/documents/features_material.html +334 -0
- package/docs/documents/features_mode.html +114 -0
- package/docs/documents/features_model.html +141 -0
- package/docs/documents/features_move-pano-effect.html +110 -0
- package/docs/documents/features_multi-work.html +97 -0
- package/docs/documents/features_pano-tile.html +100 -0
- package/docs/documents/features_pano-uv.html +82 -0
- package/docs/documents/features_parameter.html +101 -0
- package/docs/documents/features_plugin.html +105 -0
- package/docs/documents/features_postprocessing.html +109 -0
- package/docs/documents/features_raycast.html +98 -0
- package/docs/documents/features_request-proxy.html +78 -0
- package/docs/documents/features_screen-project.html +112 -0
- package/docs/documents/features_state.html +71 -0
- package/docs/documents/features_view-layer.html +158 -0
- package/docs/documents/features_work.html +129 -0
- package/docs/documents/glossary.html +94 -0
- package/docs/documents/intro.html +24 -0
- package/docs/documents/quick-start.html +32 -0
- package/docs/documents/release_notes_6.6.html +79 -0
- package/docs/documents/release_notes_6.7.html +209 -0
- package/docs/documents/release_notes_6.8.html +103 -0
- package/docs/documents/support.html +49 -0
- package/docs/documents/template.html +80 -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.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 -0
- package/docs/functions/five.loadSpz.html +1 -0
- package/docs/functions/five.loadX3p.html +1 -1
- 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 +6 -6
- 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.useFiveEventCallback.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 +8 -8
- 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.useFiveEventCallback.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 +4 -4
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +115 -187
- package/docs/interfaces/five.AddableObject.html +5 -5
- package/docs/interfaces/five.AjaxOptions.html +5 -5
- package/docs/interfaces/five.BaseEvent.html +2 -2
- package/docs/interfaces/five.EventCallback.html +198 -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 +2 -2
- package/docs/interfaces/five.ImageOptions.html +11 -11
- package/docs/interfaces/five.ImageURLOptions.html +8 -8
- package/docs/interfaces/five.IntersectEvent.html +2 -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.LooseWorkWithExtrinsics.html +7 -7
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +8 -8
- package/docs/interfaces/five.ModeChangeEvent.html +2 -2
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.ModelEvent.html +2 -2
- package/docs/interfaces/five.ModelOptions.html +3 -3
- package/docs/interfaces/five.ModelSceneEvent.html +2 -2
- package/docs/interfaces/five.ModelTileEvent.html +8 -0
- 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 +2 -2
- package/docs/interfaces/five.NetworkResponseError.html +1 -1
- package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/five.ObjectEvent.html +2 -2
- 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 +2 -2
- package/docs/interfaces/five.PanoTextureEvent.html +2 -2
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +15 -15
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.ParameterMaterialValue.html +40 -36
- package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/five.ParameterValue.html +54 -50
- package/docs/interfaces/five.Pass.html +1 -1
- package/docs/interfaces/five.Pose.html +6 -7
- package/docs/interfaces/five.RenderEvent.html +2 -2
- package/docs/interfaces/five.ResolvedParameterValue.html +54 -50
- package/docs/interfaces/five.SplatData.html +10 -0
- package/docs/interfaces/five.State.html +9 -9
- package/docs/interfaces/five.StateEvent.html +2 -2
- 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 +30 -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 +6 -6
- package/docs/interfaces/five.WorkObserver.html +41 -16
- package/docs/interfaces/five.WorkTile.html +4 -4
- package/docs/interfaces/five.WorkVideo.html +4 -4
- package/docs/interfaces/five.WorksEvent.html +2 -2
- package/docs/interfaces/five.XRControllerEvent.html +2 -2
- package/docs/interfaces/five.XRGestureEvent.html +2 -2
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +13 -13
- package/docs/interfaces/five.XRSessionEvent.html +2 -2
- 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 +30 -15
- package/docs/interfaces/react.FiveActionReactCallbacks.html +23 -23
- package/docs/interfaces/react.FiveCanvasProps.html +2 -2
- package/docs/interfaces/react.FiveInjectionTypes.html +76 -76
- 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 +26 -24
- 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.NetworkProgressCallback.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/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 +518 -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-pmg-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 +166 -0
- package/five/controllers/events.d.ts +69 -0
- package/five/controllers/floorplan.d.ts +119 -0
- package/five/controllers/mapview.d.ts +138 -0
- package/five/controllers/model.d.ts +57 -0
- package/five/controllers/panorama.d.ts +143 -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/gs/util/renderData.d.ts +32 -0
- package/five/gs/wasm/data.d.ts +20 -0
- package/five/gs/wasm/sort.d.ts +18 -0
- package/five/gs/worker/dataWorker.d.ts +1 -0
- package/five/gs/worker/sortWorker.d.ts +1 -0
- package/five/index.d.ts +57 -4582
- package/five/index.js +605 -92
- package/five/index.mjs +9661 -7537
- package/five/meshes/boundingMesh.d.ts +12 -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_compression_spz.d.ts +9 -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 +24 -0
- package/five/model/loaders/glTF-helpers/glTF.d.ts +713 -0
- package/five/model/loaders/glTF-helpers/index.d.ts +47 -0
- package/five/model/loaders/glTF-helpers/parser.d.ts +114 -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 +87 -0
- package/five/model/materials/pbmMeshMaterial.d.ts +124 -0
- package/five/model/materials/pbmPointCloudMaterial.d.ts +72 -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/pbmGSObject.d.ts +40 -0
- package/five/model/objects/pbmGSRenderMesh.d.ts +32 -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 +136 -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 +214 -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 +69 -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 +15 -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-full-screen-depth.d.ts +2 -0
- package/five/renderer/tools/render-full-screen.d.ts +2 -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/thirdparty/fflate.d.ts +1407 -0
- package/five/thirdparty/hammer.d.ts +259 -0
- package/five/thirdparty/jsrsasign.d.ts +768 -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 +35 -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/event.d.ts +149 -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 +6 -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 +236 -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/workObserverUtils.d.ts +36 -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 +3 -3
- package/gltf-loader/index.mjs +3 -3
- 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 +3 -3
- package/line/index.mjs +3 -3
- 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 +65 -0
- package/package.json +10 -1
- 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/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/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 +9 -1078
- package/plugins/index.js +17 -17
- package/plugins/index.mjs +1518 -1370
- 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 +5 -0
- package/react/canvas.d.ts +19 -0
- package/react/context.d.ts +11 -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 +2 -2
- package/react/index.mjs +2 -2
- 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 +2 -2
- package/shader-lib/index.mjs +2 -2
- package/sticker/geometry.d.ts +3 -0
- package/sticker/index.d.ts +68 -71
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +3 -3
- package/umd/five-gltf-loader.js +3 -3
- package/umd/five-line.js +3 -3
- package/umd/five-plugins.js +16 -16
- 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 +605 -92
- 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 +2 -2
- package/vfx/index.mjs +2 -2
- 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 +2 -2
- package/vue/index.mjs +2 -2
- 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 +2 -2
- package/work-downloader/index.mjs +2 -2
- 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/docs/documents/coordinate.html +0 -9
- package/docs/documents/five.FivePlugin.plugins.html +0 -77
- package/docs/documents/five.Pose.coordinate.html +0 -9
- package/docs/documents/plugins.html +0 -77
- package/docs/documents/react-component.html +0 -32
- package/docs/media/coordinate.jpg +0 -0
package/AI_CONTEXT.md
ADDED
package/README.md
CHANGED
|
@@ -4,416 +4,77 @@
|
|
|
4
4
|
|
|
5
5
|
贝壳如视三维渲染框架
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
> **🤖 For AI Assistants (Copilot, Cursor, etc.):**
|
|
8
|
+
> If this package is installed in your project, you can find **AI-friendly documentation** directly in `node_modules/@realsee/five/`. Please **READ** `node_modules/@realsee/five/ai_guides/README.md` as your primary source of truth. It contains comprehensive API references and guides optimized for LLMs.
|
|
9
|
+
> If not installed locally, you can access the same documentation via `https://cdn.jsdelivr.net/npm/@realsee/five@alpha/ai_guides/README.md` or `https://unpkg.com/@realsee/five@alpha/ai_guides/README.md`.
|
|
10
|
+
## Introduction
|
|
8
11
|
|
|
9
|
-
**Five
|
|
12
|
+
**Five** 是 [贝壳如视(realsee.com)](https://realsee.com) 提供的在浏览器中运行的三维空间渲染 Javascript SDK。基于 [Three.js](https://threejs.org/) 开发,帮助开发者在浏览器中构建高质量的 VR 看房与空间交互应用。
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
核心能力包括:
|
|
15
|
+
* **全景浏览**: 高分辨率全景图的高效加载与平滑浏览。
|
|
16
|
+
* **空间漫游**: 在三维模型中自由行走、跳转。
|
|
17
|
+
* **模型渲染**: 内置高效的模型加载策略 (3DTile)。
|
|
18
|
+
* **交互事件**: 完善的手势与射线检测系统。
|
|
12
19
|
|
|
13
|
-
|
|
20
|
+
## Installation
|
|
14
21
|
|
|
15
|
-
|
|
22
|
+
通过 npm 或 yarn 安装:
|
|
16
23
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
目前依赖的**three**版本为 115 ~ 117 的版本
|
|
22
|
-
|
|
23
|
-
```shell
|
|
24
|
-
npm install @realsee/five three@0.117.1
|
|
24
|
+
```bash
|
|
25
|
+
npm install three@^0.117.1 @realsee/five
|
|
26
|
+
# or
|
|
27
|
+
yarn add three@^0.117.1 @realsee/five
|
|
25
28
|
```
|
|
26
29
|
|
|
27
|
-
|
|
30
|
+
> **注意**: Five 依赖 `three`,目前推荐版本为 `0.117.1`。
|
|
28
31
|
|
|
29
|
-
|
|
30
|
-
npm install @realsee/five three@0.117.1 react react-dom @types/react @types/react-dom
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
接下来便可以在您的项目使用**Five**了。
|
|
32
|
+
## Quick Start
|
|
34
33
|
|
|
35
34
|
```typescript
|
|
36
|
-
import { Five } from "@realsee/five";
|
|
37
|
-
// 如果您使用 React Hoos API
|
|
38
|
-
import { useFiveState } from "@realsee/five/react";
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## 浏览器兼容性
|
|
43
|
-
|
|
44
|
-
| Safari | Safari on iOS | Chrome | Chrome for Android | Edge | Firefox |
|
|
45
|
-
|:------:|:-------------:|--------:|:------------------:|:----:|:-------:|
|
|
46
|
-
| >= 9 | >= 9 | >= 49 | >= 93 | >= 13| >= 45 |
|
|
47
|
-
|
|
48
|
-
## 快速上手
|
|
49
|
-
|
|
50
|
-
**Five**提供了快速上手体验的项目生成工具,您可以通过他熟悉**Five**的功能以及尝试基于**Five**开发功能。
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
1. 先创建一个文件夹`five-quick-start`, 作为项目根目录并且使用 `npm init` 命令初始化一个工程。
|
|
54
|
-
|
|
55
|
-
```shell
|
|
56
|
-
mkdir five-quick-start && cd five-quick-start && npm init -y
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
2. 安装**Five**
|
|
60
|
-
|
|
61
|
-
```shell
|
|
62
|
-
npm install @realsee/five
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
3. 通过**Five**的内置的`five-quick-start-init`脚本来快速补完当前项目
|
|
66
|
-
|
|
67
|
-
```shell
|
|
68
|
-
npx five-quick-start-init
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
项目的文件结构如下
|
|
35
|
+
import { Five, parseWork } from "@realsee/five";
|
|
72
36
|
|
|
73
|
-
|
|
74
|
-
.
|
|
75
|
-
├── README.md
|
|
76
|
-
├── assets 静态文件(测试数据)
|
|
77
|
-
│ ├── data0.json
|
|
78
|
-
│ └── data1.json
|
|
79
|
-
├── index.html 页面模版
|
|
80
|
-
├── index.tsx 逻辑代码
|
|
81
|
-
├── package.json npm 包管理描述
|
|
82
|
-
├── tsconfig.json typescript 配置
|
|
83
|
-
├── webpack.config.js webpack 开发环境配置
|
|
84
|
-
└── webpack.production.js webpack 生产配置
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
通**npm script**运行测试环境
|
|
88
|
-
|
|
89
|
-
```shell
|
|
90
|
-
npm run dev
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
默认将会在 `port: 3000` 开启 `webpack dev server`。您也可以在 `webpack.config.js` 中修改配置。
|
|
94
|
-
|
|
95
|
-
4. 现在可以打来浏览器 `http://0.0.0.0:3000` 来看看项目初始化的效果了。您可以修改代码来体验一下如何使用**Five**来二次开发。
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
## 如何使用**Five**
|
|
100
|
-
|
|
101
|
-
**Five**的简单使用样例:
|
|
102
|
-
|
|
103
|
-
```ts
|
|
104
|
-
import { Five } from "@realsee/five";
|
|
105
|
-
|
|
106
|
-
// 构造函数的具体参数见文档
|
|
37
|
+
// 1. 初始化
|
|
107
38
|
const five = new Five();
|
|
39
|
+
five.appendTo(document.getElementById('app'));
|
|
108
40
|
|
|
109
|
-
//
|
|
110
|
-
|
|
41
|
+
// 2. 加载数据
|
|
42
|
+
const workURL = 'https://raw.githubusercontent.com/realsee-developer/dnalogel/main/open-works/real/80o024DE2xyva3j5BE/work.json';
|
|
43
|
+
fetch(workURL).then(res => res.json()).then(json => {
|
|
44
|
+
five.load(parseWork(json));
|
|
45
|
+
});
|
|
111
46
|
|
|
112
|
-
//
|
|
47
|
+
// 3. 适配窗口
|
|
113
48
|
window.addEventListener('resize', () => five.refresh());
|
|
114
|
-
|
|
115
|
-
// 获取三维空间的 Work 数据,加载进来
|
|
116
|
-
// Work 数据可以通过如视开发者中心获取
|
|
117
|
-
fetch(`./work.json`)
|
|
118
|
-
.then(res => res.json())
|
|
119
|
-
.then(work => five.load(work));
|
|
120
49
|
```
|
|
121
50
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
## 在**React**框架中使用**Five**
|
|
126
|
-
|
|
127
|
-
在**React**框架中使用**Five**的简单使用样例:
|
|
128
|
-
|
|
129
|
-
```tsx
|
|
130
|
-
import * as React from "react";
|
|
131
|
-
import * as ReactDOM from "react-dom";
|
|
132
|
-
import {Five, Work, parseWork} from "@realsee/five";
|
|
133
|
-
import {createFiveProvider, FiveCanvas} from "@realsee/five/react";
|
|
134
|
-
|
|
135
|
-
// 创建 Provider, 参数与 new Five 参数类似
|
|
136
|
-
// 构造函数的具体参数见文档
|
|
137
|
-
const FiveProvider = createFiveProvider();
|
|
138
|
-
|
|
139
|
-
const App: React.FC = () => {
|
|
140
|
-
|
|
141
|
-
// 声明 State: Work
|
|
142
|
-
const [work, setWork] = React.useState<Work | null>(null);
|
|
143
|
-
|
|
144
|
-
// 声明 State: Size<{width, height}>
|
|
145
|
-
const [size, setSize] = React.useState({
|
|
146
|
-
width: window.innerWidth,
|
|
147
|
-
height: window.innerHeight
|
|
148
|
-
})
|
|
149
|
-
|
|
150
|
-
// 获取三维空间的 Work 数据,加载进来
|
|
151
|
-
const loadWork = React.useCallback((url: string) => {
|
|
152
|
-
fetch(url)
|
|
153
|
-
.then(res => res.json())
|
|
154
|
-
.then(data => setWork(parseWork(data)));
|
|
155
|
-
}, []);
|
|
156
|
-
|
|
157
|
-
React.useEffect(() => {
|
|
158
|
-
loadWork("./data0.json");
|
|
159
|
-
}, []);
|
|
160
|
-
|
|
161
|
-
// 如果显示区域需要变动,在变动时请调用 FiveCanvas 的 size
|
|
162
|
-
React.useEffect(() => {
|
|
163
|
-
const onResize = () => {
|
|
164
|
-
setSize({
|
|
165
|
-
width: window.innerWidth,
|
|
166
|
-
height: window.innerHeight
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
window.addEventListener("resize", onResize, false);
|
|
170
|
-
return () => window.removeEventListener("resize", onResize, false);
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
if (work) {
|
|
174
|
-
{/*
|
|
175
|
-
在 FiveProvider 内承载一个 Five 实例,
|
|
176
|
-
在他内部的组件可以使用 Five React Hook API 来获取/设置/操作 他
|
|
177
|
-
一个页面中也可以有多个 FiveProvider
|
|
178
|
-
*/}
|
|
179
|
-
return <FiveProvider initialWork={work}>
|
|
180
|
-
{/*
|
|
181
|
-
将渲染视图的 canvas 添加到 DOM 中
|
|
182
|
-
FiveCanvas 需要出现在 FiveProvider 内,他将渲染 FiveProvider 的视图
|
|
183
|
-
这样的设计可以实现不同的 DOM 层级结构
|
|
184
|
-
在 FiveProvider 内的其他组件也可以使用 Five React Hook API 来获取/设置/操作 他外部的 FiveProvider
|
|
185
|
-
*/}
|
|
186
|
-
<FiveCanvas width={size.width} height={size.height}/>
|
|
187
|
-
</FiveProvider>
|
|
188
|
-
}
|
|
189
|
-
return null;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
ReactDOM.render(<App></App>, document.getElementById("app"));
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
其他的**Five React Hook API**文档建设中...
|
|
196
|
-
|
|
197
|
-
## **Five API**文档
|
|
198
|
-
|
|
199
|
-
欢迎查看 [Five API 文档](https://unpkg.com/@realsee/five/docs/index.html) 。
|
|
200
|
-
|
|
201
|
-
该文档由 [TypeDoc](https://typedoc.org/) 生成,您可以详细查看 api 使用方式,调用参数,数据结构。
|
|
202
|
-
|
|
203
|
-
## 相关名词解释
|
|
204
|
-
|
|
205
|
-
### 什么是**Work**
|
|
206
|
-
|
|
207
|
-
**Work**是[如视开发者中心](https://developers.realsee.com) 提供的对于一个三维空间的描述。
|
|
208
|
-
是通过如视硬件设备([如视扫描仪](https://realsee.com/website/product/hardware) 、[如视**Lite**全景相机](https://realsee.com/website/product/lite) 、[如视VR App](https://realsee.com/website/mobile) )扫描并处理之后用于三维空间展示的数据。
|
|
209
|
-
|
|
210
|
-
**Work**以`JSON`作为数据格式**Five**框架可以解析**Work**数据并展示。一个**Five**实例每次可以载入并展示一个**Work**。并且也可以在不同的**Work**之间动态切换。
|
|
211
|
-
|
|
212
|
-
**Work**的数据样例如下
|
|
213
|
-
|
|
214
|
-
```json
|
|
215
|
-
{
|
|
216
|
-
"initial": {
|
|
217
|
-
"mode": "Panorama",
|
|
218
|
-
"pano_index": 6,
|
|
219
|
-
"longitude": 2.6869287662553916,
|
|
220
|
-
"latitude": 0,
|
|
221
|
-
"fov": 95
|
|
222
|
-
},
|
|
223
|
-
"model": {
|
|
224
|
-
"file_url": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/model\/auto3d-DJaa08PIzN4JYluXQ1j2VS.at3d",
|
|
225
|
-
"material_textures": [
|
|
226
|
-
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_0.jpg",
|
|
227
|
-
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_1.jpg",
|
|
228
|
-
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_2.jpg",
|
|
229
|
-
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_3.jpg",
|
|
230
|
-
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_4.jpg",
|
|
231
|
-
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_5.jpg",
|
|
232
|
-
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_6.jpg",
|
|
233
|
-
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_7.jpg",
|
|
234
|
-
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_8.jpg",
|
|
235
|
-
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_9.jpg"
|
|
236
|
-
]
|
|
237
|
-
},
|
|
238
|
-
"panorama": {
|
|
239
|
-
"list": [
|
|
240
|
-
{
|
|
241
|
-
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_u.jpg",
|
|
242
|
-
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_d.jpg",
|
|
243
|
-
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_l.jpg",
|
|
244
|
-
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_r.jpg",
|
|
245
|
-
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_f.jpg",
|
|
246
|
-
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_b.jpg"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_u.jpg",
|
|
250
|
-
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_d.jpg",
|
|
251
|
-
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_l.jpg",
|
|
252
|
-
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_r.jpg",
|
|
253
|
-
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_f.jpg",
|
|
254
|
-
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_b.jpg"
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
},
|
|
258
|
-
"observers": [
|
|
259
|
-
{
|
|
260
|
-
"visible_nodes": [ 1 ],
|
|
261
|
-
"accessible_nodes": [ 1 ],
|
|
262
|
-
"quaternion": {
|
|
263
|
-
"w": 0.45076583925142194,
|
|
264
|
-
"x": 0.010070951976936936,
|
|
265
|
-
"y": -0.8925839597148215,
|
|
266
|
-
"z": -0.0016154299986102319
|
|
267
|
-
},
|
|
268
|
-
"standing_position": [
|
|
269
|
-
-6.956049919128418,
|
|
270
|
-
-1.3924440682333898,
|
|
271
|
-
1.6591600179672241
|
|
272
|
-
],
|
|
273
|
-
"position": [
|
|
274
|
-
-6.956049919128418,
|
|
275
|
-
-0.10312400013208389,
|
|
276
|
-
1.6591600179672241
|
|
277
|
-
],
|
|
278
|
-
"floor_index": 0
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"visible_nodes": [ 0 ],
|
|
282
|
-
"accessible_nodes": [ 0 ],
|
|
283
|
-
"index": 1,
|
|
284
|
-
"quaternion": {
|
|
285
|
-
"w": -0.9884643083591809,
|
|
286
|
-
"x": -0.0038900979633806664,
|
|
287
|
-
"y": 0.1512670435365699,
|
|
288
|
-
"z": -0.006439990839033269
|
|
289
|
-
},
|
|
290
|
-
"standing_position": [
|
|
291
|
-
-6.176340103149414,
|
|
292
|
-
-1.380554749576384,
|
|
293
|
-
2.179759979248047
|
|
294
|
-
],
|
|
295
|
-
"position": [
|
|
296
|
-
-6.176340103149414,
|
|
297
|
-
-0.10025200247764587,
|
|
298
|
-
2.179759979248047
|
|
299
|
-
],
|
|
300
|
-
"floor_index": 0,
|
|
301
|
-
}
|
|
302
|
-
]
|
|
303
|
-
}
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
Work 的数据说明
|
|
307
|
-
|
|
308
|
-
- `initial`: 初始化数据,是一个 `State` 数据。描述**Work**被加载初始状态的位姿,也叫做VR的初始视角
|
|
309
|
-
- mode: 模态
|
|
310
|
-
- pano_index: 初始化点位
|
|
311
|
-
- longitude: 相机的水平角
|
|
312
|
-
- latitude: 相机的偏航角
|
|
313
|
-
- fov: 相机垂直方向的可视角度
|
|
314
|
-
|
|
315
|
-
- `model`: 三维模型
|
|
316
|
-
- file_url: 三维模型的资源地址,文件为 `.at3d` 为如视定制的模型格式
|
|
317
|
-
- material_textures: 三维模型的贴图资源地址
|
|
318
|
-
|
|
319
|
-
- `panorama`: 全景彩色信息
|
|
320
|
-
- list:
|
|
321
|
-
- up / down / left / right / front / back: 全景彩色信息以 [cubemap](https://en.wikipedia.org/wiki/Cube_mapping) 方式存储和使用。
|
|
322
|
-
|
|
323
|
-
- `observers`: 采集点信息
|
|
324
|
-
- visible_nodes: 采集点之间的可见性列表
|
|
325
|
-
- accessible_nodes: 采集点之间的连通性列表
|
|
326
|
-
- quaternion: 采集点与模型坐标的旋转偏移量
|
|
327
|
-
- standing_position: 采集点地面坐标
|
|
328
|
-
- position: 采集点坐标
|
|
329
|
-
- floor_index: 采集点楼层
|
|
330
|
-
|
|
331
|
-
### 什么是 Five State
|
|
332
|
-
|
|
333
|
-
**State**是**Five**框架用于描述状态的数据结构。他包含了模态、位于的采集点位、相机的方向、相机可视角度的信息。
|
|
334
|
-
您可以使用**State**来操作**Five**或者获取**Five**当前的状态。
|
|
335
|
-
|
|
336
|
-
```ts
|
|
337
|
-
interface State {
|
|
338
|
-
"mode": Five.Mode,
|
|
339
|
-
"panoIndex": number,
|
|
340
|
-
"longitude": number,
|
|
341
|
-
"latitude": number,
|
|
342
|
-
"fov": number,
|
|
343
|
-
"distanace": number,
|
|
344
|
-
"offset": THREE.Vector3,
|
|
345
|
-
}
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
**State**的数据描述
|
|
349
|
-
|
|
350
|
-
- `mode`: 当前的模态
|
|
351
|
-
Five 常用有 5 种模态,可以使用 `Five.Mode` 获得
|
|
352
|
-
- Panorama: 全景游走模态,该模态下视图将在采集点间游走,手势操作可以旋转/放大视角/切换采集点,适合查看采集的全景信息。
|
|
353
|
-
- Floorplan: 空间总览模态, 该模态下视图以模型为中心,手势操作可以旋转/放大模型/切换楼层,适合查看模型的整体效果。
|
|
354
|
-
- Topview: 户型图模态,该模态下视图以模型为中心,垂直俯视模型,手势操作可以平移/放大模型/切换楼层,适合查看模型平面结构。
|
|
355
|
-
- Model: 模型游走模态,该模态下视图将在模型中自由游走,手势操作可以旋转/放大视角/位移,适合查看模型的细节,做一些定位操作。
|
|
356
|
-
- Mapview: 地图模态, 该模态下视图将类似三维地图,手势操作可以旋转/放大视角/位移,适合查看模型的细节。适合展示小区,工厂等较大的模型。
|
|
357
|
-
- VRPanorama: VR 眼镜模态,该模态下可以使用 [Cardboard 眼镜](https://arvr.google.com/cardboard/) 或者他的第三方衍生产品,实现 VR 虚拟显示效果。
|
|
358
|
-
- XRPanorama: XR 眼镜模态,该模态下可以使用头戴显示设备比如 Pico, Meta Quest 等,实现沉浸式体验。
|
|
359
|
-
|
|
360
|
-
- `panoIndex`: 采集点位
|
|
361
|
-
|
|
362
|
-
- `longitude` / `latitude`: 相机的水平角 / 相机的偏航角(弧度),我们使用类似经纬度的方式描述相机位置。
|
|
363
|
-
|
|
364
|
-
- `fov`: 相机垂直方向的可视角度 (角度)
|
|
365
|
-
|
|
366
|
-
- `distance`: 相机距 offset 的距离
|
|
367
|
-
|
|
368
|
-
- `offset`: 相机看向的目标
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
### 模型坐标的转换说明
|
|
372
|
-
|
|
373
|
-
> 目前涉及到的模型类型 at3d / domez / 3d-tile(b3dm, pnts, glb)
|
|
374
|
-
|
|
375
|
-
#### 枚举说明
|
|
376
|
-
|
|
377
|
-
- `world`: five.scene 场景下的坐标。属于 view 下的绝对坐标。坐标的上方向是 Y 轴,单位米。
|
|
378
|
-
- `local`: 单个模型的相对坐标。坐标的上方向是 Y 轴,单位米。 单个模型受到 `work.transform` 的影响会产生一定的位姿变化进行项目拼接(比如沙盘项目)。这种情况下,会与 `world` 有一定偏转。
|
|
379
|
-
- `enu`: 模型描述坐标(East-North-Up)。坐标的上方向是 Z 轴,单位米。需要在算法模型输入/输出时使用这个坐标系。
|
|
380
|
-
- `ecef`: 模型在地球的坐标系(Earth-centered, Earth-fixed)。坐标的上方向是 Z 轴并且固定是北,单位米。
|
|
381
|
-
- `lla`: 模型在地球的经纬高度 (Latitude-Longitude-Altitude)。 经纬度单位是弧度,高度单位是米。
|
|
382
|
-
|
|
383
|
-
#### 数据来源
|
|
384
|
-
|
|
385
|
-
转换:
|
|
386
|
-
- `local` 与 `world` 的转换依赖 `work.transform`
|
|
387
|
-
- `local` 与 `enu` 的转换是固定的 yUp 转 zUp
|
|
388
|
-
- `enu` 与 `ecef` 依赖 `tileset.json` 中 `rootMeta.coordinate.pose_ecef_to_enu` / `rootMeta.coordinate.pose_enu_to_ecef`。 如果缺损,则使用 `a=6378137.0;invf=298.257223563` 的椭球近似计算
|
|
389
|
-
- `lla` 通过 `a=6378137.0;invf=298.257223563` 的椭球近似计算
|
|
390
|
-
|
|
391
|
-
椭球近似计算: (`enu` + `lla`) 与 `ecef` 可以相互推导。
|
|
51
|
+
## Browser Support
|
|
392
52
|
|
|
393
|
-
|
|
53
|
+
| Browser | Version | Note |
|
|
54
|
+
| :--- | :--- | :--- |
|
|
55
|
+
| **Chrome** | >= 69 | |
|
|
56
|
+
| **Safari** | >= 9 | iOS Safari >= 9 |
|
|
57
|
+
| **Firefox** | >= 45 | |
|
|
58
|
+
| **Edge** | >= 13 | |
|
|
59
|
+
| **Android** | >= 93 | Chrome内核 |
|
|
394
60
|
|
|
395
|
-
|
|
396
|
-
- `localToWorld(vector: THREE.Vector3): THREE.Vector3`
|
|
397
|
-
- `worldToLocal(vector: THREE.Vector3): THREE.Vector3`
|
|
398
|
-
- `localToEnu(vector: THREE.Vector3): THREE.Vector3`
|
|
399
|
-
- `enuToLocal(vector: THREE.Vector3): THREE.Vector3`
|
|
400
|
-
- `localToEcef(vector: THREE.Vector3): THREE.Vector3`
|
|
401
|
-
- `ecefToLocal(vector: THREE.Vector3): THREE.Vector3`
|
|
402
|
-
- `localToLla(vector: THREE.Vector3): THREE.Vector3`
|
|
403
|
-
- `llaToLocal(vector: THREE.Vector3): THREE.Vector3`
|
|
404
|
-
- `worldToEnu(vector: THREE.Vector3): THREE.Vector3`
|
|
405
|
-
- `enuToWorld(vector: THREE.Vector3): THREE.Vector3`
|
|
406
|
-
- `worldToEcef(vector: THREE.Vector3): THREE.Vector3`
|
|
407
|
-
- `ecefToWorld(vector: THREE.Vector3): THREE.Vector3`
|
|
408
|
-
- `worldToLla(vector: THREE.Vector3): THREE.Vector3`
|
|
409
|
-
- `llaToWorld(vector: THREE.Vector3): THREE.Vector3`
|
|
61
|
+
## Documentation
|
|
410
62
|
|
|
411
|
-
|
|
63
|
+
For comprehensive guides and API references, please refer to the documentation included in this package:
|
|
64
|
+
- [Feature Guides](ai_guides/README.md)
|
|
65
|
+
- [API Reference](ai_guides/api.md)
|
|
412
66
|
|
|
413
|
-
|
|
67
|
+
**⚠️ Note for AI Agents:**
|
|
414
68
|
|
|
415
|
-
|
|
69
|
+
* **For a context-optimized index, read [llms.txt](./llms.txt).**
|
|
416
70
|
|
|
417
|
-
|
|
71
|
+
**Do's (推荐):**
|
|
72
|
+
* **Do** Read [Intro](ai_guides/intro.md) first to understand the high-level architecture.
|
|
73
|
+
* **Do** Use [API Reference](ai_guides/api.md) for checking method signatures and property types.
|
|
74
|
+
* **Do** Refer to `ai_guides/*.md` files for feature-specific implementation details.
|
|
75
|
+
* **Do** Prefer Markdown documentation over HTML files or raw code when understanding concepts.
|
|
418
76
|
|
|
419
|
-
|
|
77
|
+
**Don'ts (禁止):**
|
|
78
|
+
* **Don't** Index or read files in the `docs/` directory (auto-generated HTML). They are redundant and hard to parse.
|
|
79
|
+
* **Don't** Hallucinate API methods. Always verify against `api.md` or `.d.ts` files.
|
|
80
|
+
* **Don't** Assume legacy behavior. Check `ai_guides/release_notes/` if you encounter version discrepancies.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Five SDK Documentation
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@realsee/five)
|
|
4
|
+
|
|
5
|
+
- **Summary**: Five SDK 的文档索引与阅读指南,旨在帮助开发者与 AI 助手快速定位所需信息。
|
|
6
|
+
- **Audience**: 开发者、AI 辅助编程工具。
|
|
7
|
+
|
|
8
|
+
## Context for AI Agents
|
|
9
|
+
|
|
10
|
+
**Five** 是贝壳如视 (Realsee) 提供的三维空间渲染 SDK。
|
|
11
|
+
|
|
12
|
+
### 1. Documentation Maintenance (文档维护)
|
|
13
|
+
> [!IMPORTANT]
|
|
14
|
+
> Before writing or updating any documentation, YOU MUST READ [AI Documentation Guidelines](./ai-doc-guidelines.md).
|
|
15
|
+
> 在书写文档时,务必遵循 [AI Documentation Guidelines](./ai-doc-guidelines.md) 中的规范。
|
|
16
|
+
|
|
17
|
+
### 2. Application Development Strategy (应用开发建议)
|
|
18
|
+
当协助用户编写代码或构建 Five 应用时,请遵循以下阅读与检索策略:
|
|
19
|
+
|
|
20
|
+
* **Initialization (初始化)**:
|
|
21
|
+
* 阅读 [Quick Start](./quick-start.md) 掌握最小化启动流程。
|
|
22
|
+
* 查阅 [Parameter](./features/parameter.md) 获取 `new Five(config)` 的完整配置项(如 canvas 尺寸、资源路径、纹理压缩设置)。
|
|
23
|
+
* **Data Handling (数据加载)**:
|
|
24
|
+
* 核心 VR 数据:深入理解 [Work](./features/work.md) 结构,它是 Five 渲染的基础。
|
|
25
|
+
* 外部模型:参考 [Load External Model](./features/load-external-model.md) 加载 GLTF/OBJ 等格式。
|
|
26
|
+
* 多场景/沙盘:参考 [Multi-Work (Sandbox)](./features/multi-work.md) 处理复杂场景切换。
|
|
27
|
+
* **Interaction & Logic (交互逻辑)**:
|
|
28
|
+
* 事件监听:查阅 [Event](./features/event.md) 处理用户点击 (Tap)、手势 (Gesture) 及状态变更 (StateChange)。
|
|
29
|
+
* 空间操作:使用 [Raycast](./features/raycast.md) 实现物体拾取,使用 [Screen & Space Projection](./features/screen-project.md) 实现 3D 标签挂载。
|
|
30
|
+
* 动画控制:参考 [Camera Animation](./features/camera-animation.md) 和 [Move Pano Effect](./features/move-pano-effect.md) 实现平滑运镜。
|
|
31
|
+
* **State Management (状态管理)**:
|
|
32
|
+
* 保存/恢复场景:**必须** 深刻理解 [State](./features/state.md)。它是 Five 的核心快照机制,包含 Pose、Mode 和 PanoIndex。不要尝试手动管理零散的相机参数,应统一使用 State。
|
|
33
|
+
* **Coding Standards (代码规范)**:
|
|
34
|
+
* 优先使用 TypeScript 类型提示。
|
|
35
|
+
* 确保从 `@realsee/five` 导入核心类与类型 (e.g., `import { Five, Mode, Work, State } from "@realsee/five"`).
|
|
36
|
+
|
|
37
|
+
### 3. General Retrieval (通用检索)
|
|
38
|
+
* **API Signatures**: [API Reference](./api.md) 是最权威的接口定义来源,包含方法的参数与返回值。
|
|
39
|
+
* **Terminology**: 遇到不确定的术语 (e.g., Pose vs State, Observer) 时,务必查阅 [Glossary](./glossary.md)。
|
|
40
|
+
* **Core Relationships**: 理解 [Five](./features/five.md) (渲染器) 与 [Work](./features/work.md) (数据) 的分离设计。
|
|
41
|
+
|
|
42
|
+
## Documentation Map
|
|
43
|
+
|
|
44
|
+
### 1. Essential Reference (必读/速查)
|
|
45
|
+
最常用的入口文档。
|
|
46
|
+
|
|
47
|
+
* [Intro](./intro.md): Five SDK 简介与能力概览。
|
|
48
|
+
* [Quick Start](./quick-start.md): 快速集成指南。
|
|
49
|
+
* [API Reference](./api.md): **核心 API 索引** (Five 类, State, Events, Methods)。
|
|
50
|
+
* [Glossary](./glossary.md): **术语表** (Work, Observer, Pose, etc.)。
|
|
51
|
+
|
|
52
|
+
### 2. Core Concepts (核心概念)
|
|
53
|
+
基础架构与生命周期管理。
|
|
54
|
+
|
|
55
|
+
* [Five](./features/five.md): 核心类 `Five`,管理渲染循环与全局状态。
|
|
56
|
+
* [Work](./features/work.md): 数据载体,描述三维空间的数据结构 (VR 看房数据)。
|
|
57
|
+
* [Panorama UV](./features/pano-uv.md): 全景图 UV 与空间方向转换工具。
|
|
58
|
+
* [Mode](./features/mode.md): 五种核心浏览模式 (Panorama, Floorplan, Topview, Model, Map)。
|
|
59
|
+
* [State](./features/state.md): 状态管理 (Pose, Mode, PanoIndex),用于复原场景。
|
|
60
|
+
* [Coordinate System](./features/coordinate-system.md): 坐标系定义 (右手坐标系, Y轴向上)。
|
|
61
|
+
|
|
62
|
+
### 3. Data & Resource (数据与资源)
|
|
63
|
+
数据加载与资源管理配置。
|
|
64
|
+
|
|
65
|
+
* [Load External Model](./features/load-external-model.md): 加载外部 3D 模型 (GLTF, OBJ 等)。
|
|
66
|
+
* [Load Progress](./features/load-progress.md): 监控模型与全景图的加载进度 (Loaded/Refined)。
|
|
67
|
+
* [Multi-Work (Sandbox)](./features/multi-work.md): 多 Work 加载与沙盘场景管理。
|
|
68
|
+
* [Request Proxy](./features/request-proxy.md): 请求拦截与代理 (CDN 替换、鉴权)。
|
|
69
|
+
* [Image Options](./features/image-options.md): 图片资源配置 (CDN, 格式, 尺寸)。
|
|
70
|
+
|
|
71
|
+
### 4. Rendering & Visuals (渲染与视觉)
|
|
72
|
+
画面表现与渲染管线配置。
|
|
73
|
+
|
|
74
|
+
* [Pano Tile](./features/pano-tile.md): 全景瓦片渲染机制(高分辨率分片加载)。
|
|
75
|
+
* [Model](./features/model.md): 内置模型渲染 (Mesh/Geometry)。
|
|
76
|
+
* [Postprocessing](./features/postprocessing.md): 后处理效果 (Pass, EffectComposer)。
|
|
77
|
+
* [Flowing Light 2D Pass](./features/flowing-light-2d-pass.md): 屏幕空间流光特效(InstancedMesh 优化)。
|
|
78
|
+
* [Flowing Light 3D Pass](./features/flowing-light-3d-pass.md): 3D 世界坐标流光特效(InstancedMesh 优化)。
|
|
79
|
+
* [Gaussian Blur Pass](./features/gaussian-blur-pass.md): 高斯模糊特效。
|
|
80
|
+
* [Material](./features/material.md): 材质参数配置 (透明度、点云大小、顶点标记)。
|
|
81
|
+
* [Get Screen Pixels](./features/get-screen-pixels.md): 获取屏幕像素 (放大镜/截图)。
|
|
82
|
+
* [Move Pano Effect](./features/move-pano-effect.md): 全景点位切换的过渡效果。
|
|
83
|
+
* [Clipper](./features/clipper.md): 模型裁切功能 (房屋剖面)。
|
|
84
|
+
* [3D Tile](./features/3dtile.md): 大场景 3D Tile 渲染策略。
|
|
85
|
+
|
|
86
|
+
### 5. Interaction & Control (交互与控制)
|
|
87
|
+
用户输入与相机控制。
|
|
88
|
+
|
|
89
|
+
* [Event](./features/event.md): 事件系统 (Tap, Gesture, StateChange)。
|
|
90
|
+
* [Gesture](./features/gesture.md): 手势交互详解。
|
|
91
|
+
* [Screen & Space Projection](./features/screen-project.md): 屏幕坐标与空间坐标转换 (标签/射线)。
|
|
92
|
+
* [Raycast](./features/raycast.md): 射线检测 (点击拾取物体)。
|
|
93
|
+
* [Camera Animation](./features/camera-animation.md): 相机动画控制 API。
|
|
94
|
+
|
|
95
|
+
### 6. Advanced & Extensions (进阶与扩展)
|
|
96
|
+
复杂配置与功能扩展。
|
|
97
|
+
|
|
98
|
+
* [Plugin](./features/plugin.md): 插件开发指南。
|
|
99
|
+
* [ViewLayer](./features/view-layer.md): 视图层。
|
|
100
|
+
* [Parameter](./features/parameter.md): Five 初始化详细参数配置。
|
|
101
|
+
|
|
102
|
+
### 7. Meta & Support (其他)
|
|
103
|
+
* [Support](./support.md): 浏览器兼容性。
|
|
104
|
+
* [AI Documentation Guidelines](./ai-doc-guidelines.md): AI 文档编写与维护规范 (必读)。
|
|
105
|
+
* Release Notes: 版本更新记录。
|
|
106
|
+
* [6.8](./release_notes/6.8.md)
|
|
107
|
+
* [6.7](./release_notes/6.7.md)
|
|
108
|
+
* [6.6](./release_notes/6.6.md)
|
|
109
|
+
|
|
110
|
+
## Terminology Summary
|
|
111
|
+
|
|
112
|
+
* **Work**: 包含全景图、模型、户型数据的 JSON 对象。
|
|
113
|
+
* **Observer**: 观察点,通常对应一个全景拍摄点位。
|
|
114
|
+
* **PanoIndex**: 全景点位的索引下标。
|
|
115
|
+
* **Pose**: 相机位姿 (Longitude, Latitude, Fov)。
|
|
116
|
+
* **Mode**: 浏览模式 (Panorama, Model, etc.)。
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
```yaml
|
|
120
|
+
tags: [index, readme, guide, map]
|
|
121
|
+
```
|
|
122
|
+
|