@realsee/five 6.8.0-alpha.1 → 6.8.0-alpha.3
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 +67 -13
- package/ai_guides/README.md +113 -0
- package/ai_guides/ai-doc-guidelines.md +72 -0
- package/ai_guides/api.md +251 -0
- package/ai_guides/features/3dtile.md +264 -0
- package/ai_guides/features/camera-animation.md +184 -0
- package/ai_guides/features/clipper.md +133 -0
- package/ai_guides/features/coordnate-system.md +126 -0
- package/ai_guides/features/event.md +152 -0
- package/ai_guides/features/five.md +180 -0
- package/ai_guides/features/gesture.md +178 -0
- package/ai_guides/features/get-screen-pixels.md +180 -0
- package/ai_guides/features/image-options.md +161 -0
- package/ai_guides/features/load-external-model.md +329 -0
- package/ai_guides/features/mode.md +265 -0
- package/ai_guides/features/model.md +183 -0
- package/ai_guides/features/move-pano-effect.md +143 -0
- package/ai_guides/features/multi-work.md +144 -0
- package/ai_guides/features/pano-tile.md +139 -0
- package/ai_guides/features/parameter.md +178 -0
- package/ai_guides/features/postprocessing.md +224 -0
- package/ai_guides/features/raycast.md +164 -0
- package/ai_guides/features/request-proxy.md +110 -0
- package/ai_guides/features/screen-project.md +163 -0
- package/ai_guides/features/state.md +99 -0
- package/ai_guides/features/work.md +242 -0
- package/ai_guides/glossary.md +72 -0
- package/ai_guides/intro.md +23 -0
- package/ai_guides/plugin.md +206 -0
- package/ai_guides/quick-start.md +68 -0
- package/ai_guides/release_notes/6.6.md +86 -0
- package/{docs_markdown/documents → ai_guides}/release_notes/6.7.md +1 -7
- package/ai_guides/support.md +23 -0
- package/ai_guides/template.md +56 -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 +33 -19
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/five.AdaptiveLuminancePass.html +1 -1
- package/docs/classes/five.BoundingMesh.html +1 -1
- package/docs/classes/five.Camera.html +1 -1
- package/docs/classes/five.EyeDomeLightingPass.html +1 -1
- package/docs/classes/five.Five.html +14 -20
- package/docs/classes/five.FivePass.html +1 -1
- package/docs/classes/five.InternalWebGLRenderer.html +1 -1
- package/docs/classes/five.Model.html +2 -2
- package/docs/classes/five.ModelScene.html +1 -1
- package/docs/classes/five.NetworkSubscribe.html +2 -2
- package/docs/classes/five.PBMContainer.html +1 -1
- package/docs/classes/five.PBMGSObject.html +14 -12
- package/docs/classes/five.PBMGroup.html +1 -1
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PBMMeshMaterial.html +1 -1
- package/docs/classes/five.PBMPointCloud.html +1 -1
- package/docs/classes/five.PBMPointCloudMaterial.html +1 -1
- package/docs/classes/five.PBMSkinnedMesh.html +1 -1
- 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 +21 -19
- package/docs/classes/five.Scene.html +1 -1
- package/docs/classes/five.Subscribe.html +2 -2
- package/docs/classes/five.Tile3D.html +1 -1
- package/docs/classes/five.TileNode.html +1 -1
- package/docs/classes/five.TrajectoryNode.html +1 -1
- package/docs/classes/five.WorkResolvedObserver.html +2 -2
- 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.THREEGLTFLoader.html +1 -1
- 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.RoundedBoxGeometry.html +1 -1
- package/docs/classes/react.Store.html +1 -1
- package/docs/classes/sticker.Sticker.html +2 -2
- package/docs/classes/vfx.Airflow.html +1 -1
- package/docs/classes/vfx.Flame.html +1 -1
- package/docs/classes/vfx.Particle.html +1 -1
- package/docs/classes/vfx.ParticleGPU.html +1 -1
- package/docs/classes/vfx.SpotLight.html +1 -1
- package/docs/documents/README.html +130 -0
- package/docs/documents/ai-doc-guidelines.html +72 -0
- package/docs/documents/api.html +312 -0
- package/docs/documents/features_3dtile.html +119 -0
- package/docs/documents/features_camera-animation.html +100 -0
- package/docs/documents/features_clipper.html +77 -0
- package/docs/documents/features_coordnate-system.html +124 -0
- package/docs/documents/features_event.html +101 -0
- package/docs/documents/features_five.html +143 -0
- package/docs/documents/features_gesture.html +117 -0
- package/docs/documents/features_get-screen-pixels.html +85 -0
- package/docs/documents/features_image-options.html +105 -0
- package/docs/documents/features_load-external-model.html +577 -0
- package/docs/documents/features_mode.html +109 -0
- package/docs/documents/features_model.html +137 -0
- package/docs/documents/features_move-pano-effect.html +107 -0
- package/docs/documents/features_multi-work.html +94 -0
- package/docs/documents/features_pano-tile.html +85 -0
- package/docs/documents/features_parameter.html +81 -0
- package/docs/documents/features_postprocessing.html +92 -0
- package/docs/documents/features_raycast.html +95 -0
- package/docs/documents/features_request-proxy.html +75 -0
- package/docs/documents/features_screen-project.html +109 -0
- package/docs/documents/features_state.html +68 -0
- package/docs/documents/features_work.html +68 -0
- package/docs/documents/glossary.html +69 -0
- package/docs/documents/intro.html +24 -6
- package/docs/documents/plugin.html +60 -0
- package/docs/documents/quick-start.html +22 -45
- package/docs/documents/release_notes_6.6.html +79 -0
- package/docs/documents/release_notes_6.7.html +14 -14
- package/docs/documents/support.html +39 -15
- package/docs/documents/template.html +39 -0
- package/docs/functions/react.createFiveProvider.html +1 -1
- package/docs/functions/react.useFiveAction.html +6 -6
- 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.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.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.useFiveModelIntersectRaycaster.html +2 -2
- package/docs/functions/vue.useFiveProject2d.html +2 -2
- package/docs/functions/vue.useFiveState.html +1 -1
- package/docs/functions/vue.useFiveWorks.html +2 -2
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +127 -34
- package/docs/interfaces/five.AddableObject.html +1 -1
- package/docs/interfaces/five.AjaxOptions.html +1 -1
- package/docs/interfaces/five.BaseEvent.html +1 -1
- package/docs/interfaces/five.EventCallback.html +1 -1
- package/docs/interfaces/five.FiveInitArgs.html +2 -2
- package/docs/interfaces/five.GestureEvent.html +1 -1
- package/docs/interfaces/five.ImageOptions.html +1 -1
- package/docs/interfaces/five.IntersectEvent.html +1 -1
- package/docs/interfaces/five.IntersectMesh.html +1 -1
- package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/five.Intersection.html +1 -1
- package/docs/interfaces/five.LooseWorkWithExtrinsics.html +1 -1
- package/docs/interfaces/five.ModeChangeEvent.html +1 -1
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelEvent.html +1 -1
- package/docs/interfaces/five.ModelSceneEvent.html +1 -1
- package/docs/interfaces/five.MovePanoOptions.html +4 -4
- 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 +1 -1
- package/docs/interfaces/five.NetworkResponseError.html +1 -1
- package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/five.ObjectEvent.html +1 -1
- package/docs/interfaces/five.PBMMaterial.html +1 -1
- package/docs/interfaces/five.PBMMeshMaterialParameters.html +1 -1
- package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +1 -1
- package/docs/interfaces/five.PanoCircleMeshInterface.html +1 -1
- package/docs/interfaces/five.PanoEvent.html +1 -1
- package/docs/interfaces/five.PanoTextureEvent.html +1 -1
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ParameterMaterialValue.html +5 -3
- package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/five.ParameterValue.html +19 -17
- package/docs/interfaces/five.Pose.html +6 -7
- package/docs/interfaces/five.RenderEvent.html +1 -1
- package/docs/interfaces/five.ResolvedParameterValue.html +20 -18
- package/docs/interfaces/five.SplatData.html +10 -0
- package/docs/interfaces/five.State.html +6 -6
- package/docs/interfaces/five.StateEvent.html +1 -1
- package/docs/interfaces/five.TextureOptions.html +1 -1
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ViewLayer.html +1 -1
- package/docs/interfaces/five.WorkCubeImage.html +1 -1
- package/docs/interfaces/five.WorkImage.html +1 -1
- package/docs/interfaces/five.WorkObserver.html +2 -2
- package/docs/interfaces/five.WorkTile.html +1 -1
- package/docs/interfaces/five.WorksEvent.html +1 -1
- package/docs/interfaces/five.XRControllerEvent.html +1 -1
- package/docs/interfaces/five.XRGestureEvent.html +1 -1
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.XRSessionEvent.html +1 -1
- 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.DynamicPathLinePluginController.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +1 -1
- package/docs/interfaces/plugins.ItemMaskController.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.State.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginController.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
- package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
- package/docs/interfaces/plugins.TrajectoryController.html +1 -1
- package/docs/interfaces/react.FiveInjectionTypes.html +2 -2
- package/docs/media/five.ts +2881 -0
- package/docs/media/pass.ts +64 -0
- package/docs/modules/five.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/five.FivePlugin.html +1 -1
- package/docs/types/five.FivePluginInit.html +1 -1
- package/docs/types/five.FivePluginInstance.html +1 -1
- package/docs/types/five.ParseOptions.html +1 -1
- package/docs/types/plugins.BasePlugin.EventMap.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/index.d.ts +16 -24
- package/five/index.js +89 -54
- package/five/index.mjs +234 -77
- package/gltf-loader/index.js +3 -3
- package/gltf-loader/index.mjs +3 -3
- package/line/index.js +3 -3
- package/line/index.mjs +3 -3
- package/llms.txt +56 -0
- package/package.json +10 -1
- package/plugins/index.js +2 -2
- package/plugins/index.mjs +2 -2
- package/react/index.js +2 -2
- package/react/index.mjs +2 -2
- package/shader-lib/index.js +2 -2
- package/shader-lib/index.mjs +2 -2
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +3 -3
- package/umd/five-gltf-loader.js +3 -3
- package/umd/five-line.js +3 -3
- package/umd/five-plugins.js +2 -2
- package/umd/five-react.js +2 -2
- package/umd/five-shader-lib.js +2 -2
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +2 -2
- package/umd/five-vue.js +2 -2
- package/umd/five.js +89 -54
- package/vfx/index.js +2 -2
- package/vfx/index.mjs +2 -2
- package/vue/index.js +2 -2
- package/vue/index.mjs +2 -2
- package/work-downloader/index.js +2 -2
- package/work-downloader/index.mjs +2 -2
- package/docs/documents/coordinate.html +0 -13
- package/docs/documents/five.FivePlugin.plugins.html +0 -92
- package/docs/documents/five.Pose.coordinate.html +0 -13
- package/docs/documents/mode.html +0 -15
- package/docs/documents/plugins.html +0 -92
- package/docs/documents/state.html +0 -2
- package/docs/documents/work.html +0 -67
- package/docs/media/coordinate.jpg +0 -0
- package/docs_markdown/README.md +0 -33
- package/docs_markdown/_media/coordinate.jpg +0 -0
- package/docs_markdown/documents/coordinate.md +0 -29
- package/docs_markdown/documents/intro.md +0 -15
- package/docs_markdown/documents/mode.md +0 -21
- package/docs_markdown/documents/plugins.md +0 -226
- package/docs_markdown/documents/quick-start.md +0 -105
- package/docs_markdown/documents/state.md +0 -7
- package/docs_markdown/documents/support.md +0 -13
- package/docs_markdown/documents/work.md +0 -148
- package/docs_markdown/five/README.md +0 -309
- package/docs_markdown/five/classes/AdaptiveLuminancePass.md +0 -238
- package/docs_markdown/five/classes/AnimationFrameLoop.md +0 -195
- package/docs_markdown/five/classes/BoundingMesh.md +0 -75
- package/docs_markdown/five/classes/Camera.md +0 -527
- package/docs_markdown/five/classes/EffectComposer.md +0 -241
- package/docs_markdown/five/classes/EyeDomeLightingPass.md +0 -232
- package/docs_markdown/five/classes/Fetcher.md +0 -133
- package/docs_markdown/five/classes/Five.md +0 -2231
- package/docs_markdown/five/classes/FivePass.md +0 -193
- package/docs_markdown/five/classes/FiveRenderer.md +0 -107
- package/docs_markdown/five/classes/FullScreenQuad.md +0 -95
- package/docs_markdown/five/classes/InternalWebGLRenderer.md +0 -65
- package/docs_markdown/five/classes/Model.md +0 -1009
- package/docs_markdown/five/classes/ModelScene.md +0 -495
- package/docs_markdown/five/classes/Motion.md +0 -235
- package/docs_markdown/five/classes/NetworkSubscribe.md +0 -289
- package/docs_markdown/five/classes/PBMContainer.md +0 -137
- package/docs_markdown/five/classes/PBMCustomShader.md +0 -171
- package/docs_markdown/five/classes/PBMGSObject.md +0 -257
- package/docs_markdown/five/classes/PBMGroup.md +0 -35
- package/docs_markdown/five/classes/PBMMesh.md +0 -43
- package/docs_markdown/five/classes/PBMMeshMaterial.md +0 -889
- package/docs_markdown/five/classes/PBMPointCloud.md +0 -41
- package/docs_markdown/five/classes/PBMPointCloudMaterial.md +0 -371
- package/docs_markdown/five/classes/PBMSkinnedMesh.md +0 -67
- package/docs_markdown/five/classes/PanoCircleMesh.md +0 -296
- package/docs_markdown/five/classes/PanoCircleMeshCustom.md +0 -296
- package/docs_markdown/five/classes/PanoCircleMeshSolid.md +0 -296
- package/docs_markdown/five/classes/Parameter.md +0 -905
- package/docs_markdown/five/classes/Scene.md +0 -109
- package/docs_markdown/five/classes/Subscribe.md +0 -271
- package/docs_markdown/five/classes/TextureLoader.md +0 -199
- package/docs_markdown/five/classes/Tile.md +0 -517
- package/docs_markdown/five/classes/Tile3D.md +0 -1287
- package/docs_markdown/five/classes/TileCache.md +0 -123
- package/docs_markdown/five/classes/TileNode.md +0 -171
- package/docs_markdown/five/classes/TileRequestScheduler.md +0 -69
- package/docs_markdown/five/classes/Tileset.md +0 -379
- package/docs_markdown/five/classes/Trajectory.md +0 -111
- package/docs_markdown/five/classes/TrajectoryNode.md +0 -129
- package/docs_markdown/five/classes/Work.md +0 -299
- package/docs_markdown/five/classes/WorkResolvedObserver.md +0 -302
- package/docs_markdown/five/classes/XRButton.md +0 -37
- package/docs_markdown/five/enumerations/VolumePlaneIntersect.md +0 -33
- package/docs_markdown/five/functions/coordinatesToVector.md +0 -33
- package/docs_markdown/five/functions/createDebugBoundingMesh.md +0 -25
- package/docs_markdown/five/functions/createWorks.md +0 -21
- package/docs_markdown/five/functions/defaultImageURLTransform.md +0 -33
- package/docs_markdown/five/functions/getViewportScale.md +0 -15
- package/docs_markdown/five/functions/headingToLongitude.md +0 -29
- package/docs_markdown/five/functions/imageSupport.md +0 -15
- package/docs_markdown/five/functions/isBoundingVolume.md +0 -21
- package/docs_markdown/five/functions/isPanoId.md +0 -21
- package/docs_markdown/five/functions/loadAt3d.md +0 -47
- package/docs_markdown/five/functions/loadB3dm.md +0 -39
- package/docs_markdown/five/functions/loadDome.md +0 -43
- package/docs_markdown/five/functions/loadDomez.md +0 -43
- package/docs_markdown/five/functions/loadFbx.md +0 -35
- package/docs_markdown/five/functions/loadGltf.md +0 -39
- package/docs_markdown/five/functions/loadPbm.md +0 -47
- package/docs_markdown/five/functions/loadPly.md +0 -61
- package/docs_markdown/five/functions/loadPnts.md +0 -35
- package/docs_markdown/five/functions/loadSplat.md +0 -35
- package/docs_markdown/five/functions/loadSpz.md +0 -35
- package/docs_markdown/five/functions/loadX3p.md +0 -39
- package/docs_markdown/five/functions/longitudeToHeading.md +0 -29
- package/docs_markdown/five/functions/makeBoundingVolume.md +0 -21
- package/docs_markdown/five/functions/panoEqual.md +0 -25
- package/docs_markdown/five/functions/panoParse.md +0 -21
- package/docs_markdown/five/functions/panoStringify.md +0 -21
- package/docs_markdown/five/functions/parseWork.md +0 -33
- package/docs_markdown/five/functions/vectorToCoordinates.md +0 -31
- package/docs_markdown/five/functions/workToJson.md +0 -21
- package/docs_markdown/five/interfaces/AddableObject.md +0 -77
- package/docs_markdown/five/interfaces/AjaxOptions.md +0 -81
- package/docs_markdown/five/interfaces/AnimationFrame.md +0 -67
- package/docs_markdown/five/interfaces/AnimationFrameContext.md +0 -55
- package/docs_markdown/five/interfaces/BaseEvent.md +0 -60
- package/docs_markdown/five/interfaces/BoundingVolume.md +0 -241
- package/docs_markdown/five/interfaces/BoxBoundingVolume.md +0 -325
- package/docs_markdown/five/interfaces/CameraPose.md +0 -49
- package/docs_markdown/five/interfaces/CullingVolume.md +0 -141
- package/docs_markdown/five/interfaces/Draco.md +0 -219
- package/docs_markdown/five/interfaces/EventCallback.md +0 -3374
- package/docs_markdown/five/interfaces/FiveInitArgs.md +0 -435
- package/docs_markdown/five/interfaces/FiveLoadOptions.md +0 -71
- package/docs_markdown/five/interfaces/FloorplanControllerCustomInitArgs.md +0 -93
- package/docs_markdown/five/interfaces/GestureEvent.md +0 -233
- package/docs_markdown/five/interfaces/ImageOptions.md +0 -147
- package/docs_markdown/five/interfaces/ImageURLMappings.md +0 -13
- package/docs_markdown/five/interfaces/ImageURLOptions.md +0 -89
- package/docs_markdown/five/interfaces/IntersectEvent.md +0 -89
- package/docs_markdown/five/interfaces/IntersectMesh.md +0 -33
- package/docs_markdown/five/interfaces/IntersectMeshInterface.md +0 -27
- package/docs_markdown/five/interfaces/Intersection.md +0 -53
- package/docs_markdown/five/interfaces/KTX2.md +0 -131
- package/docs_markdown/five/interfaces/LoosePanoWork.md +0 -81
- package/docs_markdown/five/interfaces/LooseWork.md +0 -145
- package/docs_markdown/five/interfaces/LooseWorkInitial.md +0 -89
- package/docs_markdown/five/interfaces/LooseWorkModel.md +0 -113
- package/docs_markdown/five/interfaces/LooseWorkObserver.md +0 -153
- package/docs_markdown/five/interfaces/LooseWorkPanorama.md +0 -121
- package/docs_markdown/five/interfaces/LooseWorkVideo.md +0 -33
- package/docs_markdown/five/interfaces/LooseWorkWithExtrinsics.md +0 -93
- package/docs_markdown/five/interfaces/MapviewControllerCustomInitArgs.md +0 -96
- package/docs_markdown/five/interfaces/ModeChangeEvent.md +0 -105
- package/docs_markdown/five/interfaces/ModelControllerCustomInitArgs.md +0 -147
- package/docs_markdown/five/interfaces/ModelEvent.md +0 -89
- package/docs_markdown/five/interfaces/ModelOptions.md +0 -54
- package/docs_markdown/five/interfaces/ModelSceneEvent.md +0 -73
- package/docs_markdown/five/interfaces/MotionKeyframe.md +0 -39
- package/docs_markdown/five/interfaces/MovePanoOptions.md +0 -192
- package/docs_markdown/five/interfaces/NetworkAbortError.md +0 -13
- package/docs_markdown/five/interfaces/NetworkFirbiddenError.md +0 -13
- package/docs_markdown/five/interfaces/NetworkOptions.md +0 -53
- package/docs_markdown/five/interfaces/NetworkProxyError.md +0 -13
- package/docs_markdown/five/interfaces/NetworkResourceEvent.md +0 -97
- package/docs_markdown/five/interfaces/NetworkResponseError.md +0 -21
- package/docs_markdown/five/interfaces/NetworkTimeoutError.md +0 -13
- package/docs_markdown/five/interfaces/ObjectEvent.md +0 -73
- package/docs_markdown/five/interfaces/PBMClipperParameter.md +0 -25
- package/docs_markdown/five/interfaces/PBMCustomShaderInitArgs.md +0 -57
- package/docs_markdown/five/interfaces/PBMCustomShaderSlots.md +0 -53
- package/docs_markdown/five/interfaces/PBMMaterial.md +0 -18
- package/docs_markdown/five/interfaces/PBMMeshMaterialParameters.md +0 -221
- package/docs_markdown/five/interfaces/PBMPanoDepth.md +0 -49
- package/docs_markdown/five/interfaces/PBMPanoPicture.md +0 -59
- package/docs_markdown/five/interfaces/PBMPointCloudMaterialParameters.md +0 -221
- package/docs_markdown/five/interfaces/PBMRefinedScreen.md +0 -49
- package/docs_markdown/five/interfaces/PanoCircleMeshCustomOptions.md +0 -73
- package/docs_markdown/five/interfaces/PanoCircleMeshInterface.md +0 -222
- package/docs_markdown/five/interfaces/PanoCircleMeshOptions.md +0 -25
- package/docs_markdown/five/interfaces/PanoCircleMeshSolidOptions.md +0 -25
- package/docs_markdown/five/interfaces/PanoEvent.md +0 -121
- package/docs_markdown/five/interfaces/PanoTextureEvent.md +0 -97
- package/docs_markdown/five/interfaces/PanoramaControllerCustomInitArgs.md +0 -260
- package/docs_markdown/five/interfaces/PanoramaLikeControllerCustomInitArgs.md +0 -112
- package/docs_markdown/five/interfaces/ParameterMaterialValue.md +0 -363
- package/docs_markdown/five/interfaces/ParameterTilesetValue.md +0 -161
- package/docs_markdown/five/interfaces/ParameterValue.md +0 -715
- package/docs_markdown/five/interfaces/Pass.md +0 -100
- package/docs_markdown/five/interfaces/Pose.md +0 -69
- package/docs_markdown/five/interfaces/RegionBoundingVolume.md +0 -349
- package/docs_markdown/five/interfaces/RenderEvent.md +0 -73
- package/docs_markdown/five/interfaces/ResolvedParameterValue.md +0 -727
- package/docs_markdown/five/interfaces/SphereBoundingVolume.md +0 -317
- package/docs_markdown/five/interfaces/State.md +0 -123
- package/docs_markdown/five/interfaces/StateEvent.md +0 -87
- package/docs_markdown/five/interfaces/TextureOptions.md +0 -157
- package/docs_markdown/five/interfaces/Tile3DOptions.md +0 -83
- package/docs_markdown/five/interfaces/TileCoordinateSystem.md +0 -25
- package/docs_markdown/five/interfaces/TileHeader.md +0 -89
- package/docs_markdown/five/interfaces/TilesetHeader.md +0 -209
- package/docs_markdown/five/interfaces/TilesetOptions.md +0 -205
- package/docs_markdown/five/interfaces/TopviewControllerCustomInitArgs.md +0 -101
- package/docs_markdown/five/interfaces/TrajectoryHeader.md +0 -41
- package/docs_markdown/five/interfaces/VRPanoramaControllerCustomInitArgs.md +0 -264
- package/docs_markdown/five/interfaces/ViewLayer.md +0 -1505
- package/docs_markdown/five/interfaces/Viewport.md +0 -57
- package/docs_markdown/five/interfaces/WebXRAxesParams.md +0 -57
- package/docs_markdown/five/interfaces/WebXRControllerParams.md +0 -25
- package/docs_markdown/five/interfaces/WorkCubeImage.md +0 -86
- package/docs_markdown/five/interfaces/WorkImage.md +0 -117
- package/docs_markdown/five/interfaces/WorkInitial.md +0 -89
- package/docs_markdown/five/interfaces/WorkInitialJson.md +0 -65
- package/docs_markdown/five/interfaces/WorkJson.md +0 -89
- package/docs_markdown/five/interfaces/WorkModel.md +0 -113
- package/docs_markdown/five/interfaces/WorkModelJson.md +0 -49
- package/docs_markdown/five/interfaces/WorkModelLayer.md +0 -59
- package/docs_markdown/five/interfaces/WorkModelLayerJson.md +0 -41
- package/docs_markdown/five/interfaces/WorkObserver.md +0 -184
- package/docs_markdown/five/interfaces/WorkObserverJson.md +0 -97
- package/docs_markdown/five/interfaces/WorkPanoramaJson.md +0 -125
- package/docs_markdown/five/interfaces/WorkPanoramasJson.md +0 -25
- package/docs_markdown/five/interfaces/WorkTile.md +0 -115
- package/docs_markdown/five/interfaces/WorkVideo.md +0 -49
- package/docs_markdown/five/interfaces/WorksEvent.md +0 -89
- package/docs_markdown/five/interfaces/XRControllerEvent.md +0 -177
- package/docs_markdown/five/interfaces/XRGestureEvent.md +0 -125
- package/docs_markdown/five/interfaces/XRPanoramaControllerCustomInitArgs.md +0 -264
- package/docs_markdown/five/interfaces/XRSessionEvent.md +0 -81
- package/docs_markdown/five/interfaces/documents/coordinate.md +0 -29
- package/docs_markdown/five/type-aliases/AjaxResponseType.md +0 -11
- package/docs_markdown/five/type-aliases/AjaxResponseTypeMapping.md +0 -17
- package/docs_markdown/five/type-aliases/AnimationFrameLoopType.md +0 -11
- package/docs_markdown/five/type-aliases/BoundingVolumeJson.md +0 -11
- package/docs_markdown/five/type-aliases/BoxBoundingVolumeJson.md +0 -19
- package/docs_markdown/five/type-aliases/ControllerCustomInitTypes.md +0 -67
- package/docs_markdown/five/type-aliases/ControllerEventTypes.md +0 -669
- package/docs_markdown/five/type-aliases/CubeFace.md +0 -11
- package/docs_markdown/five/type-aliases/EventTypes.md +0 -381
- package/docs_markdown/five/type-aliases/FivePlugin.md +0 -31
- package/docs_markdown/five/type-aliases/FivePluginInit.md +0 -21
- package/docs_markdown/five/type-aliases/FivePluginInstance.md +0 -21
- package/docs_markdown/five/type-aliases/GestureTypes.md +0 -11
- package/docs_markdown/five/type-aliases/LegacyEventType.md +0 -1852
- package/docs_markdown/five/type-aliases/LoadResultType.md +0 -109
- package/docs_markdown/five/type-aliases/Mode.md +0 -19
- package/docs_markdown/five/type-aliases/Models.md +0 -121
- package/docs_markdown/five/type-aliases/MotionCircle.md +0 -13
- package/docs_markdown/five/type-aliases/MotionConfig.md +0 -17
- package/docs_markdown/five/type-aliases/MotionInitalValue.md +0 -17
- package/docs_markdown/five/type-aliases/MotionValue.md +0 -17
- package/docs_markdown/five/type-aliases/MovePanoEffect.md +0 -24
- package/docs_markdown/five/type-aliases/NetWorkMeta.md +0 -71
- package/docs_markdown/five/type-aliases/NetworkError.md +0 -11
- package/docs_markdown/five/type-aliases/NetworkErrorCallback.md +0 -21
- package/docs_markdown/five/type-aliases/NetworkProgressCallback.md +0 -21
- package/docs_markdown/five/type-aliases/NetworkResponse.md +0 -37
- package/docs_markdown/five/type-aliases/NetworkState.md +0 -11
- package/docs_markdown/five/type-aliases/NetworkSuccessCallback.md +0 -27
- package/docs_markdown/five/type-aliases/NetworkType.md +0 -11
- package/docs_markdown/five/type-aliases/PBMAlphaMode.md +0 -11
- package/docs_markdown/five/type-aliases/PBMColorStyle.md +0 -11
- package/docs_markdown/five/type-aliases/PBMFloorStyle.md +0 -11
- package/docs_markdown/five/type-aliases/PBMMeshShaderType.md +0 -11
- package/docs_markdown/five/type-aliases/PBMPointBack.md +0 -11
- package/docs_markdown/five/type-aliases/PBMPointCloudShaderType.md +0 -11
- package/docs_markdown/five/type-aliases/PBMPointShape.md +0 -11
- package/docs_markdown/five/type-aliases/PBMPointSize.md +0 -11
- package/docs_markdown/five/type-aliases/PBMTransition.md +0 -11
- package/docs_markdown/five/type-aliases/Pano.md +0 -27
- package/docs_markdown/five/type-aliases/PanoId.md +0 -11
- package/docs_markdown/five/type-aliases/ParseOptions.md +0 -65
- package/docs_markdown/five/type-aliases/PostProcessingType.md +0 -11
- package/docs_markdown/five/type-aliases/RegionBoundingVolumeJson.md +0 -19
- package/docs_markdown/five/type-aliases/RequestAnimationFrameArgs.md +0 -17
- package/docs_markdown/five/type-aliases/Scissor.md +0 -15
- package/docs_markdown/five/type-aliases/SphereBoundingVolumeJson.md +0 -19
- package/docs_markdown/five/type-aliases/SubscribeEventMap.md +0 -15
- package/docs_markdown/five/type-aliases/TileCacheOptions.md +0 -47
- package/docs_markdown/five/type-aliases/TileContentData.md +0 -51
- package/docs_markdown/five/type-aliases/TileRequestOrder.md +0 -11
- package/docs_markdown/five/type-aliases/TileRequestSchedulerOptions.md +0 -69
- package/docs_markdown/five/type-aliases/TilesetFrameState.md +0 -199
- package/docs_markdown/five/type-aliases/TrajectoryContentData.md +0 -59
- package/docs_markdown/five/type-aliases/WebXRControllerKey.md +0 -11
- package/docs_markdown/five/type-aliases/WebXRControllerType.md +0 -11
- package/docs_markdown/five/type-aliases/Works.md +0 -59
- package/docs_markdown/five/type-aliases/documents/plugins.md +0 -226
- package/docs_markdown/five/variables/PROXY_CONTROLLER_EVENT_NAMES.md +0 -11
- package/docs_markdown/five/variables/controllersDefaultInitArgs.md +0 -41
- package/docs_markdown/five/variables/draco.md +0 -11
- package/docs_markdown/five/variables/ktx2.md +0 -11
- package/docs_markdown/gltf-loader/README.md +0 -23
- package/docs_markdown/gltf-loader/classes/DDSLoader.md +0 -57
- package/docs_markdown/gltf-loader/classes/DRACOLoader.md +0 -143
- package/docs_markdown/gltf-loader/classes/GLTFLoader.md +0 -208
- package/docs_markdown/gltf-loader/classes/GLTFObject.md +0 -76
- package/docs_markdown/gltf-loader/classes/GLTFParser.md +0 -75
- package/docs_markdown/gltf-loader/classes/THREEGLTFLoader.md +0 -151
- package/docs_markdown/gltf-loader/interfaces/DDS.md +0 -57
- package/docs_markdown/gltf-loader/interfaces/GLTF.md +0 -98
- package/docs_markdown/gltf-loader/interfaces/GLTFReference.md +0 -25
- package/docs_markdown/gltf-loader/interfaces/THREEGLTF.md +0 -89
- package/docs_markdown/line/README.md +0 -20
- package/docs_markdown/line/classes/Line.md +0 -151
- package/docs_markdown/line/classes/LineGeometry.md +0 -273
- package/docs_markdown/line/classes/LineMaterial.md +0 -83
- package/docs_markdown/line/classes/LineSegmentsGeometry.md +0 -219
- package/docs_markdown/line/classes/THREE_Line2.md +0 -81
- package/docs_markdown/line/classes/THREE_LineSegments2.md +0 -81
- package/docs_markdown/line/type-aliases/LineMaterialParameters.md +0 -67
- package/docs_markdown/modules.md +0 -28
- package/docs_markdown/plugins/README.md +0 -43
- package/docs_markdown/plugins/classes/CSS3DRenderer.md +0 -93
- package/docs_markdown/plugins/classes/OrbitControls.md +0 -461
- package/docs_markdown/plugins/classes/RoundedBoxGeometry.md +0 -79
- package/docs_markdown/plugins/functions/BackgroundPlugin.md +0 -25
- package/docs_markdown/plugins/functions/DynamicPathLinePlugin.md +0 -25
- package/docs_markdown/plugins/functions/ItemMaskPlugin.md +0 -25
- package/docs_markdown/plugins/functions/OrientationPlugin.md +0 -25
- package/docs_markdown/plugins/functions/PanoAnimePlugin.md +0 -25
- package/docs_markdown/plugins/functions/TrajectoryPlugin.md +0 -25
- package/docs_markdown/plugins/interfaces/BackgroundPluginController.md +0 -313
- package/docs_markdown/plugins/interfaces/DynamicPathLinePluginController.md +0 -755
- package/docs_markdown/plugins/interfaces/ItemMaskController.md +0 -393
- package/docs_markdown/plugins/interfaces/Keyframe.md +0 -25
- package/docs_markdown/plugins/interfaces/OrientationPluginController.md +0 -491
- package/docs_markdown/plugins/interfaces/PanoAnimeController.md +0 -365
- package/docs_markdown/plugins/interfaces/PlayingState.md +0 -25
- package/docs_markdown/plugins/interfaces/TrajectoryController.md +0 -609
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/README.md +0 -25
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/enumerations/WarningCodeType.md +0 -17
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/interfaces/Config.md +0 -9
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/interfaces/EventMap.md +0 -205
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/interfaces/Params.md +0 -25
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/interfaces/PluginDataItem.md +0 -9
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/type-aliases/Mirror.md +0 -17
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/type-aliases/Mode.md +0 -11
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/type-aliases/PluginData.md +0 -11
- package/docs_markdown/plugins/namespaces/BackgroundPluginType/type-aliases/State.md +0 -19
- package/docs_markdown/plugins/namespaces/BasePlugin/README.md +0 -22
- package/docs_markdown/plugins/namespaces/BasePlugin/classes/Controller.md +0 -318
- package/docs_markdown/plugins/namespaces/BasePlugin/interfaces/BaseOptions.md +0 -19
- package/docs_markdown/plugins/namespaces/BasePlugin/interfaces/Config.md +0 -39
- package/docs_markdown/plugins/namespaces/BasePlugin/interfaces/State.md +0 -49
- package/docs_markdown/plugins/namespaces/BasePlugin/interfaces/StateChangeParams.md +0 -45
- package/docs_markdown/plugins/namespaces/BasePlugin/type-aliases/EventMap.md +0 -110
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/README.md +0 -20
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/interfaces/Config.md +0 -181
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/interfaces/EventMap.md +0 -261
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/interfaces/Params.md +0 -37
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/interfaces/PathConfig.md +0 -141
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/interfaces/State.md +0 -67
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/type-aliases/PluginData.md +0 -21
- package/docs_markdown/plugins/namespaces/DynamicPathLinePluginType/type-aliases/ServerData.md +0 -73
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/README.md +0 -21
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/Config.md +0 -11
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/EventMap.md +0 -109
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/ItemType.md +0 -121
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/MaskType.md +0 -33
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/Params.md +0 -27
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/interfaces/State.md +0 -87
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/type-aliases/PluginData.md +0 -27
- package/docs_markdown/plugins/namespaces/ItemMaskPluginType/type-aliases/ServerData.md +0 -27
- package/docs_markdown/plugins/namespaces/OrientationPluginType/README.md +0 -19
- package/docs_markdown/plugins/namespaces/OrientationPluginType/interfaces/Config.md +0 -27
- package/docs_markdown/plugins/namespaces/OrientationPluginType/interfaces/EventMap.md +0 -109
- package/docs_markdown/plugins/namespaces/OrientationPluginType/interfaces/Params.md +0 -27
- package/docs_markdown/plugins/namespaces/OrientationPluginType/interfaces/State.md +0 -67
- package/docs_markdown/plugins/namespaces/OrientationPluginType/type-aliases/PluginData.md +0 -11
- package/docs_markdown/plugins/namespaces/OrientationPluginType/type-aliases/ServerData.md +0 -11
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/README.md +0 -20
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/interfaces/Config.md +0 -19
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/interfaces/ConfigChangeEvent.md +0 -39
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/interfaces/EventMap.md +0 -157
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/interfaces/Params.md +0 -27
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/interfaces/State.md +0 -57
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/type-aliases/PluginData.md +0 -11
- package/docs_markdown/plugins/namespaces/PanoAnimePluginType/type-aliases/ServerData.md +0 -11
- package/docs_markdown/plugins/namespaces/PluginTemplateType/README.md +0 -19
- package/docs_markdown/plugins/namespaces/PluginTemplateType/interfaces/Config.md +0 -19
- package/docs_markdown/plugins/namespaces/PluginTemplateType/interfaces/EventMap.md +0 -109
- package/docs_markdown/plugins/namespaces/PluginTemplateType/interfaces/Params.md +0 -27
- package/docs_markdown/plugins/namespaces/PluginTemplateType/interfaces/State.md +0 -57
- package/docs_markdown/plugins/namespaces/PluginTemplateType/type-aliases/PluginData.md +0 -11
- package/docs_markdown/plugins/namespaces/PluginTemplateType/type-aliases/ServerData.md +0 -19
- package/docs_markdown/react/README.md +0 -58
- package/docs_markdown/react/classes/Store.md +0 -184
- package/docs_markdown/react/functions/createFiveFeature.md +0 -27
- package/docs_markdown/react/functions/createFiveProvider.md +0 -42
- package/docs_markdown/react/functions/createStore.md +0 -158
- package/docs_markdown/react/functions/unsafe__useFiveInstance.md +0 -27
- package/docs_markdown/react/functions/useFiveAction.md +0 -82
- package/docs_markdown/react/functions/useFiveCameraDirection.md +0 -19
- package/docs_markdown/react/functions/useFiveCameraRaycaster.md +0 -19
- package/docs_markdown/react/functions/useFiveCurrentObserver.md +0 -25
- package/docs_markdown/react/functions/useFiveCurrentState.md +0 -25
- package/docs_markdown/react/functions/useFiveEventCallback.md +0 -44
- package/docs_markdown/react/functions/useFiveFloor.md +0 -25
- package/docs_markdown/react/functions/useFiveHelper.md +0 -25
- package/docs_markdown/react/functions/useFiveModelIntersectRaycaster.md +0 -45
- package/docs_markdown/react/functions/useFiveModelReadyState.md +0 -20
- package/docs_markdown/react/functions/useFiveProject2d.md +0 -49
- package/docs_markdown/react/functions/useFiveSceneEffect.md +0 -39
- package/docs_markdown/react/functions/useFiveState.md +0 -15
- package/docs_markdown/react/functions/useFiveWork.md +0 -39
- package/docs_markdown/react/functions/withFive.md +0 -47
- package/docs_markdown/react/interfaces/FiveActionReactCallbacks.md +0 -270
- package/docs_markdown/react/interfaces/FiveCanvasProps.md +0 -29
- package/docs_markdown/react/interfaces/FiveInjectionTypes.md +0 -1075
- package/docs_markdown/react/interfaces/PropTypeOfFiveFeatures.md +0 -23
- package/docs_markdown/react/type-aliases/FiveInjectionActionFeature.md +0 -11
- package/docs_markdown/react/type-aliases/FiveInjectionDataFeature.md +0 -11
- package/docs_markdown/react/type-aliases/FiveInjectionFeature.md +0 -11
- package/docs_markdown/react/type-aliases/FiveProviderPropTypes.md +0 -139
- package/docs_markdown/react/type-aliases/FiveProviderType.md +0 -11
- package/docs_markdown/react/type-aliases/StoreActionMapHanlder.md +0 -25
- package/docs_markdown/react/type-aliases/StoreActionMapType.md +0 -15
- package/docs_markdown/react/type-aliases/StoreProviderType.md +0 -11
- package/docs_markdown/react/type-aliases/StoreValueMapType.md +0 -11
- package/docs_markdown/react/variables/FiveCanvas.md +0 -25
- package/docs_markdown/react/variables/INJECTION_PROPNAME.md +0 -11
- package/docs_markdown/react/variables/useFiveScene.md +0 -43
- package/docs_markdown/sticker/README.md +0 -15
- package/docs_markdown/sticker/classes/Sticker.md +0 -208
- package/docs_markdown/sticker/interfaces/IntersectionLike.md +0 -39
- package/docs_markdown/vfx/README.md +0 -27
- package/docs_markdown/vfx/classes/Airflow.md +0 -175
- package/docs_markdown/vfx/classes/Flame.md +0 -241
- package/docs_markdown/vfx/classes/Particle.md +0 -488
- package/docs_markdown/vfx/classes/ParticleGPU.md +0 -195
- package/docs_markdown/vfx/classes/SpotLight.md +0 -159
- package/docs_markdown/vfx/interfaces/ParticleArgs.md +0 -338
- package/docs_markdown/vfx/interfaces/ParticleGPUArgs.md +0 -301
- package/docs_markdown/vfx/interfaces/ParticleGPUTweenKeyframe.md +0 -31
- package/docs_markdown/vfx/interfaces/ParticleTweenKeyframe.md +0 -31
- package/docs_markdown/vfx/type-aliases/ParticleGPUType.md +0 -11
- package/docs_markdown/vfx/type-aliases/ParticleType.md +0 -11
- package/docs_markdown/vue/README.md +0 -42
- package/docs_markdown/vue/functions/unsafe__useFiveInject.md +0 -27
- package/docs_markdown/vue/functions/useFiveAction.md +0 -104
- package/docs_markdown/vue/functions/useFiveCameraDirection.md +0 -19
- package/docs_markdown/vue/functions/useFiveCameraRaycaster.md +0 -19
- package/docs_markdown/vue/functions/useFiveCurrentObserver.md +0 -25
- package/docs_markdown/vue/functions/useFiveCurrentState.md +0 -25
- package/docs_markdown/vue/functions/useFiveEventCallback.md +0 -40
- package/docs_markdown/vue/functions/useFiveFloor.md +0 -25
- package/docs_markdown/vue/functions/useFiveHelper.md +0 -25
- package/docs_markdown/vue/functions/useFiveModel.md +0 -17
- package/docs_markdown/vue/functions/useFiveModelBounding.md +0 -17
- package/docs_markdown/vue/functions/useFiveModelIntersectRaycaster.md +0 -35
- package/docs_markdown/vue/functions/useFiveModelReadyState.md +0 -20
- package/docs_markdown/vue/functions/useFiveProject2d.md +0 -38
- package/docs_markdown/vue/functions/useFiveScene.md +0 -17
- package/docs_markdown/vue/functions/useFiveState.md +0 -25
- package/docs_markdown/vue/functions/useFiveWorks.md +0 -39
- package/docs_markdown/vue/interfaces/FiveActionVueCallbacks.md +0 -301
- package/docs_markdown/vue/type-aliases/FiveModelIntersectRaycaster.md +0 -21
- package/docs_markdown/vue/type-aliases/FiveProviderComponent.md +0 -11
- package/docs_markdown/vue/type-aliases/Project2d.md +0 -25
- package/docs_markdown/vue/variables/FiveCanvas.md +0 -37
- package/docs_markdown/vue/variables/FiveProvider.md +0 -32
package/AI_CONTEXT.md
ADDED
package/README.md
CHANGED
|
@@ -4,26 +4,80 @@
|
|
|
4
4
|
|
|
5
5
|
贝壳如视三维渲染框架
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
> **🤖 For AI Assistants (Copilot, Cursor, etc.):**
|
|
8
|
+
> This package includes a **comprehensive local documentation suite** optimized for LLMs.
|
|
9
|
+
> Please **READ** `node_modules/@realsee/five/ai_guides/README.md` as your primary source of truth before searching the web.
|
|
10
|
+
> It contains the full API reference, feature guides, and best practices.
|
|
11
|
+
> This package is self-documented. Please refer to `llms.txt` and the `ai_guides/` directory for the most accurate and up-to-date information.
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
## Introduction
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
**Five** 是 [贝壳如视(realsee.com)](https://realsee.com) 提供的在浏览器中运行的三维空间渲染 Javascript SDK。基于 [Three.js](https://threejs.org/) 开发,帮助开发者在浏览器中构建高质量的 VR 看房与空间交互应用。
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
核心能力包括:
|
|
18
|
+
* **全景浏览**: 高分辨率全景图的高效加载与平滑浏览。
|
|
19
|
+
* **空间漫游**: 在三维模型中自由行走、跳转。
|
|
20
|
+
* **模型渲染**: 内置高效的模型加载策略 (3DTile)。
|
|
21
|
+
* **交互事件**: 完善的手势与射线检测系统。
|
|
14
22
|
|
|
15
|
-
##
|
|
23
|
+
## Installation
|
|
16
24
|
|
|
17
|
-
|
|
25
|
+
通过 npm 或 yarn 安装:
|
|
18
26
|
|
|
19
|
-
|
|
27
|
+
```bash
|
|
28
|
+
npm install three@^0.117.1 @realsee/five
|
|
29
|
+
# or
|
|
30
|
+
yarn add three@^0.117.1 @realsee/five
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **注意**: Five 依赖 `three`,目前推荐版本为 `0.117.1`。
|
|
34
|
+
|
|
35
|
+
## Quick Start
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import { Five, parseWork } from "@realsee/five";
|
|
39
|
+
|
|
40
|
+
// 1. 初始化
|
|
41
|
+
const five = new Five();
|
|
42
|
+
five.appendTo(document.getElementById('app'));
|
|
43
|
+
|
|
44
|
+
// 2. 加载数据
|
|
45
|
+
const workURL = 'https://raw.githubusercontent.com/realsee-developer/dnalogel/main/open-works/real/80o024DE2xyva3j5BE/work.json';
|
|
46
|
+
fetch(workURL).then(res => res.json()).then(json => {
|
|
47
|
+
five.load(parseWork(json));
|
|
48
|
+
});
|
|
20
49
|
|
|
21
|
-
|
|
22
|
-
|
|
50
|
+
// 3. 适配窗口
|
|
51
|
+
window.addEventListener('resize', () => five.refresh());
|
|
23
52
|
```
|
|
24
53
|
|
|
25
|
-
##
|
|
54
|
+
## Browser Support
|
|
55
|
+
|
|
56
|
+
| Browser | Version | Note |
|
|
57
|
+
| :--- | :--- | :--- |
|
|
58
|
+
| **Chrome** | >= 69 | |
|
|
59
|
+
| **Safari** | >= 9 | iOS Safari >= 9 |
|
|
60
|
+
| **Firefox** | >= 45 | |
|
|
61
|
+
| **Edge** | >= 13 | |
|
|
62
|
+
| **Android** | >= 93 | Chrome内核 |
|
|
63
|
+
|
|
64
|
+
## Documentation
|
|
65
|
+
|
|
66
|
+
For comprehensive guides and API references, please refer to the documentation included in this package:
|
|
67
|
+
- [Feature Guides](ai_guides/README.md)
|
|
68
|
+
- [API Reference](ai_guides/api.md)
|
|
69
|
+
|
|
70
|
+
**⚠️ Note for AI Agents:**
|
|
71
|
+
|
|
72
|
+
* **For a context-optimized index, read [llms.txt](./llms.txt).**
|
|
73
|
+
|
|
74
|
+
**Do's (推荐):**
|
|
75
|
+
* **Do** Read [Intro](ai_guides/intro.md) first to understand the high-level architecture.
|
|
76
|
+
* **Do** Use [API Reference](ai_guides/api.md) for checking method signatures and property types.
|
|
77
|
+
* **Do** Refer to `ai_guides/*.md` files for feature-specific implementation details.
|
|
78
|
+
* **Do** Prefer Markdown documentation over HTML files or raw code when understanding concepts.
|
|
26
79
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
80
|
+
**Don'ts (禁止):**
|
|
81
|
+
* **Don't** Index or read files in the `docs/` directory (auto-generated HTML). They are redundant and hard to parse.
|
|
82
|
+
* **Don't** Hallucinate API methods. Always verify against `api.md` or `.d.ts` files.
|
|
83
|
+
* **Don't** Assume legacy behavior. Check `ai_guides/release_notes/` if you encounter version discrepancies.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Five SDK Documentation
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@realsee/five)
|
|
4
|
+
|
|
5
|
+
- **Summary**: Five SDK 的文档索引与阅读指南,旨在帮助开发者与 AI 助手快速定位所需信息。
|
|
6
|
+
- **Audience**: 开发者、AI 辅助编程工具。
|
|
7
|
+
|
|
8
|
+
## Context for AI Agents
|
|
9
|
+
|
|
10
|
+
**Five** 是贝壳如视 (Realsee) 提供的三维空间渲染 SDK。
|
|
11
|
+
|
|
12
|
+
### 1. Documentation Maintenance (文档维护)
|
|
13
|
+
> [!IMPORTANT]
|
|
14
|
+
> Before writing or updating any documentation, YOU MUST READ [AI Documentation Guidelines](./ai-doc-guidelines.md).
|
|
15
|
+
> 在书写文档时,务必遵循 [AI Documentation Guidelines](./ai-doc-guidelines.md) 中的规范。
|
|
16
|
+
|
|
17
|
+
### 2. Application Development Strategy (应用开发建议)
|
|
18
|
+
当协助用户编写代码或构建 Five 应用时,请遵循以下阅读与检索策略:
|
|
19
|
+
|
|
20
|
+
* **Initialization (初始化)**:
|
|
21
|
+
* 阅读 [Quick Start](./quick-start.md) 掌握最小化启动流程。
|
|
22
|
+
* 查阅 [Parameter](./features/parameter.md) 获取 `new Five(config)` 的完整配置项(如 canvas 尺寸、资源路径、纹理压缩设置)。
|
|
23
|
+
* **Data Handling (数据加载)**:
|
|
24
|
+
* 核心 VR 数据:深入理解 [Work](./features/work.md) 结构,它是 Five 渲染的基础。
|
|
25
|
+
* 外部模型:参考 [Load External Model](./features/load-external-model.md) 加载 GLTF/OBJ 等格式。
|
|
26
|
+
* 多场景/沙盘:参考 [Multi-Work (Sandbox)](./features/multi-work.md) 处理复杂场景切换。
|
|
27
|
+
* **Interaction & Logic (交互逻辑)**:
|
|
28
|
+
* 事件监听:查阅 [Event](./features/event.md) 处理用户点击 (Tap)、手势 (Gesture) 及状态变更 (StateChange)。
|
|
29
|
+
* 空间操作:使用 [Raycast](./features/raycast.md) 实现物体拾取,使用 [Screen & Space Projection](./features/screen-project.md) 实现 3D 标签挂载。
|
|
30
|
+
* 动画控制:参考 [Camera Animation](./features/camera-animation.md) 和 [Move Pano Effect](./features/move-pano-effect.md) 实现平滑运镜。
|
|
31
|
+
* **State Management (状态管理)**:
|
|
32
|
+
* 保存/恢复场景:**必须** 深刻理解 [State](./features/state.md)。它是 Five 的核心快照机制,包含 Pose、Mode 和 PanoIndex。不要尝试手动管理零散的相机参数,应统一使用 State。
|
|
33
|
+
* **Coding Standards (代码规范)**:
|
|
34
|
+
* 优先使用 TypeScript 类型提示。
|
|
35
|
+
* 确保从 `@realsee/five` 导入核心类与类型 (e.g., `import { Five, Mode, Work, State } from "@realsee/five"`).
|
|
36
|
+
|
|
37
|
+
### 3. General Retrieval (通用检索)
|
|
38
|
+
* **API Signatures**: [API Reference](./api.md) 是最权威的接口定义来源,包含方法的参数与返回值。
|
|
39
|
+
* **Terminology**: 遇到不确定的术语 (e.g., Pose vs State, Observer) 时,务必查阅 [Glossary](./glossary.md)。
|
|
40
|
+
* **Core Relationships**: 理解 [Five](./features/five.md) (渲染器) 与 [Work](./features/work.md) (数据) 的分离设计。
|
|
41
|
+
|
|
42
|
+
## Documentation Map
|
|
43
|
+
|
|
44
|
+
### 1. Essential Reference (必读/速查)
|
|
45
|
+
最常用的入口文档。
|
|
46
|
+
|
|
47
|
+
* [Intro](./intro.md): Five SDK 简介与能力概览。
|
|
48
|
+
* [Quick Start](./quick-start.md): 快速集成指南。
|
|
49
|
+
* [API Reference](./api.md): **核心 API 索引** (Five 类, State, Events, Methods)。
|
|
50
|
+
* [Glossary](./glossary.md): **术语表** (Work, Observer, Pose, etc.)。
|
|
51
|
+
|
|
52
|
+
### 2. Core Concepts (核心概念)
|
|
53
|
+
基础架构与生命周期管理。
|
|
54
|
+
|
|
55
|
+
* [Five](./features/five.md): 核心类 `Five`,管理渲染循环与全局状态。
|
|
56
|
+
* [Work](./features/work.md): 数据载体,描述三维空间的数据结构 (VR 看房数据)。
|
|
57
|
+
* [Mode](./features/mode.md): 五种核心浏览模式 (Panorama, Floorplan, Topview, Model, Map)。
|
|
58
|
+
* [State](./features/state.md): 状态管理 (Pose, Mode, PanoIndex),用于复原场景。
|
|
59
|
+
* [Coordinate System](./features/coordnate-system.md): 坐标系定义 (右手坐标系, Y轴向上)。
|
|
60
|
+
|
|
61
|
+
### 3. Data & Resource (数据与资源)
|
|
62
|
+
数据加载与资源管理配置。
|
|
63
|
+
|
|
64
|
+
* [Load External Model](./features/load-external-model.md): 加载外部 3D 模型 (GLTF, OBJ 等)。
|
|
65
|
+
* [Multi-Work (Sandbox)](./features/multi-work.md): 多 Work 加载与沙盘场景管理。
|
|
66
|
+
* [Request Proxy](./features/request-proxy.md): 请求拦截与代理 (CDN 替换、鉴权)。
|
|
67
|
+
* [Image Options](./features/image-options.md): 图片资源配置 (CDN, 格式, 尺寸)。
|
|
68
|
+
|
|
69
|
+
### 4. Rendering & Visuals (渲染与视觉)
|
|
70
|
+
画面表现与渲染管线配置。
|
|
71
|
+
|
|
72
|
+
* [Pano Tile](./features/pano-tile.md): 全景瓦片渲染机制(高分辨率分片加载)。
|
|
73
|
+
* [Model](./features/model.md): 内置模型渲染 (Mesh/Geometry)。
|
|
74
|
+
* [Postprocessing](./features/postprocessing.md): 后处理效果 (Pass, EffectComposer)。
|
|
75
|
+
* [Get Screen Pixels](./features/get-screen-pixels.md): 获取屏幕像素 (放大镜/截图)。
|
|
76
|
+
* [Move Pano Effect](./features/move-pano-effect.md): 全景点位切换的过渡效果。
|
|
77
|
+
* [Clipper](./features/clipper.md): 模型裁切功能 (房屋剖面)。
|
|
78
|
+
* [3D Tile](./features/3dtile.md): 大场景 3D Tile 渲染策略。
|
|
79
|
+
|
|
80
|
+
### 5. Interaction & Control (交互与控制)
|
|
81
|
+
用户输入与相机控制。
|
|
82
|
+
|
|
83
|
+
* [Event](./features/event.md): 事件系统 (Tap, Gesture, StateChange)。
|
|
84
|
+
* [Gesture](./features/gesture.md): 手势交互详解。
|
|
85
|
+
* [Screen & Space Projection](./features/screen-project.md): 屏幕坐标与空间坐标转换 (标签/射线)。
|
|
86
|
+
* [Raycast](./features/raycast.md): 射线检测 (点击拾取物体)。
|
|
87
|
+
* [Camera Animation](./features/camera-animation.md): 相机动画控制 API。
|
|
88
|
+
|
|
89
|
+
### 6. Advanced & Extensions (进阶与扩展)
|
|
90
|
+
复杂配置与功能扩展。
|
|
91
|
+
|
|
92
|
+
* [Plugin](./plugin.md): 插件开发指南。
|
|
93
|
+
* [Parameter](./features/parameter.md): Five 初始化详细参数配置。
|
|
94
|
+
|
|
95
|
+
### 7. Meta & Support (其他)
|
|
96
|
+
* [Support](./support.md): 浏览器兼容性。
|
|
97
|
+
* [AI Documentation Guidelines](./ai-doc-guidelines.md): AI 文档编写与维护规范 (必读)。
|
|
98
|
+
* Release Notes: 版本更新记录。
|
|
99
|
+
* [6.7](./release_notes/6.7.md)
|
|
100
|
+
* [6.6](./release_notes/6.6.md)
|
|
101
|
+
|
|
102
|
+
## Terminology Summary
|
|
103
|
+
|
|
104
|
+
* **Work**: 包含全景图、模型、户型数据的 JSON 对象。
|
|
105
|
+
* **Observer**: 观察点,通常对应一个全景拍摄点位。
|
|
106
|
+
* **PanoIndex**: 全景点位的索引下标。
|
|
107
|
+
* **Pose**: 相机位姿 (Longitude, Latitude, Fov)。
|
|
108
|
+
* **Mode**: 浏览模式 (Panorama, Model, etc.)。
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
```yaml
|
|
112
|
+
tags: [index, readme, guide, map]
|
|
113
|
+
```
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<!-- AI-friendly guide template for `ai_guides/` -->
|
|
2
|
+
# AI 文档与维护指南 (AI Documentation & Maintenance Guide)
|
|
3
|
+
|
|
4
|
+
## Summary
|
|
5
|
+
本文档包含两部分内容:
|
|
6
|
+
1. **Writing Guide**: 供 AI 和人类编写新文档时的标准模板与风格规范。
|
|
7
|
+
2. **Maintenance Guide**: 供 AI 维护者进行文档更新、同步与体检的操作指南。
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Part 1: Writing Guide (编写指南)
|
|
12
|
+
|
|
13
|
+
## 目的
|
|
14
|
+
提供统一、结构化的 Markdown 模板,便于 AI 自动解析、索引与生成功能性示例。
|
|
15
|
+
|
|
16
|
+
## 建议风格
|
|
17
|
+
- 使用中文为主,代码示例使用 TypeScript。
|
|
18
|
+
- **受众意识**: 文档面向 SDK 的**外部使用者**。避免暴露无用的内部实现细节(如私有属性、临时状态),除非对调试有帮助。
|
|
19
|
+
- **结构规范**: 严格使用二级标题 (`##`) 作为主要段落分割(如 `## Schema`, `## Concepts`),避免使用中文标题(如 `## 格式说明`)。
|
|
20
|
+
- **代码缩进**: 强制使用 **两个空格** 缩进。
|
|
21
|
+
- **相对路径**: 内部文档链接必须使用 **相对路径**(如 `./state.md`)。
|
|
22
|
+
- **Schema**: 必须提供 TypeScript Interface 定义,并保留关键字段的注释(JSDoc)。
|
|
23
|
+
- **Metadata**: 结尾必须包含 YAML 格式的 `tags`。
|
|
24
|
+
|
|
25
|
+
## 标准模板结构 (Standard Template Structure)
|
|
26
|
+
|
|
27
|
+
新建文档时,请参考独立模板文件:[template.md](./template.md)。
|
|
28
|
+
|
|
29
|
+
请严格遵循该模板的结构,以保证文档风格一致性。
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
# Part 2: Maintenance Guide (维护指南)
|
|
34
|
+
|
|
35
|
+
## 核心原则 (Core Principles)
|
|
36
|
+
为了防止文档与代码脱节,我们遵循 **“代码变更驱动文档更新”** 的原则。
|
|
37
|
+
|
|
38
|
+
## 1. 语义化检索 (Semantic Retrieval)
|
|
39
|
+
不再维护硬编码的“源码-文档”映射表。AI 维护者在修改代码后,应利用自身的语义搜索能力(如 `SearchCodebase` 或 `Grep`)来定位需要更新的文档。
|
|
40
|
+
|
|
41
|
+
**推荐策略**:
|
|
42
|
+
- 搜索**类名/方法名**: 如修改了 `five.load`,搜索 `five.load` 或 `load`。
|
|
43
|
+
- 搜索**概念关键词**: 如修改了射线检测逻辑,搜索 `Raycast` 或 `project2d`。
|
|
44
|
+
|
|
45
|
+
## 2. 单一事实来源 (Single Source of Truth)
|
|
46
|
+
- **API 签名**: 以 `package/five/index.d.ts` 和代码中的 TSDoc 为准。
|
|
47
|
+
- **ai_guides/api.md**: 仅作为 **索引 (Index)** 和 **摘要 (Summary)**。不要试图复制所有参数细节,除非是核心参数。
|
|
48
|
+
- **ai_guides/features/*.md**: 重点解释 **“为什么”** 和 **“怎么用”**,避免机械复制类型定义。
|
|
49
|
+
|
|
50
|
+
## 3. 维护工作流 (Maintenance Workflow)
|
|
51
|
+
|
|
52
|
+
### 场景 A:代码功能迭代后 (Post-Coding)
|
|
53
|
+
当修改了 SDK 源码后,请执行以下检查:
|
|
54
|
+
1. **反向查找**: 利用工具搜索关键词(API 名称、Feature 名称),找到 `ai_guides/` 下相关的文档。
|
|
55
|
+
2. **更新文档**:
|
|
56
|
+
* 如果修改了 API 签名 -> 更新对应的 `Schema` 和 `Examples`。
|
|
57
|
+
* 如果废弃了功能 -> 在文档中添加 `> [!WARNING] Deprecated` 提示。
|
|
58
|
+
3. **更新索引**: 如果是新功能,确保将其添加到 `ai_guides/README.md` 的合适章节中。
|
|
59
|
+
|
|
60
|
+
### 场景 B:API 文档同步 (Sync API Doc)
|
|
61
|
+
定期检查 `ai_guides/api.md` 的完整性:
|
|
62
|
+
1. 读取 `package/five/index.d.ts` 获取最新公开 API。
|
|
63
|
+
2. 对比 `ai_guides/api.md`,找出缺失的高频 API 或已删除的 API。
|
|
64
|
+
3. **注意**: 只收录高频/核心 API,低频 API 应引导用户查看源码或专门的 Feature 文档。
|
|
65
|
+
|
|
66
|
+
## 目录结构说明
|
|
67
|
+
- `ai_guides/`: 文档根目录。
|
|
68
|
+
- `ai_guides/features/`: 功能性文档 (Features)。
|
|
69
|
+
- `ai_guides/release_notes/`: 版本更新记录。
|
|
70
|
+
- `ai_guides/api.md`: 核心 API 索引。
|
|
71
|
+
- `ai_guides/README.md`: 文档总索引。
|
|
72
|
+
- `package/five/index.d.ts`: **API 签名的真理来源**。
|
package/ai_guides/api.md
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# Five SDK API Reference
|
|
2
|
+
|
|
3
|
+
This document provides a summary of the core API for the Five SDK, designed to be easily understood by AI assistants.
|
|
4
|
+
|
|
5
|
+
## Core Class: `Five`
|
|
6
|
+
|
|
7
|
+
The `Five` class is the main entry point for the SDK. It manages the rendering, state, and interaction of the 3D scene.
|
|
8
|
+
|
|
9
|
+
### Constructor
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
const five = new Five(initArgs?: FiveInitArgs);
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Properties
|
|
16
|
+
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| :--- | :--- | :--- |
|
|
19
|
+
| `five.state` | `State` | The current state (mode, position, etc.) of the instance. |
|
|
20
|
+
| `five.currentMode` | `Mode` | Shortcut to get the current display mode. |
|
|
21
|
+
| `five.panoIndex` | `number` | Shortcut to get the current panorama index. |
|
|
22
|
+
| `five.work` | `Work` | The currently loaded work data. |
|
|
23
|
+
| `five.model` | `Model` | The 3D model object. |
|
|
24
|
+
| `five.scene` | `THREE.Scene` | The Three.js scene used for non-model elements. |
|
|
25
|
+
| `five.modelScene` | `ModelScene` | The Three.js scene used for the model. |
|
|
26
|
+
| `five.camera` | `Camera` | The internal camera. |
|
|
27
|
+
| `five.renderer` | `THREE.WebGLRenderer` | The WebGL renderer. |
|
|
28
|
+
| `five.needsRender` | `boolean` | Set to `true` to request a render frame in the next loop. |
|
|
29
|
+
| `five.plugins` | `Object` | Access to registered plugins. |
|
|
30
|
+
|
|
31
|
+
### Static Properties
|
|
32
|
+
|
|
33
|
+
| Property | Type | Description |
|
|
34
|
+
| :--- | :--- | :--- |
|
|
35
|
+
| `Five.Mode` | `Enum` | Available modes: `Panorama`, `Model`, `Floorplan`, `Topview`, `Mapview`, `VRPanorama`, `XRPanorama`. |
|
|
36
|
+
|
|
37
|
+
## Initialization Configuration (`FiveInitArgs`)
|
|
38
|
+
|
|
39
|
+
Configuration object passed to the `Five` constructor.
|
|
40
|
+
|
|
41
|
+
```typescript
|
|
42
|
+
interface FiveInitArgs {
|
|
43
|
+
/** External WebGLRenderer. If provided, internal renderer creation is skipped. */
|
|
44
|
+
renderer?: THREE.WebGLRenderer;
|
|
45
|
+
|
|
46
|
+
/** Width/Height of the viewport relative to container (0-1). */
|
|
47
|
+
viewport?: { left: number; bottom: number; width: number; height: number };
|
|
48
|
+
|
|
49
|
+
/** Canvas background color. Default: 0x181A1C */
|
|
50
|
+
backgroundColor?: number | THREE.Color;
|
|
51
|
+
|
|
52
|
+
/** Canvas background alpha (0-1). Default: 1 */
|
|
53
|
+
backgroundAlpha?: number;
|
|
54
|
+
|
|
55
|
+
/** Enable antialiasing. Default: false */
|
|
56
|
+
antialias?: boolean;
|
|
57
|
+
|
|
58
|
+
/** Auto-play rendering loop. Default: true */
|
|
59
|
+
play?: boolean;
|
|
60
|
+
|
|
61
|
+
/** Enable on-demand rendering to save battery. Default: true */
|
|
62
|
+
onlyRenderIfNeeds?: boolean;
|
|
63
|
+
|
|
64
|
+
/** Max FPS limit. false = unlimited. Default: false */
|
|
65
|
+
maxFps?: number | false;
|
|
66
|
+
|
|
67
|
+
/** Mode transition duration in ms. Default: 800 */
|
|
68
|
+
modeChangeDuration?: number;
|
|
69
|
+
|
|
70
|
+
/** Initial plugins to load. */
|
|
71
|
+
plugins?: FivePlugin[];
|
|
72
|
+
|
|
73
|
+
/** Dynamic image configuration for optimization. */
|
|
74
|
+
imageOptions?: ImageOptions;
|
|
75
|
+
|
|
76
|
+
/** Dynamic texture configuration for optimization. */
|
|
77
|
+
textureOptions?: TextureOptions;
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Core Methods
|
|
82
|
+
|
|
83
|
+
### `load(work, state?, options?)`
|
|
84
|
+
Loads a "Work" (dataset) into the Five instance.
|
|
85
|
+
|
|
86
|
+
- **work**: The data object containing scene information (panorama, model, etc.).
|
|
87
|
+
- **state**: Initial state overrides. `"inherit"`, `"initial"`, or a `State` object.
|
|
88
|
+
- **options**: Loading options (e.g., transition duration).
|
|
89
|
+
|
|
90
|
+
### `appendTo(element, size?)`
|
|
91
|
+
Mounts the Five canvas to a DOM element.
|
|
92
|
+
|
|
93
|
+
- **element**: HTMLElement to append to.
|
|
94
|
+
- **size**: Optional `{ width, height }`. Defaults to element size.
|
|
95
|
+
|
|
96
|
+
### `setState(state, immediately?, userAction?)`
|
|
97
|
+
Updates the current state (position, mode, etc.).
|
|
98
|
+
|
|
99
|
+
- **state**: Partial `State` object to merge.
|
|
100
|
+
- **immediately**: If `true`, skips animation.
|
|
101
|
+
- **userAction**: Marks the change as triggered by user interaction.
|
|
102
|
+
|
|
103
|
+
### `changeMode(mode, state?, options?)`
|
|
104
|
+
Switches the viewing mode (e.g., from `Panorama` to `Model`).
|
|
105
|
+
|
|
106
|
+
- **mode**: Target `Five.Mode`.
|
|
107
|
+
- **state**: Target state after mode change.
|
|
108
|
+
- **options**: Animation duration and effect.
|
|
109
|
+
|
|
110
|
+
### `moveToPano(panoIndex, options?)`
|
|
111
|
+
Moves to a specific panorama spot.
|
|
112
|
+
|
|
113
|
+
- **panoIndex**: Index of the panorama.
|
|
114
|
+
- **options**: `{ effect?: MovePanoEffect, duration?: number }`.
|
|
115
|
+
|
|
116
|
+
### `refresh(size?)`
|
|
117
|
+
Resizes the renderer to fit the container or specified size.
|
|
118
|
+
|
|
119
|
+
### `getElement()`
|
|
120
|
+
Returns the `<canvas>` element used by Five.
|
|
121
|
+
|
|
122
|
+
### `project2d(vector, testModel?)`
|
|
123
|
+
Projects a 3D point to 2D screen coordinates.
|
|
124
|
+
|
|
125
|
+
- **vector**: `THREE.Vector3` (World Space).
|
|
126
|
+
- **testModel**: `boolean` (default `false`). If `true`, checks for occlusion.
|
|
127
|
+
- **returns**: `THREE.Vector2` (Screen Space, px) or `null`.
|
|
128
|
+
|
|
129
|
+
### `getPixels(x, y, width, height)`
|
|
130
|
+
Get pixel data from the renderer (e.g. for color picking or magnifier).
|
|
131
|
+
|
|
132
|
+
- **x, y**: Coordinate of the lower-left corner (Screen Space).
|
|
133
|
+
- **width, height**: Size of the rectangle.
|
|
134
|
+
- **returns**: `Uint8Array` (RGBA data).
|
|
135
|
+
|
|
136
|
+
### `intersectRaycaster(raycaster)`
|
|
137
|
+
(On `five.model`) Performs raycasting against the scene models.
|
|
138
|
+
|
|
139
|
+
- **raycaster**: `THREE.Raycaster`.
|
|
140
|
+
- **returns**: `THREE.Intersection[]`.
|
|
141
|
+
|
|
142
|
+
### `dispose()`
|
|
143
|
+
Destroys the Five instance and releases resources.
|
|
144
|
+
|
|
145
|
+
## State Management
|
|
146
|
+
|
|
147
|
+
The `State` interface defines the complete status of the Five instance at any moment.
|
|
148
|
+
|
|
149
|
+
```typescript
|
|
150
|
+
interface State {
|
|
151
|
+
mode: Mode; // Current view mode
|
|
152
|
+
panoIndex: number; // Current panorama index
|
|
153
|
+
workCode: string; // ID of the current work
|
|
154
|
+
latitude: number; // Camera latitude (radians)
|
|
155
|
+
longitude: number; // Camera longitude (radians)
|
|
156
|
+
distance: number; // Camera distance from target
|
|
157
|
+
fov: number; // Field of view
|
|
158
|
+
offset: THREE.Vector3; // Camera target offset
|
|
159
|
+
}
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## Data Structures
|
|
163
|
+
|
|
164
|
+
### `Work`
|
|
165
|
+
The main data object containing the scene description.
|
|
166
|
+
|
|
167
|
+
```typescript
|
|
168
|
+
interface Work {
|
|
169
|
+
workCode: string; // Unique identifier
|
|
170
|
+
name: string; // Project name
|
|
171
|
+
observers: WorkObserver[]; // List of panorama points
|
|
172
|
+
model: WorkModel; // 3D model data
|
|
173
|
+
initial: WorkInitial; // Initial view state
|
|
174
|
+
transform: THREE.Matrix4; // World transform matrix
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### `WorkObserver` (Panorama Point)
|
|
179
|
+
Represents a single panorama spot.
|
|
180
|
+
|
|
181
|
+
```typescript
|
|
182
|
+
interface WorkObserver {
|
|
183
|
+
index: number; // Index in the list
|
|
184
|
+
floorIndex: number; // Floor number
|
|
185
|
+
position: THREE.Vector3; // Position in 3D space
|
|
186
|
+
quaternion: THREE.Quaternion; // Rotation relative to model
|
|
187
|
+
accessibleNodes: number[]; // Indices of reachable points
|
|
188
|
+
images: WorkImage; // Panorama image URLs
|
|
189
|
+
active: boolean; // Whether the point is enabled
|
|
190
|
+
}
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Events
|
|
194
|
+
|
|
195
|
+
`Five` extends `Subscribe`, allowing event listening via `.on()`, `.once()`, and `.off()`.
|
|
196
|
+
|
|
197
|
+
The SDK provides a modern event system (dot-notation, e.g., `gesture.tap`) which is recommended over the legacy system (camelCase, e.g., `wantsTapGesture`).
|
|
198
|
+
|
|
199
|
+
### Recommended Events (Modern)
|
|
200
|
+
|
|
201
|
+
These events follow a standard naming convention and provide typed event objects.
|
|
202
|
+
|
|
203
|
+
#### Interaction & Gestures
|
|
204
|
+
|
|
205
|
+
| Event Name | Description | Payload |
|
|
206
|
+
| :--- | :--- | :--- |
|
|
207
|
+
| `gesture.tap` | Triggered on tap/click. Replaces `wantsTapGesture`. | `{ pointers, event, ... }` |
|
|
208
|
+
| `gesture.pan` | Triggered on pan/drag. | `{ pointers, ... }` |
|
|
209
|
+
| `gesture.pinch` | Triggered on pinch/zoom. | `{ scale, ... }` |
|
|
210
|
+
| `gesture.press` | Triggered on long press. | `{ pointers, ... }` |
|
|
211
|
+
|
|
212
|
+
#### State & Mode
|
|
213
|
+
|
|
214
|
+
| Event Name | Description | Payload |
|
|
215
|
+
| :--- | :--- | :--- |
|
|
216
|
+
| `mode.change` | Triggered when mode changes. | `ModeChangeEvent` |
|
|
217
|
+
| `state.change` | Triggered when state changes (frequent). | `StateEvent` |
|
|
218
|
+
| `camera.update` | Triggered when camera pose updates. | `CameraEvent` |
|
|
219
|
+
|
|
220
|
+
#### Lifecycle & Resources
|
|
221
|
+
|
|
222
|
+
| Event Name | Description | Payload |
|
|
223
|
+
| :--- | :--- | :--- |
|
|
224
|
+
| `works.load` | Triggered when work data starts loading. | `WorksEvent` |
|
|
225
|
+
| `models.load` | Triggered when models are loaded. | `ModelSceneEvent` |
|
|
226
|
+
| `pano.arrived` | Triggered when arrival at a panorama node. | `PanoEvent` |
|
|
227
|
+
| `render` | Triggered after each render frame. | `RenderEvent` |
|
|
228
|
+
| `error` | Triggered on internal errors. | `Error` |
|
|
229
|
+
|
|
230
|
+
### Legacy Events (Deprecated)
|
|
231
|
+
|
|
232
|
+
Older events are still supported for compatibility but should be avoided in new code.
|
|
233
|
+
|
|
234
|
+
| Legacy Event | Recommended Replacement | Notes |
|
|
235
|
+
| :--- | :--- | :--- |
|
|
236
|
+
| `wantsTapGesture` | `gesture.tap` | |
|
|
237
|
+
| `wantsPanGesture` | `gesture.pan` | |
|
|
238
|
+
| `modelLoaded` | `models.load` | |
|
|
239
|
+
| `initAnimationEnded` | `mode.change` | Check payload for details |
|
|
240
|
+
|
|
241
|
+
### Usage Example
|
|
242
|
+
|
|
243
|
+
```typescript
|
|
244
|
+
// Recommended: Use the new event system
|
|
245
|
+
five.on('gesture.tap', (event) => {
|
|
246
|
+
console.log('User tapped at:', event);
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
// Legacy (Avoid):
|
|
250
|
+
// five.on('wantsTapGesture', (raycaster) => { ... });
|
|
251
|
+
```
|