@realsee/five 6.8.0-alpha.3 → 6.8.0-alpha.31
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 +9 -0
- package/docs/classes/plugins.CSS3DRenderer.html +4 -2
- package/docs/classes/plugins.CSS3DSprite.html +11 -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 +52 -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.CSS3DRendererParameters.html +2 -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 +6 -6
- 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 +26894 -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 +64 -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 +35 -21
- package/plugins/index.mjs +3668 -4247
- package/plugins/thirdParty/CSS3DRenderer.d.ts +45 -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 +35 -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 +339 -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
package/AGENTS_READ_ME.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
# AI_CONTEXT
|
|
2
2
|
You are an AI assistant.
|
|
3
3
|
This package contains comprehensive local documentation.
|
|
4
|
-
DO NOT search the web for documentation.
|
|
4
|
+
DO NOT search the web for documentation.
|
|
5
|
+
|
|
6
|
+
**START HERE → Read [llms.txt](./llms.txt)** for a context-optimized index with scenario-based lookup and keyword tags.
|
|
7
|
+
|
|
8
|
+
For the full documentation map, see [ai_guides/README.md](./ai_guides/README.md).
|
|
9
|
+
Do NOT use the `docs/` directory (auto-generated HTML).
|
package/AI_CONTEXT.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
# AI_CONTEXT
|
|
2
2
|
You are an AI assistant.
|
|
3
3
|
This package contains comprehensive local documentation.
|
|
4
|
-
DO NOT search the web for documentation.
|
|
4
|
+
DO NOT search the web for documentation.
|
|
5
|
+
|
|
6
|
+
**START HERE → Read [llms.txt](./llms.txt)** for a context-optimized index with scenario-based lookup and keyword tags.
|
|
7
|
+
|
|
8
|
+
For the full documentation map, see [ai_guides/README.md](./ai_guides/README.md).
|
|
9
|
+
Do NOT use the `docs/` directory (auto-generated HTML).
|
package/README.md
CHANGED
|
@@ -5,11 +5,14 @@
|
|
|
5
5
|
贝壳如视三维渲染框架
|
|
6
6
|
|
|
7
7
|
> **🤖 For AI Assistants (Copilot, Cursor, etc.):**
|
|
8
|
-
>
|
|
9
|
-
>
|
|
10
|
-
>
|
|
11
|
-
>
|
|
12
|
-
|
|
8
|
+
> **START HERE → Read [llms.txt](./llms.txt)** for a context-optimized documentation index with scenario-based lookup.
|
|
9
|
+
> For the full documentation map, see [ai_guides/README.md](./ai_guides/README.md).
|
|
10
|
+
> Do NOT use `docs/` directory (auto-generated HTML, redundant and hard to parse).
|
|
11
|
+
>
|
|
12
|
+
> If this package is installed locally, read `node_modules/@realsee/five/llms.txt` directly.
|
|
13
|
+
> If not installed, use a CDN mirror:
|
|
14
|
+
> - `https://cdn.jsdelivr.net/npm/@realsee/five@latest/llms.txt`
|
|
15
|
+
> - `https://unpkg.com/@realsee/five@latest/llms.txt`
|
|
13
16
|
## Introduction
|
|
14
17
|
|
|
15
18
|
**Five** 是 [贝壳如视(realsee.com)](https://realsee.com) 提供的在浏览器中运行的三维空间渲染 Javascript SDK。基于 [Three.js](https://threejs.org/) 开发,帮助开发者在浏览器中构建高质量的 VR 看房与空间交互应用。
|
|
@@ -69,7 +72,8 @@ For comprehensive guides and API references, please refer to the documentation i
|
|
|
69
72
|
|
|
70
73
|
**⚠️ Note for AI Agents:**
|
|
71
74
|
|
|
72
|
-
* **
|
|
75
|
+
* **START HERE → [llms.txt](./llms.txt)** — context-optimized index with scenario → doc mapping and keyword tags.
|
|
76
|
+
* If you need the full documentation map, read [ai_guides/README.md](ai_guides/README.md).
|
|
73
77
|
|
|
74
78
|
**Do's (推荐):**
|
|
75
79
|
* **Do** Read [Intro](ai_guides/intro.md) first to understand the high-level architecture.
|
package/ai_guides/README.md
CHANGED
|
@@ -54,14 +54,16 @@
|
|
|
54
54
|
|
|
55
55
|
* [Five](./features/five.md): 核心类 `Five`,管理渲染循环与全局状态。
|
|
56
56
|
* [Work](./features/work.md): 数据载体,描述三维空间的数据结构 (VR 看房数据)。
|
|
57
|
+
* [Panorama UV](./features/pano-uv.md): 全景图 UV 与空间方向转换工具。
|
|
57
58
|
* [Mode](./features/mode.md): 五种核心浏览模式 (Panorama, Floorplan, Topview, Model, Map)。
|
|
58
59
|
* [State](./features/state.md): 状态管理 (Pose, Mode, PanoIndex),用于复原场景。
|
|
59
|
-
* [Coordinate System](./features/
|
|
60
|
+
* [Coordinate System](./features/coordinate-system.md): 坐标系定义 (右手坐标系, Y轴向上)。
|
|
60
61
|
|
|
61
62
|
### 3. Data & Resource (数据与资源)
|
|
62
63
|
数据加载与资源管理配置。
|
|
63
64
|
|
|
64
65
|
* [Load External Model](./features/load-external-model.md): 加载外部 3D 模型 (GLTF, OBJ 等)。
|
|
66
|
+
* [Load Progress](./features/load-progress.md): 监控模型与全景图的加载进度 (Loaded/Refined)。
|
|
65
67
|
* [Multi-Work (Sandbox)](./features/multi-work.md): 多 Work 加载与沙盘场景管理。
|
|
66
68
|
* [Request Proxy](./features/request-proxy.md): 请求拦截与代理 (CDN 替换、鉴权)。
|
|
67
69
|
* [Image Options](./features/image-options.md): 图片资源配置 (CDN, 格式, 尺寸)。
|
|
@@ -72,6 +74,11 @@
|
|
|
72
74
|
* [Pano Tile](./features/pano-tile.md): 全景瓦片渲染机制(高分辨率分片加载)。
|
|
73
75
|
* [Model](./features/model.md): 内置模型渲染 (Mesh/Geometry)。
|
|
74
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
|
+
* [Pano Filter](./features/pano-filter.md): 全景图滤镜 (亮度、对比度、色温调节)。
|
|
75
82
|
* [Get Screen Pixels](./features/get-screen-pixels.md): 获取屏幕像素 (放大镜/截图)。
|
|
76
83
|
* [Move Pano Effect](./features/move-pano-effect.md): 全景点位切换的过渡效果。
|
|
77
84
|
* [Clipper](./features/clipper.md): 模型裁切功能 (房屋剖面)。
|
|
@@ -89,16 +96,46 @@
|
|
|
89
96
|
### 6. Advanced & Extensions (进阶与扩展)
|
|
90
97
|
复杂配置与功能扩展。
|
|
91
98
|
|
|
92
|
-
* [Plugin](./plugin.md): 插件开发指南。
|
|
99
|
+
* [Plugin](./features/plugin.md): 插件开发指南。
|
|
100
|
+
* [ViewLayer](./features/view-layer.md): 视图层。
|
|
93
101
|
* [Parameter](./features/parameter.md): Five 初始化详细参数配置。
|
|
94
102
|
|
|
95
103
|
### 7. Meta & Support (其他)
|
|
96
104
|
* [Support](./support.md): 浏览器兼容性。
|
|
97
105
|
* [AI Documentation Guidelines](./ai-doc-guidelines.md): AI 文档编写与维护规范 (必读)。
|
|
98
106
|
* Release Notes: 版本更新记录。
|
|
107
|
+
* [6.8](./release_notes/6.8.md)
|
|
99
108
|
* [6.7](./release_notes/6.7.md)
|
|
100
109
|
* [6.6](./release_notes/6.6.md)
|
|
101
110
|
|
|
111
|
+
## Common Scenarios (场景 → 文档速查)
|
|
112
|
+
|
|
113
|
+
> **Keyword Search Tip:** Each doc in `features/` has a `tags` yaml block at the bottom with Chinese and English keywords. Use these for keyword matching when the scenario table below doesn't cover your need.
|
|
114
|
+
|
|
115
|
+
| Scenario | Docs | Tags |
|
|
116
|
+
| :--- | :--- | :--- |
|
|
117
|
+
| 点击拾取物体 / Object picking | [Raycast](./features/raycast.md) | click, hit-test, floor-detection, 碰撞检测, 物体选择 |
|
|
118
|
+
| 3D 标签 / HTML overlay on 3D point | [Screen Project](./features/screen-project.md) | label, HUD, tooltip, 坐标转换, 3D转2D |
|
|
119
|
+
| 全景滤镜 / 色温调节 / Color correction | [Pano Filter](./features/pano-filter.md) | warm, cool, brightness, contrast, saturation, 暖色, 冷色, 饱和度 |
|
|
120
|
+
| 加载外部 GLTF/OBJ/FBX 模型 | [Load External Model](./features/load-external-model.md) | gltf, glb, ply, splat, fbx, draco, point-cloud, dispose |
|
|
121
|
+
| 相机巡航 / 自动导览 / Camera fly-through | [Camera Animation](./features/camera-animation.md) | rotate, zoom, auto-tour, 运镜, 旋转, 缩放 |
|
|
122
|
+
| 截图 / 放大镜 / Screen capture | [Get Screen Pixels](./features/get-screen-pixels.md) | magnifier, screenshot, color-picker, 取色器 |
|
|
123
|
+
| 模型裁切 / 房屋剖面 | [Clipper](./features/clipper.md) | clipping-box, section-view, discard, 开盖, 剖面 |
|
|
124
|
+
| 流光特效 / Flowing light effect | [Flowing Light 2D](./features/flowing-light-2d-pass.md), [Flowing Light 3D](./features/flowing-light-3d-pass.md) | 光带, 导航路径, 动态路径, instanced |
|
|
125
|
+
| 模糊特效 / Blur effect | [Gaussian Blur Pass](./features/gaussian-blur-pass.md) | 毛玻璃, 背景虚化, gaussian |
|
|
126
|
+
| 保存/恢复场景状态 | [State](./features/state.md) | snapshot, save, restore, 快照, 场景还原 |
|
|
127
|
+
| 多场景切换 / 沙盘 | [Multi-Work](./features/multi-work.md) | sandbox, 多户型, 拼接, workCode |
|
|
128
|
+
| 请求鉴权 / CDN 替换 | [Request Proxy](./features/request-proxy.md) | authentication, token, url-rewrite, cors, 私有化 |
|
|
129
|
+
| 插件开发 | [Plugin](./features/plugin.md) | lifecycle, extension, baseplugin, 状态管理 |
|
|
130
|
+
| 事件监听 / 拦截默认行为 | [Event](./features/event.md) | preventDefault, waitUntil, on, off, gesture, 回调 |
|
|
131
|
+
| 手势交互 / 自定义拖拽 | [Gesture](./features/gesture.md) | tap, pan, pinch, press, 触摸, 鼠标 |
|
|
132
|
+
| 后处理特效 / 自定义 Shader | [Postprocessing](./features/postprocessing.md) | effect-composer, addPass, edl, 描边, 景深 |
|
|
133
|
+
| 材质 / 透明度 / 点云样式 | [Material](./features/material.md) | opacity, pointcloud, roof, ceiling, 天花板, 顶点标记 |
|
|
134
|
+
| 模式切换 / 全景↔模型↔户型图 | [Mode](./features/mode.md) | panorama, floorplan, mapview, topview, VR |
|
|
135
|
+
| 全景高清瓦片 / 分片加载 | [Pano Tile](./features/pano-tile.md) | LOD, tile, 按需加载, 高清全景 |
|
|
136
|
+
| 图片 CDN / 私有化部署 | [Image Options](./features/image-options.md) | avif, webp, cdn, private-deployment |
|
|
137
|
+
| 加载进度 / 首屏优化 | [Load Progress](./features/load-progress.md) | refined, loaded, loading-bar, 首屏 |
|
|
138
|
+
|
|
102
139
|
## Terminology Summary
|
|
103
140
|
|
|
104
141
|
* **Work**: 包含全景图、模型、户型数据的 JSON 对象。
|
|
@@ -111,3 +148,4 @@
|
|
|
111
148
|
```yaml
|
|
112
149
|
tags: [index, readme, guide, map]
|
|
113
150
|
```
|
|
151
|
+
|
|
@@ -20,11 +20,40 @@
|
|
|
20
20
|
- **代码缩进**: 强制使用 **两个空格** 缩进。
|
|
21
21
|
- **相对路径**: 内部文档链接必须使用 **相对路径**(如 `./state.md`)。
|
|
22
22
|
- **Schema**: 必须提供 TypeScript Interface 定义,并保留关键字段的注释(JSDoc)。
|
|
23
|
+
- **精简原则**: 仅展示核心与常用字段,避免列出所有内部或废弃字段。
|
|
24
|
+
- **Configuration**: 对于参数较多的配置项,建议按 **“常用 (Common)”**、**“进阶 (Advanced)”**、**“内部 (Internal)”** 进行分类表格展示,并在内部参数处添加“不建议修改”的警告。
|
|
25
|
+
- **Source Link**: 引用源码文件时,请在 `## Schema` 章节中使用 `> **Definition**: [InterfaceName](../../path/to/source.ts)` 的格式。**支持多个链接**(如 `[Five](...), [EventTypes](...)`),以便完整覆盖相关类型。**必须** 指向 `lib/` 目录下的 `.ts` 文件。构建脚本会自动将其转换为发布包中的 `.d.ts` 链接。
|
|
26
|
+
- **Related**: 文档末尾建议包含 `## Related` 章节,提供相关文档的**相对路径链接**。
|
|
27
|
+
- **语义化**: 链接文字应准确反映目标文档的主题(如 `[Coordinate System](./coordinate.md)`)。
|
|
23
28
|
- **Metadata**: 结尾必须包含 YAML 格式的 `tags`。
|
|
29
|
+
- **文档拆分与审查**: 单个文档应保持精简。若内容过多需拆分为新专题,**必须**在创建新文件前向用户确认并获得批准,严禁擅自创建新文件。
|
|
30
|
+
|
|
31
|
+
## 最佳实践 (Best Practices)
|
|
32
|
+
|
|
33
|
+
### 1. 变量命名语义化 (Semantic Variable Naming)
|
|
34
|
+
在示例代码中,变量名应准确反映其通用性或特定上下文。
|
|
35
|
+
- **Good**: `parentParameter` (暗示可用于 Model, ViewLayer 等多种父级)
|
|
36
|
+
- **Bad**: `modelParam` (若该逻辑同样适用于 ViewLayer,则会误导用户)
|
|
37
|
+
|
|
38
|
+
### 2. 区分属性与方法 (Property vs Method)
|
|
39
|
+
明确区分“直接访问属性”与“调用方法计算”。
|
|
40
|
+
- 若 API 设计为 Getter (如 `parameter.opacity`),文档应引导用户直接访问属性,避免混淆使用 `get()` 方法。
|
|
41
|
+
- 对于涉及计算或继承的逻辑 (如 `resolveValue()`),应显式说明其与直接访问的区别。
|
|
42
|
+
|
|
43
|
+
### 3. 显式说明默认行为 (Explicit Default Behavior)
|
|
44
|
+
对于有默认值或继承逻辑的方法,务必说明“不传参”时的行为。
|
|
45
|
+
- 例如:`resolveValue()` 不传参时仅计算默认值;传入 `upstream` 时会包含继承逻辑。
|
|
24
46
|
|
|
25
47
|
## 标准模板结构 (Standard Template Structure)
|
|
26
48
|
|
|
27
|
-
|
|
49
|
+
无论是**新建文档**还是**维护现有文档**,都请参考独立模板文件:[template.md](./template.md)。
|
|
50
|
+
|
|
51
|
+
- **新建文档**: 直接复制模板内容开始编写。
|
|
52
|
+
- **维护文档**: 在修改现有文档时,请检查其结构是否符合模板要求(如 Schema 的 Definition 引用、Configuration 的分类等)。如果发现结构过时,请顺手将其标准化。
|
|
53
|
+
- **特殊说明 (Special Notes)**:
|
|
54
|
+
- **模板链接格式 (Template Link Format)**:
|
|
55
|
+
- 模板(`template.md`)中所有的占位符链接(如 `Definition` 处的 `[InterfaceName](...)` 或 `Related` 处的 `[RelatedConcept](...)`)均使用了**代码块**包裹,以避免构建时因路径不存在而报错。
|
|
56
|
+
- **AI 操作**: 在编写正式文档时,**必须将其还原为可点击的标准 Markdown 链接**(即去掉反引号),并确保路径指向真实存在的文件。
|
|
28
57
|
|
|
29
58
|
请严格遵循该模板的结构,以保证文档风格一致性。
|
|
30
59
|
|
|
@@ -56,6 +85,7 @@
|
|
|
56
85
|
* 如果修改了 API 签名 -> 更新对应的 `Schema` 和 `Examples`。
|
|
57
86
|
* 如果废弃了功能 -> 在文档中添加 `> [!WARNING] Deprecated` 提示。
|
|
58
87
|
3. **更新索引**: 如果是新功能,确保将其添加到 `ai_guides/README.md` 的合适章节中。
|
|
88
|
+
4. **同步 llms.txt**: 若新增了文档或修改了文档路径,**必须**同步更新项目根目录下的 `llms.txt`,确保外部索引与 `ai_guides/` 保持一致。
|
|
59
89
|
|
|
60
90
|
### 场景 B:API 文档同步 (Sync API Doc)
|
|
61
91
|
定期检查 `ai_guides/api.md` 的完整性:
|
package/ai_guides/api.md
CHANGED
|
@@ -64,9 +64,12 @@ interface FiveInitArgs {
|
|
|
64
64
|
/** Max FPS limit. false = unlimited. Default: false */
|
|
65
65
|
maxFps?: number | false;
|
|
66
66
|
|
|
67
|
-
/** Mode transition duration in ms. Default:
|
|
67
|
+
/** Mode transition duration in ms. Default: 1000 */
|
|
68
68
|
modeChangeDuration?: number;
|
|
69
69
|
|
|
70
|
+
/** Enable mouse wheel zoom. Default: true */
|
|
71
|
+
enableWheel?: boolean;
|
|
72
|
+
|
|
70
73
|
/** Initial plugins to load. */
|
|
71
74
|
plugins?: FivePlugin[];
|
|
72
75
|
|
|
@@ -75,17 +78,34 @@ interface FiveInitArgs {
|
|
|
75
78
|
|
|
76
79
|
/** Dynamic texture configuration for optimization. */
|
|
77
80
|
textureOptions?: TextureOptions;
|
|
81
|
+
|
|
82
|
+
/** Request URL interceptor for auth/CDN. */
|
|
83
|
+
requestProxy?: (url: string) => string | Promise<string>;
|
|
84
|
+
|
|
85
|
+
/** Per-mode configuration (panorama, mapview, floorplan, topview, model). */
|
|
86
|
+
panorama?: PanoramaConfig;
|
|
87
|
+
mapview?: MapviewConfig;
|
|
88
|
+
floorplan?: FloorplanConfig;
|
|
89
|
+
topview?: TopviewConfig;
|
|
90
|
+
model?: ModelConfig;
|
|
78
91
|
}
|
|
79
92
|
```
|
|
80
93
|
|
|
94
|
+
> 详细的模式配置参数见 [Mode](./features/mode.md#configuration)。
|
|
95
|
+
> 图片加载策略见 [ImageOptions](./features/image-options.md)。
|
|
96
|
+
> 请求代理见 [Request Proxy](./features/request-proxy.md)。
|
|
97
|
+
> 完整初始化参数见 [Five](./features/five.md) 和 [Parameter](./features/parameter.md)。
|
|
98
|
+
|
|
81
99
|
## Core Methods
|
|
82
100
|
|
|
83
101
|
### `load(work, state?, options?)`
|
|
84
102
|
Loads a "Work" (dataset) into the Five instance.
|
|
85
103
|
|
|
86
|
-
- **work**: The data object containing scene information
|
|
104
|
+
- **work**: The data object (`LooseWork` or `Work`) containing scene information.
|
|
87
105
|
- **state**: Initial state overrides. `"inherit"`, `"initial"`, or a `State` object.
|
|
88
|
-
- **options**: Loading options (e.g., transition duration).
|
|
106
|
+
- **options**: Loading options (e.g., transition duration, `mode: "add" | "replace"`).
|
|
107
|
+
|
|
108
|
+
> 详见 [Work](./features/work.md) 和 [Multi-Work](./features/multi-work.md)。
|
|
89
109
|
|
|
90
110
|
### `appendTo(element, size?)`
|
|
91
111
|
Mounts the Five canvas to a DOM element.
|
|
@@ -100,6 +120,8 @@ Updates the current state (position, mode, etc.).
|
|
|
100
120
|
- **immediately**: If `true`, skips animation.
|
|
101
121
|
- **userAction**: Marks the change as triggered by user interaction.
|
|
102
122
|
|
|
123
|
+
> 详见 [State](./features/state.md)。
|
|
124
|
+
|
|
103
125
|
### `changeMode(mode, state?, options?)`
|
|
104
126
|
Switches the viewing mode (e.g., from `Panorama` to `Model`).
|
|
105
127
|
|
|
@@ -107,11 +129,29 @@ Switches the viewing mode (e.g., from `Panorama` to `Model`).
|
|
|
107
129
|
- **state**: Target state after mode change.
|
|
108
130
|
- **options**: Animation duration and effect.
|
|
109
131
|
|
|
132
|
+
> 详见 [Mode](./features/mode.md)。
|
|
133
|
+
|
|
110
134
|
### `moveToPano(panoIndex, options?)`
|
|
111
135
|
Moves to a specific panorama spot.
|
|
112
136
|
|
|
113
137
|
- **panoIndex**: Index of the panorama.
|
|
114
|
-
- **options**: `{ effect?: MovePanoEffect, duration?: number }`.
|
|
138
|
+
- **options**: `{ effect?: MovePanoEffect, duration?: number, effectEasing?: Function }`.
|
|
139
|
+
|
|
140
|
+
> 详见 [Move Pano Effect](./features/move-pano-effect.md) 和 [Camera Animation](./features/camera-animation.md)。
|
|
141
|
+
|
|
142
|
+
### `updateCamera(pose, duration, userAction?)`
|
|
143
|
+
Animates the camera to a target pose without changing pano index.
|
|
144
|
+
|
|
145
|
+
- **pose**: Partial `Pose` object (longitude, latitude, fov, etc.).
|
|
146
|
+
- **duration**: Animation duration in ms.
|
|
147
|
+
- **returns**: `Promise<void>` (rejects if interrupted).
|
|
148
|
+
|
|
149
|
+
> 详见 [Camera Animation](./features/camera-animation.md)。
|
|
150
|
+
|
|
151
|
+
### `ready(args?)`
|
|
152
|
+
Returns a Promise that resolves when Five is stable (state synced, model loaded, optionally tiles loaded).
|
|
153
|
+
|
|
154
|
+
- **args**: `{ tile?: boolean }` — if `tile: true` in Panorama mode, waits for tile loading.
|
|
115
155
|
|
|
116
156
|
### `refresh(size?)`
|
|
117
157
|
Resizes the renderer to fit the container or specified size.
|
|
@@ -126,18 +166,35 @@ Projects a 3D point to 2D screen coordinates.
|
|
|
126
166
|
- **testModel**: `boolean` (default `false`). If `true`, checks for occlusion.
|
|
127
167
|
- **returns**: `THREE.Vector2` (Screen Space, px) or `null`.
|
|
128
168
|
|
|
129
|
-
|
|
169
|
+
> 详见 [Screen & Space Projection](./features/screen-project.md)。
|
|
170
|
+
|
|
171
|
+
### `getPixels(options)`
|
|
130
172
|
Get pixel data from the renderer (e.g. for color picking or magnifier).
|
|
131
173
|
|
|
132
|
-
- **x, y
|
|
133
|
-
- **width, height**: Size of the rectangle.
|
|
174
|
+
- **options**: `{ x, y, width, height, pixelRatio?, flipY?, buffer?, skipPanorama?, helperVisible? }`
|
|
134
175
|
- **returns**: `Uint8Array` (RGBA data).
|
|
135
176
|
|
|
177
|
+
> 详见 [Get Screen Pixels](./features/get-screen-pixels.md)。
|
|
178
|
+
|
|
136
179
|
### `intersectRaycaster(raycaster)`
|
|
137
180
|
(On `five.model`) Performs raycasting against the scene models.
|
|
138
181
|
|
|
139
|
-
- **raycaster**: `THREE.Raycaster
|
|
140
|
-
- **returns**: `THREE.Intersection[]
|
|
182
|
+
- **raycaster**: `THREE.Raycaster` (supports extended props: `firstHitOnly`, `hitFilter`, `sortByDistance`, `floorIndex`).
|
|
183
|
+
- **returns**: `THREE.Intersection[]` (extended with `tile`, `viewLayer`, `model` fields).
|
|
184
|
+
|
|
185
|
+
> 详见 [Raycast](./features/raycast.md)。
|
|
186
|
+
|
|
187
|
+
### `addPass(pass)` / `removePass(pass)`
|
|
188
|
+
Add or remove a post-processing pass to/from the rendering chain.
|
|
189
|
+
|
|
190
|
+
- **pass**: `FivePass` instance (e.g. `GaussianBlurPass`, `FlowingLight2DPass`).
|
|
191
|
+
|
|
192
|
+
> 详见 [Postprocessing](./features/postprocessing.md)。
|
|
193
|
+
|
|
194
|
+
### `updateConfiguration(config)`
|
|
195
|
+
Dynamically update mode configurations after initialization (e.g., panorama, mapview settings).
|
|
196
|
+
|
|
197
|
+
> 详见 [Mode](./features/mode.md#动态修改配置-update-configuration)。
|
|
141
198
|
|
|
142
199
|
### `dispose()`
|
|
143
200
|
Destroys the Five instance and releases resources.
|
|
@@ -161,6 +218,8 @@ interface State {
|
|
|
161
218
|
|
|
162
219
|
## Data Structures
|
|
163
220
|
|
|
221
|
+
> 以下为核心数据结构摘要。完整定义见 [Work](./features/work.md)、[State](./features/state.md)、[Model](./features/model.md)。
|
|
222
|
+
|
|
164
223
|
### `Work`
|
|
165
224
|
The main data object containing the scene description.
|
|
166
225
|
|
|
@@ -187,6 +246,16 @@ interface WorkObserver {
|
|
|
187
246
|
accessibleNodes: number[]; // Indices of reachable points
|
|
188
247
|
images: WorkImage; // Panorama image URLs
|
|
189
248
|
active: boolean; // Whether the point is enabled
|
|
249
|
+
|
|
250
|
+
// Coordinate Methods
|
|
251
|
+
getWorldPosition(): THREE.Vector3;
|
|
252
|
+
getWorldStandingPosition(): THREE.Vector3;
|
|
253
|
+
|
|
254
|
+
// UV Conversion Methods
|
|
255
|
+
vectorToEquirectangularUv(vector: THREE.Vector3, uvOrigin?: 'top-left' | 'bottom-left'): THREE.Vector2;
|
|
256
|
+
equirectangularUvToVector(uv: THREE.Vector2, uvOrigin?: 'top-left' | 'bottom-left'): THREE.Vector3;
|
|
257
|
+
vectorToCubemapUv(vector: THREE.Vector3, uvOrigin?: 'top-left' | 'bottom-left'): [CubeFace, THREE.Vector2];
|
|
258
|
+
cubemapUvToVector(cubeFace: CubeFace, uv: THREE.Vector2, uvOrigin?: 'top-left' | 'bottom-left'): THREE.Vector3;
|
|
190
259
|
}
|
|
191
260
|
```
|
|
192
261
|
|
|
@@ -204,10 +273,17 @@ These events follow a standard naming convention and provide typed event objects
|
|
|
204
273
|
|
|
205
274
|
| Event Name | Description | Payload |
|
|
206
275
|
| :--- | :--- | :--- |
|
|
207
|
-
| `gesture.tap` | Triggered on tap/click. Replaces `wantsTapGesture`. | `
|
|
208
|
-
| `gesture.
|
|
209
|
-
| `gesture.
|
|
210
|
-
| `gesture.
|
|
276
|
+
| `gesture.tap` | Triggered on tap/click. Replaces `wantsTapGesture`. | `GestureEvent` |
|
|
277
|
+
| `gesture.dbltap` | Triggered on double tap/click. | `GestureEvent` |
|
|
278
|
+
| `gesture.pan` | Triggered on pan/drag. | `GestureEvent` |
|
|
279
|
+
| `gesture.pinch` | Triggered on pinch/zoom. | `GestureEvent` |
|
|
280
|
+
| `gesture.press` | Triggered on long press. | `GestureEvent` |
|
|
281
|
+
| `gesture.mousewheel` | Triggered on mouse wheel scroll. | `GestureEvent` |
|
|
282
|
+
| `gesture.mousemove` | Triggered on mouse move. | `GestureEvent` |
|
|
283
|
+
| `gesture.momentum` | Triggered on inertia movement after pan. | `GestureEvent` |
|
|
284
|
+
| `gesture.fire` | Triggered when any gesture event fires. | `GestureEvent` |
|
|
285
|
+
|
|
286
|
+
> 手势事件详解及不同 Mode 下的默认行为见 [Gesture](./features/gesture.md)。
|
|
211
287
|
|
|
212
288
|
#### State & Mode
|
|
213
289
|
|
|
@@ -217,16 +293,34 @@ These events follow a standard naming convention and provide typed event objects
|
|
|
217
293
|
| `state.change` | Triggered when state changes (frequent). | `StateEvent` |
|
|
218
294
|
| `camera.update` | Triggered when camera pose updates. | `CameraEvent` |
|
|
219
295
|
|
|
296
|
+
> 状态管理详见 [State](./features/state.md),模式切换详见 [Mode](./features/mode.md)。
|
|
297
|
+
|
|
220
298
|
#### Lifecycle & Resources
|
|
221
299
|
|
|
222
300
|
| Event Name | Description | Payload |
|
|
223
301
|
| :--- | :--- | :--- |
|
|
224
302
|
| `works.load` | Triggered when work data starts loading. | `WorksEvent` |
|
|
303
|
+
| `works.ready` | Triggered when work data is loaded and controller is ready. | `WorksEvent` |
|
|
225
304
|
| `models.load` | Triggered when models are loaded. | `ModelSceneEvent` |
|
|
305
|
+
| `models.refined` | Triggered when all models finish texture refinement. | `ModelSceneEvent` |
|
|
306
|
+
| `model.load` | Triggered when a single model geometry is loaded. | `ModelEvent` |
|
|
307
|
+
| `model.tileLoad` | Triggered when a 3D tile is loaded. | `ModelTileEvent` |
|
|
308
|
+
| `model.tileUnload` | Triggered when a 3D tile is unloaded. | `ModelTileEvent` |
|
|
309
|
+
| `model.changeShownFloor` | Triggered when floor visibility changes. | `ModelEvent` |
|
|
310
|
+
| `model.error` | Triggered when model loading fails. | `ModelErrorEvent` |
|
|
311
|
+
| `pano.prepare` | Triggered before switching to a new pano. `ExtendableEvent`, supports `waitUntil`. | `PanoPrepareEvent` |
|
|
226
312
|
| `pano.arrived` | Triggered when arrival at a panorama node. | `PanoEvent` |
|
|
313
|
+
| `pano.moving` | Triggered during pano transition animation. | `PanoEvent` |
|
|
314
|
+
| `pano.error` | Triggered when pano loading or movement fails. | `PanoEvent` |
|
|
315
|
+
| `pano.texture.progress` | Triggered when panorama texture loading progresses. | `PanoTextureEvent` |
|
|
227
316
|
| `render` | Triggered after each render frame. | `RenderEvent` |
|
|
317
|
+
| `render.prepare` | Triggered before each render frame. | `RenderEvent` |
|
|
228
318
|
| `error` | Triggered on internal errors. | `Error` |
|
|
229
319
|
|
|
320
|
+
> 事件系统详解见 [Event](./features/event.md)。手势事件详解见 [Gesture](./features/gesture.md)。
|
|
321
|
+
> `pano.prepare` 的 `waitUntil` / `preventDefault` 用法见 [Event - Event 对象](./features/event.md#event-对象)。
|
|
322
|
+
> 模型生命周期事件见 [Model](./features/model.md#events) 和 [Load Progress](./features/load-progress.md)。
|
|
323
|
+
|
|
230
324
|
### Legacy Events (Deprecated)
|
|
231
325
|
|
|
232
326
|
Older events are still supported for compatibility but should be avoided in new code.
|
|
@@ -1,122 +1,26 @@
|
|
|
1
|
-
# 3DTile
|
|
1
|
+
# 3DTile (3D 瓦片)
|
|
2
2
|
|
|
3
3
|
- **Summary**: Five 用于加载和渲染大规模三维场景的核心模块,支持动态 LOD 调度与流式加载。
|
|
4
|
-
- **Schema**:
|
|
5
|
-
- **Concepts**: LOD, SSE, Cache Management, ViewLayer。
|
|
4
|
+
- **Schema**: 对应 `ParameterTilesetValue` 接口,通过 Parameter 配置 LOD、显存与并发控制。
|
|
5
|
+
- **Concepts**: LOD (细节层级), SSE (屏幕空间误差), Cache Management (显存管理), ViewLayer (视图层)。
|
|
6
|
+
- **Configuration**: 包含画质精度、显存配额、几何误差、并发请求等详细参数。
|
|
6
7
|
- **Examples**: 画质平衡与多图层优化。
|
|
7
8
|
|
|
8
9
|
## Schema
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
> **Definition**: [ParameterTilesetValue](../../five/model/parameter.d.ts)
|
|
12
|
+
|
|
13
|
+
以下是 `ParameterTilesetValue` 的 TypeScript 定义摘要:
|
|
11
14
|
|
|
12
15
|
```typescript
|
|
13
|
-
interface
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* 屏幕空间误差阈值 (Screen Space Error, SSE)
|
|
17
|
-
* 单位: 像素
|
|
18
|
-
* 默认值: 16
|
|
19
|
-
* 说明: 控制加载精度的核心参数。
|
|
20
|
-
* - 值越小: 画质越高,加载更精细的瓦片,网络/渲染压力越大。
|
|
21
|
-
* - 值越大: 画质越低,性能越好。
|
|
22
|
-
*/
|
|
16
|
+
export interface ParameterTilesetValue {
|
|
17
|
+
/** 屏幕空间误差阈值 (像素) */
|
|
23
18
|
maxScreenSpaceError: number;
|
|
24
|
-
|
|
25
|
-
// --- 显存与内存管理 ---
|
|
26
|
-
/**
|
|
27
|
-
* 最大显存占用
|
|
28
|
-
* 单位: MB
|
|
29
|
-
* 默认值: 512
|
|
30
|
-
* 说明: 当已加载瓦片的显存占用超过此阈值时,引擎会自动卸载不可见或低优先级的瓦片。
|
|
31
|
-
*/
|
|
19
|
+
/** 最大显存占用 (MB) */
|
|
32
20
|
maxMemoryUsage: number;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* 是否开启基于内存的动态 SSE 调整
|
|
36
|
-
* 默认值: false
|
|
37
|
-
* 说明: 开启后,引擎会根据当前显存占用情况自动调整 maxScreenSpaceError。
|
|
38
|
-
* - 目标: 尽量占满 maxMemoryUsage 设定的显存配额。
|
|
39
|
-
* - 行为: 实际使用的 SSE 会在 1.0 到 maxScreenSpaceError 之间动态变化。
|
|
40
|
-
*/
|
|
41
|
-
memoryAdjustedScreenSpaceError: boolean;
|
|
42
|
-
|
|
43
|
-
// --- 几何误差控制 ---
|
|
44
|
-
/**
|
|
45
|
-
* 最小几何误差 (精度上限锁)
|
|
46
|
-
* 默认值: 0
|
|
47
|
-
* 说明: 当瓦片的几何误差小于此值时,强制停止细分。
|
|
48
|
-
* - 作用: 限制加载的最精细层级,防止过度细分。
|
|
49
|
-
* - 场景: 数据本身层级过深,或者不需要看清极微小细节时,调大此值可显著节省性能。
|
|
50
|
-
*/
|
|
21
|
+
/** 最小几何误差 (精度上限锁) */
|
|
51
22
|
minGeometricError: number;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* 最大几何误差 (最低精度保证)
|
|
55
|
-
* 默认值: 10000
|
|
56
|
-
* 说明: 当瓦片的几何误差大于此值时,强制继续细分,直到误差小于此值。
|
|
57
|
-
* - 作用: 设定模型允许的最粗糙程度。
|
|
58
|
-
* - 场景: 无论相机距离多远,都希望模型至少保持一定的精细度(例如不希望看到过于简化的多边形)时,调小此值。
|
|
59
|
-
*/
|
|
60
|
-
maxGeometricError: number;
|
|
61
|
-
|
|
62
|
-
// --- LOD 层级控制 (不推荐) ---
|
|
63
|
-
/**
|
|
64
|
-
* 最小 LOD 层级
|
|
65
|
-
* 默认值: 0
|
|
66
|
-
* 说明: 限制加载的最小层级深度 (Tree Depth)。即小于此层级的瓦片(更粗糙的)不会被显示。
|
|
67
|
-
* - 建议: 推荐优先使用 maxGeometricError。两者都用于控制模型显示的“最粗糙”程度(下限)。
|
|
68
|
-
*/
|
|
69
|
-
minLevelOfDetail: number;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* 最大 LOD 层级
|
|
73
|
-
* 默认值: 20
|
|
74
|
-
* 说明: 限制加载的最大层级深度 (Tree Depth)。即大于此层级的瓦片(更精细的)不会被加载。
|
|
75
|
-
* - 建议: 推荐优先使用 minGeometricError。两者都用于控制模型显示的“最精细”程度(上限)。
|
|
76
|
-
*/
|
|
77
|
-
maxLevelOfDetail: number;
|
|
78
|
-
|
|
79
|
-
// --- 剔除策略 ---
|
|
80
|
-
/**
|
|
81
|
-
* 视锥体剔除
|
|
82
|
-
* 默认值: true
|
|
83
|
-
* 说明: 是否不加载/渲染相机视锥体之外的瓦片。
|
|
84
|
-
*/
|
|
85
|
-
cameraCulling: boolean;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* 是否预加载兄弟节点
|
|
89
|
-
* 默认值: true
|
|
90
|
-
* 说明: 是否在加载当前瓦片时,同时预加载其兄弟节点(同一层级的其他瓦片)。
|
|
91
|
-
*/
|
|
92
|
-
loadSiblings: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* 是否允许跳级加载
|
|
95
|
-
* 默认值: false
|
|
96
|
-
* 说明: 是否在加载当前瓦片时,允许跳级加载。
|
|
97
|
-
* - 作用: 在快速移动视角或直接跳转到深层级位置时,跳过中间层级的瓦片,直接加载目标精度的瓦片。
|
|
98
|
-
* - 场景: 倾斜摄影等外表面模型,为了减少请求数并加快最终形态的呈现(可能会看到明显的从空白到精细的跳变)。
|
|
99
|
-
*/
|
|
100
|
-
skipLevelOfDetail: boolean;
|
|
101
|
-
|
|
102
|
-
// --- 网络并发控制 ---
|
|
103
|
-
/**
|
|
104
|
-
* 最大并发请求数
|
|
105
|
-
* 范围: 0 - 20
|
|
106
|
-
* 默认值: 4
|
|
107
|
-
* 说明: 同时进行的最大网络下载请求数。建议保持默认,过大可能阻塞主线程或导致拥堵。
|
|
108
|
-
*/
|
|
109
|
-
maxRequests: number;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* 请求优先级策略
|
|
113
|
-
* 默认值: 'SCREEN_SPACE_ERROR'
|
|
114
|
-
* 选项:
|
|
115
|
-
* - 'SCREEN_SPACE_ERROR': 优先加载 SSE 最大的瓦片 (最影响视觉质量的部分)。
|
|
116
|
-
* - 'SCREEN_LEVEL_VERTICAL': 优先加载垂直方向层级较高的瓦片 (通常用于多楼层建筑,优先加载当前楼层)。
|
|
117
|
-
* - 'SCREEN_VERTICAL': 优先加载屏幕垂直方向的瓦片。
|
|
118
|
-
*/
|
|
119
|
-
requestOrder: 'SCREEN_SPACE_ERROR' | 'SCREEN_LEVEL_VERTICAL' | 'SCREEN_VERTICAL';
|
|
23
|
+
// ... 更多字段见下方配置表
|
|
120
24
|
}
|
|
121
25
|
```
|
|
122
26
|
|
|
@@ -143,49 +47,53 @@ LOD (Level of Detail) 是 3DTile 的核心机制。引擎不会一次性加载
|
|
|
143
47
|
* **范围**: 实际 SSE 会在 `1.0` (极高画质) 到 `maxScreenSpaceError` (设定底线) 之间波动。
|
|
144
48
|
* **场景**: 适合显存充足但希望自动平衡画质的场景。
|
|
145
49
|
|
|
146
|
-
### 3.
|
|
50
|
+
### 3. ViewLayer 与 3DTile
|
|
147
51
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
*
|
|
151
|
-
* **建议**: 保持默认值,避免设置过大导致网络拥堵。
|
|
152
|
-
* **影响**: 增加并发数可能提升加载速度,但也会增加服务器压力。
|
|
52
|
+
目前所有的 `ViewLayer` 在底层都是一个 `Tile3D` 实例。它们各自拥有独立的:
|
|
53
|
+
* **配置**: `maxScreenSpaceError`, `maxMemoryUsage` 等参数互不干扰。
|
|
54
|
+
* **缓存**: 显存配额各自独立计算。
|
|
153
55
|
|
|
154
|
-
|
|
56
|
+
> **注意**: 即使是通过 `file_url` 加载的单体模型(如 `.obj`, `.at3d`),在 Five 内部也会被封装为 `Tile3D` 实例进行统一管理。
|
|
155
57
|
|
|
156
|
-
|
|
58
|
+
## Configuration
|
|
157
59
|
|
|
158
|
-
|
|
159
|
-
* **B3DM (Batched 3D Model)**: 传统的 3D Tiles 格式,用于建筑模型。
|
|
160
|
-
* **PNTS (Point Cloud)**: 传统的点云格式。
|
|
161
|
-
* **GLB / GLTF**: 3D Tiles 1.1 标准推荐的格式,支持 Mesh 和点云。
|
|
162
|
-
* **压缩与优化**:
|
|
163
|
-
* **[Draco](https://google.github.io/draco/)**: 几何压缩,显著减小模型体积。
|
|
164
|
-
* **[Meshopt](https://github.com/zeux/meshoptimizer)**: 另一种高效的几何压缩算法。
|
|
165
|
-
* **[KTX2](https://github.com/KhronosGroup/KTX-Software) / [BasisU](https://github.com/BinomialLLC/basis_universal)**: 纹理压缩,大幅降低显存占用并提升上传速度。
|
|
60
|
+
以下表格列出了控制 3DTile 加载与性能调度的所有可用参数。
|
|
166
61
|
|
|
167
|
-
###
|
|
62
|
+
### Core Quality & Performance (核心画质与性能)
|
|
168
63
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
64
|
+
| Parameter | Type | Default | Description |
|
|
65
|
+
| :--- | :--- | :--- | :--- |
|
|
66
|
+
| `maxScreenSpaceError` | `number` | `16` | **核心参数**。屏幕空间误差阈值 (像素)。<br>值越小画质越高,性能开销越大。建议范围 8-32。 |
|
|
67
|
+
| `maxMemoryUsage` | `number` | `512` | 最大显存占用 (MB)。超限后自动触发 LRU 淘汰机制。 |
|
|
68
|
+
| `memoryAdjustedScreenSpaceError` | `boolean` | `false` | 是否开启基于内存的动态 SSE 调整。<br>开启后引擎会自动调整 SSE 以尽量占满显存配额。 |
|
|
69
|
+
| `cameraCulling` | `boolean` | `true` | 是否开启视锥体剔除 (不加载视野外的瓦片)。**建议始终开启**。 |
|
|
172
70
|
|
|
173
|
-
|
|
71
|
+
### Geometric Error Control (几何误差控制)
|
|
174
72
|
|
|
175
|
-
|
|
73
|
+
| Parameter | Type | Default | Description |
|
|
74
|
+
| :--- | :--- | :--- | :--- |
|
|
75
|
+
| `minGeometricError` | `number` | `0` | 最小几何误差 (精度上限锁)。<br>当瓦片误差小于此值时停止细分。可用于限制过高精度的加载。 |
|
|
76
|
+
| `maxGeometricError` | `number` | `10000` | 最大几何误差 (最低精度保证)。<br>强制细分直到误差小于此值。可用于避免模型过于模糊。 |
|
|
176
77
|
|
|
177
|
-
|
|
78
|
+
### Network & Loading (网络与加载)
|
|
178
79
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
80
|
+
| Parameter | Type | Default | Description |
|
|
81
|
+
| :--- | :--- | :--- | :--- |
|
|
82
|
+
| `maxRequests` | `number` | `4` | 最大并发请求数。建议保持默认,避免网络拥堵。 |
|
|
83
|
+
| `requestOrder` | `string` | `'SCREEN_SPACE_ERROR'` | 请求优先级策略。<br>`'SCREEN_SPACE_ERROR'`: 优先加载 SSE 大的瓦片;<br>`'SCREEN_LEVEL_VERTICAL'`: 优先加载垂直层级高的。 |
|
|
84
|
+
| `loadSiblings` | `boolean` | `true` | 是否预加载兄弟节点。 |
|
|
85
|
+
| `skipLevelOfDetail` | `boolean` | `false` | 是否允许跳级加载 (跳过中间层级直接加载高精瓦片)。 |
|
|
182
86
|
|
|
183
|
-
|
|
87
|
+
### Legacy LOD Control (不推荐)
|
|
184
88
|
|
|
89
|
+
| Parameter | Type | Default | Description |
|
|
90
|
+
| :--- | :--- | :--- | :--- |
|
|
91
|
+
| `minLevelOfDetail` | `number` | `0` | 最小 LOD 层级 (Tree Depth)。建议使用 `maxGeometricError` 替代。 |
|
|
92
|
+
| `maxLevelOfDetail` | `number` | `20` | 最大 LOD 层级 (Tree Depth)。建议使用 `minGeometricError` 替代。 |
|
|
185
93
|
|
|
186
94
|
## Examples
|
|
187
95
|
|
|
188
|
-
### 调整画质与内存平衡
|
|
96
|
+
### 1. Adjusting Quality & Memory (调整画质与内存平衡)
|
|
189
97
|
|
|
190
98
|
在移动端或性能受限设备上,建议适当降低画质以保证流畅度。
|
|
191
99
|
|
|
@@ -208,7 +116,7 @@ parameter.set('maxMemoryUsage', 1024);
|
|
|
208
116
|
parameter.reset('maxScreenSpaceError', 'maxMemoryUsage');
|
|
209
117
|
```
|
|
210
118
|
|
|
211
|
-
### 多 ViewLayer 优化
|
|
119
|
+
### 2. Multi-ViewLayer Optimization (多 ViewLayer 优化)
|
|
212
120
|
|
|
213
121
|
在对比查看或多楼层场景中,通常存在多个 `ViewLayer`。为了避免资源竞争,建议对非焦点的 ViewLayer 进行降级处理。
|
|
214
122
|
|
|
@@ -253,12 +161,12 @@ console.log((tileset as any).cacheMemoryUsageInBytes / 1024 / 1024 + ' MB');
|
|
|
253
161
|
|
|
254
162
|
## Related
|
|
255
163
|
|
|
256
|
-
* [
|
|
257
|
-
* [
|
|
258
|
-
* [
|
|
164
|
+
* [Parameter](./parameter.md): 了解参数的继承关系及材质、点云相关配置。
|
|
165
|
+
* [Model](./model.md): 了解 Model 和 ViewLayer 的关系。
|
|
166
|
+
* [Work](./work.md): 了解 Work 数据结构。
|
|
259
167
|
|
|
260
168
|
---
|
|
261
169
|
|
|
262
170
|
```yaml
|
|
263
|
-
tags: [3dtile, viewLayer, performance, lod, optimization]
|
|
171
|
+
tags: [大场景, 瓦片, 显存, 画质, 性能优化, 流式加载, 3dtile, viewLayer, performance, lod, optimization, tile-loading, memory, sse, screen-space-error]
|
|
264
172
|
```
|