@realsee/five 6.8.0-alpha.2 → 6.8.0-alpha.21
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 +9 -6
- package/{guides → ai_guides}/README.md +12 -2
- package/ai_guides/ai-doc-guidelines.md +102 -0
- package/{guides → ai_guides}/api.md +24 -1
- package/ai_guides/features/3dtile.md +172 -0
- package/{guides → ai_guides}/features/camera-animation.md +24 -3
- package/{guides → ai_guides}/features/clipper.md +2 -0
- package/{guides/features/coordnate-system.md → ai_guides/features/coordinate-system.md} +2 -0
- package/{guides → ai_guides}/features/event.md +2 -0
- package/{guides → ai_guides}/features/five.md +4 -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/{guides → ai_guides}/features/gesture.md +3 -0
- package/{guides → ai_guides}/features/get-screen-pixels.md +2 -0
- package/{guides → ai_guides}/features/image-options.md +3 -0
- package/{guides → ai_guides}/features/load-external-model.md +21 -0
- package/ai_guides/features/load-progress.md +140 -0
- package/ai_guides/features/material.md +153 -0
- package/{guides → ai_guides}/features/mode.md +4 -0
- package/{guides → ai_guides}/features/model.md +4 -1
- package/{guides → ai_guides}/features/move-pano-effect.md +2 -0
- package/{guides → ai_guides}/features/multi-work.md +2 -0
- package/ai_guides/features/pano-filter.md +148 -0
- package/{guides → ai_guides}/features/pano-tile.md +7 -14
- 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/{guides → ai_guides}/features/postprocessing.md +39 -4
- package/{guides → ai_guides}/features/raycast.md +11 -0
- package/{guides → ai_guides}/features/request-proxy.md +2 -0
- package/{guides → ai_guides}/features/screen-project.md +2 -0
- package/{guides → ai_guides}/features/state.md +2 -0
- package/ai_guides/features/view-layer.md +187 -0
- package/{guides → ai_guides}/features/work.md +63 -2
- package/{guides → ai_guides}/glossary.md +26 -5
- package/{guides → ai_guides}/intro.md +1 -1
- package/{guides → ai_guides}/quick-start.md +1 -0
- package/ai_guides/release_notes/6.8.md +208 -0
- package/{guides → ai_guides}/template.md +17 -3
- package/docs/00_FOR_AI_AGENTS.md +11 -0
- package/docs/README.md +4 -7
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/five.AdaptiveLuminancePass.html +7 -6
- package/docs/classes/five.BoundingMesh.html +2 -2
- package/docs/classes/five.Camera.html +1 -1
- package/docs/classes/five.EyeDomeLightingPass.html +1 -1
- package/docs/classes/five.Five.html +73 -72
- package/docs/classes/five.FivePass.html +1 -1
- package/docs/classes/five.Histogram.html +19 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -1
- package/docs/classes/five.Model.html +31 -31
- package/docs/classes/five.ModelScene.html +1 -1
- package/docs/classes/five.NetworkSubscribe.html +1 -1
- package/docs/classes/five.PBMContainer.html +1 -1
- package/docs/classes/five.PBMCustomShader.html +42 -3
- package/docs/classes/five.PBMGSObject.html +5 -3
- package/docs/classes/five.PBMGroup.html +1 -1
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PBMMeshMaterial.html +16 -7
- package/docs/classes/five.PBMPanoFilter.html +61 -0
- package/docs/classes/five.PBMPointCloud.html +1 -1
- package/docs/classes/five.PBMPointCloudMaterial.html +5 -6
- package/docs/classes/five.PBMSkinnedMesh.html +1 -1
- package/docs/classes/five.PBMUpdateable.html +41 -0
- package/docs/classes/five.PanoCircleMesh.html +1 -1
- package/docs/classes/five.PanoCircleMeshCustom.html +1 -1
- package/docs/classes/five.PanoCircleMeshSolid.html +1 -1
- package/docs/classes/five.Parameter.html +57 -53
- package/docs/classes/five.Scene.html +1 -1
- package/docs/classes/five.Subscribe.html +1 -1
- package/docs/classes/five.Tile.html +1 -1
- package/docs/classes/five.Tile3D.html +30 -26
- package/docs/classes/five.TileNode.html +1 -1
- package/docs/classes/five.Trajectory.html +1 -1
- package/docs/classes/five.TrajectoryNode.html +1 -1
- package/docs/classes/five.Work.html +16 -16
- package/docs/classes/five.WorkResolvedObserver.html +27 -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 +1 -1
- package/docs/classes/gltf-loader.GLTFObject.html +1 -1
- package/docs/classes/gltf-loader.GLTFParser.html +1 -1
- package/docs/classes/gltf-loader.THREEGLTFLoader.html +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/sticker.Sticker.html +1 -1
- package/docs/classes/vfx.Airflow.html +1 -1
- package/docs/classes/vfx.Flame.html +1 -1
- package/docs/classes/vfx.Particle.html +1 -1
- package/docs/classes/vfx.ParticleGPU.html +1 -1
- package/docs/classes/vfx.SpotLight.html +1 -1
- package/docs/documents/README.html +11 -2
- package/docs/documents/ai-doc-guidelines.html +60 -15
- package/docs/documents/api.html +40 -15
- package/docs/documents/features_3dtile.html +142 -45
- package/docs/documents/features_camera-animation.html +62 -5
- package/docs/documents/features_clipper.html +3 -0
- package/docs/documents/{features_coordnate-system.html → features_coordinate-system.html} +4 -1
- package/docs/documents/features_event.html +3 -0
- package/docs/documents/features_five.html +4 -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 +4 -0
- package/docs/documents/features_get-screen-pixels.html +3 -0
- package/docs/documents/features_image-options.html +3 -0
- package/docs/documents/features_load-external-model.html +25 -2
- package/docs/documents/features_load-progress.html +110 -0
- package/docs/documents/features_material.html +341 -0
- package/docs/documents/features_mode.html +5 -0
- package/docs/documents/features_model.html +5 -1
- package/docs/documents/features_move-pano-effect.html +3 -0
- package/docs/documents/features_multi-work.html +3 -0
- package/docs/documents/features_pano-filter.html +122 -0
- package/docs/documents/features_pano-tile.html +34 -19
- package/docs/documents/features_pano-uv.html +82 -0
- package/docs/documents/features_parameter.html +76 -56
- package/docs/documents/features_plugin.html +105 -0
- package/docs/documents/features_postprocessing.html +22 -5
- package/docs/documents/features_raycast.html +4 -1
- package/docs/documents/features_request-proxy.html +3 -0
- package/docs/documents/features_screen-project.html +3 -0
- package/docs/documents/features_state.html +3 -0
- package/docs/documents/features_view-layer.html +158 -0
- package/docs/documents/features_work.html +63 -2
- package/docs/documents/glossary.html +31 -6
- package/docs/documents/intro.html +1 -1
- package/docs/documents/quick-start.html +1 -0
- package/docs/documents/release_notes_6.8.html +189 -0
- package/docs/documents/template.html +45 -4
- package/docs/functions/five.loadAt3d.html +1 -1
- package/docs/functions/five.loadB3dm.html +1 -1
- package/docs/functions/five.loadDome.html +1 -1
- package/docs/functions/five.loadDomez.html +1 -1
- package/docs/functions/five.loadFbx.html +1 -1
- package/docs/functions/five.loadGltf.html +1 -1
- package/docs/functions/five.loadPbm.html +1 -1
- package/docs/functions/five.loadPly.html +1 -1
- package/docs/functions/five.loadPnts.html +1 -1
- package/docs/functions/five.loadSplat.html +1 -1
- package/docs/functions/five.loadSpz.html +1 -1
- package/docs/functions/five.loadX3p.html +1 -1
- package/docs/functions/five.parseWork.html +1 -1
- package/docs/functions/vue.useFiveWorks.html +2 -2
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +11 -2
- package/docs/interfaces/five.AddableObject.html +1 -1
- package/docs/interfaces/five.AjaxOptions.html +1 -1
- package/docs/interfaces/five.BaseEvent.html +2 -2
- package/docs/interfaces/five.EventCallback.html +53 -47
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.GestureEvent.html +2 -2
- package/docs/interfaces/five.ImageOptions.html +1 -1
- 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 +6 -6
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.ModeChangeEvent.html +2 -2
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelEvent.html +2 -2
- package/docs/interfaces/five.ModelSceneEvent.html +2 -2
- package/docs/interfaces/five.ModelTileEvent.html +8 -0
- package/docs/interfaces/five.MovePanoOptions.html +7 -7
- 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 +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.PBMClipperParameter.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderInitArgs.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderSlots.html +2 -2
- package/docs/interfaces/five.PBMMaterial.html +1 -1
- package/docs/interfaces/five.PBMMeshMaterialParameters.html +5 -3
- package/docs/interfaces/five.PBMPanoDepth.html +5 -5
- package/docs/interfaces/five.PBMPanoFilterValue.html +6 -0
- package/docs/interfaces/five.PBMPanoPicture.html +8 -6
- package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +2 -3
- package/docs/interfaces/five.PBMRefinedScreen.html +2 -2
- package/docs/interfaces/five.PanoCircleMeshInterface.html +1 -1
- package/docs/interfaces/five.PanoEvent.html +2 -2
- package/docs/interfaces/five.PanoTextureEvent.html +2 -2
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ParameterMaterialValue.html +42 -38
- package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/five.ParameterValue.html +56 -52
- package/docs/interfaces/five.Pose.html +1 -1
- package/docs/interfaces/five.RenderEvent.html +2 -2
- package/docs/interfaces/five.ResolvedParameterValue.html +56 -52
- package/docs/interfaces/five.RgbaData.html +7 -0
- package/docs/interfaces/five.SplatData.html +2 -2
- package/docs/interfaces/five.State.html +1 -1
- package/docs/interfaces/five.StateEvent.html +2 -2
- package/docs/interfaces/five.TextureOptions.html +1 -1
- package/docs/interfaces/five.Tile3DOptions.html +2 -2
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -7
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ViewLayer.html +30 -26
- package/docs/interfaces/five.WorkCubeImage.html +1 -1
- package/docs/interfaces/five.WorkImage.html +1 -1
- package/docs/interfaces/five.WorkModel.html +8 -8
- package/docs/interfaces/five.WorkModelLayer.html +6 -6
- package/docs/interfaces/five.WorkObserver.html +27 -2
- package/docs/interfaces/five.WorkTile.html +1 -1
- 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 +1 -1
- package/docs/interfaces/five.XRSessionEvent.html +2 -2
- package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
- package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.BasePlugin.State.html +1 -1
- package/docs/interfaces/plugins.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 +13 -13
- package/docs/modules/five.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/five.ControllerEventTypes.html +27 -25
- package/docs/types/five.EasingFunction.html +1 -0
- package/docs/types/five.EventTypes.html +27 -25
- 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.NetworkProgressCallback.html +1 -1
- package/docs/types/five.PBMAlphaMode.html +1 -1
- package/docs/types/five.PBMColorStyle.html +1 -1
- package/docs/types/five.PBMFloorStyle.html +1 -1
- package/docs/types/five.PBMMeshShaderType.html +1 -1
- package/docs/types/five.PBMPointBack.html +1 -1
- package/docs/types/five.PBMPointCloudShaderType.html +1 -1
- package/docs/types/five.PBMPointShape.html +1 -1
- package/docs/types/five.PBMPointSize.html +1 -1
- package/docs/types/five.PBMTransition.html +1 -1
- package/docs/types/five.ParseOptions.html +6 -6
- package/docs/types/plugins.BasePlugin.EventMap.html +1 -1
- package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
- package/five/application/analysis.d.ts +40 -0
- package/five/application/controllers.d.ts +41 -0
- package/five/application/events-legacy.d.ts +454 -0
- package/five/application/events.d.ts +69 -0
- package/five/application/five.d.ts +519 -0
- package/five/application/fiveInitArgs.d.ts +176 -0
- package/five/application/fiveLoadOptions.d.ts +21 -0
- package/five/application/generateDefaultVideoElement.d.ts +2 -0
- package/five/application/getViewportScale.d.ts +2 -0
- package/five/application/initLights.d.ts +3 -0
- package/five/application/mode.d.ts +28 -0
- package/five/application/renderPoweredByRealsee.d.ts +3 -0
- package/five/assets/cardboard-png-data-url.d.ts +2 -0
- package/five/assets/gradient-png-data-url.d.ts +2 -0
- package/five/assets/loading-png-data-url.d.ts +2 -0
- package/five/assets/phone-png-data-url.d.ts +2 -0
- package/five/assets/realsee-png-data-url.d.ts +2 -0
- package/five/bvh/bvhMath.d.ts +33 -0
- package/five/bvh/bvhMesh.d.ts +7 -0
- package/five/bvh/bvhNode.d.ts +29 -0
- package/five/bvh/bvhObject.d.ts +18 -0
- package/five/bvh/bvhPoints.d.ts +6 -0
- package/five/bvh/index.d.ts +10 -0
- package/five/bvh/worker.d.ts +35 -0
- package/five/cardboard/helper.d.ts +2 -0
- package/five/cardboard/index.d.ts +13 -0
- package/five/cardboard/sensor.d.ts +158 -0
- package/five/certificates/hardware.d.ts +1 -0
- package/five/controllers/base.d.ts +167 -0
- package/five/controllers/events.d.ts +71 -0
- package/five/controllers/floorplan.d.ts +119 -0
- package/five/controllers/mapview.d.ts +139 -0
- package/five/controllers/model.d.ts +57 -0
- package/five/controllers/panorama.d.ts +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/gaussian-splatting/util/renderData.d.ts +52 -0
- package/five/gaussian-splatting/wasm/data.d.ts +20 -0
- package/five/gaussian-splatting/wasm/sort.d.ts +18 -0
- package/five/gaussian-splatting/worker/dataWorker.d.ts +1 -0
- package/five/gaussian-splatting/worker/sortWorker.d.ts +1 -0
- package/five/index.d.ts +60 -4637
- package/five/index.js +193 -341
- package/five/index.mjs +26455 -31011
- 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 +137 -0
- package/five/model/materials/pbmMeshMaterial.d.ts +126 -0
- package/five/model/materials/pbmPointCloudMaterial.d.ts +70 -0
- package/five/model/model-scene.d.ts +172 -0
- package/five/model/model.d.ts +209 -0
- package/five/model/objects/pbmContainer.d.ts +28 -0
- package/five/model/objects/pbmGaussianSplattingObject.d.ts +43 -0
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +55 -0
- package/five/model/objects/pbmGaussianSplattingTestMesh.d.ts +7 -0
- package/five/model/objects/pbmGroup.d.ts +8 -0
- package/five/model/objects/pbmMesh.d.ts +10 -0
- package/five/model/objects/pbmPointCloud.d.ts +7 -0
- package/five/model/parameter.d.ts +140 -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 +17 -0
- package/five/renderer/postprocessing/passes/eye-dome-lighting-pass.d.ts +14 -0
- package/five/renderer/postprocessing/passes/flowing-light-2d-pass.d.ts +36 -0
- package/five/renderer/postprocessing/passes/flowing-light-3d-pass.d.ts +36 -0
- package/five/renderer/postprocessing/passes/gaussian-blur-pass.d.ts +12 -0
- package/five/renderer/postprocessing/passes/pass.d.ts +38 -0
- package/five/renderer/scene-renderers/point-cloud-high-quality-scene-renderer.d.ts +11 -0
- package/five/renderer/scene-renderers/scene-renderer.d.ts +9 -0
- package/five/renderer/scene-renderers/ssaa-scene-renderer.d.ts +15 -0
- package/five/renderer/tools/full-screen-quad.d.ts +15 -0
- package/five/renderer/tools/render-cube-to-equirectangular.d.ts +7 -0
- package/five/renderer/tools/render-full-screen-depth.d.ts +2 -0
- package/five/renderer/tools/render-full-screen.d.ts +2 -0
- package/five/texture/histogram.d.ts +54 -0
- package/five/texture/imageBitmap.d.ts +13 -0
- package/five/texture/initTexture.d.ts +3 -0
- package/five/texture/loader.d.ts +39 -0
- package/five/texture/textureData.d.ts +11 -0
- package/five/thirdparty/fflate.d.ts +1407 -0
- package/five/thirdparty/hammer.d.ts +375 -0
- package/five/thirdparty/jsrsasign.d.ts +753 -0
- package/five/thirdparty/meshopt_decoder.d.ts +15 -0
- package/five/three-version-check.d.ts +1 -0
- package/five/types/addableObject.d.ts +12 -0
- package/five/types/cube.d.ts +1 -0
- package/five/types/gestureInput.d.ts +24 -0
- package/five/types/imageOptions.d.ts +20 -0
- package/five/types/intersectMeshInterface.d.ts +8 -0
- package/five/types/movePanoEffect.d.ts +13 -0
- package/five/types/movePanoOptions.d.ts +36 -0
- package/five/types/panoCircleMeshInterface.d.ts +34 -0
- package/five/types/plugin.d.ts +25 -0
- package/five/types/pose.d.ts +17 -0
- package/five/types/state.d.ts +20 -0
- package/five/types/viewport.d.ts +22 -0
- package/five/utils/ajax.d.ts +66 -0
- package/five/utils/animationFrameLoop.d.ts +45 -0
- package/five/utils/array.d.ts +31 -0
- package/five/utils/asyncTaskQueue.d.ts +8 -0
- package/five/utils/bufferGeometry.d.ts +33 -0
- package/five/utils/calculateProgress.d.ts +39 -0
- package/five/utils/calculateThreeMouse.d.ts +13 -0
- package/five/utils/canplayVideo.d.ts +2 -0
- package/five/utils/clamp.d.ts +2 -0
- package/five/utils/clock.d.ts +17 -0
- package/five/utils/createSymbol.d.ts +5 -0
- package/five/utils/decodeText.d.ts +2 -0
- package/five/utils/deepEqual.d.ts +2 -0
- package/five/utils/deepFreeze.d.ts +2 -0
- package/five/utils/defineProperty.d.ts +9 -0
- package/five/utils/detector.d.ts +14 -0
- package/five/utils/distance.d.ts +10 -0
- package/five/utils/draco.d.ts +26 -0
- package/five/utils/easing.d.ts +63 -0
- package/five/utils/event.d.ts +159 -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 +9 -9
- package/gltf-loader/index.mjs +1351 -1451
- package/gltf-loader/thirdparty/DDSLoader.d.ts +23 -0
- package/gltf-loader/thirdparty/DRACOLoader.d.ts +18 -0
- package/gltf-loader/thirdparty/GLTFLoader.d.ts +59 -0
- package/line/circle_png.d.ts +1 -0
- package/line/index.d.ts +19 -69
- package/line/index.js +4 -4
- package/line/index.mjs +334 -513
- package/line/utils/Line2.d.ts +7 -0
- package/line/utils/LineGeometry.d.ts +10 -0
- package/line/utils/LineMaterial.d.ts +20 -0
- package/line/utils/LineSegments2.d.ts +11 -0
- package/line/utils/LineSegmentsGeometry.d.ts +15 -0
- package/llms.txt +43 -31
- package/package.json +11 -2
- 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 -1102
- package/plugins/index.js +17 -21
- package/plugins/index.mjs +3342 -4245
- 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 +3 -3
- package/react/index.mjs +572 -783
- package/react/rendererPool.d.ts +7 -0
- package/react/withFive.d.ts +213 -0
- package/shader-lib/EvenessPlane/index.d.ts +10 -0
- package/shader-lib/PointCloudExpand/index.d.ts +59 -0
- package/shader-lib/PolygonCuter/index.d.ts +52 -0
- package/shader-lib/PolygonCuter/worker.d.ts +14 -0
- package/shader-lib/ShineModel/index.d.ts +7 -0
- package/shader-lib/SweepModel/index.d.ts +7 -0
- package/shader-lib/index.d.ts +5 -86
- package/shader-lib/index.js +13 -14
- package/shader-lib/index.mjs +424 -824
- package/sticker/geometry.d.ts +3 -0
- package/sticker/index.d.ts +68 -71
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +102 -142
- package/umd/five-gltf-loader.js +9 -9
- package/umd/five-line.js +4 -4
- package/umd/five-plugins.js +17 -21
- package/umd/five-react.js +3 -3
- package/umd/five-shader-lib.js +13 -14
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +21 -21
- package/umd/five-vue.js +3 -3
- package/umd/five.js +188 -336
- package/vfx/airflow/airflow.d.ts +18 -0
- package/vfx/airflow/fragment-shader.d.ts +2 -0
- package/vfx/airflow/vertex-shader.d.ts +2 -0
- package/vfx/common/scale-shader.d.ts +2 -0
- package/vfx/common/simplex-noise-shader.d.ts +2 -0
- package/vfx/frame/fragment-shader.d.ts +2 -0
- package/vfx/frame/frame.d.ts +22 -0
- package/vfx/frame/vertex-shader.d.ts +2 -0
- package/vfx/index.d.ts +7 -363
- package/vfx/index.js +21 -21
- package/vfx/index.mjs +454 -910
- package/vfx/particle/fragment-shader.d.ts +2 -0
- package/vfx/particle/instance.d.ts +36 -0
- package/vfx/particle/particle.d.ts +205 -0
- package/vfx/particle/utils.d.ts +11 -0
- package/vfx/particle/vertex-shader.d.ts +2 -0
- package/vfx/particle-gpu/fragment-shader.d.ts +2 -0
- package/vfx/particle-gpu/instance.d.ts +36 -0
- package/vfx/particle-gpu/particle.d.ts +95 -0
- package/vfx/particle-gpu/utils.d.ts +11 -0
- package/vfx/particle-gpu/vertex-shader.d.ts +2 -0
- package/vfx/spotLight/fragment-shader.d.ts +2 -0
- package/vfx/spotLight/spotLight.d.ts +15 -0
- package/vfx/spotLight/vertex-shader.d.ts +2 -0
- package/vue/context.d.ts +7 -0
- package/vue/hooks/FiveCanvas.d.ts +36 -0
- package/vue/hooks/FiveProvider.d.ts +35 -0
- package/vue/hooks/unsafe__useFiveInject.d.ts +9 -0
- package/vue/hooks/useFiveAction.d.ts +178 -0
- package/vue/hooks/useFiveCameraDirection.d.ts +8 -0
- package/vue/hooks/useFiveCameraRaycaster.d.ts +8 -0
- package/vue/hooks/useFiveCurrentObserver.d.ts +12 -0
- package/vue/hooks/useFiveCurrentState.d.ts +16 -0
- package/vue/hooks/useFiveEventCallback.d.ts +11 -0
- package/vue/hooks/useFiveFloor.d.ts +16 -0
- package/vue/hooks/useFiveHelper.d.ts +15 -0
- package/vue/hooks/useFiveModel.d.ts +7 -0
- package/vue/hooks/useFiveModelBounding.d.ts +7 -0
- package/vue/hooks/useFiveModelIntersectRaycaster.d.ts +23 -0
- package/vue/hooks/useFiveModelReadyState.d.ts +9 -0
- package/vue/hooks/useFiveProject2d.d.ts +26 -0
- package/vue/hooks/useFiveScene.d.ts +6 -0
- package/vue/hooks/useFiveState.d.ts +16 -0
- package/vue/hooks/useFiveWork.d.ts +30 -0
- package/vue/index.d.ts +23 -467
- package/vue/index.js +3 -3
- package/vue/index.mjs +309 -301
- package/vue/rendererPool.d.ts +10 -0
- package/work-downloader/components/model-3d-tile.d.ts +2 -0
- package/work-downloader/components/model.d.ts +3 -0
- package/work-downloader/components/observer.d.ts +7 -0
- package/work-downloader/download.d.ts +16 -0
- package/work-downloader/index.d.ts +2 -33
- package/work-downloader/index.js +3 -3
- package/work-downloader/index.mjs +317 -556
- package/work-downloader/type.d.ts +28 -0
- package/work-downloader/utils/download-to-file.d.ts +1 -0
- package/work-downloader/utils/image-processing.d.ts +7 -0
- package/work-downloader/utils/join-url.d.ts +2 -0
- package/work-downloader/utils/log.d.ts +1 -0
- package/work-downloader/utils/relative-url.d.ts +1 -0
- package/docs/documents/five.FivePlugin.plugin.html +0 -60
- package/docs/documents/plugin.html +0 -60
- package/docs/media/five.ts +0 -2881
- package/docs/media/pass.ts +0 -64
- package/guides/ai-doc-guidelines.md +0 -72
- package/guides/features/3dtile.md +0 -264
- package/guides/features/parameter.md +0 -178
- package/guides/plugin.md +0 -206
- /package/{guides → ai_guides}/release_notes/6.6.md +0 -0
- /package/{guides → ai_guides}/release_notes/6.7.md +0 -0
- /package/{guides → ai_guides}/support.md +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import type { BasePlugin } from '../BasePlugin';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
/** 路径配置 */
|
|
4
|
+
export interface PathConfig {
|
|
5
|
+
/** 路径唯一标识 */
|
|
6
|
+
id: string;
|
|
7
|
+
/** 路径点 */
|
|
8
|
+
points: THREE.Vector3[];
|
|
9
|
+
/** 是否启用 */
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
/** 是否可见 */
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
/** 线条颜色(可选,覆盖全局配置) */
|
|
14
|
+
color?: number;
|
|
15
|
+
/** 线宽(可选,覆盖全局配置) */
|
|
16
|
+
lineWidth?: number;
|
|
17
|
+
/** 子网格颜色(可选,覆盖全局配置) */
|
|
18
|
+
subMeshColor?: number;
|
|
19
|
+
/** 子网格宽度(可选,覆盖全局配置) */
|
|
20
|
+
subMeshWidth?: number;
|
|
21
|
+
/** 子网格透明度(可选,覆盖全局配置) */
|
|
22
|
+
subMeshOpacity?: number;
|
|
23
|
+
/** 流光速度(可选,覆盖全局配置,单位:米/秒) */
|
|
24
|
+
speed?: number;
|
|
25
|
+
/** 流光范围(可选,覆盖全局配置,单位:米,默认 5.0) */
|
|
26
|
+
range?: number;
|
|
27
|
+
/** 是否启用子网格(可选,默认 true) */
|
|
28
|
+
enableSubMesh?: boolean;
|
|
29
|
+
/** 是否启用路径线和粒子效果(可选,默认 true) */
|
|
30
|
+
enablePathline?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/** 插件数据 */
|
|
33
|
+
export type PluginData = {
|
|
34
|
+
paths: Map<string, PathConfig>;
|
|
35
|
+
};
|
|
36
|
+
/** 服务端数据 */
|
|
37
|
+
export type ServerData = {
|
|
38
|
+
paths: Array<{
|
|
39
|
+
id: string;
|
|
40
|
+
points: Array<{
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
z: number;
|
|
44
|
+
}>;
|
|
45
|
+
enabled?: boolean;
|
|
46
|
+
visible?: boolean;
|
|
47
|
+
color?: number;
|
|
48
|
+
lineWidth?: number;
|
|
49
|
+
subMeshColor?: number;
|
|
50
|
+
subMeshWidth?: number;
|
|
51
|
+
subMeshOpacity?: number;
|
|
52
|
+
speed?: number;
|
|
53
|
+
range?: number;
|
|
54
|
+
enableSubMesh?: boolean;
|
|
55
|
+
enablePathline?: boolean;
|
|
56
|
+
}>;
|
|
57
|
+
};
|
|
58
|
+
/** 插件配置 */
|
|
59
|
+
export interface Config {
|
|
60
|
+
/** 线条数量 */
|
|
61
|
+
lineCount?: number;
|
|
62
|
+
/** 线条间距 */
|
|
63
|
+
spacing?: number;
|
|
64
|
+
/** 线宽 */
|
|
65
|
+
lineWidth?: number;
|
|
66
|
+
/** 线条颜色 */
|
|
67
|
+
color?: number;
|
|
68
|
+
/** 流光速度(单位距离/秒,值越大速度越快) */
|
|
69
|
+
speed?: number;
|
|
70
|
+
/** 流光过渡范围(单位:米,默认 5.0) */
|
|
71
|
+
range?: number;
|
|
72
|
+
/** 波动幅度 */
|
|
73
|
+
waveAmp?: number;
|
|
74
|
+
/** 波动频率 */
|
|
75
|
+
waveFreq?: number;
|
|
76
|
+
/** 粒子数量 */
|
|
77
|
+
particleCount?: number;
|
|
78
|
+
/** 粒子最大飘散距离 */
|
|
79
|
+
maxDistance?: number;
|
|
80
|
+
/** pathline Y 轴偏移(相对于 subMesh 向上偏移) */
|
|
81
|
+
lineYOffset?: number;
|
|
82
|
+
/** 子网格宽度 */
|
|
83
|
+
subMeshWidth?: number;
|
|
84
|
+
/** 子网格底色 */
|
|
85
|
+
subMeshColor?: number;
|
|
86
|
+
/** 子网格基础透明度(最小透明度) */
|
|
87
|
+
subMeshOpacity?: number;
|
|
88
|
+
/** 子网格最大透明度(流光中心的透明度,默认 1.0) */
|
|
89
|
+
subMeshMaxOpacity?: number;
|
|
90
|
+
/** 子网格流光分段间隔(单位:米,默认 3.0) */
|
|
91
|
+
subMeshSegmentInterval?: number;
|
|
92
|
+
/** 子网格流光高亮带宽度(单位:米,默认 1.5) */
|
|
93
|
+
subMeshHighlightWidth?: number;
|
|
94
|
+
}
|
|
95
|
+
/** 插件初始化参数 */
|
|
96
|
+
export interface Params {
|
|
97
|
+
config?: Partial<Config>;
|
|
98
|
+
initialState?: Partial<State>;
|
|
99
|
+
/** 初始路径配置列表 */
|
|
100
|
+
paths?: PathConfig[];
|
|
101
|
+
}
|
|
102
|
+
/** 插件状态 */
|
|
103
|
+
export interface State extends BasePlugin.State {
|
|
104
|
+
/** 插件是否启用 */
|
|
105
|
+
enabled: boolean;
|
|
106
|
+
/** 插件整体是否可见 */
|
|
107
|
+
visible: boolean;
|
|
108
|
+
/** 动画是否正在播放 */
|
|
109
|
+
playing: boolean;
|
|
110
|
+
}
|
|
111
|
+
/** 插件事件 */
|
|
112
|
+
export interface EventMap extends BasePlugin.EventMap<State, PluginData> {
|
|
113
|
+
/** 动画开始播放 */
|
|
114
|
+
animationStart: () => void;
|
|
115
|
+
/** 动画停止播放 */
|
|
116
|
+
animationStop: () => void;
|
|
117
|
+
/** 路径添加 */
|
|
118
|
+
pathAdd: (pathId: string, config: PathConfig) => void;
|
|
119
|
+
/** 路径移除 */
|
|
120
|
+
pathRemove: (pathId: string) => void;
|
|
121
|
+
/** 路径启用 */
|
|
122
|
+
pathEnable: (pathId: string) => void;
|
|
123
|
+
/** 路径禁用 */
|
|
124
|
+
pathDisable: (pathId: string) => void;
|
|
125
|
+
/** 路径显示 */
|
|
126
|
+
pathShow: (pathId: string) => void;
|
|
127
|
+
/** 路径隐藏 */
|
|
128
|
+
pathHide: (pathId: string) => void;
|
|
129
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { BasePlugin } from '../BasePlugin';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
/** 插件数据 */
|
|
4
|
+
export type PluginData = {
|
|
5
|
+
points: THREE.Vector3[];
|
|
6
|
+
};
|
|
7
|
+
/** 服务端数据 */
|
|
8
|
+
export type ServerData = {
|
|
9
|
+
points: Array<{
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
z: number;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
/** 插件配置 */
|
|
16
|
+
export interface Config {
|
|
17
|
+
/** 线条数量 */
|
|
18
|
+
lineCount?: number;
|
|
19
|
+
/** 线条间距 */
|
|
20
|
+
spacing?: number;
|
|
21
|
+
/** 曲线分段数 */
|
|
22
|
+
divisions?: number;
|
|
23
|
+
/** 线宽 */
|
|
24
|
+
lineWidth?: number;
|
|
25
|
+
/** 线条颜色 */
|
|
26
|
+
color?: number;
|
|
27
|
+
/** 流光速度(单位距离/秒,值越大速度越快) */
|
|
28
|
+
speed?: number;
|
|
29
|
+
/** 流光过渡范围 */
|
|
30
|
+
range?: number;
|
|
31
|
+
/** 波动幅度 */
|
|
32
|
+
waveAmp?: number;
|
|
33
|
+
/** 波动频率 */
|
|
34
|
+
waveFreq?: number;
|
|
35
|
+
/** 粒子数量 */
|
|
36
|
+
particleCount?: number;
|
|
37
|
+
/** 粒子最大飘散距离 */
|
|
38
|
+
maxDistance?: number;
|
|
39
|
+
/** 子网格 Y 轴偏移 */
|
|
40
|
+
subMeshYOffset?: number;
|
|
41
|
+
/** 子网格宽度 */
|
|
42
|
+
subMeshWidth?: number;
|
|
43
|
+
/** 子网格底色 */
|
|
44
|
+
subMeshColor?: number;
|
|
45
|
+
/** 子网格基础透明度 */
|
|
46
|
+
subMeshOpacity?: number;
|
|
47
|
+
}
|
|
48
|
+
/** 插件初始化参数 */
|
|
49
|
+
export interface Params {
|
|
50
|
+
config?: Partial<Config>;
|
|
51
|
+
initialState?: Partial<State>;
|
|
52
|
+
/** 初始路径点 */
|
|
53
|
+
points?: THREE.Vector3[];
|
|
54
|
+
}
|
|
55
|
+
/** 插件状态 */
|
|
56
|
+
export interface State extends BasePlugin.State {
|
|
57
|
+
/** 插件是否启用 */
|
|
58
|
+
enabled: boolean;
|
|
59
|
+
/** 插件整体是否可见 */
|
|
60
|
+
visible: boolean;
|
|
61
|
+
/** 动画是否正在播放 */
|
|
62
|
+
playing: boolean;
|
|
63
|
+
}
|
|
64
|
+
/** 插件事件 */
|
|
65
|
+
export interface EventMap extends BasePlugin.EventMap<State, PluginData> {
|
|
66
|
+
/** 动画开始播放 */
|
|
67
|
+
animationStart: () => void;
|
|
68
|
+
/** 动画停止播放 */
|
|
69
|
+
animationStop: () => void;
|
|
70
|
+
/** 路径点更新 */
|
|
71
|
+
pointsUpdate: (points: THREE.Vector3[]) => void;
|
|
72
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Five } from '@realsee/five';
|
|
2
|
+
import { BasePlugin } from '../BasePlugin';
|
|
3
|
+
import type * as PluginType from './typing';
|
|
4
|
+
export declare class Controller extends BasePlugin.Controller<PluginType.State, PluginType.EventMap, PluginType.ServerData, PluginType.PluginData> {
|
|
5
|
+
/** 当前使用的数据 */
|
|
6
|
+
data?: PluginType.PluginData;
|
|
7
|
+
/** 插件当前状态 */
|
|
8
|
+
state: PluginType.State;
|
|
9
|
+
/** config 的原始值 */
|
|
10
|
+
private _config;
|
|
11
|
+
get config(): {};
|
|
12
|
+
private canvas;
|
|
13
|
+
private group;
|
|
14
|
+
private updateState;
|
|
15
|
+
private wrapper;
|
|
16
|
+
private style;
|
|
17
|
+
private tapPosition?;
|
|
18
|
+
private stopAnimation?;
|
|
19
|
+
private itemMaskMesh;
|
|
20
|
+
constructor(five: Five, params?: PluginType.Params);
|
|
21
|
+
load(data: PluginType.ServerData): Promise<void>;
|
|
22
|
+
private onFivePanoArrived;
|
|
23
|
+
private onFiveWantsMoveToPano;
|
|
24
|
+
private loadPanoMask;
|
|
25
|
+
private onFiveMouseMove;
|
|
26
|
+
private onFiveTapGesture;
|
|
27
|
+
private changeTapScreenPosition;
|
|
28
|
+
private onFiveCameraUpdate;
|
|
29
|
+
/** 更改插件 State */
|
|
30
|
+
setState(state: Partial<PluginType.State>, options?: BasePlugin.BaseOptions): void;
|
|
31
|
+
setMode(mode: PluginType.State['mode']): void;
|
|
32
|
+
select(name?: string, options?: {
|
|
33
|
+
userAction: boolean;
|
|
34
|
+
}): void;
|
|
35
|
+
selectAll(bool?: boolean): void;
|
|
36
|
+
private _enable;
|
|
37
|
+
private _disable;
|
|
38
|
+
/**
|
|
39
|
+
* 启用插件,让插件能够响应交互
|
|
40
|
+
*/
|
|
41
|
+
enable(options?: BasePlugin.BaseOptions): void;
|
|
42
|
+
/**
|
|
43
|
+
* 禁用插件,让插件停止响应交互
|
|
44
|
+
*/
|
|
45
|
+
disable(options?: BasePlugin.BaseOptions): void;
|
|
46
|
+
/** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
|
|
47
|
+
dispose: () => void;
|
|
48
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type * as ItemMaskPluginType from './typing';
|
|
3
|
+
import { Controller } from './Controller';
|
|
4
|
+
export declare const ItemMaskPlugin: (five: Five, params?: ItemMaskPluginType.Params) => Controller;
|
|
5
|
+
export type { ItemMaskPluginType, Controller as ItemMaskController };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BasePlugin } from '../BasePlugin';
|
|
2
|
+
export interface ItemType {
|
|
3
|
+
category_name: string;
|
|
4
|
+
category_cn: string;
|
|
5
|
+
index: number;
|
|
6
|
+
derived_id: string;
|
|
7
|
+
longitude: number;
|
|
8
|
+
latitude: number;
|
|
9
|
+
fov: number;
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
position: {
|
|
13
|
+
start: number[];
|
|
14
|
+
end: number[];
|
|
15
|
+
rotation: number[];
|
|
16
|
+
};
|
|
17
|
+
mask_color: number[];
|
|
18
|
+
visible_viewpoint: {
|
|
19
|
+
[key: string]: Record<any, any>;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface MaskType {
|
|
23
|
+
derived_id: string;
|
|
24
|
+
index: number;
|
|
25
|
+
object_mask_url: string;
|
|
26
|
+
}
|
|
27
|
+
export type PluginData = {
|
|
28
|
+
data_list: ItemType[];
|
|
29
|
+
object_mask_list: MaskType[];
|
|
30
|
+
};
|
|
31
|
+
export type ServerData = {
|
|
32
|
+
data_list: ItemType[];
|
|
33
|
+
object_mask_list: MaskType[];
|
|
34
|
+
};
|
|
35
|
+
/** 插件配置 */
|
|
36
|
+
export interface Config {
|
|
37
|
+
}
|
|
38
|
+
/** 插件初始化参数 */
|
|
39
|
+
export interface Params {
|
|
40
|
+
config?: Partial<Config>;
|
|
41
|
+
initialState?: Partial<State>;
|
|
42
|
+
}
|
|
43
|
+
/** 插件状态 */
|
|
44
|
+
export interface State extends BasePlugin.State {
|
|
45
|
+
/** 插件是否启用 */
|
|
46
|
+
enabled: boolean;
|
|
47
|
+
/** 插件整体是否可见 */
|
|
48
|
+
visible: boolean;
|
|
49
|
+
/** 插件模式 */
|
|
50
|
+
mode: 'mask' | 'box';
|
|
51
|
+
/** 选中ID */
|
|
52
|
+
selectedId: string | null;
|
|
53
|
+
/** 全选 */
|
|
54
|
+
selectAll: boolean;
|
|
55
|
+
}
|
|
56
|
+
/** 插件事件 */
|
|
57
|
+
export interface EventMap extends BasePlugin.EventMap<State, ServerData> {
|
|
58
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Five, Camera } from '@realsee/five';
|
|
2
|
+
import { BasePlugin } from '../BasePlugin';
|
|
3
|
+
import type * as PluginType from './typing';
|
|
4
|
+
import * as THREE from "three";
|
|
5
|
+
import { OrbitControls } from '../thirdParty/OrbitControls.js';
|
|
6
|
+
import { CSS3DRenderer } from '../thirdParty/CSS3DRenderer.js';
|
|
7
|
+
import { RoundedBoxGeometry } from './RoundedBoxGeometry';
|
|
8
|
+
export declare class Controller extends BasePlugin.Controller<PluginType.State, PluginType.EventMap, PluginType.ServerData, PluginType.PluginData> {
|
|
9
|
+
/** 当前使用的数据 */
|
|
10
|
+
data?: PluginType.PluginData;
|
|
11
|
+
/** 插件当前状态 */
|
|
12
|
+
state: PluginType.State;
|
|
13
|
+
/** config 的原始值 */
|
|
14
|
+
private _config;
|
|
15
|
+
camera: Camera;
|
|
16
|
+
scene: THREE.Scene;
|
|
17
|
+
renderer: THREE.WebGLRenderer;
|
|
18
|
+
css3drenderer: CSS3DRenderer;
|
|
19
|
+
ambientLight: THREE.AmbientLight;
|
|
20
|
+
wrapper: HTMLDivElement;
|
|
21
|
+
private arrows;
|
|
22
|
+
private arrowLeft;
|
|
23
|
+
private arrowRight;
|
|
24
|
+
private arrowFront;
|
|
25
|
+
private arrowBack;
|
|
26
|
+
private arrowTop;
|
|
27
|
+
private arrowBottom;
|
|
28
|
+
private mc?;
|
|
29
|
+
private cameraAnimation?;
|
|
30
|
+
private cylinder;
|
|
31
|
+
private spherical;
|
|
32
|
+
private dragging;
|
|
33
|
+
private style;
|
|
34
|
+
directionalLight: THREE.DirectionalLight;
|
|
35
|
+
box: THREE.Mesh<RoundedBoxGeometry, THREE.MeshPhongMaterial>;
|
|
36
|
+
faces: THREE.Group;
|
|
37
|
+
controls?: OrbitControls;
|
|
38
|
+
get config(): {
|
|
39
|
+
orthoView: boolean;
|
|
40
|
+
fixedLongitude: number;
|
|
41
|
+
};
|
|
42
|
+
private updateState;
|
|
43
|
+
constructor(five: Five, params?: PluginType.Params);
|
|
44
|
+
appendTo(container: HTMLElement): void;
|
|
45
|
+
init(): void;
|
|
46
|
+
initDom(): void;
|
|
47
|
+
bindEvents(): void;
|
|
48
|
+
unbindEvents(): void;
|
|
49
|
+
orient: ({ longitude, latitude }: {
|
|
50
|
+
longitude?: number;
|
|
51
|
+
latitude?: number;
|
|
52
|
+
}) => void;
|
|
53
|
+
private updateByCamera;
|
|
54
|
+
private updateArrows;
|
|
55
|
+
private handleArrowsVisible;
|
|
56
|
+
private onRenderFrame;
|
|
57
|
+
private onTapGesture;
|
|
58
|
+
private onFiveWantsGesture;
|
|
59
|
+
private onFiveModeChange;
|
|
60
|
+
private onCameraUpdate;
|
|
61
|
+
private onPanStart;
|
|
62
|
+
private onMouseMove;
|
|
63
|
+
private onPanEnd;
|
|
64
|
+
/** 更改插件 State */
|
|
65
|
+
setState(state: Partial<PluginType.State>, options?: BasePlugin.BaseOptions): void;
|
|
66
|
+
private initLights;
|
|
67
|
+
private initFaces;
|
|
68
|
+
private initControls;
|
|
69
|
+
load(data: PluginType.ServerData): Promise<void>;
|
|
70
|
+
private _enable;
|
|
71
|
+
private _disable;
|
|
72
|
+
/**
|
|
73
|
+
* 启用插件,让插件能够响应交互
|
|
74
|
+
*/
|
|
75
|
+
enable(options?: BasePlugin.BaseOptions): void;
|
|
76
|
+
/**
|
|
77
|
+
* 禁用插件,让插件停止响应交互
|
|
78
|
+
*/
|
|
79
|
+
disable(options?: BasePlugin.BaseOptions): void;
|
|
80
|
+
/** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
|
|
81
|
+
dispose: () => void;
|
|
82
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
export declare class RoundedBoxGeometry extends THREE.BufferGeometry {
|
|
3
|
+
parameters: {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
depth: number;
|
|
7
|
+
radius: number;
|
|
8
|
+
radiusSegments: number;
|
|
9
|
+
};
|
|
10
|
+
constructor(width: number, height: number, depth: number, radius: number, radiusSegments: number);
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type * as OrientationPluginType from './typing';
|
|
3
|
+
import { Controller } from './Controller';
|
|
4
|
+
export { RoundedBoxGeometry } from './RoundedBoxGeometry';
|
|
5
|
+
export declare const OrientationPlugin: (five: Five, params?: OrientationPluginType.Params) => Controller;
|
|
6
|
+
export type { OrientationPluginType, Controller as OrientationPluginController };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { BasePlugin } from '../BasePlugin';
|
|
2
|
+
export type PluginData = any;
|
|
3
|
+
export type ServerData = any;
|
|
4
|
+
/** 插件配置 */
|
|
5
|
+
export interface Config {
|
|
6
|
+
orthoView?: boolean;
|
|
7
|
+
fixedLongitude?: number;
|
|
8
|
+
}
|
|
9
|
+
/** 插件初始化参数 */
|
|
10
|
+
export interface Params {
|
|
11
|
+
config?: Partial<Config>;
|
|
12
|
+
initialState?: Partial<State>;
|
|
13
|
+
}
|
|
14
|
+
/** 插件状态 */
|
|
15
|
+
export interface State extends BasePlugin.State {
|
|
16
|
+
/** 插件是否启用 */
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
/** 插件整体是否可见 */
|
|
19
|
+
visible: boolean;
|
|
20
|
+
/** 箭头操作是否可见 */
|
|
21
|
+
arrowsVisible: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** 插件事件 */
|
|
24
|
+
export interface EventMap extends BasePlugin.EventMap<State, ServerData> {
|
|
25
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Five } from '@realsee/five';
|
|
2
|
+
import { BasePlugin } from '@realsee/five/plugins';
|
|
3
|
+
import type * as PluginType from './typing';
|
|
4
|
+
export declare class Controller extends BasePlugin.Controller<PluginType.State, PluginType.EventMap, PluginType.ServerData, PluginType.PluginData> {
|
|
5
|
+
/** 当前使用的数据 */
|
|
6
|
+
data?: PluginType.PluginData;
|
|
7
|
+
/** 插件当前状态 */
|
|
8
|
+
state: PluginType.State;
|
|
9
|
+
/** config 的原始值 */
|
|
10
|
+
private _config;
|
|
11
|
+
get config(): {
|
|
12
|
+
maxOpacity: number;
|
|
13
|
+
};
|
|
14
|
+
private group;
|
|
15
|
+
private canvas?;
|
|
16
|
+
private ctx?;
|
|
17
|
+
private startTime?;
|
|
18
|
+
private updateState;
|
|
19
|
+
/**
|
|
20
|
+
* 更改插件 Config
|
|
21
|
+
* @param config - 插件属性 `config` 的子集。
|
|
22
|
+
* @param options - 参数
|
|
23
|
+
*/
|
|
24
|
+
updateConfig(config: Partial<PluginType.Config>, options?: BasePlugin.BaseOptions): void;
|
|
25
|
+
private mesh;
|
|
26
|
+
private panoMesh;
|
|
27
|
+
constructor(five: Five, params?: PluginType.Params);
|
|
28
|
+
load(data: PluginType.ServerData): Promise<void>;
|
|
29
|
+
private stop;
|
|
30
|
+
private drawLine;
|
|
31
|
+
private anime;
|
|
32
|
+
private _enable;
|
|
33
|
+
private _disable;
|
|
34
|
+
/**
|
|
35
|
+
* 启用插件,让插件能够响应交互
|
|
36
|
+
*/
|
|
37
|
+
enable(options?: BasePlugin.BaseOptions): void;
|
|
38
|
+
/**
|
|
39
|
+
* 禁用插件,让插件停止响应交互
|
|
40
|
+
*/
|
|
41
|
+
disable(options?: BasePlugin.BaseOptions): void;
|
|
42
|
+
/** 更改插件 State */
|
|
43
|
+
setState(state: Partial<PluginType.State>, options?: BasePlugin.BaseOptions): void;
|
|
44
|
+
/** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
|
|
45
|
+
dispose: () => void;
|
|
46
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type * as PanoAnimePluginType from './typing';
|
|
3
|
+
import { Controller } from './Controller';
|
|
4
|
+
export declare const PanoAnimePlugin: (five: Five, params?: PanoAnimePluginType.Params) => Controller;
|
|
5
|
+
export type { PanoAnimePluginType, Controller as PanoAnimeController };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BasePlugin } from '@realsee/five/plugins';
|
|
2
|
+
export type PluginData = {};
|
|
3
|
+
export type ServerData = {};
|
|
4
|
+
/** 插件配置 */
|
|
5
|
+
export interface Config {
|
|
6
|
+
maxOpacity: number;
|
|
7
|
+
}
|
|
8
|
+
/** 插件初始化参数 */
|
|
9
|
+
export interface Params {
|
|
10
|
+
config?: Partial<Config>;
|
|
11
|
+
initialState?: Partial<State>;
|
|
12
|
+
}
|
|
13
|
+
/** 插件状态 */
|
|
14
|
+
export interface State extends BasePlugin.State {
|
|
15
|
+
/** 插件是否启用 */
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
/** 插件整体是否可见 */
|
|
18
|
+
visible: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ConfigChangeEvent {
|
|
21
|
+
/** 变更前的 config */
|
|
22
|
+
prevConfig: Config;
|
|
23
|
+
/** 变更后的 config */
|
|
24
|
+
config: Config;
|
|
25
|
+
/** 是否是用户操作 */
|
|
26
|
+
userAction: boolean;
|
|
27
|
+
}
|
|
28
|
+
/** 插件事件 */
|
|
29
|
+
export interface EventMap extends BasePlugin.EventMap<State, PluginData> {
|
|
30
|
+
drawingChange: (drawing: boolean) => void;
|
|
31
|
+
/** config 变更的回调 */
|
|
32
|
+
configChange: (event: {
|
|
33
|
+
prevConfig: Config;
|
|
34
|
+
config: Config;
|
|
35
|
+
userAction: boolean;
|
|
36
|
+
}) => void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import { BasePlugin } from '../BasePlugin';
|
|
3
|
+
import type * as PluginType from './typing';
|
|
4
|
+
export declare class Controller extends BasePlugin.Controller<PluginType.State, PluginType.EventMap, PluginType.ServerData, PluginType.PluginData> {
|
|
5
|
+
/** 当前使用的数据 */
|
|
6
|
+
data?: PluginType.PluginData;
|
|
7
|
+
/** 插件当前状态 */
|
|
8
|
+
state: PluginType.State;
|
|
9
|
+
/** config 的原始值 */
|
|
10
|
+
private _config;
|
|
11
|
+
get config(): {};
|
|
12
|
+
private updateState;
|
|
13
|
+
constructor(five: Five, params?: PluginType.Params);
|
|
14
|
+
load(data: PluginType.ServerData): Promise<void>;
|
|
15
|
+
private _enable;
|
|
16
|
+
private _disable;
|
|
17
|
+
/**
|
|
18
|
+
* 启用插件,让插件能够响应交互
|
|
19
|
+
*/
|
|
20
|
+
enable(options?: BasePlugin.BaseOptions): void;
|
|
21
|
+
/**
|
|
22
|
+
* 禁用插件,让插件停止响应交互
|
|
23
|
+
*/
|
|
24
|
+
disable(options?: BasePlugin.BaseOptions): void;
|
|
25
|
+
/** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
|
|
26
|
+
dispose: () => void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type * as PluginTemplateType from './typing';
|
|
3
|
+
import { Controller } from './Controller';
|
|
4
|
+
export declare const Plugin: (five: Five, params?: PluginTemplateType.Params) => Controller;
|
|
5
|
+
export type { PluginTemplateType, Controller as PluginTemplateController };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { BasePlugin } from '../BasePlugin';
|
|
2
|
+
export type PluginData = any;
|
|
3
|
+
export type ServerData = any;
|
|
4
|
+
/** 插件配置 */
|
|
5
|
+
export interface Config {
|
|
6
|
+
}
|
|
7
|
+
/** 插件初始化参数 */
|
|
8
|
+
export interface Params {
|
|
9
|
+
config?: Partial<Config>;
|
|
10
|
+
initialState?: Partial<State>;
|
|
11
|
+
}
|
|
12
|
+
/** 插件状态 */
|
|
13
|
+
export interface State extends BasePlugin.State {
|
|
14
|
+
/** 插件是否启用 */
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
/** 插件整体是否可见 */
|
|
17
|
+
visible: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** 插件事件 */
|
|
20
|
+
export interface EventMap extends BasePlugin.EventMap<State, ServerData> {
|
|
21
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import { BasePlugin } from '../BasePlugin';
|
|
3
|
+
import type * as PluginType from './typing';
|
|
4
|
+
import { Trajectory } from '@realsee/five';
|
|
5
|
+
import * as THREE from 'three';
|
|
6
|
+
export interface Keyframe {
|
|
7
|
+
position: THREE.Vector3;
|
|
8
|
+
location: number;
|
|
9
|
+
}
|
|
10
|
+
export interface PlayingState {
|
|
11
|
+
keyframeIndex: number | null;
|
|
12
|
+
progress: number | null;
|
|
13
|
+
}
|
|
14
|
+
export declare class Controller extends BasePlugin.Controller<PluginType.State, PluginType.EventMap, PluginType.ServerData, PluginType.PluginData> {
|
|
15
|
+
/** 当前使用的数据 */
|
|
16
|
+
data?: PluginType.PluginData;
|
|
17
|
+
/** 插件当前状态 */
|
|
18
|
+
state: PluginType.State;
|
|
19
|
+
/** config 的原始值 */
|
|
20
|
+
private _config;
|
|
21
|
+
get config(): {
|
|
22
|
+
rate?: number;
|
|
23
|
+
};
|
|
24
|
+
private cancelAnimation;
|
|
25
|
+
private playingState;
|
|
26
|
+
totalDistance: number;
|
|
27
|
+
location: number;
|
|
28
|
+
nextKeyframe: Keyframe | null;
|
|
29
|
+
nextButOneKeyframe: Keyframe | null;
|
|
30
|
+
currentKeyFrame: Keyframe | null;
|
|
31
|
+
trajectory: Trajectory | null;
|
|
32
|
+
keyframes: Keyframe[];
|
|
33
|
+
rate: number;
|
|
34
|
+
skipStart: number;
|
|
35
|
+
skipEnd: number;
|
|
36
|
+
private virualCamera;
|
|
37
|
+
private timeArray;
|
|
38
|
+
startTimestamp: number | null;
|
|
39
|
+
playbackStartTime: number | null;
|
|
40
|
+
playbackEndTime: number | null;
|
|
41
|
+
private updateState;
|
|
42
|
+
constructor(five: Five, params?: PluginType.Params);
|
|
43
|
+
load(data: PluginType.ServerData): Promise<void>;
|
|
44
|
+
loadTrajectory(trajectory: Trajectory): void;
|
|
45
|
+
setPlayingState(playingState: Partial<PlayingState>): void;
|
|
46
|
+
private _enable;
|
|
47
|
+
play(): void;
|
|
48
|
+
pause(): void;
|
|
49
|
+
/**
|
|
50
|
+
* 基于真实时间戳播放轨迹动画
|
|
51
|
+
* 使用 timeArray 中的时间戳,按照真实时间播放
|
|
52
|
+
*/
|
|
53
|
+
playByTimestamp(): void;
|
|
54
|
+
findKeyFrameByLocation(location: number): number | {
|
|
55
|
+
keyframeIndex: number;
|
|
56
|
+
progress: number;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* 根据时间戳找到最近的 keyframe
|
|
60
|
+
* @returns keyframe 索引,如果找不到返回 undefined
|
|
61
|
+
*/
|
|
62
|
+
findKeyFrameByTimestamp(timestamp: number): number | undefined;
|
|
63
|
+
resetPlayingState(): void;
|
|
64
|
+
/**
|
|
65
|
+
* 获取总播放时间(毫秒)
|
|
66
|
+
* 考虑 skipStart 和 skipEnd
|
|
67
|
+
* @returns 总时间(毫秒),如果轨迹未加载则返回 null
|
|
68
|
+
*/
|
|
69
|
+
getTotalTime(): number | null;
|
|
70
|
+
/**
|
|
71
|
+
* 设置时间戳模式的播放状态并继续播放
|
|
72
|
+
*/
|
|
73
|
+
setPlayingStateByTimestamp(keyframeIndex: number): void;
|
|
74
|
+
private _disable;
|
|
75
|
+
/**
|
|
76
|
+
* 启用插件,让插件能够响应交互
|
|
77
|
+
*/
|
|
78
|
+
enable(options?: BasePlugin.BaseOptions): void;
|
|
79
|
+
/**
|
|
80
|
+
* 禁用插件,让插件停止响应交互
|
|
81
|
+
*/
|
|
82
|
+
disable(options?: BasePlugin.BaseOptions): void;
|
|
83
|
+
/** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
|
|
84
|
+
dispose: () => void;
|
|
85
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type * as PluginTemplateType from './typing';
|
|
3
|
+
import { Controller } from './Controller';
|
|
4
|
+
export declare const TrajectoryPlugin: (five: Five, params?: PluginTemplateType.Params) => Controller;
|
|
5
|
+
export type { PluginTemplateType, Controller as TrajectoryController };
|
|
6
|
+
export type { Keyframe, PlayingState } from './Controller';
|