@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
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
# Release Note 6.7.x
|
|
2
|
+
> 6.7.x 版本发布日志
|
|
3
|
+
|
|
4
|
+
```shell
|
|
5
|
+
npm install @realsee/five@6.7
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
## five.laod 的多 Work 的非阻塞性加载
|
|
9
|
+
> `five.load` 时,现在可选择追加或者替换。
|
|
10
|
+
> 并且在切换过程中,可以不再发生切换/锁定视角等妨碍用户持续操作的行为。
|
|
11
|
+
> 这方面的改动只要适用于多项目下,项目追加,分批次加载的情况。
|
|
12
|
+
|
|
13
|
+
### 使用 `FiveLoadOptions.mode` 在控制 替换 / 追加项目
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
// 替换项目
|
|
17
|
+
// mode: 'replace' 默认
|
|
18
|
+
five.load([parseWork(json1), parseWork(json2)], 'inherit', { mode: 'replace' });
|
|
19
|
+
|
|
20
|
+
// 追加项目
|
|
21
|
+
// mode: 'add'
|
|
22
|
+
five.load(parseWork(json2), 'inherit', { mode: 'add' });
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
注意事项:
|
|
26
|
+
- Work 的唯一标识依旧是 `workCode`。 同一场景下,不允许出现两个相同的 `workCode` 的 Work。如果出现会报错处理。
|
|
27
|
+
- 如果通过 `replace` 替换的 Work 的 `workCode` 和当前场景中有一样的(相当于替换一个一样的 Work),则会保留之前的 Work 的模型,直接挂在到新 Work 上,而不是重新加载。
|
|
28
|
+
|
|
29
|
+
### 重新定义 `state=inherit` 的行为
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
five.load(parseWork(json), 'inherit', { mode: 'add' });
|
|
33
|
+
```
|
|
34
|
+
当 `state=inherit` 时,在切换过程中,可以不再发生切换/锁定视角等妨碍用户持续操作的行为。
|
|
35
|
+
|
|
36
|
+
- 在模型态:保持当前视角状态
|
|
37
|
+
- 在全景态:如果当前 work 存在则不改变。不存在切换到一个可用的全景点。
|
|
38
|
+
|
|
39
|
+
## work 更加精简和灵活
|
|
40
|
+
> 针对大项目,对 work 的 json。做精简优化,减少网络传输时间。并且增加灵活性。
|
|
41
|
+
|
|
42
|
+
### panorama.pattern 模版
|
|
43
|
+
> 通过模版的模式匹配减少重复内容。
|
|
44
|
+
> panoram 中的 hash,index 等参数的重复度很高,对一样的内容可以通过这种方式减少文件长度。
|
|
45
|
+
|
|
46
|
+
Before:
|
|
47
|
+
```json
|
|
48
|
+
"panorama": {
|
|
49
|
+
"count": 465,
|
|
50
|
+
"list": [
|
|
51
|
+
{
|
|
52
|
+
"index": 0,
|
|
53
|
+
"derived_id": 0,
|
|
54
|
+
"derived_id_str": "auto3d-light-vEY8Zp4lPlkZ7R9K_1735117678",
|
|
55
|
+
"up": "images/cube_2048/0/0fd265355dbb94cb22fb930e52dd3c19/0_u.jpg",
|
|
56
|
+
"down": "images/cube_2048/0/0fd265355dbb94cb22fb930e52dd3c19/0_d.jpg",
|
|
57
|
+
"left": "images/cube_2048/0/0fd265355dbb94cb22fb930e52dd3c19/0_l.jpg",
|
|
58
|
+
"right": "images/cube_2048/0/0fd265355dbb94cb22fb930e52dd3c19/0_r.jpg",
|
|
59
|
+
"front": "images/cube_2048/0/0fd265355dbb94cb22fb930e52dd3c19/0_f.jpg",
|
|
60
|
+
"back": "images/cube_2048/0/0fd265355dbb94cb22fb930e52dd3c19/0_b.jpg",
|
|
61
|
+
"size_list": [ 2048, 4096 ],
|
|
62
|
+
"tiles": [ 1, 2, 3 ],
|
|
63
|
+
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"index": 1,
|
|
67
|
+
"derived_id": 0,
|
|
68
|
+
"derived_id_str": "auto3d-light-vEY8Zp4lPlkZ7R9K_1735117799",
|
|
69
|
+
"up": "images/cube_2048/1/a6ca1991fc6bdb2dbd1a1003d9f62394/1_u.jpg",
|
|
70
|
+
"down": "images/cube_2048/1/a6ca1991fc6bdb2dbd1a1003d9f62394/1_d.jpg",
|
|
71
|
+
"left": "images/cube_2048/1/a6ca1991fc6bdb2dbd1a1003d9f62394/1_l.jpg",
|
|
72
|
+
"right": "images/cube_2048/1/a6ca1991fc6bdb2dbd1a1003d9f62394/1_r.jpg",
|
|
73
|
+
"front": "images/cube_2048/1/a6ca1991fc6bdb2dbd1a1003d9f62394/1_f.jpg",
|
|
74
|
+
"back": "images/cube_2048/1/a6ca1991fc6bdb2dbd1a1003d9f62394/1_b.jpg",
|
|
75
|
+
"size_list": [ 2048, 4096 ],
|
|
76
|
+
"tiles": [ 1, 2, 3 ],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"index": 2,
|
|
80
|
+
"derived_id": 0,
|
|
81
|
+
"derived_id_str": "auto3d-light-vEY8Zp4lPlkZ7R9K_1735117912",
|
|
82
|
+
"up": "images/cube_2048/2/567f94406885bf06f5586d7972da2b5e/2_u.jpg",
|
|
83
|
+
"down": "images/cube_2048/2/567f94406885bf06f5586d7972da2b5e/2_d.jpg",
|
|
84
|
+
"left": "images/cube_2048/2/567f94406885bf06f5586d7972da2b5e/2_l.jpg",
|
|
85
|
+
"right": "images/cube_2048/2/567f94406885bf06f5586d7972da2b5e/2_r.jpg",
|
|
86
|
+
"front": "images/cube_2048/2/567f94406885bf06f5586d7972da2b5e/2_f.jpg",
|
|
87
|
+
"back": "images/cube_2048/2/567f94406885bf06f5586d7972da2b5e/2_b.jpg",
|
|
88
|
+
"size_list": [ 2048, 4096 ],
|
|
89
|
+
"tiles": [ 1, 2, 3 ],
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"index": 3,
|
|
93
|
+
"derived_id": 0,
|
|
94
|
+
"derived_id_str": "auto3d-light-vEY8Zp4lPlkZ7R9K_1735118067",
|
|
95
|
+
"up": "images/cube_2048/3/fa70f0f26594d3023a3824c9a92033da/3_u.jpg",
|
|
96
|
+
"down": "images/cube_2048/3/fa70f0f26594d3023a3824c9a92033da/3_d.jpg",
|
|
97
|
+
"left": "images/cube_2048/3/fa70f0f26594d3023a3824c9a92033da/3_l.jpg",
|
|
98
|
+
"right": "images/cube_2048/3/fa70f0f26594d3023a3824c9a92033da/3_r.jpg",
|
|
99
|
+
"front": "images/cube_2048/3/fa70f0f26594d3023a3824c9a92033da/3_f.jpg",
|
|
100
|
+
"back": "images/cube_2048/3/fa70f0f26594d3023a3824c9a92033da/3_b.jpg",
|
|
101
|
+
"size_list": [ 2048, 4096 ],
|
|
102
|
+
"tiles": [ 1, 2, 3 ],
|
|
103
|
+
},
|
|
104
|
+
...
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
After:
|
|
110
|
+
```json
|
|
111
|
+
"panorama": {
|
|
112
|
+
"count": 465,
|
|
113
|
+
"pattern": {
|
|
114
|
+
"up": "images/cube_2048/{index}/{hash}/{index}_u.jpg",
|
|
115
|
+
"down": "images/cube_2048/{index}/{hash}/{index}_d.jpg",
|
|
116
|
+
"left": "images/cube_2048/{index}/{hash}/{index}_l.jpg",
|
|
117
|
+
"right": "images/cube_2048/{index}/{hash}/{index}_r.jpg",
|
|
118
|
+
"front": "images/cube_2048/{index}/{hash}/{index}_f.jpg",
|
|
119
|
+
"back": "images/cube_2048/{index}/{hash}/{index}_b.jpg",
|
|
120
|
+
"size_list": [ 2048, 4096 ],
|
|
121
|
+
"tiles": [ 1, 2, 3]
|
|
122
|
+
},
|
|
123
|
+
"list": [
|
|
124
|
+
{
|
|
125
|
+
"hash": "0fd265355dbb94cb22fb930e52dd3c19",
|
|
126
|
+
"derived_id": 0,
|
|
127
|
+
"derived_id_str": "auto3d-light-vEY8Zp4lPlkZ7R9K_1735117678",
|
|
128
|
+
"index": 0
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"hash": "a6ca1991fc6bdb2dbd1a1003d9f62394",
|
|
132
|
+
"derived_id": 0,
|
|
133
|
+
"derived_id_str": "auto3d-light-vEY8Zp4lPlkZ7R9K_1735117799",
|
|
134
|
+
"index": 1
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"hash": "567f94406885bf06f5586d7972da2b5e",
|
|
138
|
+
"derived_id": 0,
|
|
139
|
+
"derived_id_str": "auto3d-light-vEY8Zp4lPlkZ7R9K_1735117912",
|
|
140
|
+
"index": 2
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"hash": "fa70f0f26594d3023a3824c9a92033da",
|
|
144
|
+
"derived_id": 0,
|
|
145
|
+
"derived_id_str": "auto3d-light-vEY8Zp4lPlkZ7R9K_1735118067",
|
|
146
|
+
"index": 3
|
|
147
|
+
},
|
|
148
|
+
...
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### 相对路径
|
|
154
|
+
> 在序列话 Work Json 时。资源的地址,均尝试存储为 `base_url` 的相对地址,减少存储的开销。
|
|
155
|
+
|
|
156
|
+
- 可以通过 `work.getURL` 获取到完整地址。
|
|
157
|
+
```ts
|
|
158
|
+
// 获取图片地址
|
|
159
|
+
work.getURL(work.observers[0].image.left);
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
- 可以通过修改 `work.baseURL=` 修改前缀。
|
|
163
|
+
|
|
164
|
+
### 一些字段的新增、废弃与兼容
|
|
165
|
+
- 现在 accessable_nodes 与 visible_nodes 不再有行为差异。visible_nodes 将废弃。
|
|
166
|
+
- observers[].derived_id 的缺损值不再是 undefiend. 而是 0。
|
|
167
|
+
- observers[].derived_id_str 的缺损值不再是 undefiend. 而是 空字符串。
|
|
168
|
+
- 优化 at3d / pbm 的 material_textures 的参数的各种兼容问题 以及 错误的警告信息。
|
|
169
|
+
|
|
170
|
+
### model 支持 coordinate 以及 up_axis
|
|
171
|
+
- model.coordinate 同 `tileeset.rootMeta.coordinate`。声明 `file_url` 的世界坐标。
|
|
172
|
+
- model.up_axis 设置 `file_url` 模型的上方向, 仅针对 obj / ply 等自身没有上方向定义的模型格式。
|
|
173
|
+
|
|
174
|
+
### toJSON 方法
|
|
175
|
+
- 通过 `work.toJSON()` 可以获取到当前序列化后的标准 Work Json。类型为 `WorkJson`
|
|
176
|
+
- 该方法并不是返回当时 `parseWork` 时的 Json。 而是从 work 数据中序列化后的结果。
|
|
177
|
+
- 并不包含 `_signature` `certificate` 等字段。
|
|
178
|
+
|
|
179
|
+
### work-downloader 的速度优化
|
|
180
|
+
|
|
181
|
+
- 优化 对于 avif 格式的 cube 图的处理的效率。
|
|
182
|
+
- 优化 全景图片瓦片的切割参数,该有尽有。
|
|
183
|
+
- 优化 图片的清晰度参数,目前均使用 95 最为图片质量。
|
|
184
|
+
|
|
185
|
+
## 模型优化材质展示, 3d-tile,以及碰撞计算
|
|
186
|
+
|
|
187
|
+
### glTF 模型材质 与 动画
|
|
188
|
+
> 优化 Gltf PBR 材质渲染。
|
|
189
|
+
> 对技术美术输出的模型,更准确的还原。
|
|
190
|
+
|
|
191
|
+
- 解决混合底色是白色的问题 从修改 CustomBlending 改为在着色器中处理,所以只有使用 PBM 的材质支持。three 默认材质不处理这个改动。
|
|
192
|
+
- 优化 gltf 骨骼绑定,对于骨骼关联大于 4 的情况,使用前 4 个权重大的骨骼,并归一化。并且考虑通过整形数组 normalize 的情况。
|
|
193
|
+
- 修改 gltf 中对 uv2 copy 的逻辑,添加当检测到有 occlusionTexture 材质时,如果没有 uv2 自动拷贝 uv -> uv2。
|
|
194
|
+
|
|
195
|
+
### glTF 预览工具
|
|
196
|
+
|
|
197
|
+
地址: [https://vradmin.lianjia.com/gltf/](https://vradmin.lianjia.com/gltf/)
|
|
198
|
+
|
|
199
|
+
- 支持加载 线上 / 本地文件。gltf / glb。
|
|
200
|
+
- 支持链接 单独的 gltf / glb 动画文件。
|
|
201
|
+
- 内置了 gltf 官方测试集。[https://github.com/KhronosGroup/glTF-Sample-Assets/](https://github.com/KhronosGroup/glTF-Sample-Assets/)
|
|
202
|
+
- 内置多个环境光照,以及上传自定义环境光照 (.exr)。
|
|
203
|
+
|
|
204
|
+
### 优化模型碰撞
|
|
205
|
+
|
|
206
|
+
扩展 threejs 的 Raycaster。 支持多个自定义参数。
|
|
207
|
+
|
|
208
|
+
```ts
|
|
209
|
+
declare module 'three' {
|
|
210
|
+
|
|
211
|
+
export interface Raycaster {
|
|
212
|
+
/**
|
|
213
|
+
* 只捕获第一个交点
|
|
214
|
+
*/
|
|
215
|
+
firstHitOnly?: boolean;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* 对交点进行筛选
|
|
219
|
+
*/
|
|
220
|
+
hitFilter?: (intersect: THREE.Intersection) => boolean;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* 作用楼层
|
|
224
|
+
*/
|
|
225
|
+
floorIndex?: number;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
- firstHitOnly - 只捕获第一个交点。比获取全部取第一个更快获取到结果。
|
|
232
|
+
- hitFilter - 过滤函数,可以根据逻辑否绝一些交点。配合 firstHitOnly 可以更加匹配业务需求。
|
|
233
|
+
- floorIndex - 过滤楼层。默认为当前显示楼层,-1 为所有楼层。其他数字则定向对应的楼层。
|
|
234
|
+
|
|
235
|
+
同时一些内部逻辑变化
|
|
236
|
+
|
|
237
|
+
- 内置事件生成的 Raycaster。均设置 firstHitOnly = true。
|
|
238
|
+
- 交点获取,内置过滤掉了 模型裁剪 clippers 中的内容。
|
|
239
|
+
|
|
240
|
+
### 3d-tile 支持通过内存上限动态调整 maxScreenSpaceError。
|
|
241
|
+
> 目的是通过有限的内存,获取到最清晰的模型效果。
|
|
242
|
+
|
|
243
|
+
```ts
|
|
244
|
+
// 设置内存最高缓存到 512 MB
|
|
245
|
+
five.modelScene.parameter.set('maxMemoryUsage', 512);
|
|
246
|
+
|
|
247
|
+
// 设置 maxScreenSpaceError 到 32
|
|
248
|
+
five.modelScene.parameter.set('maxScreenSpaceError', 32);
|
|
249
|
+
|
|
250
|
+
// 设置通过内存上限动态调整 maxScreenSpaceError
|
|
251
|
+
five.modelScene.parameter.set('memoryAdjustedScreenSpaceError', true);
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
当设置的 `maxScreenSpaceError` 已经全部加载完毕后,发现内存空间仍有剩余。则会尝试降低 `maxScreenSpaceError` 知道内存大体到达 `maxMemoryUsage` 设置的水平。
|
|
255
|
+
|
|
256
|
+
- 如果设置的 `maxScreenSpaceError` 已经全部加载完毕后,内存已经大于 `maxMemoryUsage` 设置的水平则不会变化。
|
|
257
|
+
- 因为是动态尝试, 所以悲观情况下会出现在 `maxMemoryUsage` 附近摆动的情况。导致模型反复加载/销毁。
|
|
258
|
+
- 只针对 layer 生效。多个 layer 是单独计算,并不是综合计算。
|
|
259
|
+
|
|
260
|
+
## 全景浏览
|
|
261
|
+
|
|
262
|
+
### moveToPano 新增 effect=model 模型过渡效果
|
|
263
|
+
|
|
264
|
+
通过过渡到模型实现点位游走效果
|
|
265
|
+
|
|
266
|
+
```ts
|
|
267
|
+
five.moveToPano(0, {
|
|
268
|
+
effect: 'model',
|
|
269
|
+
});
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
目前支持:
|
|
273
|
+
|
|
274
|
+
- fly - 通过相机移动方式变化
|
|
275
|
+
- instant - 直接变化
|
|
276
|
+
- fade - 通过渐变方式变化
|
|
277
|
+
- montage - 通过渐变穿插到黑屏方式变化
|
|
278
|
+
- spread - 通过扩散方式变化
|
|
279
|
+
- zoomin - 通过放大变化
|
|
280
|
+
- zoomout - 通过缩小变化
|
|
281
|
+
- model - 通过过度到模型
|
|
282
|
+
|
|
283
|
+
### moveToPano 新增参数 effectEasing 控制前后全景图的切换进度
|
|
284
|
+
|
|
285
|
+
```ts
|
|
286
|
+
function easeInQuad(x: number): number {
|
|
287
|
+
return x * x;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
five.moveToPano({
|
|
291
|
+
workCode: "axv2ZQMaKZcMl5Bc6x",
|
|
292
|
+
panoIndex: 51,
|
|
293
|
+
}, {
|
|
294
|
+
latitude: 0.5314685806864204,
|
|
295
|
+
longitude: 4.324187623631265,
|
|
296
|
+
fov: 90,
|
|
297
|
+
effectEasing: easeInQuad
|
|
298
|
+
})
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
- effectEasing 生命一个函数,接受一个 0 到 1 的数字, 返回一个 0 到 1 的数字。
|
|
302
|
+
- 当值为 0 时显示前一个全景图。 为 1 时显示后一个全景图。 中间数值为两个全景图的混合, 数值表示混合比例。
|
|
303
|
+
- 用于 地面-天空 等切换切换占比差异较大的情况下单独设置。
|
|
304
|
+
|
|
305
|
+
### 全景图支持航拍点的差异显示
|
|
306
|
+
|
|
307
|
+
默认逻辑为:
|
|
308
|
+
```ts
|
|
309
|
+
const five = new Five({
|
|
310
|
+
panorama: {
|
|
311
|
+
aerialObserverMinHeight: 5,
|
|
312
|
+
panoCircleMeshCreator: (observer, options) => {
|
|
313
|
+
const distance = observer.position.distanceTo(observer.standingPosition);
|
|
314
|
+
if (distance > options.aerialObserverMinHeight) {
|
|
315
|
+
return new PanoCircleMeshSolid();
|
|
316
|
+
} else {
|
|
317
|
+
return new PanoCircleMesh();
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
```
|
|
323
|
+
- 如果距地大于 5 米的点位为航拍点。
|
|
324
|
+
- 如果是航拍点,则使用 PanoCircleMeshSolid, 否则使用 PanoCircleMesh。
|
|
325
|
+
- 内部逻辑。航拍点会面向相机展示。
|
|
326
|
+
|
|
327
|
+
业务可以修改或介入这个逻辑。
|
|
328
|
+
|
|
329
|
+
## 渲染以及后处理
|
|
330
|
+
|
|
331
|
+
重写了渲染相关的逻辑。将 scene-renderer 和 postprocessing 分开
|
|
332
|
+
|
|
333
|
+
- scene-renderer 场景的渲染相关,需要多次渲染场景采样比如抗锯齿(aa),或者对场景内容改变,必须点云的点融合等。
|
|
334
|
+
- postprocessing 后处理,将 scene-renderer 的结果通过多次处理,比如轮廓增强,调整亮度等,将最终处理后的结果显示到画布上。
|
|
335
|
+
|
|
336
|
+
### 提供的 scene-renderer
|
|
337
|
+
|
|
338
|
+
- scene-renderer - 直接渲染
|
|
339
|
+
- point-cloud-high-quality-scene-renderer - 点云融合渲染
|
|
340
|
+
- ssaa-scene-renderer - SSAA算法的抗锯齿渲染
|
|
341
|
+
|
|
342
|
+
```ts
|
|
343
|
+
// 通过 renderMode 切换
|
|
344
|
+
|
|
345
|
+
// 直接渲染
|
|
346
|
+
five.renderMode = 'default';
|
|
347
|
+
|
|
348
|
+
// 点云融合渲染
|
|
349
|
+
five.renderMode = 'point-cloud-high-quality';
|
|
350
|
+
|
|
351
|
+
// SSAA算法的抗锯齿渲染
|
|
352
|
+
five.renderMode = 'ssaa';
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### 内置后处理
|
|
356
|
+
- adaptive-luminance-pass - 屏幕空间动态亮度
|
|
357
|
+
- eye-dome-lighting-pass - 轮廓增强
|
|
358
|
+
|
|
359
|
+
```ts
|
|
360
|
+
// 开启 eye-dome-lighting-pass
|
|
361
|
+
five.enableEDL = true;
|
|
362
|
+
|
|
363
|
+
// 开启 adaptive-luminance-pass
|
|
364
|
+
five.enableAdaptiveLuminance = true;
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
### 自定义后处理
|
|
368
|
+
|
|
369
|
+
后处理支持 THREE 对于 后处理 Pass 的定义。可以自定义追加。
|
|
370
|
+
|
|
371
|
+
注意:目前不支持 mask 模版剔除部分的逻辑。
|
|
372
|
+
|
|
373
|
+
```ts
|
|
374
|
+
|
|
375
|
+
interface Pass {
|
|
376
|
+
enabled: boolean;
|
|
377
|
+
needsSwap: boolean;
|
|
378
|
+
clear: boolean;
|
|
379
|
+
renderToScreen: boolean;
|
|
380
|
+
setSize(width: number, height: number): void;
|
|
381
|
+
render(
|
|
382
|
+
renderer: THREE.WebGLRenderer,
|
|
383
|
+
writeBuffer: THREE.WebGLRenderTarget,
|
|
384
|
+
readBuffer: THREE.WebGLRenderTarget,
|
|
385
|
+
deltaTime?: number,
|
|
386
|
+
maskActive?: boolean
|
|
387
|
+
): void;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
const myPass: Pass = ...;
|
|
391
|
+
|
|
392
|
+
this.fiveRenderer.composer.addPass(myPass)
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
## 其他
|
|
396
|
+
|
|
397
|
+
- 不再使用分层渲染。enableLayeringRendering 参数废弃。
|
|
398
|
+
- 修复 涉嫌计算 intersectRaycaster, 如果 origin 离得太近会出现取不到的问题,优化 bvhbox 的距离判断逻辑。
|
|
399
|
+
- 优化近处点云碰撞时,规避掉角度大 distanceToRay / distance > 0.07 的点云。
|
|
400
|
+
- 修复多个 five 实例间,共用同一个 work 时 proxy 指向错误 five 实例的问题。
|
|
401
|
+
- 修复 mesh 模型 material.vertexMarks 没有同步 parameterValue.vertexMarks 的问题
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Release Note 6.8.x
|
|
2
|
+
> 6.8.x 版本发布日志
|
|
3
|
+
|
|
4
|
+
```shell
|
|
5
|
+
npm install @realsee/five@6.8
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
## Gaussian Splatting (3DGS) 支持
|
|
9
|
+
> Five 现已支持 Gaussian Splatting (3DGS) 渲染管线。这是一种基于点的渲染技术,能够提供高质量的实时渲染效果。
|
|
10
|
+
|
|
11
|
+
* **前提条件**: 仅在 WebGL2 环境下可用。
|
|
12
|
+
* **数据支持**:
|
|
13
|
+
* 支持 `3dtiles` 中包含 3DGS 数据。
|
|
14
|
+
* 支持加载 `.spz` (version 2) 或 `.splat` 格式的数据。
|
|
15
|
+
* 支持通过 glTF 扩展加载 content 为 `.spz` 的 glTF/glb 文件。
|
|
16
|
+
* **功能特性**:
|
|
17
|
+
* 支持透视相机与正交相机渲染。
|
|
18
|
+
* 支持 BVH 构建,支持射线检测 (Raycast)。
|
|
19
|
+
* `pbmGSObject` 继承自 `THREE.Points`。
|
|
20
|
+
|
|
21
|
+
### 配置球谐光照阶数 (SH Degree)
|
|
22
|
+
可以通过 `five.parameter.gsSHDegree` 设置球谐光照阶数,支持 0, 1, 2 阶,默认为 0 阶。
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
const five = new Five({
|
|
26
|
+
parameters: {
|
|
27
|
+
gsSHDegree: 1 // 设置为 1 阶 SH
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## ViewLayer 加载策略优化
|
|
33
|
+
> 优化了 ViewLayer 的加载和显隐逻辑,以减少内存占用并提高性能。
|
|
34
|
+
|
|
35
|
+
### 默认加载策略变更
|
|
36
|
+
默认情况下,Five **不再加载所有图层**,而是根据优先级**仅加载一个**图层。
|
|
37
|
+
优先级顺序:`mesh` > `point_cloud` > 其他类型。
|
|
38
|
+
|
|
39
|
+
### 显隐与内存管理
|
|
40
|
+
* **显示**: 当 `viewLayer.visible = true` 时,开始加载资源。
|
|
41
|
+
* **隐藏**: 当 `viewLayer.visible = false` 时,**释放该图层占用的所有内存资源**。
|
|
42
|
+
|
|
43
|
+
### 加载进度
|
|
44
|
+
新增 `tile.content.loadProgress` 属性,用于查看每个瓦片的加载进度 (0-1)。
|
|
45
|
+
新增 `tile.content.byteLength` 属性,可在加载过程中获取瓦片内容的字节长度。
|
|
46
|
+
同时,`model.tileLoad` 和 `model.tileUnload` 事件被添加,用于监控瓦片的生命周期。
|
|
47
|
+
|
|
48
|
+
### 下载进度回调
|
|
49
|
+
外部模型加载函数(`loadGltf`, `loadPly` 等)现在支持 `onDownloadProgress` 回调,用于监控文件下载进度。
|
|
50
|
+
|
|
51
|
+
### 射线检测增强
|
|
52
|
+
* `Intersection` 对象新增了 `tile`, `model`, `viewLayer` 字段,便于在射线检测时获取更详细的上下文信息。
|
|
53
|
+
* `raycaster.hitFilter` 回调函数的参数类型定义已更新,包含 `model`, `viewLayer`, `tile` 等上下文信息。
|
|
54
|
+
|
|
55
|
+
## glTF 模型支持增强
|
|
56
|
+
> 新增了对更多 glTF 扩展的支持,提升了模型的表现力和动画能力。
|
|
57
|
+
|
|
58
|
+
### 新增扩展支持
|
|
59
|
+
* **KHR_animation_pointer**: 允许动画通道指向 glTF 资产中任何对象的任何属性,而不仅仅是节点的平移、旋转和缩放。
|
|
60
|
+
* **KHR_node_visibility**: 允许设置节点的可见性属性。
|
|
61
|
+
* **KHR_materials_clearcoat** 用于在材质上添加一层透明涂层,模拟车漆、碳纤维、清漆木材等真实世界中的表面效果。
|
|
62
|
+
* **KHR_materials_sheen** 绒面 / 绒毛类表面效果。
|
|
63
|
+
* **KHR_materials_transmission** 物理透光材质扩展,用于实现光线真正穿过物体的透明 / 半透明效果。
|
|
64
|
+
|
|
65
|
+
## Work 核心能力增强
|
|
66
|
+
> 为 WorkObserver 提供了更多实用的工具函数,便于进行坐标和 UV 转换。
|
|
67
|
+
|
|
68
|
+
### UV 转换工具函数
|
|
69
|
+
* `vectorToEquirectangularUv`: 将方向向量转化为全景图 uv。
|
|
70
|
+
* `equirectangularUvToVector`: 将全景图 uv 转化为方向向量。
|
|
71
|
+
* `vectorToCubemapUv`: 将方向向量转化为立方体贴图 uv。
|
|
72
|
+
* `cubemapUvToVector`: 将立方体贴图 uv 转化为方向向量。
|
|
73
|
+
|
|
74
|
+
## 新增后处理效果 (Post-Processing Passes)
|
|
75
|
+
> 新增了三个可选的内置后处理 Pass,用于增强视觉效果。
|
|
76
|
+
|
|
77
|
+
* **[FlowingLight2DPass](../features/flowing-light-2d-pass.md)**: 2D 流光效果,通常用于在屏幕空间绘制流动的光线(如道路流光)。
|
|
78
|
+
* **[FlowingLight3DPass](../features/flowing-light-3d-pass.md)**: 3D 流光效果,基于深度缓冲区在三维模型表面绘制流光。
|
|
79
|
+
* **[GaussianBlurPass](../features/gaussian-blur-pass.md)**: 高斯模糊效果,可用于实现毛玻璃等视觉特效。
|
|
80
|
+
|
|
81
|
+
## AI 友好文档 (AI Guides)
|
|
82
|
+
> 全面重构了文档结构,使其更适合 AI 辅助编程工具 (如 Cursor, Copilot) 阅读和索引。
|
|
83
|
+
|
|
84
|
+
* 文档目录迁移至 `ai_guides/`,并在 `package.json` 中新增 `ai` 字段指向该目录。
|
|
85
|
+
* 文档内容包含源码链接 (`source` 字段),直接指向对应的 `.ts` 定义文件。
|
|
86
|
+
* 提供了更清晰的 API 定义和概念说明,例如新增了 [ViewLayer](../features/view-layer.md) 的详细文档。
|
|
87
|
+
|
|
88
|
+
## 其他优化
|
|
89
|
+
* **点云渲染**: 计算点位透明度时,现在会排除不活跃的点,提升渲染正确性。
|
|
90
|
+
* **TypeScript 支持**: 优化了 `.d.ts` 打包方式,声明文件现在与源码文件一一对应,提升了 IDE 的跳转体验。
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Browser Support (浏览器支持)
|
|
2
|
+
|
|
3
|
+
- **Summary**: Five 依赖 WebGL 渲染,支持所有现代浏览器。
|
|
4
|
+
|
|
5
|
+
## Compatibility
|
|
6
|
+
|
|
7
|
+
Five 需要浏览器支持 **WebGL 1.0** (推荐 WebGL 2.0 以获得更好性能)。
|
|
8
|
+
|
|
9
|
+
| Browser | Version Requirement | Note |
|
|
10
|
+
| :--- | :--- | :--- |
|
|
11
|
+
| **Chrome** | >= 69 | 推荐使用最新版 |
|
|
12
|
+
| **Safari** | >= 9 | iOS Safari >= 9 |
|
|
13
|
+
| **Firefox** | >= 45 | |
|
|
14
|
+
| **Edge** | >= 13 | |
|
|
15
|
+
| **Android Webview** | >= 93 (Chrome内核) | |
|
|
16
|
+
|
|
17
|
+
## WebXR Support
|
|
18
|
+
|
|
19
|
+
如果需要使用 VR 模式 (XRPanorama),需要浏览器支持 [WebXR Device API](https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API)。
|
|
20
|
+
|
|
21
|
+
## Related
|
|
22
|
+
|
|
23
|
+
* [Quick Start](./quick-start.md)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# 功能名称 (中文名称)
|
|
2
|
+
|
|
3
|
+
- **Summary**: 一段一句话的概要(中文)。
|
|
4
|
+
- **Schema**: 简述涉及的数据结构或类型。
|
|
5
|
+
- **Concepts**: 涉及的核心概念关键词。
|
|
6
|
+
- **Configuration**: 关键配置项说明。
|
|
7
|
+
- **Examples**: 简述提供的示例类型。
|
|
8
|
+
|
|
9
|
+
## Schema
|
|
10
|
+
|
|
11
|
+
> **Definition**: `[InterfaceName](../../five/path/to/source.d.ts)` 或多个 `[Main](../../lib/...)`, `[Options](../../lib/...)`
|
|
12
|
+
|
|
13
|
+
(这里放置 Interface 定义、TS 类型或参数表。务必包含 Definition 源码链接。)
|
|
14
|
+
|
|
15
|
+
## Concepts
|
|
16
|
+
|
|
17
|
+
(这里解释核心概念、术语定义及业务逻辑)
|
|
18
|
+
|
|
19
|
+
## Configuration
|
|
20
|
+
|
|
21
|
+
(可选:初始化参数、配置项说明。若参数较多,请按以下分类展示)
|
|
22
|
+
|
|
23
|
+
### Common Configuration (常用配置)
|
|
24
|
+
|
|
25
|
+
| Parameter | Type | Default | Description |
|
|
26
|
+
| :--- | :--- | :--- | :--- |
|
|
27
|
+
| `key` | `type` | `default` | Description. |
|
|
28
|
+
|
|
29
|
+
### Advanced Configuration (进阶配置)
|
|
30
|
+
|
|
31
|
+
| Parameter | Type | Default | Description |
|
|
32
|
+
| :--- | :--- | :--- | :--- |
|
|
33
|
+
| `key` | `type` | `default` | Description. |
|
|
34
|
+
|
|
35
|
+
## Instance Properties
|
|
36
|
+
|
|
37
|
+
(可选:类文档专用,列出关键属性及类型)
|
|
38
|
+
|
|
39
|
+
## Instance Methods
|
|
40
|
+
|
|
41
|
+
(可选:类文档专用,列出关键方法签名及说明)
|
|
42
|
+
|
|
43
|
+
## Examples
|
|
44
|
+
|
|
45
|
+
### 快速上手 (Quick Example)
|
|
46
|
+
|
|
47
|
+
(最小可运行代码)
|
|
48
|
+
|
|
49
|
+
### 进阶用法 (Advanced Usage)
|
|
50
|
+
|
|
51
|
+
(更复杂的场景或配置)
|
|
52
|
+
|
|
53
|
+
## Debugging
|
|
54
|
+
|
|
55
|
+
(可选:调试技巧、监控方法)
|
|
56
|
+
|
|
57
|
+
## Common Pitfalls
|
|
58
|
+
|
|
59
|
+
1. **坑点1**: 说明及规避方法。
|
|
60
|
+
2. **坑点2**: ...
|
|
61
|
+
|
|
62
|
+
## Related
|
|
63
|
+
|
|
64
|
+
* `[RelatedConcept](./related-concept.md)`: 简述关联关系。
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
```yaml
|
|
69
|
+
tags: [keywords, tags]
|
|
70
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# FOR_AI_AGENTS
|
|
2
|
+
> **⚠️ Note for AI Agents:**
|
|
3
|
+
>
|
|
4
|
+
> This directory contains auto-generated HTML documentation which is dense and difficult to parse effectively.
|
|
5
|
+
>
|
|
6
|
+
> **PLEASE IGNORE THE CONTENTS OF THIS DIRECTORY.**
|
|
7
|
+
>
|
|
8
|
+
> Instead, refer to the **ai_guides** directory in the package root. It contains high-quality, structured Markdown documentation specifically optimized for comprehension and retrieval.
|
|
9
|
+
>
|
|
10
|
+
> * **Go to Guides**: [../ai_guides/README.md](../ai_guides/README.md)
|
|
11
|
+
> * **Go to API Index**: [../ai_guides/api.md](../ai_guides/api.md)
|
package/docs/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Documentation Directory
|
|
2
|
+
> **⚠️ Note for AI Agents:**
|
|
3
|
+
>
|
|
4
|
+
> This directory contains auto-generated HTML documentation which is dense and difficult to parse effectively.
|
|
5
|
+
>
|
|
6
|
+
> **PLEASE IGNORE THE CONTENTS OF THIS DIRECTORY.**
|
|
7
|
+
>
|
|
8
|
+
> Instead, refer to the **ai_guides** directory in the package root. It contains high-quality, structured Markdown documentation specifically optimized for comprehension and retrieval.
|
|
9
|
+
>
|
|
10
|
+
> * **Go to Guides**: [../ai_guides/README.md](../ai_guides/README.md)
|
|
11
|
+
> * **Go to API Index**: [../ai_guides/api.md](../ai_guides/api.md)
|
package/docs/assets/hierarchy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
window.hierarchyData = "eJytWltP3DgU/
|
|
1
|
+
window.hierarchyData = "eJytWltP3DgU/i95dtn4nvDWUtpFgoIYxK5UoZWZMYNLLmwuFFTx31dOOjN2JjM5hn0BtZwv33cuPj6O8yuqyrKpo8PvmHCKcMw4ShKEBeUIS06QpDJFgicIS4IRJVwizmKGOGME8ZQxRFlKEaVMIixSgThGIomRZIQgSSRGjJEYcY7tD4FvUFTpu0zPG1MWdXT4K+Kx/VmoXEeH0SdV64usXZoiQtGDKRbRIUNRW2XRYZSXizbT9R+P3d/rg43twX2TZxGK5pmq6+gwaurFBwv+YJ9aP6q5jl5RxLFDNGtUo9cchIsViykaXd2p+ThRB9tJt8ZGKGoL82+rv6lcX6hKF12MeXyDovm9yRaVLqLD74LEAgkqYiRswIWUAomUJTevKEoSR+1RWTRVmWW6WkvGJFlJ7nSM690Ad4ru/2Ogi8ZI0IQgwW36BRdIJJgiGcfYisPCjeXX06svp6Va7Fe3zJq7D1lndrBBTMh6RRGT3OH6ppufZfUwa2/reWVu9T7GO/OkD4aAaUJBXOc+/lDP5499te4vl47OMQeUiWXjybZ7AYQ+AlSaXqa7fIrEXYTw4EKj6nEyaXuLwEgmvCt123XcHlC2xcIUy+sya/OpNdrJ8BGhMcAYU4QxTxEmcS8IY+oJen6LpudgWR01Tx3qS700ZRHOPoYDCiCxW5Czx3td6XABYzioAE4HO8Lxky4aUNBXxsE1QFKKMMUEYUowwpTG9odEuNvYqBAIU2l/JNYuxQizOEaYYYkwI/ymF+6m7quum7aCa3ftoZFK3Uid2L/Vet6AKX0EkJTGxCE9Kxf66F4VS7ijAwiUFg9psyuThbFuEFBSbyvoHhFGGERG4yHZbK6LQBc3EDCt3N6ALnVdttUczj2GgwpgroDz2x8hJeyYQ+k4c+guVFGCydbGUCohBlRX+jmoKQwxUGIpvE2kWOgKzOmYQ+kSOhytwWwb6/CebbdsGtuezVnXgWnqrte/yuqhBgvZWAO9ZrG7Xv++DG34PgJKiqVHOtN1bcoigNRFQEkJ90g3p4oA3gEISu2dNFbzxJmu7yeHU9d4eurHTA77wpGp5pkGcfnmADZO4p1sszIzi0DKDgPhFXwn71FbN2UeSNyDAMwCi7FhxQsvZFbZG2C/eAR1nT3J1VIHnKxc++DeJPpTvP3tSPjdygNE+Aio36m375Q1aGS3dsF+yph0fkpvKoS8Xdl0f6BX0hvG/Co8ceSBNtURaLDvTDJkFxSyq7mPAie7ajxI4TgyvAix6GV5TfSLeZo+2Vuj6UVNsTfhdAPops/3reGkMM3Hagmq9r0PgJUJxcmwj1cqV+9RNfUMoDDC5YiwU/Og/w9x+54TWjg2rcgG0lYP9efzi09nsB2xtwt5MWQ3+46Reeda+yTV6MqoDBSQjXmw3xxLRAXrVo39x7bfW0om/J+UsllLggmf76I0RXOUle0ihHUbBXjHyrxxxB6T6edJst4s6NWfoN2rEubvzNdG/zxVL8774z35XRvDlh0nqb/sKpXrRlfXKmuBu4WLCC0pTnm3Ndjf3pGsLrMnvQiXM44ExoLFbCwWq0IJj4mHDI4NSWUXG8bImCxbX7VuwlW5wDeL4jgenCWP2lvdDYXQ4+QaECyC4wRxEfPfSpKBkiAVUAUdlRgeoM9va109wZamax/sckL7hSJiPpBg0wmlt7ZAXxM6TPBqbW35vKsDjoGmuy1PvW5rR62LvlVOz2TWMKTj8lTEiKdpN6Xb+1pvodXAEWMP5650pv1IbPnd27SFemzMkz5tc1OoYg5zfBQFiXPq9pXjF/25zPWpWd43pliCmEcwgAtELNyLgJNG52eqfuivZK9eHjfFvPNuexsDu+O2N8pvvOUeoXzfbbcNQ3e5SLyFtuIZudOGCQTcafs3rNS7+T+vjC4aZc/TIRkZhQGTQr01EJKUcdZ35oXy/tKXJmRfXIITtOcJ0Ltw6S6cT2r+sKzsW7w3Ctr9AKAe4b34/J0BnT9mqtGwstnGAGvGn5BDamaE8p0FI/oLTvsdiHtKqJS9eymrl+DEjEGBKZFbdyofC5PrkKU8AgImRcq3dtcxzndmRQrRf7vhfaywJgpOyggSmJMkcY9Yn18KlZv5hWruT00RlJmdUGB+Uu9ta0h+djO/M0tJ0h0n7JdTUzEKztjEU2DZsx/puav6z8vj4/AvugawoNc+/VsfSb1max36qstcN9XLPhGZKfSBazw9n9lvGgdMM73MbcaCGIegEKett53XLE6H0f/HPpxMSnBsAT4zQkZ5Vk6E8K0xQR6zuBsH7Vdfg9PPSfGj/yDULripI0ml1bw52IZBqv319T+mF0D2"
|