@realsee/five 6.8.0-alpha.9 → 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS_READ_ME.md +6 -1
- package/AI_CONTEXT.md +6 -1
- package/README.md +10 -3
- package/ai_guides/README.md +29 -0
- package/ai_guides/api.md +92 -21
- package/ai_guides/features/3dtile.md +1 -1
- package/ai_guides/features/camera-animation.md +18 -1
- package/ai_guides/features/clipper.md +2 -2
- package/ai_guides/features/coordinate-system.md +20 -2
- package/ai_guides/features/event.md +106 -10
- package/ai_guides/features/five.md +17 -17
- package/ai_guides/features/flowing-light-2d-pass.md +11 -7
- package/ai_guides/features/flowing-light-3d-pass.md +12 -7
- package/ai_guides/features/gaussian-blur-pass.md +1 -1
- package/ai_guides/features/gesture.md +2 -1
- package/ai_guides/features/get-screen-pixels.md +2 -2
- package/ai_guides/features/image-options.md +2 -2
- package/ai_guides/features/load-external-model.md +6 -2
- package/ai_guides/features/load-progress.md +1 -1
- package/ai_guides/features/material.md +20 -12
- package/ai_guides/features/mode.md +1 -1
- package/ai_guides/features/model.md +1 -1
- package/ai_guides/features/move-pano-effect.md +1 -1
- package/ai_guides/features/multi-work.md +1 -1
- package/ai_guides/features/pano-filter.md +149 -0
- package/ai_guides/features/pano-tile.md +1 -1
- package/ai_guides/features/pano-uv.md +1 -1
- package/ai_guides/features/parameter.md +26 -2
- package/ai_guides/features/plugin.md +1 -1
- package/ai_guides/features/postprocessing.md +1 -1
- package/ai_guides/features/raycast.md +5 -2
- package/ai_guides/features/request-proxy.md +1 -1
- package/ai_guides/features/screen-project.md +2 -1
- package/ai_guides/features/state.md +23 -3
- package/ai_guides/features/view-layer.md +1 -1
- package/ai_guides/features/work.md +1 -1
- package/ai_guides/glossary.md +4 -4
- package/ai_guides/release_notes/6.8.md +190 -58
- package/ai_guides/template.md +11 -0
- package/docs/00_FOR_AI_AGENTS.md +3 -2
- package/docs/README.md +3 -2
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/main.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/five.AdaptiveLuminancePass.html +7 -6
- package/docs/classes/five.AnimationFrameLoop.html +1 -1
- package/docs/classes/five.BoundingMesh.html +2 -2
- package/docs/classes/five.Camera.html +3 -3
- package/docs/classes/five.EyeDomeLightingPass.html +1 -1
- package/docs/classes/five.Five.html +77 -76
- package/docs/classes/five.FivePass.html +1 -1
- package/docs/classes/five.Histogram.html +19 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -1
- package/docs/classes/five.Model.html +8 -8
- package/docs/classes/five.ModelScene.html +1 -1
- package/docs/classes/five.NetworkSubscribe.html +5 -5
- package/docs/classes/five.PBMContainer.html +1 -1
- package/docs/classes/five.PBMCustomShader.html +42 -3
- package/docs/classes/five.PBMGSObject.html +5 -3
- package/docs/classes/five.PBMGroup.html +1 -1
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PBMMeshMaterial.html +7 -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 -55
- package/docs/classes/five.Scene.html +1 -1
- package/docs/classes/five.Subscribe.html +5 -5
- package/docs/classes/five.Tile.html +1 -1
- package/docs/classes/five.Tile3D.html +24 -24
- package/docs/classes/five.TileNode.html +1 -1
- package/docs/classes/five.Tileset.html +3 -2
- package/docs/classes/five.TrajectoryNode.html +1 -1
- package/docs/classes/five.Work.html +16 -16
- package/docs/classes/five.WorkResolvedObserver.html +22 -22
- package/docs/classes/gltf-loader.DDSLoader.html +1 -1
- package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
- package/docs/classes/gltf-loader.GLTFLoader.html +2 -2
- package/docs/classes/gltf-loader.GLTFObject.html +1 -1
- package/docs/classes/gltf-loader.GLTFParser.html +1 -1
- package/docs/classes/gltf-loader.THREEGLTFLoader.html +2 -2
- package/docs/classes/line.Line.html +1 -1
- package/docs/classes/line.LineGeometry.html +1 -1
- package/docs/classes/line.LineMaterial.html +1 -1
- package/docs/classes/line.LineSegmentsGeometry.html +1 -1
- package/docs/classes/line.THREE_Line2.html +1 -1
- package/docs/classes/line.THREE_LineSegments2.html +1 -1
- package/docs/classes/plugins.BasePlugin.Controller.html +1 -1
- package/docs/classes/plugins.CSS3DObject.html +9 -0
- package/docs/classes/plugins.CSS3DRenderer.html +4 -2
- package/docs/classes/plugins.CSS3DSprite.html +11 -0
- package/docs/classes/plugins.Object3DHelperController.html +43 -0
- package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
- package/docs/classes/sticker.Sticker.html +1 -1
- package/docs/classes/vfx.Airflow.html +1 -1
- package/docs/classes/vfx.Flame.html +1 -1
- package/docs/classes/vfx.Particle.html +6 -6
- package/docs/classes/vfx.ParticleGPU.html +3 -3
- package/docs/classes/vfx.SpotLight.html +1 -1
- package/docs/documents/README.html +122 -1
- package/docs/documents/api.html +163 -35
- package/docs/documents/features_3dtile.html +1 -1
- package/docs/documents/features_camera-animation.html +18 -2
- package/docs/documents/features_clipper.html +2 -2
- package/docs/documents/features_coordinate-system.html +52 -3
- package/docs/documents/features_event.html +44 -8
- package/docs/documents/features_five.html +17 -17
- package/docs/documents/features_flowing-light-2d-pass.html +19 -116
- package/docs/documents/features_flowing-light-3d-pass.html +22 -124
- package/docs/documents/features_gaussian-blur-pass.html +6 -6
- package/docs/documents/features_gesture.html +2 -1
- package/docs/documents/features_get-screen-pixels.html +2 -2
- package/docs/documents/features_image-options.html +2 -2
- package/docs/documents/features_load-external-model.html +6 -2
- package/docs/documents/features_load-progress.html +1 -1
- package/docs/documents/features_material.html +11 -4
- package/docs/documents/features_mode.html +1 -1
- package/docs/documents/features_model.html +1 -1
- package/docs/documents/features_move-pano-effect.html +1 -1
- package/docs/documents/features_multi-work.html +1 -1
- package/docs/documents/features_pano-filter.html +123 -0
- package/docs/documents/features_pano-tile.html +1 -1
- package/docs/documents/features_pano-uv.html +1 -1
- package/docs/documents/features_parameter.html +11 -3
- package/docs/documents/features_plugin.html +1 -1
- package/docs/documents/features_postprocessing.html +1 -1
- package/docs/documents/features_raycast.html +5 -2
- package/docs/documents/features_request-proxy.html +1 -1
- package/docs/documents/features_screen-project.html +2 -1
- package/docs/documents/features_state.html +9 -2
- package/docs/documents/features_view-layer.html +1 -1
- package/docs/documents/features_work.html +1 -1
- package/docs/documents/glossary.html +5 -5
- package/docs/documents/release_notes_6.8.html +164 -64
- package/docs/documents/template.html +9 -0
- package/docs/functions/five.createDebugBoundingMesh.html +1 -1
- package/docs/functions/five.parseWork.html +1 -1
- package/docs/functions/plugins.CSS3DPlugin.html +1 -0
- package/docs/functions/plugins.GaussianSplattingEntranceAnimationPlugin.html +1 -0
- package/docs/functions/plugins.Object3DHelperPlugin.html +1 -0
- package/docs/functions/react.useFiveCurrentObserver.html +2 -2
- package/docs/functions/react.useFiveFloor.html +2 -2
- package/docs/functions/react.useFiveProject2d.html +2 -2
- package/docs/functions/vue.useFiveCurrentObserver.html +2 -2
- package/docs/functions/vue.useFiveFloor.html +2 -2
- package/docs/functions/vue.useFiveWorks.html +2 -2
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +122 -1
- package/docs/interfaces/five.AddableObject.html +1 -1
- package/docs/interfaces/five.AjaxOptions.html +1 -1
- package/docs/interfaces/five.BaseEvent.html +7 -2
- package/docs/interfaces/five.BaseExtendableEvent.html +11 -0
- package/docs/interfaces/five.EventCallback.html +58 -54
- package/docs/interfaces/five.FiveInitArgs.html +2 -2
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.GestureEvent.html +21 -2
- package/docs/interfaces/five.GesturePointer.html +20 -0
- package/docs/interfaces/five.ImageOptions.html +1 -1
- package/docs/interfaces/five.IntersectEvent.html +10 -2
- package/docs/interfaces/five.IntersectMesh.html +1 -1
- package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/five.Intersection.html +1 -1
- package/docs/interfaces/five.LooseWorkObserver.html +2 -2
- package/docs/interfaces/five.LooseWorkPanorama.html +2 -2
- package/docs/interfaces/five.LooseWorkWithExtrinsics.html +6 -6
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +10 -10
- package/docs/interfaces/five.ModeChangeEvent.html +9 -2
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelEvent.html +7 -2
- package/docs/interfaces/five.ModelSceneEvent.html +7 -2
- package/docs/interfaces/five.ModelTileEvent.html +7 -2
- package/docs/interfaces/five.MovePanoOptions.html +8 -8
- package/docs/interfaces/five.NetworkAbortError.html +1 -1
- package/docs/interfaces/five.NetworkFirbiddenError.html +1 -1
- package/docs/interfaces/five.NetworkOptions.html +1 -1
- package/docs/interfaces/five.NetworkProxyError.html +1 -1
- package/docs/interfaces/five.NetworkResourceEvent.html +7 -2
- package/docs/interfaces/five.NetworkResponseError.html +1 -1
- package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/five.ObjectEvent.html +7 -2
- package/docs/interfaces/five.PBMClipperParameter.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderInitArgs.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderSlots.html +2 -2
- package/docs/interfaces/five.PBMMaterial.html +1 -1
- package/docs/interfaces/five.PBMMeshMaterialParameters.html +5 -3
- package/docs/interfaces/five.PBMPanoDepth.html +5 -5
- package/docs/interfaces/five.PBMPanoFilterValue.html +6 -0
- package/docs/interfaces/five.PBMPanoPicture.html +8 -6
- package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +2 -3
- package/docs/interfaces/five.PBMRefinedScreen.html +2 -2
- package/docs/interfaces/five.PanoCircleMeshInterface.html +2 -2
- package/docs/interfaces/five.PanoEvent.html +15 -2
- package/docs/interfaces/five.PanoPrepareEvent.html +15 -0
- package/docs/interfaces/five.PanoTextureEvent.html +11 -2
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ParameterMaterialValue.html +40 -38
- package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/five.ParameterValue.html +54 -52
- package/docs/interfaces/five.Pose.html +1 -1
- package/docs/interfaces/five.RenderEvent.html +7 -2
- package/docs/interfaces/five.ResolvedParameterValue.html +55 -54
- package/docs/interfaces/five.RgbaData.html +7 -0
- package/docs/interfaces/five.SplatData.html +2 -2
- package/docs/interfaces/five.State.html +1 -1
- package/docs/interfaces/five.StateEvent.html +9 -2
- package/docs/interfaces/five.TextureOptions.html +1 -1
- package/docs/interfaces/five.Tile3DOptions.html +2 -2
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -7
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ViewLayer.html +24 -24
- package/docs/interfaces/five.WorkCubeImage.html +3 -2
- package/docs/interfaces/five.WorkImage.html +6 -5
- package/docs/interfaces/five.WorkInitial.html +8 -8
- package/docs/interfaces/five.WorkModel.html +8 -8
- package/docs/interfaces/five.WorkModelLayer.html +6 -6
- package/docs/interfaces/five.WorkObserver.html +29 -29
- package/docs/interfaces/five.WorkObserverJson.html +2 -2
- package/docs/interfaces/five.WorkObserverProto.html +26 -0
- package/docs/interfaces/five.WorkPanoramaJson.html +2 -2
- package/docs/interfaces/five.WorkTile.html +6 -5
- package/docs/interfaces/five.WorkVideo.html +4 -4
- package/docs/interfaces/five.WorksEvent.html +7 -2
- package/docs/interfaces/five.XRControllerEvent.html +10 -2
- package/docs/interfaces/five.XRControllerState.html +8 -0
- package/docs/interfaces/five.XRGestureEvent.html +13 -2
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.XRSessionEvent.html +9 -2
- package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
- package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.BasePlugin.State.html +1 -1
- package/docs/interfaces/plugins.CSS3DPluginController.html +52 -0
- package/docs/interfaces/plugins.CSS3DPluginType.Config.html +2 -0
- package/docs/interfaces/plugins.CSS3DPluginType.CreateCSS3DObjectType.html +10 -0
- package/docs/interfaces/plugins.CSS3DPluginType.EventMap.html +10 -0
- package/docs/interfaces/plugins.CSS3DPluginType.Params.html +4 -0
- package/docs/interfaces/plugins.CSS3DPluginType.State.html +8 -0
- package/docs/interfaces/plugins.CSS3DRendererParameters.html +2 -0
- package/docs/interfaces/plugins.DynamicPathLinePluginController.html +3 -3
- package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +1 -1
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationController.html +44 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.BoundingAABB2D.html +3 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.Config.html +8 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.EventMap.html +10 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.Keyframe.html +3 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.State.html +8 -0
- package/docs/interfaces/plugins.ItemMaskController.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.State.html +2 -2
- package/docs/interfaces/plugins.Object3DHelperPluginType.BaseController.html +30 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.BaseHelper.html +22 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.BoundingBoxController.html +30 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.HelperOffset.html +4 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.MoveController.html +36 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.MoveHelperAbstract.html +32 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Object3DHelper.html +12 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Object3DHelperPluginState.html +4 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Object3DHelperState.html +4 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.ObjectHelperControllers.html +4 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.RotateController.html +36 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.RotateHelperAbstract.html +28 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Scissor.html +5 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Vector2Position.html +3 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Vector3Position.html +4 -0
- package/docs/interfaces/plugins.OrientationPluginController.html +6 -6
- package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
- package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
- package/docs/interfaces/plugins.PlayingState.html +2 -2
- package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
- package/docs/interfaces/plugins.TrajectoryController.html +8 -8
- package/docs/interfaces/react.FiveInjectionTypes.html +21 -21
- package/docs/interfaces/sticker.IntersectionLike.html +2 -2
- package/docs/interfaces/vfx.ParticleArgs.html +4 -4
- package/docs/interfaces/vue.FiveActionVueCallbacks.html +3 -3
- package/docs/modules/five.html +1 -1
- package/docs/modules/plugins.CSS3DPluginType.html +1 -0
- package/docs/modules/plugins.GaussianSplattingEntranceAnimationPluginType.html +1 -0
- package/docs/modules/plugins.Object3DHelperPluginType.html +1 -0
- package/docs/modules/plugins.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/five.ControllerEventTypes.html +30 -26
- package/docs/types/five.EasingFunction.html +1 -0
- package/docs/types/five.EventTypes.html +26 -26
- package/docs/types/five.LegacyEventType.html +7 -7
- package/docs/types/five.PBMAlphaMode.html +1 -1
- package/docs/types/five.PBMColorStyle.html +1 -1
- package/docs/types/five.PBMFloorStyle.html +1 -1
- package/docs/types/five.PBMMeshShaderType.html +1 -1
- package/docs/types/five.PBMPointBack.html +1 -1
- package/docs/types/five.PBMPointCloudShaderType.html +1 -1
- package/docs/types/five.PBMPointShape.html +1 -1
- package/docs/types/five.PBMPointSize.html +1 -1
- package/docs/types/five.PBMTransition.html +1 -1
- package/docs/types/five.ParseOptions.html +6 -6
- package/docs/types/five.Works.html +1 -1
- package/docs/types/plugins.BasePlugin.EventMap.html +1 -1
- package/docs/types/plugins.CSS3DPluginType.PluginData.html +1 -0
- package/docs/types/plugins.CSS3DPluginType.ServerData.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.AddObject3DHelperConfig.html +13 -0
- package/docs/types/plugins.Object3DHelperPluginType.Circle.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.Color.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.Direction.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.Direction4.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.HelperConfig.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.HelperEventMap.html +17 -0
- package/docs/types/plugins.Object3DHelperPluginType.InternalHelperEventMap.html +8 -0
- package/docs/types/plugins.Object3DHelperPluginType.Object3DHelperEventMap.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.Object3DHelperPluginEventMap.html +7 -0
- package/docs/types/plugins.Object3DHelperPluginType.PositionFrom.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.ScaleCallback.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.ScalePosition.html +4 -0
- package/docs/types/plugins.Object3DHelperPluginType.UseFaceNormalInterface.html +4 -0
- package/docs/types/plugins.Object3DHelperPluginType.Vector2WithArray.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.Vector3WithArray.html +1 -0
- package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
- package/five/application/events.d.ts +1 -1
- package/five/application/five.d.ts +6 -5
- package/five/bvh/bvhObject.d.ts +2 -2
- package/five/controllers/base.d.ts +1 -0
- package/five/controllers/events.d.ts +5 -1
- package/five/controllers/mapview.d.ts +1 -0
- package/five/controllers/model.d.ts +2 -2
- package/five/controllers/panorama.d.ts +3 -2
- package/five/controllers/xrPanorama.d.ts +1 -1
- package/five/core/camera.d.ts +1 -1
- package/five/gaussian-splatting/util/renderData.d.ts +66 -0
- package/five/index.d.ts +4 -1
- package/five/index.js +272 -782
- package/five/index.mjs +26894 -32056
- package/five/meshes/boundingMesh.d.ts +1 -0
- package/five/model/index.d.ts +2 -2
- package/five/model/loaders/glTF-helpers/extensions/KHR_binary_glTF.d.ts +1 -1
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting.d.ts +26 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +7 -5
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts +13 -0
- package/five/model/loaders/glTF-helpers/extensions/base.d.ts +2 -1
- package/five/model/loaders/glTF-helpers/index.d.ts +4 -0
- package/five/model/loaders/glTF-helpers/parser.d.ts +2 -1
- package/five/model/loaders/spz.d.ts +2 -2
- package/five/model/materials/pbmMaterial.d.ts +54 -4
- package/five/model/materials/pbmMeshMaterial.d.ts +5 -3
- package/five/model/materials/pbmPointCloudMaterial.d.ts +0 -2
- package/five/model/objects/{pbmGSObject.d.ts → pbmGaussianSplattingObject.d.ts} +4 -1
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +59 -0
- package/five/model/objects/pbmGaussianSplattingTestMesh.d.ts +7 -0
- package/five/model/parameter.d.ts +11 -6
- package/five/model/tile3d/index.d.ts +5 -3
- package/five/model/tile3d/tile-node.d.ts +2 -2
- package/five/model/tile3d/tileset.d.ts +1 -0
- package/five/renderer/postprocessing/passes/adaptive-luminance-pass.d.ts +9 -7
- package/five/renderer/tools/render-cube-to-equirectangular.d.ts +7 -0
- package/five/renderer/tools/render-full-screen.d.ts +1 -1
- package/five/texture/histogram.d.ts +54 -0
- package/five/texture/loader.d.ts +1 -1
- package/five/texture/textureData.d.ts +11 -0
- package/five/thirdparty/hammer.d.ts +371 -255
- package/five/thirdparty/jsrsasign.d.ts +5 -20
- package/five/types/movePanoOptions.d.ts +4 -3
- package/five/utils/error.d.ts +1 -0
- package/five/utils/event.d.ts +98 -37
- package/five/utils/imageURL.d.ts +1 -1
- package/five/utils/memoryUsage.d.ts +2 -2
- package/five/utils/subscribe.d.ts +2 -2
- package/five/webxr/motionHelper.d.ts +1 -1
- package/five/work/index.d.ts +1 -0
- package/five/work/looseWorkType.d.ts +2 -2
- package/five/work/work.d.ts +5 -35
- package/five/work/workJsonType.d.ts +2 -2
- package/five/work/workObserverProto.d.ts +39 -0
- package/gltf-loader/index.js +9 -9
- package/gltf-loader/index.mjs +1351 -1451
- package/line/index.js +4 -4
- package/line/index.mjs +334 -513
- package/llms.txt +37 -1
- package/package.json +4 -4
- package/plugins/CSS3DPlugin/Controller.d.ts +64 -0
- package/plugins/CSS3DPlugin/index.d.ts +5 -0
- package/plugins/CSS3DPlugin/typing.d.ts +32 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.d.ts +30 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.d.ts +5 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/typing.d.ts +28 -0
- package/plugins/Object3DHelperPlugin/Controller.d.ts +99 -0
- package/plugins/Object3DHelperPlugin/Controllers/BaseController.d.ts +142 -0
- package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.d.ts +16 -0
- package/plugins/Object3DHelperPlugin/Controllers/MoveController.d.ts +66 -0
- package/plugins/Object3DHelperPlugin/Controllers/RotateController.d.ts +61 -0
- package/plugins/Object3DHelperPlugin/FiveControllerWrapper.d.ts +17 -0
- package/plugins/Object3DHelperPlugin/Helper/BaseHelper.d.ts +97 -0
- package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.d.ts +16 -0
- package/plugins/Object3DHelperPlugin/Helper/MoveHelper.d.ts +37 -0
- package/plugins/Object3DHelperPlugin/Helper/RotateHelper.d.ts +93 -0
- package/plugins/Object3DHelperPlugin/constant.d.ts +27 -0
- package/plugins/Object3DHelperPlugin/index.d.ts +6 -0
- package/plugins/Object3DHelperPlugin/typing.d.ts +143 -0
- package/plugins/Object3DHelperPlugin/utils/ArrowGroup.d.ts +22 -0
- package/plugins/Object3DHelperPlugin/utils/CenterHandle.d.ts +23 -0
- package/plugins/Object3DHelperPlugin/utils/PlaneHandle.d.ts +19 -0
- package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.d.ts +5 -0
- package/plugins/Object3DHelperPlugin/utils/cameraHooks.d.ts +2 -0
- package/plugins/Object3DHelperPlugin/utils/direction.d.ts +14 -0
- package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.d.ts +5 -0
- package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.d.ts +8 -0
- package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.d.ts +8 -0
- package/plugins/Object3DHelperPlugin/utils/solidGuide.d.ts +27 -0
- package/plugins/Object3DHelperPlugin/utils/tipsDom.d.ts +8 -0
- package/plugins/TrajectoryPlugin/Controller.d.ts +1 -1
- package/plugins/index.d.ts +4 -1
- package/plugins/index.js +35 -21
- package/plugins/index.mjs +5418 -4238
- package/plugins/thirdParty/CSS3DRenderer.d.ts +16 -3
- package/plugins/thirdParty/domevents.d.ts +36 -0
- package/plugins/utils/uuid.d.ts +1 -4
- package/react/context.d.ts +3 -2
- package/react/createProvider.d.ts +4 -4
- package/react/createStore.d.ts +3 -3
- package/react/hooks/useFiveProject2d.d.ts +1 -1
- package/react/index.js +3 -3
- package/react/index.mjs +572 -783
- package/react/rendererPool.d.ts +2 -2
- package/shader-lib/index.js +13 -14
- package/shader-lib/index.mjs +424 -824
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +102 -142
- package/umd/five-gltf-loader.js +9 -9
- package/umd/five-line.js +4 -4
- package/umd/five-plugins.js +35 -21
- package/umd/five-react.js +3 -3
- package/umd/five-shader-lib.js +13 -14
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +21 -21
- package/umd/five-vue.js +3 -3
- package/umd/five.js +267 -777
- package/vfx/index.js +21 -21
- package/vfx/index.mjs +454 -910
- package/vue/index.js +3 -3
- package/vue/index.mjs +309 -301
- package/vue/rendererPool.d.ts +5 -5
- package/work-downloader/index.js +3 -3
- package/work-downloader/index.mjs +339 -556
- package/five/gs/util/renderData.d.ts +0 -32
- package/five/model/objects/pbmGSRenderMesh.d.ts +0 -29
- package/five/work/workObserverUtils.d.ts +0 -36
- /package/five/assets/{realsee-pmg-data-url.d.ts → realsee-png-data-url.d.ts} +0 -0
- /package/five/{gs → gaussian-splatting}/wasm/data.d.ts +0 -0
- /package/five/{gs → gaussian-splatting}/wasm/sort.d.ts +0 -0
- /package/five/{gs → gaussian-splatting}/worker/dataWorker.d.ts +0 -0
- /package/five/{gs → gaussian-splatting}/worker/sortWorker.d.ts +0 -0
package/vue/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated:
|
|
5
|
-
* Version: 6.8.0
|
|
4
|
+
* Generated: 4/17/2026
|
|
5
|
+
* Version: 6.8.0
|
|
6
6
|
* Terms:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
* Update: July 28, 2021
|
|
@@ -252,331 +252,339 @@
|
|
|
252
252
|
* No amendment to or modification of this Agreement will be binding unless in
|
|
253
253
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
254
254
|
* Agreement and all related documents shall be drafted in English.
|
|
255
|
-
*/import {
|
|
256
|
-
import {
|
|
257
|
-
import * as
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
263
|
-
}
|
|
264
|
-
return r;
|
|
265
|
-
}, h.apply(this, arguments);
|
|
266
|
-
};
|
|
267
|
-
var A = !1;
|
|
268
|
-
function N(e) {
|
|
269
|
-
A = e;
|
|
255
|
+
*/import { defineComponent as e, h as t, inject as n, isRef as r, onBeforeUnmount as i, provide as a, reactive as o, readonly as s, ref as c, shallowReadonly as l, shallowRef as u, toRef as d, toRefs as f, watch as p } from "vue";
|
|
256
|
+
import { Five as m, getViewportScale as h } from "@realsee/five";
|
|
257
|
+
import * as g from "three";
|
|
258
|
+
//#region build/vue/context.js
|
|
259
|
+
var _ = !1;
|
|
260
|
+
function v(e) {
|
|
261
|
+
_ = e;
|
|
270
262
|
}
|
|
271
|
-
var
|
|
272
|
-
function
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
return e;
|
|
263
|
+
var y = Symbol();
|
|
264
|
+
function b() {
|
|
265
|
+
let e = n(y);
|
|
266
|
+
if (!e) throw Error("Inject five error!");
|
|
267
|
+
return e;
|
|
277
268
|
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}),
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
269
|
+
//#endregion
|
|
270
|
+
//#region build/vue/hooks/FiveCanvas.js
|
|
271
|
+
var x = {
|
|
272
|
+
display: "inline-block",
|
|
273
|
+
overflow: "hidden"
|
|
274
|
+
}, S = e({
|
|
275
|
+
props: {
|
|
276
|
+
width: {
|
|
277
|
+
type: Number,
|
|
278
|
+
required: !0
|
|
279
|
+
},
|
|
280
|
+
height: {
|
|
281
|
+
type: Number,
|
|
282
|
+
required: !0
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
setup(e) {
|
|
286
|
+
let n = d(e, "width"), r = d(e, "height"), i = b(), a = c(null);
|
|
287
|
+
return p([
|
|
288
|
+
n,
|
|
289
|
+
r,
|
|
290
|
+
a
|
|
291
|
+
], () => {
|
|
292
|
+
if (i.renderer && a.value) {
|
|
293
|
+
if (i.renderer.domElement.parentNode !== null && i.renderer.domElement.parentNode !== a.value) throw Error("There are more than 2 fiveCanvas in this context.");
|
|
294
|
+
i.renderer.domElement.parentNode !== a.value && a.value.appendChild(i.renderer.domElement), i.camera.aspect = n.value / r.value, i.camera.updateProjectionMatrix(), i.renderer.setSize(n.value, r.value), i.refresh({
|
|
295
|
+
width: n.value,
|
|
296
|
+
height: r.value
|
|
297
|
+
}), i.needsRender = !0;
|
|
298
|
+
}
|
|
299
|
+
}), () => t("div", {
|
|
300
|
+
id: "five",
|
|
301
|
+
style: Object.assign({
|
|
302
|
+
width: `${n.value}px`,
|
|
303
|
+
height: `${r.value}px`
|
|
304
|
+
}, x),
|
|
305
|
+
ref: a
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
}), C = [], w = [];
|
|
309
|
+
function T({ backgroundColor: e = 1579548, backgroundAlpha: t = 1, preserveDrawingBuffer: n = !0, pixelRatio: r = 1, webgl2: i = !1 } = {}) {
|
|
310
|
+
if (typeof window > "u") return;
|
|
311
|
+
let a = null;
|
|
312
|
+
if (a = i ? C.shift() : w.shift(), !a) {
|
|
313
|
+
if (i) {
|
|
314
|
+
let e = document.createElement("canvas"), t = e.getContext("webgl2");
|
|
315
|
+
t ? a = new g.WebGLRenderer({
|
|
316
|
+
preserveDrawingBuffer: n,
|
|
317
|
+
antialias: !0,
|
|
318
|
+
alpha: !0,
|
|
319
|
+
stencil: !0,
|
|
320
|
+
canvas: e,
|
|
321
|
+
context: t
|
|
322
|
+
}) : (console.error("error occurred when getting webgl2 canvas context, mybe webgl2 not support, fallback to webgl."), a = new g.WebGLRenderer({
|
|
323
|
+
preserveDrawingBuffer: n,
|
|
324
|
+
antialias: !1,
|
|
325
|
+
alpha: !0,
|
|
326
|
+
stencil: !0
|
|
327
|
+
}));
|
|
328
|
+
} else a = new g.WebGLRenderer({
|
|
329
|
+
preserveDrawingBuffer: n,
|
|
330
|
+
antialias: !1,
|
|
331
|
+
alpha: !0,
|
|
332
|
+
stencil: !0
|
|
333
|
+
});
|
|
334
|
+
a.outputEncoding = g.sRGBEncoding;
|
|
335
|
+
}
|
|
336
|
+
return a.setPixelRatio(r), a.setClearColor(e, t), a.autoClear = !0, a;
|
|
323
337
|
}
|
|
324
|
-
function
|
|
325
|
-
|
|
326
|
-
var r = e.capabilities.isWebGL2;
|
|
327
|
-
r ? C.indexOf(e) === -1 && C.push(e) : b.indexOf(e) === -1 && b.push(e);
|
|
328
|
-
}
|
|
338
|
+
function E(e) {
|
|
339
|
+
e && (e.capabilities.isWebGL2 ? w.indexOf(e) === -1 && w.push(e) : C.indexOf(e) === -1 && C.push(e));
|
|
329
340
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
return !0;
|
|
341
|
+
//#endregion
|
|
342
|
+
//#region build/vue/hooks/FiveProvider.js
|
|
343
|
+
function D(e, t) {
|
|
344
|
+
let n = Array.isArray(e) ? e : [e], r = Array.isArray(t) ? t : [t];
|
|
345
|
+
if (n.length !== r.length) return !1;
|
|
346
|
+
for (let e = 0; e < n.length; e++) if (n[e] !== r[e]) return !1;
|
|
347
|
+
return !0;
|
|
338
348
|
}
|
|
339
|
-
var
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
render: function() {
|
|
376
|
-
return O("div", { style: this.$props.style }, this.$slots);
|
|
377
|
-
}
|
|
349
|
+
var O = e({
|
|
350
|
+
props: {
|
|
351
|
+
works: Object,
|
|
352
|
+
initialWorks: Object,
|
|
353
|
+
initialState: Object,
|
|
354
|
+
initialUserAction: Boolean,
|
|
355
|
+
onWorksChange: Function,
|
|
356
|
+
onStateChange: Function,
|
|
357
|
+
onCurrentStateChange: Function,
|
|
358
|
+
onError: Function,
|
|
359
|
+
fiveInitArgs: {
|
|
360
|
+
type: Object,
|
|
361
|
+
default: () => ({})
|
|
362
|
+
},
|
|
363
|
+
style: Object
|
|
364
|
+
},
|
|
365
|
+
setup(e) {
|
|
366
|
+
var t;
|
|
367
|
+
let { works: n } = f(e), r = T({ pixelRatio: h() === 1 ? window.devicePixelRatio : 1 }), o = new m(Object.assign({ renderer: r }, e.fiveInitArgs)), s = e.works || e.initialWorks;
|
|
368
|
+
return s && o.load(s, e.initialState, void 0, (t = e.initialUserAction) == null ? !0 : t), v(!!e.works), n && p(n, (t, n) => {
|
|
369
|
+
t && !D(t, o.works) && o.load(t, e.initialState);
|
|
370
|
+
}), i(() => {
|
|
371
|
+
o && (o.dispose(), E(o.renderer));
|
|
372
|
+
}), o.on("load", () => {
|
|
373
|
+
e.onWorksChange && o.works && e.onWorksChange(o == null ? void 0 : o.works);
|
|
374
|
+
}), o.on("stateChange", (t, n) => {
|
|
375
|
+
e.onStateChange && e.onStateChange(t, n);
|
|
376
|
+
}), o.on("currentStateChange", (t, n) => {
|
|
377
|
+
e.onCurrentStateChange && e.onCurrentStateChange(t, n);
|
|
378
|
+
}), o.on("error", (t) => {
|
|
379
|
+
e.onError ? e.onError(t) : console.warn(t.message);
|
|
380
|
+
}), a(y, o), { five: l(o) };
|
|
381
|
+
},
|
|
382
|
+
render() {
|
|
383
|
+
return t("div", { style: this.$props.style }, this.$slots);
|
|
384
|
+
}
|
|
378
385
|
});
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
386
|
+
//#endregion
|
|
387
|
+
//#region build/vue/hooks/useFiveWork.js
|
|
388
|
+
function k() {
|
|
389
|
+
let e = b(), t = c(e.works), n = s(t), r = (t, n, r, i) => {
|
|
390
|
+
if (_) throw Error("props 'work' is set in fiveProvider, if you need modify work internal, use 'initialWork' instead.");
|
|
391
|
+
return e.load(t, n, r, i);
|
|
392
|
+
}, a = e.on("load", () => {
|
|
393
|
+
t.value = e.works;
|
|
394
|
+
});
|
|
395
|
+
return i(() => {
|
|
396
|
+
a();
|
|
397
|
+
}), [n, r];
|
|
390
398
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
return [r, o];
|
|
399
|
+
//#endregion
|
|
400
|
+
//#region build/vue/hooks/useFiveState.js
|
|
401
|
+
function A() {
|
|
402
|
+
let e = b(), t = c(Object.assign({}, e.state)), n = e.on("stateChange", (e) => {
|
|
403
|
+
Object.assign(t.value, Object.assign({}, e));
|
|
404
|
+
});
|
|
405
|
+
return i(() => {
|
|
406
|
+
n();
|
|
407
|
+
}), [t, (t, n = !1, r = !0) => {
|
|
408
|
+
let i = typeof t == "function" ? t(e.getCurrentState()) : t;
|
|
409
|
+
e.setState(i, n, r);
|
|
410
|
+
}];
|
|
404
411
|
}
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region build/vue/hooks/useFiveCurrentState.js
|
|
414
|
+
function j() {
|
|
415
|
+
let e = b(), t = c(e.getCurrentState()), n = e.on("currentStateChange", () => {
|
|
416
|
+
Object.assign(t.value, e.getCurrentState());
|
|
417
|
+
});
|
|
418
|
+
return i(() => {
|
|
419
|
+
n();
|
|
420
|
+
}), [t, (t, n, r) => {
|
|
421
|
+
let i = typeof t == "function" ? t(e.getCurrentState()) : t;
|
|
422
|
+
e.setState(i, n, r);
|
|
423
|
+
}];
|
|
417
424
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
425
|
+
//#endregion
|
|
426
|
+
//#region build/vue/hooks/useFiveCurrentObserver.js
|
|
427
|
+
function M() {
|
|
428
|
+
let e = b(), t = o(e.getCurrentState()), n = c(e.works.getObserver(e.pano)), r = e.on("currentStateChange", () => {
|
|
429
|
+
Object.assign(t, e.getCurrentState()), n.value = e.works.getObserver({
|
|
430
|
+
workCode: t.workCode,
|
|
431
|
+
panoIndex: t.panoIndex
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
return i(() => {
|
|
435
|
+
r();
|
|
436
|
+
}), n;
|
|
428
437
|
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
438
|
+
//#endregion
|
|
439
|
+
//#region build/vue/hooks/useFiveEventCallback.js
|
|
440
|
+
function N(e, t) {
|
|
441
|
+
let n = b().on(e, t);
|
|
442
|
+
i(() => {
|
|
443
|
+
n();
|
|
444
|
+
});
|
|
434
445
|
}
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
return {
|
|
448
|
-
updateCamera: r,
|
|
449
|
-
getPixels: n,
|
|
450
|
-
render: o,
|
|
451
|
-
needsRender: t,
|
|
452
|
-
preloadPano: i,
|
|
453
|
-
project2d: a
|
|
454
|
-
};
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region build/vue/hooks/useFiveAction.js
|
|
448
|
+
function P() {
|
|
449
|
+
let e = b();
|
|
450
|
+
return {
|
|
451
|
+
updateCamera: (t, n) => e.updateCamera(t, n),
|
|
452
|
+
getPixels: e.getPixels.bind(e),
|
|
453
|
+
render: (t) => e.render(t),
|
|
454
|
+
needsRender: () => e.needsRender = !0,
|
|
455
|
+
preloadPano: (t, n) => e.preloadPano(t, n),
|
|
456
|
+
project2d: (t, n = !1) => e.project2d(t, n)
|
|
457
|
+
};
|
|
455
458
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region build/vue/hooks/useFiveProject2d.js
|
|
461
|
+
function F(e, t = !1) {
|
|
462
|
+
let n = b(), a = c(Symbol()), o = u(e ? n.project2d(r(e) ? e.value : e, t) : null), s = n.on("cameraUpdate", () => {
|
|
463
|
+
a.value = Symbol();
|
|
464
|
+
});
|
|
465
|
+
return i(() => {
|
|
466
|
+
s();
|
|
467
|
+
}), p([a, e], () => {
|
|
468
|
+
o.value = n.project2d(r(e) ? e.value : e, t);
|
|
469
|
+
}), o;
|
|
466
470
|
}
|
|
467
|
-
function
|
|
468
|
-
|
|
471
|
+
function I() {
|
|
472
|
+
return F;
|
|
469
473
|
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
474
|
+
//#endregion
|
|
475
|
+
//#region build/vue/hooks/useFiveCameraRaycaster.js
|
|
476
|
+
function L(e) {
|
|
477
|
+
let t = e.camera.getWorldDirection(new g.Vector3());
|
|
478
|
+
return new g.Raycaster(e.camera.position, t);
|
|
473
479
|
}
|
|
474
|
-
function
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
480
|
+
function R() {
|
|
481
|
+
let e = b(), t = u(L(e)), n = e.on("cameraUpdate", () => {
|
|
482
|
+
t.value = L(e);
|
|
483
|
+
});
|
|
484
|
+
return i(() => {
|
|
485
|
+
n();
|
|
486
|
+
}), t;
|
|
481
487
|
}
|
|
482
|
-
|
|
483
|
-
|
|
488
|
+
//#endregion
|
|
489
|
+
//#region build/vue/hooks/useFiveCameraDirection.js
|
|
490
|
+
function z(e) {
|
|
491
|
+
return e.camera.getWorldDirection(new g.Vector3());
|
|
484
492
|
}
|
|
485
|
-
function
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
493
|
+
function B() {
|
|
494
|
+
let e = b(), t = u(z(e)), n = e.on("cameraUpdate", () => {
|
|
495
|
+
t.value = z(e);
|
|
496
|
+
});
|
|
497
|
+
return i(() => {
|
|
498
|
+
n();
|
|
499
|
+
}), t;
|
|
492
500
|
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
501
|
+
//#endregion
|
|
502
|
+
//#region build/vue/hooks/useFiveModelIntersectRaycaster.js
|
|
503
|
+
function V(e) {
|
|
504
|
+
let t = b(), n = u([]);
|
|
505
|
+
return p(e, () => {
|
|
506
|
+
n.value = t.model.intersectRaycaster(r(e) ? e.value : e);
|
|
507
|
+
}), n;
|
|
498
508
|
}
|
|
499
|
-
function
|
|
500
|
-
|
|
509
|
+
function H() {
|
|
510
|
+
return V;
|
|
501
511
|
}
|
|
502
|
-
|
|
503
|
-
|
|
512
|
+
//#endregion
|
|
513
|
+
//#region build/vue/hooks/useFiveModelReadyState.js
|
|
514
|
+
function U(e) {
|
|
515
|
+
return e.model.empty ? "Empty" : "Loaded";
|
|
504
516
|
}
|
|
505
|
-
function
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
517
|
+
function W() {
|
|
518
|
+
let e = b(), t = c(U(e)), n = e.on("modelLoaded", () => {
|
|
519
|
+
t.value = U(e);
|
|
520
|
+
});
|
|
521
|
+
return i(() => {
|
|
522
|
+
n();
|
|
523
|
+
}), t;
|
|
512
524
|
}
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
+
//#endregion
|
|
526
|
+
//#region build/vue/hooks/useFiveFloor.js
|
|
527
|
+
function G() {
|
|
528
|
+
let e = b(), t = c(e.model.shownFloor), n = c(e.model.floorLength), r = (t) => {
|
|
529
|
+
typeof t == "number" ? e.model.show(t) : e.model.show();
|
|
530
|
+
}, a = [];
|
|
531
|
+
return a.push(e.on("modelShownFloorChange", () => {
|
|
532
|
+
t.value = e.model.shownFloor;
|
|
533
|
+
})), a.push(e.on("modelLoaded", () => {
|
|
534
|
+
n.value = e.model.floorLength;
|
|
535
|
+
})), i(() => {
|
|
536
|
+
let e;
|
|
537
|
+
for (; e = a.shift();) e();
|
|
538
|
+
}), [
|
|
539
|
+
t,
|
|
540
|
+
n,
|
|
541
|
+
r
|
|
542
|
+
];
|
|
525
543
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
544
|
+
//#endregion
|
|
545
|
+
//#region build/vue/hooks/useFiveHelper.js
|
|
546
|
+
function K() {
|
|
547
|
+
let e = b(), t = c(e.helperVisible), n = (t) => {
|
|
548
|
+
e.helperVisible = t;
|
|
549
|
+
}, r = e.on("helpersVisibleChange", (e) => {
|
|
550
|
+
t.value = e;
|
|
551
|
+
});
|
|
552
|
+
return i(() => {
|
|
553
|
+
r();
|
|
554
|
+
}), [t, n];
|
|
535
555
|
}
|
|
536
|
-
|
|
537
|
-
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region build/vue/hooks/unsafe__useFiveInject.js
|
|
558
|
+
function q() {
|
|
559
|
+
return b();
|
|
538
560
|
}
|
|
539
|
-
|
|
540
|
-
|
|
561
|
+
//#endregion
|
|
562
|
+
//#region build/vue/hooks/useFiveModelBounding.js
|
|
563
|
+
function J(e) {
|
|
564
|
+
return e.model.bounding.clone();
|
|
541
565
|
}
|
|
542
|
-
function
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
566
|
+
function Y() {
|
|
567
|
+
let e = b(), t = u(J(e)), n = e.on("modelLoaded", () => {
|
|
568
|
+
t.value = J(e);
|
|
569
|
+
});
|
|
570
|
+
return i(() => {
|
|
571
|
+
n();
|
|
572
|
+
}), t;
|
|
549
573
|
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
574
|
+
//#endregion
|
|
575
|
+
//#region build/vue/hooks/useFiveScene.js
|
|
576
|
+
function X() {
|
|
577
|
+
return b().scene;
|
|
553
578
|
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
579
|
+
//#endregion
|
|
580
|
+
//#region build/vue/hooks/useFiveModel.js
|
|
581
|
+
function Z() {
|
|
582
|
+
let e = b(), t = u(e.model), n = e.on("modelLoaded", () => {
|
|
583
|
+
t.value = e.model;
|
|
584
|
+
});
|
|
585
|
+
return i(() => {
|
|
586
|
+
n();
|
|
587
|
+
}), t;
|
|
561
588
|
}
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
Y as FiveProvider,
|
|
565
|
-
se as unsafe__useFiveInject,
|
|
566
|
-
oe as useFiveAction,
|
|
567
|
-
ue as useFiveCameraDirection,
|
|
568
|
-
ie as useFiveCameraRaycaster,
|
|
569
|
-
ne as useFiveCurrentObserver,
|
|
570
|
-
re as useFiveCurrentState,
|
|
571
|
-
te as useFiveEventCallback,
|
|
572
|
-
le as useFiveFloor,
|
|
573
|
-
ce as useFiveHelper,
|
|
574
|
-
he as useFiveModel,
|
|
575
|
-
de as useFiveModelBounding,
|
|
576
|
-
fe as useFiveModelIntersectRaycaster,
|
|
577
|
-
ve as useFiveModelReadyState,
|
|
578
|
-
ae as useFiveProject2d,
|
|
579
|
-
ge as useFiveScene,
|
|
580
|
-
ee as useFiveState,
|
|
581
|
-
Z as useFiveWorks
|
|
582
|
-
};
|
|
589
|
+
//#endregion
|
|
590
|
+
export { S as FiveCanvas, O as FiveProvider, q as unsafe__useFiveInject, P as useFiveAction, B as useFiveCameraDirection, R as useFiveCameraRaycaster, M as useFiveCurrentObserver, j as useFiveCurrentState, N as useFiveEventCallback, G as useFiveFloor, K as useFiveHelper, Z as useFiveModel, Y as useFiveModelBounding, H as useFiveModelIntersectRaycaster, W as useFiveModelReadyState, I as useFiveProject2d, X as useFiveScene, A as useFiveState, k as useFiveWorks };
|