@realsee/five-webgpu 1.0.0-alpha.1 → 1.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/_virtual/_rolldown/runtime.js +255 -0
- package/ai_guides/README.md +2 -2
- package/ai_guides/api.md +9 -8
- package/ai_guides/features/camera-animation.md +1 -1
- package/ai_guides/features/clipper.md +1 -1
- package/ai_guides/features/coordinate-system.md +1 -1
- package/ai_guides/features/event.md +1 -2
- package/ai_guides/features/five.md +81 -12
- package/ai_guides/features/gesture.md +3 -3
- package/ai_guides/features/get-screen-pixels.md +1 -1
- package/ai_guides/features/image-options.md +3 -3
- package/ai_guides/features/load-external-model.md +15 -15
- package/ai_guides/features/load-progress.md +2 -2
- package/ai_guides/features/material.md +35 -8
- package/ai_guides/features/mode.md +28 -31
- package/ai_guides/features/model.md +1 -1
- package/ai_guides/features/pano-filter.md +3 -3
- package/ai_guides/features/pano-tile.md +2 -2
- package/ai_guides/features/raycast.md +1 -1
- package/ai_guides/features/screen-project.md +1 -1
- package/ai_guides/features/state.md +3 -3
- package/ai_guides/features/ultra-hdr.md +41 -32
- package/ai_guides/features/work.md +2 -2
- package/ai_guides/quick-start.md +3 -3
- package/ai_guides/release_notes/6.6.md +2 -2
- package/ai_guides/release_notes/6.7.md +1 -1
- package/ai_guides/release_notes/6.8.md +3 -3
- package/ai_guides/support.md +0 -4
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/index.AdaptiveLuminancePass.html +1 -1
- package/docs/classes/index.BoundingMesh.html +1 -1
- package/docs/classes/index.Camera.html +1 -1
- package/docs/classes/index.EffectComposer.html +1 -1
- package/docs/classes/index.EyeDomeLightingPass.html +1 -1
- package/docs/classes/index.Five.html +77 -68
- package/docs/classes/index.FivePass.html +1 -1
- package/docs/classes/index.FiveRenderer.html +2 -2
- package/docs/classes/index.FlowingFireworks3DPass.html +7 -3
- package/docs/classes/index.FlowingLight2DPass.html +6 -3
- package/docs/classes/index.FlowingLight3DPass.html +6 -3
- package/docs/classes/index.GaussianBlurPass.html +1 -1
- package/docs/classes/index.InternalWebGPURenderer.html +17 -3
- package/docs/classes/index.Model.html +1 -1
- package/docs/classes/index.ModelScene.html +1 -1
- package/docs/classes/index.NetworkSubscribe.html +1 -1
- package/docs/classes/index.PBMCustomNode.html +57 -0
- package/docs/classes/index.PBMGaussianSplattingNodeMaterial.html +9 -6
- package/docs/classes/index.PBMGaussianSplattingObject.html +18 -4
- package/docs/classes/index.PBMGaussianSplattingRenderMesh.html +41 -11
- package/docs/classes/index.PBMGroup.html +1 -1
- package/docs/classes/index.PBMMesh.html +1 -1
- package/docs/classes/index.PBMMeshBasicMaterial.html +19 -6
- package/docs/classes/index.PBMMeshBasicNodeMaterial.html +31 -8
- package/docs/classes/index.PBMMeshPanoOnlyMaterial.html +19 -6
- package/docs/classes/index.PBMMeshPanoOnlyNodeMaterial.html +31 -8
- package/docs/classes/index.PBMMeshPhongMaterial.html +19 -6
- package/docs/classes/index.PBMMeshPhongNodeMaterial.html +31 -8
- package/docs/classes/index.PBMMeshPhysicalMaterial.html +19 -6
- package/docs/classes/index.PBMMeshPhysicalNodeMaterial.html +31 -8
- package/docs/classes/index.PBMPanoFilter.html +8 -8
- package/docs/classes/index.PBMPointCloud.html +6 -7
- package/docs/classes/index.PBMPointCloudMaterial.html +83 -0
- package/docs/classes/index.PBMSkinnedMesh.html +1 -1
- package/docs/classes/index.PBMUpdateable.html +1 -1
- package/docs/classes/index.PanoCircleMesh.html +1 -1
- package/docs/classes/index.PanoCircleMeshCustom.html +5 -5
- package/docs/classes/index.PanoCircleMeshSolid.html +1 -1
- package/docs/classes/index.Parameter.html +61 -53
- package/docs/classes/index.Scene.html +1 -1
- package/docs/classes/index.Subscribe.html +1 -1
- package/docs/classes/index.TextureLoader.html +4 -1
- package/docs/classes/index.Tile3D.html +23 -21
- package/docs/classes/index.TileNode.html +1 -1
- package/docs/classes/index.Tileset.html +4 -4
- package/docs/classes/index.TrajectoryNode.html +3 -3
- package/docs/classes/index.Work.html +20 -18
- package/docs/classes/index.WorkResolvedObserver.html +22 -22
- package/docs/classes/index.XRButton.html +3 -0
- package/docs/documents/README.html +2 -2
- package/docs/documents/api.html +11 -10
- package/docs/documents/features_camera-animation.html +1 -1
- package/docs/documents/features_clipper.html +1 -1
- package/docs/documents/features_coordinate-system.html +1 -1
- package/docs/documents/features_event.html +1 -2
- package/docs/documents/features_five.html +53 -11
- package/docs/documents/features_gesture.html +3 -3
- package/docs/documents/features_get-screen-pixels.html +1 -1
- package/docs/documents/features_image-options.html +3 -3
- package/docs/documents/features_load-external-model.html +13 -13
- package/docs/documents/features_load-progress.html +1 -1
- package/docs/documents/features_material.html +20 -9
- package/docs/documents/features_mode.html +30 -15
- package/docs/documents/features_model.html +1 -1
- package/docs/documents/features_pano-filter.html +3 -3
- package/docs/documents/features_pano-tile.html +2 -2
- package/docs/documents/features_raycast.html +1 -1
- package/docs/documents/features_screen-project.html +1 -1
- package/docs/documents/features_state.html +2 -2
- package/docs/documents/features_ultra-hdr.html +50 -44
- package/docs/documents/features_work.html +2 -2
- package/docs/documents/quick-start.html +2 -2
- package/docs/documents/release_notes_6.6.html +2 -2
- package/docs/documents/release_notes_6.7.html +1 -1
- package/docs/documents/release_notes_6.8.html +3 -3
- package/docs/documents/support.html +1 -3
- package/docs/functions/index.customNodesCacheKey.html +3 -0
- package/docs/functions/index.parseWork.html +1 -1
- package/docs/functions/index.workToJson.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/index.AddableObject.html +1 -1
- package/docs/interfaces/index.AjaxOptions.html +1 -1
- package/docs/interfaces/index.BaseEvent.html +2 -2
- package/docs/interfaces/index.Clock.html +24 -0
- package/docs/interfaces/index.DeviceProfile.html +8 -0
- package/docs/interfaces/index.EventCallback.html +49 -47
- package/docs/interfaces/index.FiveInitArgs.html +65 -41
- package/docs/interfaces/index.GainmapCfgData.html +15 -0
- package/docs/interfaces/index.GestureEvent.html +2 -2
- package/docs/interfaces/index.IPBMMaterial.html +18 -5
- package/docs/interfaces/index.ImageOptions.html +1 -1
- package/docs/interfaces/index.IntersectEvent.html +2 -2
- package/docs/interfaces/index.IntersectMesh.html +1 -1
- package/docs/interfaces/index.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/index.Intersection.html +1 -1
- package/docs/interfaces/index.LoosePanoWork.html +2 -2
- package/docs/interfaces/index.LooseWork.html +2 -2
- package/docs/interfaces/index.LooseWorkInitial.html +2 -2
- package/docs/interfaces/index.LooseWorkModel.html +2 -2
- package/docs/interfaces/index.LooseWorkObserver.html +2 -2
- package/docs/interfaces/index.LooseWorkPanorama.html +4 -3
- package/docs/interfaces/index.LooseWorkWithExtrinsics.html +15 -9
- package/docs/interfaces/index.ModeChangeEvent.html +2 -2
- package/docs/interfaces/index.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.ModelEvent.html +2 -2
- package/docs/interfaces/index.ModelSceneEvent.html +2 -2
- package/docs/interfaces/index.ModelTileEvent.html +2 -2
- package/docs/interfaces/index.MovePanoOptions.html +1 -1
- package/docs/interfaces/index.NetworkAbortError.html +1 -1
- package/docs/interfaces/index.NetworkFirbiddenError.html +1 -1
- package/docs/interfaces/index.NetworkOptions.html +1 -1
- package/docs/interfaces/index.NetworkProxyError.html +1 -1
- package/docs/interfaces/index.NetworkResourceEvent.html +2 -2
- package/docs/interfaces/index.NetworkResponseError.html +1 -1
- package/docs/interfaces/index.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/index.ObjectEvent.html +2 -2
- package/docs/interfaces/index.PBMClipperParameter.html +2 -2
- package/docs/interfaces/index.PBMCustomNodeContext.html +87 -0
- package/docs/interfaces/index.PBMCustomNodeOptions.html +10 -0
- package/docs/interfaces/index.PBMCustomNodePanoContext.html +20 -0
- package/docs/interfaces/index.PBMCustomNodeSlots.html +31 -0
- package/docs/interfaces/index.PBMGaussianSplattingNodeMaterialOptions.html +4 -0
- package/docs/interfaces/index.PBMPanoDepth.html +5 -5
- package/docs/interfaces/index.PBMPanoFilterValue.html +2 -2
- package/docs/interfaces/index.PBMPanoGainmap.html +6 -0
- package/docs/interfaces/index.PBMPanoPicture.html +9 -8
- package/docs/interfaces/index.PBMRefinedScreen.html +2 -2
- package/docs/interfaces/index.PanoCircleMeshCustomOptions.html +2 -2
- package/docs/interfaces/index.PanoCircleMeshInterface.html +1 -1
- package/docs/interfaces/index.PanoEvent.html +2 -2
- package/docs/interfaces/index.PanoPrepareEvent.html +15 -0
- package/docs/interfaces/index.PanoTextureEvent.html +2 -2
- package/docs/interfaces/index.PanoramaControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/index.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.ParameterMaterialValue.html +46 -38
- package/docs/interfaces/index.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/index.ParameterValue.html +60 -52
- package/docs/interfaces/index.Pose.html +1 -1
- package/docs/interfaces/index.RenderEvent.html +2 -2
- package/docs/interfaces/index.ResolvedParameterValue.html +60 -52
- package/docs/interfaces/index.SplatData.html +10 -5
- package/docs/interfaces/index.State.html +1 -1
- package/docs/interfaces/index.StateEvent.html +2 -2
- package/docs/interfaces/index.TextureOptions.html +1 -1
- package/docs/interfaces/index.TilesetOptions.html +7 -2
- package/docs/interfaces/index.TopviewControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.VRPanoramaControllerCustomInitArgs.html +37 -0
- package/docs/interfaces/index.ViewLayer.html +23 -21
- package/docs/interfaces/index.WorkCubeHdrGainmapImage.html +10 -0
- package/docs/interfaces/index.WorkCubeImage.html +5 -9
- package/docs/interfaces/index.WorkImage.html +8 -12
- package/docs/interfaces/index.WorkInitial.html +8 -8
- package/docs/interfaces/index.WorkModel.html +8 -8
- package/docs/interfaces/index.WorkModelLayer.html +6 -6
- package/docs/interfaces/index.WorkObserver.html +23 -23
- package/docs/interfaces/index.WorkPanoramaJson.html +3 -2
- package/docs/interfaces/index.WorkTile.html +8 -12
- package/docs/interfaces/index.WorksEvent.html +2 -2
- package/docs/interfaces/index.XRControllerEvent.html +2 -2
- package/docs/interfaces/index.XRGestureEvent.html +2 -2
- package/docs/interfaces/index.XRPanoramaControllerCustomInitArgs.html +52 -0
- package/docs/interfaces/index.XRSessionEvent.html +2 -2
- package/docs/modules/index.html +1 -1
- package/docs/types/index.ControllerCustomInitTypes.html +4 -2
- package/docs/types/index.ControllerEventTypes.html +25 -23
- package/docs/types/index.DeviceProfileOverride.html +5 -0
- package/docs/types/index.EventTypes.html +26 -26
- package/docs/types/index.FlowingFireworks3DPassLine.html +5 -2
- package/docs/types/index.FlowingLight2DPassLine.html +4 -2
- package/docs/types/index.FlowingLight3DPassLine.html +7 -2
- package/docs/types/index.FlowingLightLineInput.html +12 -0
- package/docs/types/index.Mode.html +6 -3
- package/docs/types/index.OutputTextureDataType.html +1 -1
- package/docs/types/index.PBMColorStyle.html +1 -1
- package/docs/types/index.PBMCustomNodeTargetType.html +2 -0
- package/docs/types/index.PBMPointBack.html +1 -1
- package/docs/types/index.PBMPointShape.html +1 -1
- package/docs/types/index.PBMPointSize.html +1 -1
- package/docs/types/index.PBMRoofStyle.html +6 -0
- package/docs/types/index.ParseOptions.html +14 -8
- package/docs/types/index.XRMachineType.html +7 -0
- package/docs/variables/index.GSPLAT_PIPELINE_AUTO.html +2 -0
- package/docs/variables/index.GSPLAT_PIPELINE_RASTER_CPU_SORT.html +2 -0
- package/docs/variables/index.GSPLAT_PIPELINE_RASTER_GPU_SORT.html +2 -0
- package/docs/variables/index.PBMVertexMarkFlag.html +4 -0
- package/docs/variables/index.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
- package/docs/variables/index.controllersDefaultInitArgs.html +1 -1
- package/five/application/controllers.d.ts +8 -0
- package/five/application/events.d.ts +1 -1
- package/five/application/five.d.ts +15 -1
- package/five/application/fiveInitArgs.d.ts +32 -1
- package/five/application/mode.d.ts +8 -1
- 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/controllers/base.d.ts +3 -0
- package/five/controllers/events.d.ts +5 -3
- package/five/controllers/panorama.d.ts +2 -2
- package/five/controllers/vrPanorama.d.ts +56 -0
- package/five/controllers/xrPanorama.d.ts +506 -0
- package/five/core/internalWebGPURenderer.d.ts +23 -1
- package/five/core/panoVideo.d.ts +4 -1
- package/five/core/tiling.d.ts +40 -9
- package/five/core/webglAsyncReadFix.d.ts +25 -0
- package/five/gaussian-splatting/gpu-sort/prefixSumKernel.d.ts +65 -0
- package/five/gaussian-splatting/gpu-sort/radixSortModule.d.ts +128 -0
- package/five/gaussian-splatting/gpu-sort/shaders/radixHistogram.d.ts +2 -0
- package/five/gaussian-splatting/gpu-sort/shaders/radixReorder.d.ts +2 -0
- package/five/gaussian-splatting/gpu-sort/shaders/sortKeygen.d.ts +2 -0
- package/five/gaussian-splatting/gpu-sort/sortAdapter.d.ts +234 -0
- package/five/gaussian-splatting/layerRegistry.d.ts +17 -0
- package/five/gaussian-splatting/pipelines/cpuSortPipeline.d.ts +159 -0
- package/five/gaussian-splatting/pipelines/gpuSortPipeline.d.ts +98 -0
- package/five/gaussian-splatting/pipelines/gsplatPipeline.d.ts +104 -0
- package/five/gaussian-splatting/pipelines/pipelineMode.d.ts +42 -0
- package/five/gaussian-splatting/pipelines/sortThrottle.d.ts +45 -0
- package/five/gaussian-splatting/shStore.d.ts +22 -0
- package/five/gaussian-splatting/splatAssembler.d.ts +69 -0
- package/five/gaussian-splatting/transformStore.d.ts +37 -0
- package/five/gaussian-splatting/wasm/sort.d.ts +4 -3
- package/five/index.d.ts +8 -2
- package/five/index.js +403 -343
- package/five/index.mjs +9531 -4900
- package/five/meshes/panoCircleMeshCustom.d.ts +1 -0
- package/five/model/index.d.ts +3 -2
- package/five/model/loaders/spz.d.ts +50 -2
- package/five/model/materials/nodes/pbmMeshBasicNodeMaterial.d.ts +2 -0
- package/five/model/materials/nodes/pbmMeshPanoOnlyNodeMaterial.d.ts +2 -0
- package/five/model/materials/nodes/pbmMeshPhongNodeMaterial.d.ts +2 -0
- package/five/model/materials/nodes/pbmMeshPhysicalNodeMaterial.d.ts +2 -0
- package/five/model/materials/pbmGaussianSplattingNodeMaterial.d.ts +12 -5
- package/five/model/materials/pbmMaterial.d.ts +288 -6
- package/five/model/materials/pbmMeshMaterial.d.ts +0 -9
- package/five/model/materials/pbmPointCloudNodeMaterial.d.ts +1 -1
- package/five/model/materials/tsl/defines.d.ts +8 -2
- package/five/model/materials/tsl/outputBuilder.d.ts +8 -15
- package/five/model/materials/tsl/panoColor.d.ts +8 -2
- package/five/model/materials/tsl/utils.d.ts +13 -0
- package/five/model/objects/pbmGaussianSplattingObject.d.ts +30 -4
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +113 -48
- package/five/model/objects/pbmPointCloud.d.ts +0 -1
- package/five/model/objects/pbmPointCloudObject.d.ts +1 -1
- package/five/model/parameter.d.ts +20 -5
- package/five/model/tile3d/index.d.ts +2 -0
- package/five/model/tile3d/tileset.d.ts +5 -0
- package/five/model/tile3d/trajectory-content.d.ts +53 -0
- package/five/renderer/compute-renderers/binned/binned-core.d.ts +46 -0
- package/five/renderer/compute-renderers/binned/binned-pipelines.d.ts +10 -0
- package/five/renderer/compute-renderers/binned/shaders/args-builder.d.ts +2 -0
- package/five/renderer/compute-renderers/binned/shaders/classify.d.ts +2 -0
- package/five/renderer/compute-renderers/binned/shaders/coop.d.ts +2 -0
- package/five/renderer/compute-renderers/pointcloud-compute-renderer.d.ts +14 -38
- package/five/renderer/compute-renderers/shaders/lib/color.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/cull.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/encode.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/point-setup.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/point-size.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/raster.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/size-class.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/tile-bindings.d.ts +2 -0
- package/five/renderer/compute-renderers/uniform-layout.d.ts +23 -0
- package/five/renderer/five-renderer.d.ts +2 -0
- package/five/renderer/index.d.ts +1 -1
- package/five/renderer/postprocessing/index.d.ts +1 -1
- package/five/renderer/postprocessing/passes/flowing-fireworks-3d-pass.d.ts +23 -0
- package/five/renderer/postprocessing/passes/flowing-light-2d-pass.d.ts +2 -0
- package/five/renderer/postprocessing/passes/flowing-light-3d-pass.d.ts +23 -0
- package/five/renderer/postprocessing/passes/pass.js +255 -0
- package/five/renderer/postprocessing/passes/pass.mjs +255 -0
- package/five/renderer/tools/full-screen-quad.js +255 -0
- package/five/renderer/tools/full-screen-quad.mjs +255 -0
- package/five/texture/loader.d.ts +6 -0
- package/five/types/cube.d.ts +0 -1
- package/five/utils/calculateThreeMouse.js +255 -0
- package/five/utils/calculateThreeMouse.mjs +255 -0
- package/five/utils/detector.d.ts +11 -1
- package/five/utils/distance.js +255 -0
- package/five/utils/distance.mjs +255 -0
- package/five/utils/error.d.ts +1 -0
- package/five/utils/event.d.ts +26 -3
- package/five/utils/gainmap-data.d.ts +23 -0
- package/five/utils/isNil.js +255 -0
- package/five/utils/isNil.mjs +255 -0
- package/five/utils/ktx2.d.ts +3 -3
- package/five/utils/uuid.js +255 -0
- package/five/utils/uuid.mjs +255 -0
- package/five/webxr/XRControllerModelFactory.d.ts +55 -0
- package/five/webxr/buttonStateMachine.d.ts +31 -0
- package/five/webxr/deviceProfile.d.ts +70 -0
- package/five/webxr/inputSourceTracker.d.ts +59 -0
- package/five/webxr/referenceSpace.d.ts +60 -0
- package/five/webxr/renderTargetBridge.d.ts +45 -0
- package/five/webxr/xrButton.d.ts +4 -0
- package/five/webxr/xrManager.d.ts +174 -0
- package/five/work/index.d.ts +1 -1
- package/five/work/looseWorkType.d.ts +2 -1
- package/five/work/work.d.ts +30 -7
- package/five/work/workJsonType.d.ts +2 -1
- package/gltf-loader/gltf-object.d.ts +17 -0
- package/gltf-loader/index.d.ts +45 -0
- package/gltf-loader/index.js +255 -0
- package/gltf-loader/index.mjs +302 -0
- package/line/circle_png.d.ts +1 -0
- package/line/index.d.ts +49 -0
- package/line/index.js +255 -0
- package/line/index.mjs +340 -0
- package/llms.txt +1 -1
- package/package.json +34 -5
- package/plugins/BackgroundPlugin/Controller.d.ts +20 -0
- package/plugins/BackgroundPlugin/Controller.js +276 -0
- package/plugins/BackgroundPlugin/Controller.mjs +276 -0
- package/plugins/BackgroundPlugin/index.d.ts +5 -0
- package/plugins/BackgroundPlugin/index.js +255 -0
- package/plugins/BackgroundPlugin/index.mjs +255 -0
- package/plugins/BackgroundPlugin/typings.d.ts +44 -0
- package/plugins/BasePlugin/index.d.ts +1 -1
- package/plugins/BasePlugin/index.js +255 -0
- package/plugins/BasePlugin/index.mjs +255 -0
- package/plugins/CSS2DPlugin/Controller.d.ts +59 -0
- package/plugins/CSS2DPlugin/Controller.js +255 -0
- package/plugins/CSS2DPlugin/Controller.mjs +255 -0
- package/plugins/CSS2DPlugin/index.d.ts +5 -0
- package/plugins/CSS2DPlugin/index.js +255 -0
- package/plugins/CSS2DPlugin/index.mjs +255 -0
- package/plugins/CSS2DPlugin/style.css_raw.js +275 -0
- package/plugins/CSS2DPlugin/style.css_raw.mjs +275 -0
- package/plugins/CSS2DPlugin/typing.d.ts +31 -0
- package/plugins/CSS3DPlugin/Controller.d.ts +64 -0
- package/plugins/CSS3DPlugin/Controller.js +255 -0
- package/plugins/CSS3DPlugin/Controller.mjs +255 -0
- package/plugins/CSS3DPlugin/index.d.ts +5 -0
- package/plugins/CSS3DPlugin/index.js +255 -0
- package/plugins/CSS3DPlugin/index.mjs +255 -0
- package/plugins/CSS3DPlugin/style.css_raw.js +274 -0
- package/plugins/CSS3DPlugin/style.css_raw.mjs +274 -0
- package/plugins/CSS3DPlugin/typing.d.ts +33 -0
- package/plugins/FloorplanPlugin/Controller.d.ts +100 -0
- package/plugins/FloorplanPlugin/Controller.js +255 -0
- package/plugins/FloorplanPlugin/Controller.mjs +255 -0
- package/plugins/FloorplanPlugin/index.d.ts +6 -0
- package/plugins/FloorplanPlugin/index.js +255 -0
- package/plugins/FloorplanPlugin/index.mjs +255 -0
- package/plugins/FloorplanPlugin/render/assets.d.ts +9 -0
- package/plugins/FloorplanPlugin/render/assets.js +255 -0
- package/plugins/FloorplanPlugin/render/assets.mjs +255 -0
- package/plugins/FloorplanPlugin/render/index.d.ts +35 -0
- package/plugins/FloorplanPlugin/render/index.js +255 -0
- package/plugins/FloorplanPlugin/render/index.mjs +255 -0
- package/plugins/FloorplanPlugin/render/isPointInPolygon.d.ts +5 -0
- package/plugins/FloorplanPlugin/render/isPointInPolygon.js +255 -0
- package/plugins/FloorplanPlugin/render/isPointInPolygon.mjs +255 -0
- package/plugins/FloorplanPlugin/render/renderFloor.d.ts +22 -0
- package/plugins/FloorplanPlugin/render/renderFloor.js +255 -0
- package/plugins/FloorplanPlugin/render/renderFloor.mjs +255 -0
- package/plugins/FloorplanPlugin/render/roomLabelVisibility.d.ts +10 -0
- package/plugins/FloorplanPlugin/render/roomLabelVisibility.js +255 -0
- package/plugins/FloorplanPlugin/render/roomLabelVisibility.mjs +255 -0
- package/plugins/FloorplanPlugin/render/style.css_raw.js +585 -0
- package/plugins/FloorplanPlugin/render/style.css_raw.mjs +585 -0
- package/plugins/FloorplanPlugin/typing.d.ts +156 -0
- package/plugins/FloorplanPlugin/typings/floorplanData.d.ts +112 -0
- package/plugins/FloorplanPlugin/typings/floorplanJson.d.ts +167 -0
- package/plugins/FloorplanPlugin/typings/floorplanServerData.d.ts +78 -0
- package/plugins/FloorplanPlugin/typings/index.d.ts +3 -0
- package/plugins/FloorplanPlugin/utils/changeMode.d.ts +5 -0
- package/plugins/FloorplanPlugin/utils/changeMode.js +255 -0
- package/plugins/FloorplanPlugin/utils/changeMode.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.d.ts +6 -0
- package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.js +255 -0
- package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/correctFiveState.d.ts +11 -0
- package/plugins/FloorplanPlugin/utils/correctFiveState.js +255 -0
- package/plugins/FloorplanPlugin/utils/correctFiveState.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/equal.d.ts +9 -0
- package/plugins/FloorplanPlugin/utils/equal.js +255 -0
- package/plugins/FloorplanPlugin/utils/equal.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/filter.d.ts +8 -0
- package/plugins/FloorplanPlugin/utils/filter.js +255 -0
- package/plugins/FloorplanPlugin/utils/filter.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/fiveModelLoad.d.ts +6 -0
- package/plugins/FloorplanPlugin/utils/fiveModelLoad.js +255 -0
- package/plugins/FloorplanPlugin/utils/fiveModelLoad.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/formatData.d.ts +6 -0
- package/plugins/FloorplanPlugin/utils/formatData.js +255 -0
- package/plugins/FloorplanPlugin/utils/formatData.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/formatFloorplanJson.d.ts +20 -0
- package/plugins/FloorplanPlugin/utils/formatFloorplanJson.js +255 -0
- package/plugins/FloorplanPlugin/utils/formatFloorplanJson.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/formatPosition.d.ts +33 -0
- package/plugins/FloorplanPlugin/utils/formatPosition.js +255 -0
- package/plugins/FloorplanPlugin/utils/formatPosition.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/getDistanceFromModel.d.ts +6 -0
- package/plugins/FloorplanPlugin/utils/getDistanceFromModel.js +255 -0
- package/plugins/FloorplanPlugin/utils/getDistanceFromModel.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/getPxmm.d.ts +19 -0
- package/plugins/FloorplanPlugin/utils/getPxmm.js +255 -0
- package/plugins/FloorplanPlugin/utils/getPxmm.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/isTruelyObject.d.ts +4 -0
- package/plugins/FloorplanPlugin/utils/isTruelyObject.js +255 -0
- package/plugins/FloorplanPlugin/utils/isTruelyObject.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/nearlyEqual.d.ts +8 -0
- package/plugins/FloorplanPlugin/utils/nearlyEqual.js +255 -0
- package/plugins/FloorplanPlugin/utils/nearlyEqual.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/polylabel.d.ts +8 -0
- package/plugins/FloorplanPlugin/utils/polylabel.js +255 -0
- package/plugins/FloorplanPlugin/utils/polylabel.mjs +255 -0
- package/plugins/FloorplanPlugin/utils/to.d.ts +5 -0
- package/plugins/FloorplanPlugin/utils/to.js +255 -0
- package/plugins/FloorplanPlugin/utils/to.mjs +255 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.d.ts +1 -1
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.js +255 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.mjs +255 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.d.ts +1 -1
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.js +255 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.mjs +255 -0
- package/plugins/Object3DHelperPlugin/Controller.d.ts +99 -0
- package/plugins/Object3DHelperPlugin/Controller.js +255 -0
- package/plugins/Object3DHelperPlugin/Controller.mjs +255 -0
- package/plugins/Object3DHelperPlugin/Controllers/BaseController.d.ts +139 -0
- package/plugins/Object3DHelperPlugin/Controllers/BaseController.js +255 -0
- package/plugins/Object3DHelperPlugin/Controllers/BaseController.mjs +255 -0
- package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.d.ts +16 -0
- package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.js +255 -0
- package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.mjs +255 -0
- package/plugins/Object3DHelperPlugin/Controllers/MoveController.d.ts +66 -0
- package/plugins/Object3DHelperPlugin/Controllers/MoveController.js +255 -0
- package/plugins/Object3DHelperPlugin/Controllers/MoveController.mjs +255 -0
- package/plugins/Object3DHelperPlugin/Controllers/RotateController.d.ts +61 -0
- package/plugins/Object3DHelperPlugin/Controllers/RotateController.js +255 -0
- package/plugins/Object3DHelperPlugin/Controllers/RotateController.mjs +255 -0
- package/plugins/Object3DHelperPlugin/FiveControllerWrapper.d.ts +17 -0
- package/plugins/Object3DHelperPlugin/FiveControllerWrapper.js +255 -0
- package/plugins/Object3DHelperPlugin/FiveControllerWrapper.mjs +255 -0
- package/plugins/Object3DHelperPlugin/Helper/BaseHelper.d.ts +97 -0
- package/plugins/Object3DHelperPlugin/Helper/BaseHelper.js +255 -0
- package/plugins/Object3DHelperPlugin/Helper/BaseHelper.mjs +255 -0
- package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.d.ts +16 -0
- package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.js +255 -0
- package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.mjs +255 -0
- package/plugins/Object3DHelperPlugin/Helper/MoveHelper.d.ts +37 -0
- package/plugins/Object3DHelperPlugin/Helper/MoveHelper.js +255 -0
- package/plugins/Object3DHelperPlugin/Helper/MoveHelper.mjs +255 -0
- package/plugins/Object3DHelperPlugin/Helper/RotateHelper.d.ts +93 -0
- package/plugins/Object3DHelperPlugin/Helper/RotateHelper.js +255 -0
- package/plugins/Object3DHelperPlugin/Helper/RotateHelper.mjs +255 -0
- package/plugins/Object3DHelperPlugin/constant.d.ts +27 -0
- package/plugins/Object3DHelperPlugin/constant.js +255 -0
- package/plugins/Object3DHelperPlugin/constant.mjs +255 -0
- package/plugins/Object3DHelperPlugin/index.d.ts +6 -0
- package/plugins/Object3DHelperPlugin/index.js +255 -0
- package/plugins/Object3DHelperPlugin/index.mjs +255 -0
- package/plugins/Object3DHelperPlugin/typing.d.ts +143 -0
- package/plugins/Object3DHelperPlugin/utils/ArrowGroup.d.ts +22 -0
- package/plugins/Object3DHelperPlugin/utils/ArrowGroup.js +255 -0
- package/plugins/Object3DHelperPlugin/utils/ArrowGroup.mjs +255 -0
- package/plugins/Object3DHelperPlugin/utils/CenterHandle.d.ts +23 -0
- package/plugins/Object3DHelperPlugin/utils/CenterHandle.js +255 -0
- package/plugins/Object3DHelperPlugin/utils/CenterHandle.mjs +255 -0
- package/plugins/Object3DHelperPlugin/utils/PlaneHandle.d.ts +19 -0
- package/plugins/Object3DHelperPlugin/utils/PlaneHandle.js +255 -0
- package/plugins/Object3DHelperPlugin/utils/PlaneHandle.mjs +255 -0
- package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.d.ts +5 -0
- package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.js +255 -0
- package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.mjs +255 -0
- package/plugins/Object3DHelperPlugin/utils/cameraHooks.d.ts +3 -0
- package/plugins/Object3DHelperPlugin/utils/cameraHooks.js +255 -0
- package/plugins/Object3DHelperPlugin/utils/cameraHooks.mjs +255 -0
- package/plugins/Object3DHelperPlugin/utils/direction.d.ts +14 -0
- package/plugins/Object3DHelperPlugin/utils/direction.js +255 -0
- package/plugins/Object3DHelperPlugin/utils/direction.mjs +255 -0
- package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.d.ts +5 -0
- package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.js +255 -0
- package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.mjs +255 -0
- package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.d.ts +8 -0
- package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.js +255 -0
- package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.mjs +255 -0
- package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.d.ts +8 -0
- package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.js +255 -0
- package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.mjs +255 -0
- package/plugins/Object3DHelperPlugin/utils/solidGuide.d.ts +27 -0
- package/plugins/Object3DHelperPlugin/utils/solidGuide.js +255 -0
- package/plugins/Object3DHelperPlugin/utils/solidGuide.mjs +255 -0
- package/plugins/Object3DHelperPlugin/utils/tipsDom.d.ts +8 -0
- package/plugins/Object3DHelperPlugin/utils/tipsDom.js +255 -0
- package/plugins/Object3DHelperPlugin/utils/tipsDom.mjs +255 -0
- package/plugins/PanoAnimePlugin/Controller.d.ts +49 -0
- package/plugins/PanoAnimePlugin/Controller.js +255 -0
- package/plugins/PanoAnimePlugin/Controller.mjs +255 -0
- package/plugins/PanoAnimePlugin/index.d.ts +5 -0
- package/plugins/PanoAnimePlugin/index.js +255 -0
- package/plugins/PanoAnimePlugin/index.mjs +255 -0
- package/plugins/PanoAnimePlugin/typing.d.ts +37 -0
- package/plugins/WordPassPlugin/Controller.d.ts +62 -0
- package/plugins/WordPassPlugin/Controller.js +255 -0
- package/plugins/WordPassPlugin/Controller.mjs +255 -0
- package/plugins/WordPassPlugin/hersheyFont.d.ts +11 -0
- package/plugins/WordPassPlugin/hersheyFont.js +255 -0
- package/plugins/WordPassPlugin/hersheyFont.mjs +255 -0
- package/plugins/WordPassPlugin/index.d.ts +7 -0
- package/plugins/WordPassPlugin/index.js +255 -0
- package/plugins/WordPassPlugin/index.mjs +255 -0
- package/plugins/WordPassPlugin/textToStrokeOrderStrokes.d.ts +82 -0
- package/plugins/WordPassPlugin/textToStrokeOrderStrokes.js +256 -0
- package/plugins/WordPassPlugin/textToStrokeOrderStrokes.mjs +256 -0
- package/plugins/WordPassPlugin/typing.d.ts +109 -0
- package/plugins/WordPassPlugin/word-pass.d.ts +172 -0
- package/plugins/WordPassPlugin/word-pass.js +255 -0
- package/plugins/WordPassPlugin/word-pass.mjs +255 -0
- package/plugins/index.d.ts +8 -0
- package/plugins/index.js +3 -3
- package/plugins/index.mjs +3 -287
- package/plugins/thirdParty/CSS2DRenderer.d.ts +37 -0
- package/plugins/thirdParty/CSS2DRenderer.js +255 -0
- package/plugins/thirdParty/CSS2DRenderer.mjs +255 -0
- package/plugins/thirdParty/CSS3DRenderer.d.ts +45 -0
- package/plugins/thirdParty/CSS3DRenderer.js +255 -0
- package/plugins/thirdParty/CSS3DRenderer.mjs +255 -0
- package/plugins/thirdParty/OrbitControls.d.ts +78 -0
- package/plugins/thirdParty/doctorstrange-model.d.ts +92 -0
- package/plugins/thirdParty/doctorstrange-model.js +610 -0
- package/plugins/thirdParty/doctorstrange-model.mjs +610 -0
- package/plugins/thirdParty/domevents.d.ts +36 -0
- package/plugins/thirdParty/domevents.js +255 -0
- package/plugins/thirdParty/domevents.mjs +255 -0
- package/plugins/utils/absoluteUrl.js +255 -0
- package/plugins/utils/absoluteUrl.mjs +255 -0
- package/plugins/utils/calculatePath.d.ts +3 -0
- package/plugins/utils/calculatePath.js +255 -0
- package/plugins/utils/calculatePath.mjs +255 -0
- package/plugins/utils/clamp.d.ts +2 -0
- package/plugins/utils/clamp.js +255 -0
- package/plugins/utils/clamp.mjs +255 -0
- package/plugins/utils/uuid.d.ts +2 -0
- package/plugins/utils/uuid.js +255 -0
- package/plugins/utils/uuid.mjs +255 -0
- package/react/context.d.ts +1 -1
- package/react/createProvider.d.ts +1 -1
- package/react/fiveApp.d.ts +1 -1
- package/react/hooks/unsafe__useFiveInstance.d.ts +1 -1
- package/react/hooks/useFiveAction.d.ts +1 -1
- package/react/hooks/useFiveCurrentObserver.d.ts +1 -1
- package/react/hooks/useFiveCurrentState.d.ts +1 -1
- package/react/hooks/useFiveEventCallback.d.ts +1 -1
- package/react/hooks/useFiveModelEffect.d.ts +1 -1
- package/react/hooks/useFiveModelIntersectRaycaster.d.ts +1 -1
- package/react/hooks/useFivePlugin.d.ts +1 -1
- package/react/hooks/useFiveSceneEffect.d.ts +1 -1
- package/react/hooks/useFiveState.d.ts +1 -1
- package/react/hooks/useFiveWork.d.ts +1 -1
- package/react/index.js +3 -3
- package/react/index.mjs +3 -3
- package/react/withFive.d.ts +1 -1
- package/sticker/geometry.d.ts +3 -0
- package/sticker/index.d.ts +68 -0
- package/sticker/index.js +255 -0
- package/sticker/index.mjs +358 -0
- package/umd/five-gltf-loader.js +255 -0
- package/umd/five-line.js +322 -0
- package/umd/five-plugins.js +817 -3
- package/umd/five-react.js +3 -3
- package/umd/five-sticker.js +255 -0
- package/umd/five-vfx.js +323 -0
- package/umd/five.js +472 -412
- package/vfx/airflow/airflow.d.ts +18 -0
- package/vfx/common/simplex-noise.d.ts +2 -0
- package/vfx/frame/frame.d.ts +27 -0
- package/vfx/index.d.ts +7 -0
- package/vfx/index.js +255 -0
- package/vfx/index.mjs +738 -0
- package/vfx/particle/instance.d.ts +36 -0
- package/vfx/particle/particle.d.ts +119 -0
- package/vfx/particle/utils.d.ts +11 -0
- package/vfx/particle-gpu/particle.d.ts +75 -0
- package/vfx/particle-gpu/utils.d.ts +11 -0
- package/vfx/spotLight/spotLight.d.ts +15 -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 +9 -0
- package/work-downloader/download.d.ts +16 -0
- package/work-downloader/index.d.ts +2 -0
- package/work-downloader/index.js +255 -0
- package/work-downloader/index.mjs +595 -0
- 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/interfaces/index.PBMHDRConfig.html +0 -12
- package/five/gaussian-splatting/util/renderData.d.ts +0 -66
- package/five/gaussian-splatting/worker/dataWorker.d.ts +0 -1
- package/five/three-version-check.d.ts +0 -1
- package/five/utils/hdr-data.d.ts +0 -13
- package/five/utils/shaderContentFix.d.ts +0 -7
- /package/five/{renderer/compute-renderers/shaders/rasterize.d.ts → gaussian-splatting/gpu-sort/shaders/prefixSum.d.ts} +0 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import type * as THREE from 'three/webgpu';
|
|
2
|
+
import type { BasePlugin } from '../BasePlugin';
|
|
3
|
+
import type { FloorplanData, FloorplanServerData, FloorplanRoomItem, FloorplanItem } from './typings';
|
|
4
|
+
export * from './typings';
|
|
5
|
+
/** 户型图在垂直方向上吸附的高度基准 */
|
|
6
|
+
export declare const enum FLOOR_PLAN_ATTACHED_TO {
|
|
7
|
+
/** 吸附到楼层地面 */
|
|
8
|
+
FLOOR = 1,
|
|
9
|
+
/** 吸附到楼层天花板 */
|
|
10
|
+
CEILING = 2,
|
|
11
|
+
/** 吸附到模型整体包围盒中心高度 */
|
|
12
|
+
BOUNDING_CENTER = 3
|
|
13
|
+
}
|
|
14
|
+
export declare const enum FloorplanErrorType {
|
|
15
|
+
UnknownError = "UnknownError",
|
|
16
|
+
DataNotLoaded = "DataNotLoaded",
|
|
17
|
+
UpdateSizeError = "UpdateSizeError",
|
|
18
|
+
BreakOffByHide = "BreakOffByHide",
|
|
19
|
+
BreakOffByDisable = "BreakOffByDisable",
|
|
20
|
+
ModelNotLoaded = "ModelNotLoaded",
|
|
21
|
+
ChangeModeError = "ChangeModeError",
|
|
22
|
+
UpdateCameraError = "UpdateCameraError"
|
|
23
|
+
}
|
|
24
|
+
export type PluginData = FloorplanData;
|
|
25
|
+
export type PluginServerData = FloorplanServerData | {
|
|
26
|
+
version: number;
|
|
27
|
+
data: FloorplanServerData;
|
|
28
|
+
};
|
|
29
|
+
export type ShowMode = 'Topview' | 'Mapview' | 'Floorplan';
|
|
30
|
+
/** 展示户型图时,需要 five 处于的相机状态 */
|
|
31
|
+
export interface ShowState {
|
|
32
|
+
latitude: number;
|
|
33
|
+
longitude: number;
|
|
34
|
+
fov?: number;
|
|
35
|
+
mode: ShowMode;
|
|
36
|
+
offset?: THREE.Vector3;
|
|
37
|
+
distance?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface MissingFloorConfig {
|
|
40
|
+
imageURL: string;
|
|
41
|
+
imageWidth: number;
|
|
42
|
+
imageHeight: number;
|
|
43
|
+
text: string;
|
|
44
|
+
textFontSize: number;
|
|
45
|
+
}
|
|
46
|
+
export interface Config {
|
|
47
|
+
/** 指北针文字 */
|
|
48
|
+
northDesc: string;
|
|
49
|
+
/** 展示户型图时,模型/全景画面的透明度 */
|
|
50
|
+
modelOpacity: number;
|
|
51
|
+
/** 是否展示相机(点位)图标 */
|
|
52
|
+
cameraEnable: boolean;
|
|
53
|
+
/** 是否允许房间高亮 */
|
|
54
|
+
highlightEnable: boolean;
|
|
55
|
+
/** 鼠标 hover 房间时是否高亮 */
|
|
56
|
+
hoverEnable: boolean;
|
|
57
|
+
/** 是否展示指北针 */
|
|
58
|
+
compassEnable: boolean;
|
|
59
|
+
/** 相机静止一段时间后是否自动展示户型图 */
|
|
60
|
+
autoShowEnable: boolean;
|
|
61
|
+
/** 是否展示外墙标尺 */
|
|
62
|
+
ruleLabelsEnable: boolean;
|
|
63
|
+
/** 是否展示房间标签(名称/面积/尺寸的总开关) */
|
|
64
|
+
roomLabelsEnable: boolean;
|
|
65
|
+
/** 是否展示房间面积 */
|
|
66
|
+
roomAreaEnable: boolean;
|
|
67
|
+
/** 是否展示房间名称 */
|
|
68
|
+
roomNameEnable: boolean;
|
|
69
|
+
/** 其它类型房间是否展示名称 */
|
|
70
|
+
roomNameOtherTypeEnable: boolean;
|
|
71
|
+
/** 是否展示房间尺寸标注 */
|
|
72
|
+
roomDimensionEnable: boolean;
|
|
73
|
+
/** 相机(点位)图标使用的图片地址 */
|
|
74
|
+
cameraImageUrl: string;
|
|
75
|
+
/** 户型图在垂直方向上的吸附基准 */
|
|
76
|
+
attachedTo: FLOOR_PLAN_ATTACHED_TO;
|
|
77
|
+
/** 自定义房间标签渲染,返回值将替代默认的名称/面积/尺寸 DOM */
|
|
78
|
+
getLabelElement?: (room: FloorplanRoomItem) => HTMLElement | undefined;
|
|
79
|
+
/** 房间标签是否根据房间大小自适应显隐 */
|
|
80
|
+
adaptiveRoomLabelVisibleEnable: boolean;
|
|
81
|
+
/** 无楼层数据时的占位配置 */
|
|
82
|
+
missingFloorConfig: Partial<MissingFloorConfig>;
|
|
83
|
+
/** 国际化转换函数 */
|
|
84
|
+
i18n: (key: string) => string;
|
|
85
|
+
/** 面积文案格式化 */
|
|
86
|
+
getRoomAreaText: (size: number) => string;
|
|
87
|
+
/** 尺寸文案格式化 */
|
|
88
|
+
getRoomDimensionText: (width: number, height: number) => string;
|
|
89
|
+
/** 标尺距离文案格式化 */
|
|
90
|
+
getRuleDistanceText: (distance: number) => string;
|
|
91
|
+
}
|
|
92
|
+
/** 插件初始化参数 */
|
|
93
|
+
export interface Params {
|
|
94
|
+
config?: Partial<Config>;
|
|
95
|
+
initialState?: Partial<State>;
|
|
96
|
+
/** 展示户型图时期望 five 处于的相机状态,可通过 updateShowState 更新 */
|
|
97
|
+
showState?: Partial<ShowState>;
|
|
98
|
+
}
|
|
99
|
+
export interface State extends BasePlugin.State {
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
visible: boolean;
|
|
102
|
+
config: Config;
|
|
103
|
+
}
|
|
104
|
+
export interface ShowOptions {
|
|
105
|
+
/** 展示的楼层 */
|
|
106
|
+
floorIndex: number;
|
|
107
|
+
/** 展示户型图时,模型 / 全景画面的透明度 */
|
|
108
|
+
modelOpacity: number;
|
|
109
|
+
/** 是否立即展示(不做渐显动画) */
|
|
110
|
+
immediately: boolean;
|
|
111
|
+
/** 是否是自动展示(惯性停止后触发),内部使用 */
|
|
112
|
+
isAutoShow: boolean;
|
|
113
|
+
/** 是否是用户行为 */
|
|
114
|
+
userAction: boolean;
|
|
115
|
+
}
|
|
116
|
+
export interface HideOptions {
|
|
117
|
+
userAction: boolean;
|
|
118
|
+
/** 是否是自动隐藏(相机大幅转动触发),内部使用 */
|
|
119
|
+
isAutoHide: boolean;
|
|
120
|
+
}
|
|
121
|
+
/** 高亮数据,key 为 `${floorIndex}_${roomId}` */
|
|
122
|
+
export type HighlightData = Record<string, {
|
|
123
|
+
fill?: string;
|
|
124
|
+
opacity?: number;
|
|
125
|
+
disabled?: boolean;
|
|
126
|
+
} | undefined>;
|
|
127
|
+
export interface EventMap extends BasePlugin.EventMap<State, PluginData> {
|
|
128
|
+
/** enabled 从 false 到 true 的回调 */
|
|
129
|
+
enable: (event: {
|
|
130
|
+
userAction: boolean;
|
|
131
|
+
}) => void;
|
|
132
|
+
/** enabled 从 true 到 false 的回调 */
|
|
133
|
+
disable: (event: {
|
|
134
|
+
userAction: boolean;
|
|
135
|
+
}) => void;
|
|
136
|
+
/** 插件 dispose */
|
|
137
|
+
dispose: () => void;
|
|
138
|
+
/** 开始展示户型图 */
|
|
139
|
+
show: (event: {
|
|
140
|
+
userAction: boolean;
|
|
141
|
+
auto: boolean;
|
|
142
|
+
}) => void;
|
|
143
|
+
/** 户型图展示动画结束 */
|
|
144
|
+
showAnimationEnded: (event: {
|
|
145
|
+
userAction: boolean;
|
|
146
|
+
auto: boolean;
|
|
147
|
+
}) => void;
|
|
148
|
+
/** 隐藏户型图 */
|
|
149
|
+
hide: (event: {
|
|
150
|
+
auto: boolean;
|
|
151
|
+
userAction: boolean;
|
|
152
|
+
}) => void;
|
|
153
|
+
/** 点击房间,返回 false 可阻止默认的分间跳转行为 */
|
|
154
|
+
click: (room: FloorplanRoomItem | null) => void | false;
|
|
155
|
+
}
|
|
156
|
+
export type { FloorplanRoomItem, FloorplanItem };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 户型图内部使用数据(camelCase),由 formatData 从 FloorplanServerData 转换而来
|
|
3
|
+
*/
|
|
4
|
+
import type * as THREE from 'three/webgpu';
|
|
5
|
+
export interface FloorplanPosition {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
}
|
|
9
|
+
export interface FloorplanImagePosition {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}
|
|
13
|
+
export interface FloorplanOutlineItem {
|
|
14
|
+
url: string;
|
|
15
|
+
index: number;
|
|
16
|
+
svgUrl?: string;
|
|
17
|
+
/** svg_url 拉取到的文本内容,存在时优先使用 svg 渲染线框 */
|
|
18
|
+
svgContent?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface FloorplanEntrance {
|
|
21
|
+
positionInImage: FloorplanImagePosition;
|
|
22
|
+
northRad: number;
|
|
23
|
+
roomId: string;
|
|
24
|
+
floorIndex: number;
|
|
25
|
+
}
|
|
26
|
+
export interface FloorplanBounding {
|
|
27
|
+
max: FloorplanPosition;
|
|
28
|
+
min: FloorplanPosition;
|
|
29
|
+
origin: FloorplanPosition;
|
|
30
|
+
}
|
|
31
|
+
export interface FloorplanRoomLabelItem {
|
|
32
|
+
position: FloorplanPosition;
|
|
33
|
+
positionInImage: FloorplanImagePosition;
|
|
34
|
+
}
|
|
35
|
+
export interface FloorplanDimension {
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
/** 垂直方向标注箭头定位点 */
|
|
39
|
+
vertical?: FloorplanPosition[];
|
|
40
|
+
/** 水平方向标注箭头定位点 */
|
|
41
|
+
horizontal?: FloorplanPosition[];
|
|
42
|
+
}
|
|
43
|
+
export interface FloorplanRoomItem {
|
|
44
|
+
id: string;
|
|
45
|
+
/** 面积,单位 mm² */
|
|
46
|
+
size: number;
|
|
47
|
+
name: string;
|
|
48
|
+
/** 用户自定义分间别名 */
|
|
49
|
+
customizedName?: string;
|
|
50
|
+
/** 房间轮廓多边形点(户型图坐标系,原点在中心) */
|
|
51
|
+
path: FloorplanPosition[];
|
|
52
|
+
roomType: string;
|
|
53
|
+
/** 地板材质类型:0 纯色 / 1 瓷砖 / 2 木地板 */
|
|
54
|
+
floorType: number;
|
|
55
|
+
roomLabel: FloorplanRoomLabelItem;
|
|
56
|
+
observerIndexs: number[];
|
|
57
|
+
dimension?: FloorplanDimension;
|
|
58
|
+
}
|
|
59
|
+
export interface FloorplanRuleLabels {
|
|
60
|
+
top: FloorplanPosition[][];
|
|
61
|
+
right: FloorplanPosition[][];
|
|
62
|
+
bottom: FloorplanPosition[][];
|
|
63
|
+
left: FloorplanPosition[][];
|
|
64
|
+
}
|
|
65
|
+
export interface FloorplanFloorData {
|
|
66
|
+
floorName: string;
|
|
67
|
+
floorIndex: number;
|
|
68
|
+
rooms: FloorplanRoomItem[];
|
|
69
|
+
rules: FloorplanRuleLabels;
|
|
70
|
+
/** 无房间数据时,是否仍有墙线(决定是否展示缺省占位图) */
|
|
71
|
+
is_has_wall: boolean;
|
|
72
|
+
/** 家具数据,通过 loadItems 填充 */
|
|
73
|
+
items?: FloorplanItem[];
|
|
74
|
+
}
|
|
75
|
+
export interface FloorplanObserver {
|
|
76
|
+
floorIndex: number;
|
|
77
|
+
positionInImage: FloorplanImagePosition;
|
|
78
|
+
}
|
|
79
|
+
export interface FloorplanData {
|
|
80
|
+
outlines: FloorplanOutlineItem[];
|
|
81
|
+
floorDatas: FloorplanFloorData[];
|
|
82
|
+
entrance: FloorplanEntrance | null;
|
|
83
|
+
bounding: FloorplanBounding;
|
|
84
|
+
observers: FloorplanObserver[];
|
|
85
|
+
}
|
|
86
|
+
/** 家具 icon(loadItems 填充到 floorDatas[i].items) */
|
|
87
|
+
export interface FloorplanItem {
|
|
88
|
+
id: string;
|
|
89
|
+
positionInImage: FloorplanImagePosition;
|
|
90
|
+
/** 宽度,占户型图整体宽度的比例 [0,1] */
|
|
91
|
+
width: number;
|
|
92
|
+
/** 高度,占户型图整体高度的比例 [0,1] */
|
|
93
|
+
height: number;
|
|
94
|
+
src: string;
|
|
95
|
+
notes: string;
|
|
96
|
+
rotateX: number;
|
|
97
|
+
rotateY: number;
|
|
98
|
+
rotateZ: number;
|
|
99
|
+
}
|
|
100
|
+
/** 挂载到雷达图上的三维物体(3D 世界坐标) */
|
|
101
|
+
export interface FloorplanExtraObject3D {
|
|
102
|
+
id: string;
|
|
103
|
+
position: THREE.Vector3;
|
|
104
|
+
icon?: string;
|
|
105
|
+
}
|
|
106
|
+
/** 转换为户型图 2D 坐标后的三维挂件 */
|
|
107
|
+
export interface FloorplanExtraObject {
|
|
108
|
+
id: string;
|
|
109
|
+
floorIndex: number;
|
|
110
|
+
positionInImage: FloorplanImagePosition;
|
|
111
|
+
icon: string;
|
|
112
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* doctorstrange 户型图编辑器导出的原始 json 数据结构
|
|
3
|
+
* @description formatFloorplanJson 以此为输入,转换成 FloorplanServerData(snake_case)
|
|
4
|
+
*/
|
|
5
|
+
export interface FloorplanJsonVrData {
|
|
6
|
+
origin: {
|
|
7
|
+
left: number;
|
|
8
|
+
top: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface FloorplanJsonItem {
|
|
12
|
+
id: string;
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
area: string;
|
|
16
|
+
type: number;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
locked: boolean;
|
|
20
|
+
rotateZ: number;
|
|
21
|
+
rotateX: boolean;
|
|
22
|
+
rotateY: boolean;
|
|
23
|
+
displayName: string;
|
|
24
|
+
}
|
|
25
|
+
export interface FloorplanJsonPoint {
|
|
26
|
+
id: string;
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
rules: string;
|
|
30
|
+
lines: string[];
|
|
31
|
+
locked: boolean;
|
|
32
|
+
displayName: string;
|
|
33
|
+
}
|
|
34
|
+
export interface FloorplanJsonAreaAttachmentArea {
|
|
35
|
+
id: string;
|
|
36
|
+
type: number;
|
|
37
|
+
roomType: string;
|
|
38
|
+
direction: string;
|
|
39
|
+
towardsRad: number;
|
|
40
|
+
directionCode: string;
|
|
41
|
+
sharedLines: string[];
|
|
42
|
+
sharedLineItems: string[];
|
|
43
|
+
}
|
|
44
|
+
export interface FloorplanJsonLine {
|
|
45
|
+
align: number;
|
|
46
|
+
curve: number;
|
|
47
|
+
displayName: string;
|
|
48
|
+
edgeComputed: boolean;
|
|
49
|
+
id: string;
|
|
50
|
+
isLoadBearing: boolean;
|
|
51
|
+
items: string[];
|
|
52
|
+
offsetComputed: number;
|
|
53
|
+
points: string[];
|
|
54
|
+
thickness: null;
|
|
55
|
+
thicknessComputed: number;
|
|
56
|
+
type: number;
|
|
57
|
+
}
|
|
58
|
+
export interface FloorplanJsonLineItem {
|
|
59
|
+
displayName: string;
|
|
60
|
+
endPointAt: {
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
};
|
|
64
|
+
entrance: number;
|
|
65
|
+
id: string;
|
|
66
|
+
is: 'window' | 'door' | 'other';
|
|
67
|
+
length: number;
|
|
68
|
+
line: string;
|
|
69
|
+
noAnalysis: boolean;
|
|
70
|
+
offsetY?: number;
|
|
71
|
+
height?: number;
|
|
72
|
+
rotateX: boolean;
|
|
73
|
+
rotateY: boolean;
|
|
74
|
+
start: number;
|
|
75
|
+
startIndex: number;
|
|
76
|
+
startPointAt: {
|
|
77
|
+
x: number;
|
|
78
|
+
y: number;
|
|
79
|
+
};
|
|
80
|
+
type: number;
|
|
81
|
+
}
|
|
82
|
+
export interface FloorplanJsonArea {
|
|
83
|
+
attachments: {
|
|
84
|
+
areas: FloorplanJsonAreaAttachmentArea[];
|
|
85
|
+
lineItems: {
|
|
86
|
+
direction: string;
|
|
87
|
+
directionCode: string;
|
|
88
|
+
edge: boolean;
|
|
89
|
+
id: string;
|
|
90
|
+
is: string;
|
|
91
|
+
length: number;
|
|
92
|
+
towardsRad: number;
|
|
93
|
+
}[];
|
|
94
|
+
};
|
|
95
|
+
points: string[];
|
|
96
|
+
roomName: string;
|
|
97
|
+
roomType: string;
|
|
98
|
+
roomTypeName: number;
|
|
99
|
+
typeName: string;
|
|
100
|
+
type: number;
|
|
101
|
+
id: string;
|
|
102
|
+
empty: boolean;
|
|
103
|
+
roomTypeLabelMod: boolean;
|
|
104
|
+
labelX: number;
|
|
105
|
+
labelY: number;
|
|
106
|
+
hideName: boolean;
|
|
107
|
+
size: number;
|
|
108
|
+
customizedName: string;
|
|
109
|
+
displayName: string;
|
|
110
|
+
floorType: number;
|
|
111
|
+
hideSize: boolean;
|
|
112
|
+
nameIndex: string;
|
|
113
|
+
simpleLabelMod: boolean;
|
|
114
|
+
sizeWithoutLine: number;
|
|
115
|
+
subLabelX: number;
|
|
116
|
+
subLabelY: number;
|
|
117
|
+
subType: number;
|
|
118
|
+
}
|
|
119
|
+
export interface FloorplanJsonFloorplan {
|
|
120
|
+
name: string;
|
|
121
|
+
items: FloorplanJsonItem[];
|
|
122
|
+
points: FloorplanJsonPoint[];
|
|
123
|
+
floorIndex: string;
|
|
124
|
+
lineItems: FloorplanJsonLineItem[];
|
|
125
|
+
areas: FloorplanJsonArea[];
|
|
126
|
+
lines: FloorplanJsonLine[];
|
|
127
|
+
templates: {
|
|
128
|
+
areaLabelName: string;
|
|
129
|
+
};
|
|
130
|
+
info: {
|
|
131
|
+
description: string;
|
|
132
|
+
height: number;
|
|
133
|
+
ruleType: number;
|
|
134
|
+
subheight: number;
|
|
135
|
+
tags: unknown[];
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
export interface FloorplanJsonCheckMessage {
|
|
139
|
+
desc: string;
|
|
140
|
+
tag: string;
|
|
141
|
+
text: string;
|
|
142
|
+
}
|
|
143
|
+
/** doctorstrange 编辑器导出的原始户型图 json(IFloorplanJson,命名与后端服务保持一致,便于对照) */
|
|
144
|
+
export interface IFloorplanJson {
|
|
145
|
+
nonce: string;
|
|
146
|
+
version: string;
|
|
147
|
+
vrData: FloorplanJsonVrData;
|
|
148
|
+
structure: string;
|
|
149
|
+
floorplans: FloorplanJsonFloorplan[];
|
|
150
|
+
checkMessages: FloorplanJsonCheckMessage[];
|
|
151
|
+
canvasSize: {
|
|
152
|
+
height: number;
|
|
153
|
+
width: number;
|
|
154
|
+
};
|
|
155
|
+
property: {
|
|
156
|
+
isAreaNameCustomized: boolean;
|
|
157
|
+
scanSize: number;
|
|
158
|
+
sourceType: number;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
/** 观察点(point 位)传入格式,用于计算每个点位所在房间 */
|
|
162
|
+
export interface FloorplanJsonObserver {
|
|
163
|
+
index: number;
|
|
164
|
+
floor_index: number;
|
|
165
|
+
/** [x, y, z],米单位,与 five work.observers 的 standingPosition 对应 */
|
|
166
|
+
position: [number, number, number];
|
|
167
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 户型图服务端原始数据(snake_case),与 formatData 配合转换成内部使用的 FloorplanData(camelCase)
|
|
3
|
+
*/
|
|
4
|
+
export interface FloorplanServerPosition {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
}
|
|
8
|
+
export interface FloorplanServerImagePosition {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}
|
|
12
|
+
export interface FloorplanServerOutlineItem {
|
|
13
|
+
url: string;
|
|
14
|
+
index: number;
|
|
15
|
+
svg_url?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface FloorplanServerEntrance {
|
|
18
|
+
position_in_image: FloorplanServerImagePosition;
|
|
19
|
+
north_rad: number;
|
|
20
|
+
room_id: string;
|
|
21
|
+
floor_index: number;
|
|
22
|
+
}
|
|
23
|
+
export interface FloorplanServerBounding {
|
|
24
|
+
max: FloorplanServerPosition;
|
|
25
|
+
min: FloorplanServerPosition;
|
|
26
|
+
origin: FloorplanServerPosition;
|
|
27
|
+
}
|
|
28
|
+
export interface FloorplanServerRoomLabelItem {
|
|
29
|
+
position: FloorplanServerPosition;
|
|
30
|
+
position_in_image: FloorplanServerImagePosition;
|
|
31
|
+
}
|
|
32
|
+
export interface FloorplanServerDimension {
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
/** 垂直方向标注箭头定位点(一般为 2 个点:下端点、上端点) */
|
|
36
|
+
vertical?: FloorplanServerPosition[];
|
|
37
|
+
/** 水平方向标注箭头定位点(一般为 2 个点:左端点、右端点) */
|
|
38
|
+
horizontal?: FloorplanServerPosition[];
|
|
39
|
+
}
|
|
40
|
+
export interface FloorplanServerRoomItem {
|
|
41
|
+
id: string;
|
|
42
|
+
size: number;
|
|
43
|
+
name: string;
|
|
44
|
+
customized_name?: string;
|
|
45
|
+
path: FloorplanServerPosition[];
|
|
46
|
+
room_type: string;
|
|
47
|
+
floor_type: number;
|
|
48
|
+
room_label: FloorplanServerRoomLabelItem;
|
|
49
|
+
observer_indexs: number[];
|
|
50
|
+
dimension?: FloorplanServerDimension;
|
|
51
|
+
}
|
|
52
|
+
export interface FloorplanServerRuleLabels {
|
|
53
|
+
top: FloorplanServerPosition[][];
|
|
54
|
+
right: FloorplanServerPosition[][];
|
|
55
|
+
bottom: FloorplanServerPosition[][];
|
|
56
|
+
left: FloorplanServerPosition[][];
|
|
57
|
+
}
|
|
58
|
+
export interface FloorplanServerFloorData {
|
|
59
|
+
floor_name: string;
|
|
60
|
+
floor_index: number;
|
|
61
|
+
rooms: FloorplanServerRoomItem[];
|
|
62
|
+
rules: FloorplanServerRuleLabels;
|
|
63
|
+
is_has_wall: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface FloorplanServerObserver {
|
|
66
|
+
floor_index: number;
|
|
67
|
+
position_in_image: FloorplanServerImagePosition;
|
|
68
|
+
}
|
|
69
|
+
export interface FloorplanServerComputedData {
|
|
70
|
+
floor_datas: FloorplanServerFloorData[];
|
|
71
|
+
entrance: FloorplanServerEntrance | null;
|
|
72
|
+
bounding: FloorplanServerBounding;
|
|
73
|
+
observers: FloorplanServerObserver[];
|
|
74
|
+
}
|
|
75
|
+
export interface FloorplanServerData {
|
|
76
|
+
outlines: FloorplanServerOutlineItem[];
|
|
77
|
+
computed_data: FloorplanServerComputedData;
|
|
78
|
+
}
|