@realsee/five-webgpu 1.0.0-alpha.12 → 1.0.0-alpha.14
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/_virtual/_rolldown/runtime.js +3 -3
- 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.EyeDomeLightingPass.html +1 -1
- package/docs/classes/index.Five.html +41 -32
- package/docs/classes/index.FivePass.html +1 -1
- package/docs/classes/index.FiveRenderer.html +7 -2
- package/docs/classes/index.FlowingFireworks3DPass.html +1 -1
- package/docs/classes/index.FlowingLight2DPass.html +1 -1
- package/docs/classes/index.FlowingLight3DPass.html +1 -1
- package/docs/classes/index.GaussianBlurPass.html +1 -1
- package/docs/classes/index.InternalWebGPURenderer.html +4 -5
- 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 +1 -1
- package/docs/classes/index.PBMGaussianSplattingNodeMaterial.html +9 -9
- package/docs/classes/index.PBMGaussianSplattingObject.html +49 -11
- package/docs/classes/index.PBMGaussianSplattingRenderMesh.html +71 -16
- package/docs/classes/index.PBMGroup.html +1 -1
- package/docs/classes/index.PBMMesh.html +1 -1
- package/docs/classes/index.PBMMeshBasicMaterial.html +1 -1
- package/docs/classes/index.PBMMeshBasicNodeMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPanoOnlyMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPanoOnlyNodeMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPhongMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPhongNodeMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPhysicalMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPhysicalNodeMaterial.html +1 -1
- package/docs/classes/index.PBMPanoFilter.html +1 -1
- package/docs/classes/index.PBMPointCloud.html +1 -1
- package/docs/classes/index.PBMPointCloudMaterial.html +1 -1
- 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 +1 -1
- package/docs/classes/index.PanoCircleMeshSolid.html +1 -1
- package/docs/classes/index.Parameter.html +24 -22
- package/docs/classes/index.Scene.html +1 -1
- package/docs/classes/index.Subscribe.html +1 -1
- package/docs/classes/index.Tile3D.html +22 -22
- package/docs/classes/index.TileNode.html +2 -2
- package/docs/classes/index.TrajectoryNode.html +1 -1
- package/docs/classes/index.Work.html +15 -22
- package/docs/classes/index.WorkResolvedObserver.html +22 -22
- package/docs/functions/index.createWorks.html +1 -1
- package/docs/functions/index.parseWork.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/index.AddableObject.html +1 -1
- package/docs/interfaces/index.AjaxOptions.html +1 -1
- package/docs/interfaces/index.BaseEvent.html +1 -1
- package/docs/interfaces/index.Clock.html +1 -1
- package/docs/interfaces/index.DeviceProfile.html +2 -2
- package/docs/interfaces/index.EventCallback.html +3 -3
- package/docs/interfaces/index.GestureEvent.html +1 -1
- package/docs/interfaces/index.IPBMMaterial.html +1 -1
- package/docs/interfaces/index.ImageOptions.html +1 -1
- package/docs/interfaces/index.IntersectEvent.html +1 -1
- 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.LooseWorkWithExtrinsics.html +8 -8
- package/docs/interfaces/index.ModeChangeEvent.html +1 -1
- package/docs/interfaces/index.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.ModelEvent.html +1 -1
- package/docs/interfaces/index.ModelSceneEvent.html +1 -1
- package/docs/interfaces/index.ModelTileEvent.html +1 -1
- 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 +1 -1
- package/docs/interfaces/index.NetworkResponseError.html +1 -1
- package/docs/interfaces/index.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/index.ObjectEvent.html +1 -1
- package/docs/interfaces/index.PBMGaussianSplattingNodeMaterialOptions.html +3 -3
- package/docs/interfaces/index.PanoCircleMeshInterface.html +1 -1
- package/docs/interfaces/index.PanoEvent.html +1 -1
- package/docs/interfaces/index.PanoPrepareEvent.html +1 -1
- package/docs/interfaces/index.PanoTextureEvent.html +1 -1
- package/docs/interfaces/index.PanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.ParameterMaterialValue.html +8 -6
- package/docs/interfaces/index.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/index.ParameterValue.html +21 -19
- package/docs/interfaces/index.Pose.html +1 -1
- package/docs/interfaces/index.RenderEvent.html +1 -1
- package/docs/interfaces/index.ResolvedParameterValue.html +22 -20
- package/docs/interfaces/index.SplatData.html +10 -6
- package/docs/interfaces/index.State.html +1 -1
- package/docs/interfaces/index.StateEvent.html +1 -1
- package/docs/interfaces/index.TextureOptions.html +1 -1
- package/docs/interfaces/index.Tile3DOptions.html +2 -2
- package/docs/interfaces/index.TopviewControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.VRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.ViewLayer.html +22 -22
- package/docs/interfaces/index.WorkCubeHdrGainmapImage.html +2 -2
- package/docs/interfaces/index.WorkCubeImage.html +2 -2
- package/docs/interfaces/index.WorkImage.html +5 -5
- package/docs/interfaces/index.WorkInitial.html +8 -8
- package/docs/interfaces/index.WorkInitialJson.html +2 -2
- package/docs/interfaces/index.WorkJson.html +2 -4
- package/docs/interfaces/index.WorkModel.html +8 -8
- package/docs/interfaces/index.WorkModelJson.html +2 -2
- package/docs/interfaces/index.WorkModelLayer.html +6 -6
- package/docs/interfaces/index.WorkModelLayerJson.html +2 -2
- package/docs/interfaces/index.WorkObserver.html +23 -23
- package/docs/interfaces/index.WorkObserverJson.html +2 -2
- package/docs/interfaces/index.WorkPanoramaJson.html +2 -2
- package/docs/interfaces/index.WorkPanoramasJson.html +2 -2
- package/docs/interfaces/index.WorkTile.html +5 -5
- package/docs/interfaces/index.WorkVideo.html +4 -4
- package/docs/interfaces/index.WorksEvent.html +1 -1
- package/docs/interfaces/index.XRControllerEvent.html +1 -1
- package/docs/interfaces/index.XRGestureEvent.html +2 -2
- package/docs/interfaces/index.XRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.XRSessionEvent.html +1 -1
- package/docs/modules/index.html +1 -1
- package/docs/types/index.LegacyEventType.html +3 -3
- package/docs/types/index.OutputTextureDataType.html +1 -1
- package/docs/types/index.ParseOptions.html +8 -8
- package/docs/types/index.PointCloudTransparencyMode.html +2 -0
- package/docs/types/index.Works.html +1 -1
- package/docs/variables/index.loadAt3d.html +2 -0
- package/docs/variables/index.loadDome.html +2 -0
- package/docs/variables/index.loadDomez.html +2 -0
- package/docs/variables/index.loadGltf.html +2 -0
- package/docs/variables/index.loadPbm.html +2 -0
- package/docs/variables/index.loadPly.html +2 -0
- package/five/application/five.d.ts +13 -0
- package/five/chunks/at3d.js +338 -0
- package/five/chunks/at3d.mjs +338 -0
- package/five/chunks/dome.js +338 -0
- package/five/chunks/dome.mjs +338 -0
- package/five/chunks/domez.js +338 -0
- package/five/chunks/domez.mjs +338 -0
- package/five/chunks/fbx.js +338 -0
- package/five/chunks/fbx.mjs +338 -0
- package/five/chunks/fflate.js +338 -0
- package/five/chunks/fflate.mjs +338 -0
- package/five/chunks/glTF-helpers.js +804 -0
- package/five/chunks/glTF-helpers.mjs +804 -0
- package/five/chunks/gltf.js +338 -0
- package/five/chunks/gltf.mjs +338 -0
- package/five/chunks/imageBitmap.js +338 -0
- package/five/chunks/imageBitmap.mjs +338 -0
- package/five/chunks/imageSupport.js +338 -0
- package/five/chunks/imageSupport.mjs +338 -0
- package/five/chunks/lzma.js +383 -0
- package/five/chunks/lzma.mjs +383 -0
- package/five/chunks/memoryUsage.js +339 -0
- package/five/chunks/memoryUsage.mjs +339 -0
- package/five/chunks/minimal.js +338 -0
- package/five/chunks/minimal.mjs +338 -0
- package/five/chunks/pbm.js +338 -0
- package/five/chunks/pbm.mjs +338 -0
- package/five/chunks/pbmGaussianSplattingObject.js +338 -0
- package/five/chunks/pbmGaussianSplattingObject.mjs +338 -0
- package/five/chunks/pbmMeshMaterial.js +338 -0
- package/five/chunks/pbmMeshMaterial.mjs +338 -0
- package/five/chunks/pick.js +338 -0
- package/five/chunks/pick.mjs +338 -0
- package/five/chunks/ply.js +339 -0
- package/five/chunks/ply.mjs +339 -0
- package/five/chunks/spz.js +364 -0
- package/five/chunks/spz.mjs +364 -0
- package/five/controllers/xrPanorama.d.ts +13 -0
- package/five/core/internalWebGPURenderer.d.ts +0 -3
- package/five/core/panoVideo.d.ts +2 -0
- package/five/core/webglBlendEquationFix.d.ts +41 -0
- package/five/gaussian-splatting/arena/splatArena.d.ts +227 -0
- package/five/gaussian-splatting/cullConstants.d.ts +68 -0
- package/five/gaussian-splatting/hybridConstants.d.ts +60 -0
- package/five/gaussian-splatting/instancePacking.d.ts +46 -0
- package/five/gaussian-splatting/mirrors/layoutMirror.d.ts +44 -0
- package/five/gaussian-splatting/mirrors/mirrorBuffer.d.ts +72 -0
- package/five/gaussian-splatting/mirrors/mirrorSet.d.ts +17 -0
- package/five/gaussian-splatting/mirrors/objectParamsMirror.d.ts +35 -0
- package/five/gaussian-splatting/mirrors/transformMirror.d.ts +26 -0
- package/five/gaussian-splatting/pipelines/gpuSortPipeline.d.ts +5 -31
- package/five/gaussian-splatting/pipelines/pipelineMode.d.ts +1 -2
- package/five/gaussian-splatting/sh-core/codec.d.ts +13 -0
- package/five/gaussian-splatting/sh-core/constants.d.ts +29 -0
- package/five/gaussian-splatting/sh-core/index.d.ts +4 -0
- package/five/gaussian-splatting/sh-core/rebakePolicy.d.ts +20 -0
- package/five/gaussian-splatting/sh-core/texelRange.d.ts +18 -0
- package/five/gaussian-splatting/shAssembler.d.ts +14 -0
- package/five/gaussian-splatting/shBakeScheduler.d.ts +26 -0
- package/five/gaussian-splatting/shBaker.d.ts +44 -0
- package/five/gaussian-splatting/shTileResource.d.ts +22 -0
- package/five/gaussian-splatting/splatAssembler.d.ts +1 -1
- package/five/gaussian-splatting/transformStore.d.ts +2 -2
- package/five/gaussian-splatting/worker/decodeWorker.d.ts +72 -0
- package/five/index.d.ts +0 -1
- package/five/index.js +138 -640
- package/five/index.mjs +229 -29261
- package/five/model/index.d.ts +18 -6
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +1 -1
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts +1 -1
- package/five/model/loaders/ply.d.ts +22 -6
- package/five/model/loaders/spz.d.ts +9 -49
- package/five/model/loaders/spz.worker.d.ts +37 -0
- package/five/model/materials/pbmGaussianSplattingNodeMaterial.d.ts +6 -12
- package/five/model/objects/pbmGaussianSplattingObject.d.ts +91 -6
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +357 -15
- package/five/model/parameter.d.ts +4 -0
- package/five/renderer/compute-renderers/binned/binned-core.d.ts +45 -2
- package/five/renderer/compute-renderers/binned/binned-pipelines.d.ts +82 -1
- package/five/renderer/compute-renderers/color-space.d.ts +13 -0
- package/five/renderer/compute-renderers/composite-pipelines.d.ts +36 -0
- package/five/renderer/compute-renderers/frame-plan.d.ts +166 -0
- package/five/renderer/compute-renderers/gsplat-hybrid-renderer.d.ts +386 -0
- package/five/renderer/compute-renderers/pointcloud-compute-renderer.d.ts +101 -16
- package/five/renderer/compute-renderers/shaders/composite-blend.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/gsplatHybridIndirect.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/gsplatProjector.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/gsplatQuad.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/write-additive.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/write-blend.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/write-opaque.d.ts +2 -0
- package/five/renderer/compute-renderers/tile-uniform-writer.d.ts +70 -0
- package/five/renderer/compute-renderers/transparency-buffers.d.ts +59 -0
- package/five/renderer/compute-renderers/transparency-math.d.ts +70 -0
- package/five/renderer/compute-renderers/transparency-settings.d.ts +24 -0
- package/five/renderer/compute-renderers/uniform-layout.d.ts +11 -2
- package/five/renderer/five-renderer.d.ts +28 -3
- package/five/renderer/index.d.ts +1 -1
- package/five/renderer/postprocessing/passes/pass.js +3 -3
- package/five/renderer/postprocessing/passes/pass.mjs +3 -3
- package/five/renderer/tools/full-screen-quad.js +3 -3
- package/five/renderer/tools/full-screen-quad.mjs +3 -3
- package/five/texture/videoTextureBridge.d.ts +152 -0
- package/five/thirdparty/sha256.d.ts +149 -0
- package/five/utils/calculateThreeMouse.js +3 -3
- package/five/utils/calculateThreeMouse.mjs +3 -3
- package/five/utils/distance.js +3 -3
- package/five/utils/distance.mjs +3 -3
- package/five/utils/isNil.js +3 -3
- package/five/utils/isNil.mjs +3 -3
- package/five/utils/memoryUsage.d.ts +1 -1
- package/five/utils/uuid.js +3 -3
- package/five/utils/uuid.mjs +3 -3
- package/five/work/work.d.ts +0 -7
- package/five/work/workJsonType.d.ts +0 -2
- package/gltf-loader/index.js +3 -3
- package/gltf-loader/index.mjs +3 -50
- package/line/index.js +3 -3
- package/line/index.mjs +3 -88
- package/package.json +1 -1
- package/plugins/BackgroundPlugin/Controller.js +4 -4
- package/plugins/BackgroundPlugin/Controller.mjs +4 -4
- package/plugins/BackgroundPlugin/index.js +3 -3
- package/plugins/BackgroundPlugin/index.mjs +3 -3
- package/plugins/BasePlugin/index.js +3 -3
- package/plugins/BasePlugin/index.mjs +3 -3
- package/plugins/CSS2DPlugin/Controller.js +3 -3
- package/plugins/CSS2DPlugin/Controller.mjs +3 -3
- package/plugins/CSS2DPlugin/index.js +3 -3
- package/plugins/CSS2DPlugin/index.mjs +3 -3
- package/plugins/CSS2DPlugin/style.css_raw.js +4 -4
- package/plugins/CSS2DPlugin/style.css_raw.mjs +4 -4
- package/plugins/CSS3DPlugin/Controller.js +3 -3
- package/plugins/CSS3DPlugin/Controller.mjs +3 -3
- package/plugins/CSS3DPlugin/index.js +3 -3
- package/plugins/CSS3DPlugin/index.mjs +3 -3
- package/plugins/CSS3DPlugin/style.css_raw.js +4 -4
- package/plugins/CSS3DPlugin/style.css_raw.mjs +4 -4
- package/plugins/FloorplanPlugin/Controller.js +3 -3
- package/plugins/FloorplanPlugin/Controller.mjs +3 -3
- package/plugins/FloorplanPlugin/index.js +3 -3
- package/plugins/FloorplanPlugin/index.mjs +3 -3
- package/plugins/FloorplanPlugin/render/assets.js +3 -3
- package/plugins/FloorplanPlugin/render/assets.mjs +3 -3
- package/plugins/FloorplanPlugin/render/index.js +3 -3
- package/plugins/FloorplanPlugin/render/index.mjs +3 -3
- package/plugins/FloorplanPlugin/render/isPointInPolygon.js +3 -3
- package/plugins/FloorplanPlugin/render/isPointInPolygon.mjs +3 -3
- package/plugins/FloorplanPlugin/render/renderFloor.js +3 -3
- package/plugins/FloorplanPlugin/render/renderFloor.mjs +3 -3
- package/plugins/FloorplanPlugin/render/roomLabelVisibility.js +3 -3
- package/plugins/FloorplanPlugin/render/roomLabelVisibility.mjs +3 -3
- package/plugins/FloorplanPlugin/render/style.css_raw.js +4 -4
- package/plugins/FloorplanPlugin/render/style.css_raw.mjs +4 -4
- package/plugins/FloorplanPlugin/utils/changeMode.js +3 -3
- package/plugins/FloorplanPlugin/utils/changeMode.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.js +3 -3
- package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/correctFiveState.js +3 -3
- package/plugins/FloorplanPlugin/utils/correctFiveState.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/equal.js +3 -3
- package/plugins/FloorplanPlugin/utils/equal.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/filter.js +3 -3
- package/plugins/FloorplanPlugin/utils/filter.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/fiveModelLoad.js +3 -3
- package/plugins/FloorplanPlugin/utils/fiveModelLoad.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/formatData.js +3 -3
- package/plugins/FloorplanPlugin/utils/formatData.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/formatFloorplanJson.js +3 -3
- package/plugins/FloorplanPlugin/utils/formatFloorplanJson.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/formatPosition.js +3 -3
- package/plugins/FloorplanPlugin/utils/formatPosition.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/getDistanceFromModel.js +3 -3
- package/plugins/FloorplanPlugin/utils/getDistanceFromModel.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/getPxmm.js +3 -3
- package/plugins/FloorplanPlugin/utils/getPxmm.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/isTruelyObject.js +3 -3
- package/plugins/FloorplanPlugin/utils/isTruelyObject.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/nearlyEqual.js +3 -3
- package/plugins/FloorplanPlugin/utils/nearlyEqual.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/polylabel.js +3 -3
- package/plugins/FloorplanPlugin/utils/polylabel.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/to.js +3 -3
- package/plugins/FloorplanPlugin/utils/to.mjs +3 -3
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.d.ts +6 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.js +3 -3
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.mjs +3 -3
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.js +3 -3
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Controller.js +3 -3
- package/plugins/Object3DHelperPlugin/Controller.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/BaseController.js +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/BaseController.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.js +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/MoveController.js +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/MoveController.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/RotateController.js +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/RotateController.mjs +3 -3
- package/plugins/Object3DHelperPlugin/FiveControllerWrapper.js +3 -3
- package/plugins/Object3DHelperPlugin/FiveControllerWrapper.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Helper/BaseHelper.js +3 -3
- package/plugins/Object3DHelperPlugin/Helper/BaseHelper.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.js +3 -3
- package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Helper/MoveHelper.js +3 -3
- package/plugins/Object3DHelperPlugin/Helper/MoveHelper.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Helper/RotateHelper.js +3 -3
- package/plugins/Object3DHelperPlugin/Helper/RotateHelper.mjs +3 -3
- package/plugins/Object3DHelperPlugin/constant.js +3 -3
- package/plugins/Object3DHelperPlugin/constant.mjs +3 -3
- package/plugins/Object3DHelperPlugin/index.js +3 -3
- package/plugins/Object3DHelperPlugin/index.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/ArrowGroup.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/ArrowGroup.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/CenterHandle.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/CenterHandle.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/PlaneHandle.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/PlaneHandle.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/cameraHooks.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/cameraHooks.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/direction.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/direction.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/solidGuide.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/solidGuide.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/tipsDom.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/tipsDom.mjs +3 -3
- package/plugins/PanoAnimePlugin/Controller.js +3 -3
- package/plugins/PanoAnimePlugin/Controller.mjs +3 -3
- package/plugins/PanoAnimePlugin/index.js +3 -3
- package/plugins/PanoAnimePlugin/index.mjs +3 -3
- package/plugins/WordPassPlugin/Controller.js +3 -3
- package/plugins/WordPassPlugin/Controller.mjs +3 -3
- package/plugins/WordPassPlugin/hersheyFont.js +3 -3
- package/plugins/WordPassPlugin/hersheyFont.mjs +3 -3
- package/plugins/WordPassPlugin/index.js +3 -3
- package/plugins/WordPassPlugin/index.mjs +3 -3
- package/plugins/WordPassPlugin/textToStrokeOrderStrokes.js +4 -4
- package/plugins/WordPassPlugin/textToStrokeOrderStrokes.mjs +4 -4
- package/plugins/WordPassPlugin/word-pass.js +3 -3
- package/plugins/WordPassPlugin/word-pass.mjs +3 -3
- package/plugins/index.js +3 -3
- package/plugins/index.mjs +3 -3
- package/plugins/thirdParty/CSS2DRenderer.js +3 -3
- package/plugins/thirdParty/CSS2DRenderer.mjs +3 -3
- package/plugins/thirdParty/CSS3DRenderer.js +3 -3
- package/plugins/thirdParty/CSS3DRenderer.mjs +3 -3
- package/plugins/thirdParty/doctorstrange-model.js +75 -75
- package/plugins/thirdParty/doctorstrange-model.mjs +75 -75
- package/plugins/thirdParty/domevents.js +3 -3
- package/plugins/thirdParty/domevents.mjs +3 -3
- package/plugins/utils/absoluteUrl.js +3 -3
- package/plugins/utils/absoluteUrl.mjs +3 -3
- package/plugins/utils/calculatePath.js +3 -3
- package/plugins/utils/calculatePath.mjs +3 -3
- package/plugins/utils/clamp.js +3 -3
- package/plugins/utils/clamp.mjs +3 -3
- package/plugins/utils/uuid.js +3 -3
- package/plugins/utils/uuid.mjs +3 -3
- package/react/hooks/useFiveModelReadyState.d.ts +1 -1
- package/react/index.js +3 -3
- package/react/index.mjs +3 -644
- package/sticker/index.d.ts +7 -0
- package/sticker/index.js +46 -3
- package/sticker/index.mjs +43 -103
- package/umd/five-gltf-loader.js +3 -3
- package/umd/five-line.js +3 -3
- package/umd/five-plugins.js +3 -3
- package/umd/five-react.js +2 -2
- package/umd/five-sticker.js +46 -3
- package/umd/five-vfx.js +2 -2
- package/umd/five.js +216 -179
- package/vfx/index.js +3 -3
- package/vfx/index.mjs +3 -486
- package/work-downloader/index.js +3 -3
- package/work-downloader/index.mjs +3 -315
- package/docs/functions/index.loadAt3d.html +0 -1
- package/docs/functions/index.loadDome.html +0 -1
- package/docs/functions/index.loadDomez.html +0 -1
- package/docs/functions/index.loadGltf.html +0 -1
- package/docs/functions/index.loadPbm.html +0 -1
- package/docs/functions/index.loadPly.html +0 -1
- package/five/certificates/hardware.d.ts +0 -1
- package/five/gaussian-splatting/shStore.d.ts +0 -22
- package/five/thirdparty/jsrsasign.d.ts +0 -753
- package/five/work/keychain.d.ts +0 -5
- package/five/work/verify.d.ts +0 -7
- package/five/work/workVerify.d.ts +0 -2
- /package/five/{work/_ALLOW_HOST.d.ts → renderer/compute-renderers/shaders/composite-additive.d.ts} +0 -0
package/line/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,89 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/import
|
|
339
|
-
import { Line2 as t } from "three/addons/lines/webgpu/Line2.js";
|
|
340
|
-
import { LineSegments2 as n } from "three/addons/lines/webgpu/LineSegments2.js";
|
|
341
|
-
import { LineGeometry as r } from "three/addons/lines/LineGeometry.js";
|
|
342
|
-
import { LineSegmentsGeometry as i } from "three/addons/lines/LineSegmentsGeometry.js";
|
|
343
|
-
//#endregion
|
|
344
|
-
//#region build/line/index.js
|
|
345
|
-
var a = 14467195, o = 8, s = 2, c = 20, l = null;
|
|
346
|
-
function u(t, n) {
|
|
347
|
-
n instanceof e.Vector3 ? t.color.setRGB(n.x, n.y, n.z) : t.color.set(n);
|
|
348
|
-
}
|
|
349
|
-
var d = class extends e.Object3D {
|
|
350
|
-
static get version() {
|
|
351
|
-
return "1.0.0-alpha.12";
|
|
352
|
-
}
|
|
353
|
-
constructor(n = new e.Vector3(), i = new e.Vector3()) {
|
|
354
|
-
super(), this.type = "FiveLine", this.needsRender = !0;
|
|
355
|
-
let u = new r(), d = new e.Line2NodeMaterial({
|
|
356
|
-
color: a,
|
|
357
|
-
linewidth: s,
|
|
358
|
-
dashed: !1
|
|
359
|
-
});
|
|
360
|
-
d.scale = c, this.line = new t(u, d);
|
|
361
|
-
let f = new e.BufferGeometry(), p = new e.PointsMaterial({
|
|
362
|
-
color: a,
|
|
363
|
-
size: o,
|
|
364
|
-
map: l || (l = new e.TextureLoader().load("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==")),
|
|
365
|
-
sizeAttenuation: !1,
|
|
366
|
-
transparent: !0
|
|
367
|
-
});
|
|
368
|
-
this.points = new e.Points(f, p), this.points.renderOrder = 11, this.points.frustumCulled = !1, this.setPoints(n, i), this.add(this.line, this.points);
|
|
369
|
-
}
|
|
370
|
-
setPoints(e, t) {
|
|
371
|
-
let n = [].concat(e.toArray(), t.toArray());
|
|
372
|
-
this.updatePointsPositions(n), this.updateLinePositions(n), this.needsRender = !0;
|
|
373
|
-
}
|
|
374
|
-
updatePointsPositions(t) {
|
|
375
|
-
let n = this.points.geometry, r = n.getAttribute("position");
|
|
376
|
-
r && r.array.length === t.length ? (r.array.set(t), r.needsUpdate = !0) : n.setAttribute("position", new e.BufferAttribute(new Float32Array(t), 3));
|
|
377
|
-
}
|
|
378
|
-
updateLinePositions(e) {
|
|
379
|
-
let t = this.line.geometry, n = t.getAttribute("instanceStart");
|
|
380
|
-
if (!n || n.data.array.length !== e.length) {
|
|
381
|
-
t.setPositions(e), this.line.computeLineDistances();
|
|
382
|
-
return;
|
|
383
|
-
}
|
|
384
|
-
let r = n.data;
|
|
385
|
-
r.array.set(e), r.needsUpdate = !0, t.computeBoundingBox(), t.computeBoundingSphere(), this.updateLineDistances();
|
|
386
|
-
}
|
|
387
|
-
updateLineDistances() {
|
|
388
|
-
let t = this.line.geometry, n = t.getAttribute("instanceDistanceStart");
|
|
389
|
-
if (!n) {
|
|
390
|
-
this.line.computeLineDistances();
|
|
391
|
-
return;
|
|
392
|
-
}
|
|
393
|
-
let r = t.getAttribute("instanceStart"), i = t.getAttribute("instanceEnd"), a = r.count, o = n.data, s = o.array, c = new e.Vector3(), l = new e.Vector3();
|
|
394
|
-
for (let e = 0, t = 0; e < a; e++, t += 2) c.fromBufferAttribute(r, e), l.fromBufferAttribute(i, e), s[t] = t === 0 ? 0 : s[t - 1], s[t + 1] = s[t] + c.distanceTo(l);
|
|
395
|
-
o.needsUpdate = !0;
|
|
396
|
-
}
|
|
397
|
-
getPoints() {
|
|
398
|
-
let t = this.points.geometry.attributes.position.array;
|
|
399
|
-
return [new e.Vector3(t[0], t[1], t[2]), new e.Vector3(t[3], t[4], t[5])];
|
|
400
|
-
}
|
|
401
|
-
setMaterial(e) {
|
|
402
|
-
let t = this.line.material;
|
|
403
|
-
for (let n in e) {
|
|
404
|
-
if (!Object.prototype.hasOwnProperty.call(e, n)) continue;
|
|
405
|
-
let r = e[n];
|
|
406
|
-
if (n === "color") u(t, r);
|
|
407
|
-
else if (n === "dashed") t.dashed = r;
|
|
408
|
-
else if (n === "dashScale") t.scale = r;
|
|
409
|
-
else if (n === "resolution") {
|
|
410
|
-
let e = r;
|
|
411
|
-
this.setResolution(e.x, e.y);
|
|
412
|
-
} else t[n] = r;
|
|
413
|
-
}
|
|
414
|
-
this.needsRender = !0;
|
|
415
|
-
}
|
|
416
|
-
setResolution(e, t) {
|
|
417
|
-
let n = this.line._resolution;
|
|
418
|
-
n && (n.x !== e || n.y !== t) && (n.set(e, t), this.needsRender = !0);
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
Object.assign(d.prototype, { isFiveLine: !0 });
|
|
422
|
-
//#endregion
|
|
423
|
-
export { d as Line, r as LineGeometry, i as LineSegmentsGeometry, t as THREE_Line2, n as THREE_LineSegments2 };
|
|
338
|
+
*/import*as THREE from"three/webgpu";import{Line2}from"three/addons/lines/webgpu/Line2.js";import{LineSegments2}from"three/addons/lines/webgpu/LineSegments2.js";import{LineGeometry}from"three/addons/lines/LineGeometry.js";import{LineSegmentsGeometry}from"three/addons/lines/LineSegmentsGeometry.js";var DEFAULT_COLOR=14467195,POINT_SIZE=8,DEFAULT_LINEWIDTH=2,DEFAULT_DASHSCALE=20,sharedCircleTexture=null;function applyColor(material,value){value instanceof THREE.Vector3?material.color.setRGB(value.x,value.y,value.z):material.color.set(value)}var FiveLine=class extends THREE.Object3D{static get version(){return`1.0.0-alpha.14`}constructor(vector0=new THREE.Vector3,vector1=new THREE.Vector3){super(),this.type=`FiveLine`,this.needsRender=!0;let lineGeometry=new LineGeometry,lineMaterial=new THREE.Line2NodeMaterial({color:DEFAULT_COLOR,linewidth:DEFAULT_LINEWIDTH,dashed:!1});lineMaterial.scale=DEFAULT_DASHSCALE,this.line=new Line2(lineGeometry,lineMaterial);let pointsGeometry=new THREE.BufferGeometry,pointsMaterial=new THREE.PointsMaterial({color:DEFAULT_COLOR,size:POINT_SIZE,map:sharedCircleTexture||(sharedCircleTexture=new THREE.TextureLoader().load(`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==`)),sizeAttenuation:!1,transparent:!0});this.points=new THREE.Points(pointsGeometry,pointsMaterial),this.points.renderOrder=11,this.points.frustumCulled=!1,this.setPoints(vector0,vector1),this.add(this.line,this.points)}setPoints(vector0,vector1){let positions=[].concat(vector0.toArray(),vector1.toArray());this.updatePointsPositions(positions),this.updateLinePositions(positions),this.needsRender=!0}updatePointsPositions(positions){let geometry=this.points.geometry,existing=geometry.getAttribute(`position`);existing&&existing.array.length===positions.length?(existing.array.set(positions),existing.needsUpdate=!0):geometry.setAttribute(`position`,new THREE.BufferAttribute(new Float32Array(positions),3))}updateLinePositions(positions){let geometry=this.line.geometry,instanceStart=geometry.getAttribute(`instanceStart`);if(!instanceStart||instanceStart.data.array.length!==positions.length){geometry.setPositions(positions),this.line.computeLineDistances();return}let buffer=instanceStart.data;buffer.array.set(positions),buffer.needsUpdate=!0,geometry.computeBoundingBox(),geometry.computeBoundingSphere(),this.updateLineDistances()}updateLineDistances(){let geometry=this.line.geometry,instanceDistance=geometry.getAttribute(`instanceDistanceStart`);if(!instanceDistance){this.line.computeLineDistances();return}let instanceStart=geometry.getAttribute(`instanceStart`),instanceEnd=geometry.getAttribute(`instanceEnd`),count=instanceStart.count,buffer=instanceDistance.data,array=buffer.array,start=new THREE.Vector3,end=new THREE.Vector3;for(let i=0,j=0;i<count;i++,j+=2)start.fromBufferAttribute(instanceStart,i),end.fromBufferAttribute(instanceEnd,i),array[j]=j===0?0:array[j-1],array[j+1]=array[j]+start.distanceTo(end);buffer.needsUpdate=!0}getPoints(){let array=this.points.geometry.attributes.position.array;return[new THREE.Vector3(array[0],array[1],array[2]),new THREE.Vector3(array[3],array[4],array[5])]}setMaterial(map){let lineMaterial=this.line.material;for(let name in map){if(!Object.prototype.hasOwnProperty.call(map,name))continue;let value=map[name];if(name===`color`)applyColor(lineMaterial,value);else if(name===`dashed`)lineMaterial.dashed=value;else if(name===`dashScale`)lineMaterial.scale=value;else if(name===`resolution`){let resolution=value;this.setResolution(resolution.x,resolution.y)}else lineMaterial[name]=value}this.needsRender=!0}setResolution(width,height){let resolution=this.line._resolution;resolution&&(resolution.x!==width||resolution.y!==height)&&(resolution.set(width,height),this.needsRender=!0)}};Object.assign(FiveLine.prototype,{isFiveLine:!0});export{FiveLine as Line,LineGeometry,LineSegmentsGeometry,Line2 as THREE_Line2,LineSegments2 as THREE_LineSegments2};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/const
|
|
338
|
+
*/const require_index=require("../BasePlugin/index.js");let tslib=require("tslib");var Controller=class extends require_index.BasePlugin.Controller{constructor(five,params){super(five),this.data={},this.pluginName=`BackgroundPlugin`,this._onFiveCameraUpdate=pose=>{let percent=(Math.PI/2-Math.max(pose.latitude,0))/(Math.PI/2),radiusPercent=Math.max(.2-percent,0)*10;this.gradientBg&&(this.gradientBg.style.transform=`translateY(-${(1-percent)*50}%)`),this.groundBg&&(this.groundBg.style.backgroundImage=`radial-gradient(circle, #2E303350 ${radiusPercent*100}%, transparent ${radiusPercent*120}%)`)},this._addEventListener=()=>{this.five.on(`cameraUpdate`,this._onFiveCameraUpdate)},this._removeEventListener=()=>{this.five.off(`cameraUpdate`,this._onFiveCameraUpdate)},this.load=()=>(0,tslib.__awaiter)(this,void 0,void 0,function*(){}),this.setState=(state,options={})=>{},this.enable=()=>{var _a;let element=(_a=this.five.getElement())==null?void 0:_a.parentNode;if(!element){this.five.ready().then(()=>this.enable());return}this.state.enabled||(this._onFiveCameraUpdate(this.five.getPose(),!1),this.gradientBg&&element.appendChild(this.gradientBg),this.groundBg&&element.appendChild(this.groundBg),this.style&&document.head.appendChild(this.style),this._addEventListener(),this.hooks.emit(`enable`,{userAction:!0}),this.state.enabled=!0)},this.disable=(options={})=>{var _a,_b,_c,_d;this.state.enabled&&((_b=(_a=this.gradientBg)==null?void 0:_a.parentNode)==null||_b.removeChild(this.gradientBg),(_d=(_c=this.groundBg)==null?void 0:_c.parentNode)==null||_d.removeChild(this.groundBg),this.style&&document.head.removeChild(this.style),this._removeEventListener(),this.hooks.emit(`disable`,{userAction:!0}),this.state.enabled=!1)},this.dispose=()=>{this._removeEventListener(),this.hooks.emit(`disable`,{userAction:!0}),this.state.enabled=!1},this.state={enabled:!1},!(typeof document>`u`)&&(this.gradientBg=document.createElement(`div`),this.groundBg=document.createElement(`div`),this.style=document.createElement(`style`),this.gradientBg.className=`BackgroundPluginBg`,this.groundBg.className=`BackgroundPluginGroundBg`,this.style.innerHTML=`
|
|
339
339
|
.BackgroundPluginBg {
|
|
340
340
|
position: absolute;
|
|
341
341
|
top: 0;
|
|
@@ -356,4 +356,4 @@
|
|
|
356
356
|
z-index: -1;
|
|
357
357
|
pointerEvents: none;
|
|
358
358
|
}
|
|
359
|
-
`,this.enable())}};exports.Controller=
|
|
359
|
+
`,this.enable())}};exports.Controller=Controller;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/import{BasePlugin
|
|
338
|
+
*/import{BasePlugin}from"../BasePlugin/index.mjs";import{__awaiter}from"tslib";var Controller=class extends BasePlugin.Controller{constructor(five,params){super(five),this.data={},this.pluginName=`BackgroundPlugin`,this._onFiveCameraUpdate=pose=>{let percent=(Math.PI/2-Math.max(pose.latitude,0))/(Math.PI/2),radiusPercent=Math.max(.2-percent,0)*10;this.gradientBg&&(this.gradientBg.style.transform=`translateY(-${(1-percent)*50}%)`),this.groundBg&&(this.groundBg.style.backgroundImage=`radial-gradient(circle, #2E303350 ${radiusPercent*100}%, transparent ${radiusPercent*120}%)`)},this._addEventListener=()=>{this.five.on(`cameraUpdate`,this._onFiveCameraUpdate)},this._removeEventListener=()=>{this.five.off(`cameraUpdate`,this._onFiveCameraUpdate)},this.load=()=>__awaiter(this,void 0,void 0,function*(){}),this.setState=(state,options={})=>{},this.enable=()=>{var _a;let element=(_a=this.five.getElement())==null?void 0:_a.parentNode;if(!element){this.five.ready().then(()=>this.enable());return}this.state.enabled||(this._onFiveCameraUpdate(this.five.getPose(),!1),this.gradientBg&&element.appendChild(this.gradientBg),this.groundBg&&element.appendChild(this.groundBg),this.style&&document.head.appendChild(this.style),this._addEventListener(),this.hooks.emit(`enable`,{userAction:!0}),this.state.enabled=!0)},this.disable=(options={})=>{var _a,_b,_c,_d;this.state.enabled&&((_b=(_a=this.gradientBg)==null?void 0:_a.parentNode)==null||_b.removeChild(this.gradientBg),(_d=(_c=this.groundBg)==null?void 0:_c.parentNode)==null||_d.removeChild(this.groundBg),this.style&&document.head.removeChild(this.style),this._removeEventListener(),this.hooks.emit(`disable`,{userAction:!0}),this.state.enabled=!1)},this.dispose=()=>{this._removeEventListener(),this.hooks.emit(`disable`,{userAction:!0}),this.state.enabled=!1},this.state={enabled:!1},!(typeof document>`u`)&&(this.gradientBg=document.createElement(`div`),this.groundBg=document.createElement(`div`),this.style=document.createElement(`style`),this.gradientBg.className=`BackgroundPluginBg`,this.groundBg.className=`BackgroundPluginGroundBg`,this.style.innerHTML=`
|
|
339
339
|
.BackgroundPluginBg {
|
|
340
340
|
position: absolute;
|
|
341
341
|
top: 0;
|
|
@@ -356,4 +356,4 @@
|
|
|
356
356
|
z-index: -1;
|
|
357
357
|
pointerEvents: none;
|
|
358
358
|
}
|
|
359
|
-
`,this.enable())}};export{
|
|
359
|
+
`,this.enable())}};export{Controller};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/const
|
|
338
|
+
*/const require_Controller=require("./Controller.js");var BackgroundPlugin=(five,params)=>new require_Controller.Controller(five,params);exports.BackgroundPlugin=BackgroundPlugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/import{Controller
|
|
338
|
+
*/import{Controller}from"./Controller.mjs";var BackgroundPlugin=(five,params)=>new Controller(five,params);export{BackgroundPlugin};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/const
|
|
338
|
+
*/const require_absoluteUrl=require("../utils/absoluteUrl.js");let _realsee_five_webgpu=require("@realsee/five-webgpu");var BasePlugin;(function(BasePlugin){class Controller{constructor(five,config){this.hooks=new _realsee_five_webgpu.Subscribe,this.staticPrefix=`//vr-image-4.realsee-cdn.cn`,this.five=five,config!=null&&config.staticPrefix&&(this.staticPrefix=config.staticPrefix)}getCurrentState(){return this.state}absoluteUrl(url){return require_absoluteUrl.absoluteUrl(this.staticPrefix,url)}}BasePlugin.Controller=Controller})(BasePlugin||(BasePlugin={})),Object.defineProperty(exports,"BasePlugin",{enumerable:!0,get:function(){return BasePlugin}});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/import{absoluteUrl
|
|
338
|
+
*/import{absoluteUrl}from"../utils/absoluteUrl.mjs";import{Subscribe}from"@realsee/five-webgpu";var BasePlugin;(function(BasePlugin){class Controller{constructor(five,config){this.hooks=new Subscribe,this.staticPrefix=`//vr-image-4.realsee-cdn.cn`,this.five=five,config!=null&&config.staticPrefix&&(this.staticPrefix=config.staticPrefix)}getCurrentState(){return this.state}absoluteUrl(url){return absoluteUrl(this.staticPrefix,url)}}BasePlugin.Controller=Controller})(BasePlugin||(BasePlugin={}));export{BasePlugin};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/const
|
|
338
|
+
*/const require_runtime=require("../../_virtual/_rolldown/runtime.js"),require_index=require("../BasePlugin/index.js"),require_CSS2DRenderer=require("../thirdParty/CSS2DRenderer.js"),require_style=require("./style.css_raw.js"),require_uuid=require("../utils/uuid.js");let tslib=require("tslib"),three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var Controller=class extends require_index.BasePlugin.Controller{updateState(state,userAction){let prevState=this.state;this.state=Object.assign(Object.assign({},this.state),state),this.hooks.emit(`stateChange`,{state:this.state,prevState,userAction})}constructor(five,params){super(five),this.scene=new three_webgpu.Scene,this.styleSheet=new CSSStyleSheet,this.camera=new three_webgpu.PerspectiveCamera,this.createCSS2DObject=({id=require_uuid.createUuid(),name,innerHTML,center,position,visible=!0,timeout})=>{let dom=document.createElement(`div`);dom.className=`five-CSS2DPlugin-X`,visible||dom.classList.add(`five-CSS2DPlugin-hidden`),timeout&&dom.style.setProperty(`--timeout`,timeout+`ms`),dom.innerHTML=innerHTML;let object=new require_CSS2DRenderer.CSS2DObject(dom);return object.userData={id,_visible:visible,_timeout:timeout,get visible(){return this._visible},set visible(value){value?dom.classList.remove(`five-CSS2DPlugin-hidden`):dom.classList.add(`five-CSS2DPlugin-hidden`),this._visible=value},get timeout(){return this._timeout},set timeout(value){dom.style.setProperty(`--timeout`,value+`ms`),this._timeout=value}},center&&object.center.copy(center),position&&object.position.copy(position),name&&(object.name=name),object},this.render=()=>{this.camera.fov=this.five.camera.fov,this.camera.aspect=this.five.camera.aspect,this.camera.position.copy(this.five.camera.position),this.camera.rotation.copy(this.five.camera.rotation),this.camera.updateProjectionMatrix(),this.renderer.render(this.scene,this.camera)},this._addEventListener=()=>{this.five.on(`render.prepare`,this.render),this.appendToFiveContainer()},this._removeEventListener=()=>{var _a;this.five.off(`render.prepare`,this.render),(_a=this.resizeObserver)==null||_a.disconnect(),this.resizeObserver=void 0},this.dispose=()=>{this.removeAll(),this._disable({userAction:!1})},this.five=five,this.renderer=new require_CSS2DRenderer.CSS2DRenderer,this.renderer.domElement.id=`five-CSS2DPlugin`,this.styleSheet.replaceSync(require_style.default),document&&document.adoptedStyleSheets.push(this.styleSheet);let defaultState={enabled:!0,visible:!0};this.state=Object.assign(defaultState,params==null?void 0:params.initialState),this.state.enabled?this._enable({userAction:!1}):this.styleSheet.disabled=!0}load(data){return(0,tslib.__awaiter)(this,void 0,void 0,function*(){})}appendToFiveContainer(){var _a;if(!this.five.renderer)return;let element=this.five.getElement();if(!(element!=null&&element.parentElement))return;let{x:width,y:height}=this.five.renderer.getSize(new three_webgpu.Vector2);element.parentElement.appendChild(this.renderer.domElement),this.renderer.setSize(width,height),(_a=this.resizeObserver)==null||_a.disconnect(),this.resizeObserver=new ResizeObserver(()=>{var _a;if(!this.five.renderer)return;let bounding=(_a=this.five.getElement())==null?void 0:_a.getBoundingClientRect();if(!bounding)return;let{x,y,width,height}=bounding;this.renderer.setSize(width,height),this.renderer.domElement.style.left=x+`px`,this.renderer.domElement.style.top=y+`px`,this.render()}),this.resizeObserver.observe(element)}add(...object){this.scene.add(...object),this.render()}remove(object){this.scene.remove(object),object.traverse(object=>{object instanceof require_CSS2DRenderer.CSS2DObject&&object.element.remove()}),this.render()}removeAll(){this.scene.remove(...this.scene.children),this.render()}fadeInObjects(...objects){for(let object of objects)object.userData.visible=!0;this.render()}fadeOutObjects(...objects){for(let object of objects)object.userData.visible=!1;this.render()}_enable(options){this.styleSheet.disabled=!1,this.updateState({enabled:!0},options.userAction),this._addEventListener(),this.render()}_disable(options){this.styleSheet.disabled=!0,this.updateState({enabled:!1},options.userAction),this._removeEventListener()}enable(options){var _a;if(this.state.enabled)return;let userAction=(_a=options==null?void 0:options.userAction)==null?!0:_a;this._enable({userAction})}disable(options){var _a;if(this.state.enabled===!1)return;let userAction=(_a=options==null?void 0:options.userAction)==null?!0:_a;this._disable({userAction})}show(options){this.renderer.domElement.style.display=`block`,this.updateState({visible:!0},!0),this.render()}hide(options){this.renderer.domElement.style.display=`none`,this.updateState({visible:!1},!0)}};exports.Controller=Controller;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/import{BasePlugin
|
|
338
|
+
*/import{BasePlugin}from"../BasePlugin/index.mjs";import{CSS2DObject,CSS2DRenderer}from"../thirdParty/CSS2DRenderer.mjs";import style_default from"./style.css_raw.mjs";import{createUuid}from"../utils/uuid.mjs";import{__awaiter}from"tslib";import*as THREE from"three/webgpu";var Controller=class extends BasePlugin.Controller{updateState(state,userAction){let prevState=this.state;this.state=Object.assign(Object.assign({},this.state),state),this.hooks.emit(`stateChange`,{state:this.state,prevState,userAction})}constructor(five,params){super(five),this.scene=new THREE.Scene,this.styleSheet=new CSSStyleSheet,this.camera=new THREE.PerspectiveCamera,this.createCSS2DObject=({id=createUuid(),name,innerHTML,center,position,visible=!0,timeout})=>{let dom=document.createElement(`div`);dom.className=`five-CSS2DPlugin-X`,visible||dom.classList.add(`five-CSS2DPlugin-hidden`),timeout&&dom.style.setProperty(`--timeout`,timeout+`ms`),dom.innerHTML=innerHTML;let object=new CSS2DObject(dom);return object.userData={id,_visible:visible,_timeout:timeout,get visible(){return this._visible},set visible(value){value?dom.classList.remove(`five-CSS2DPlugin-hidden`):dom.classList.add(`five-CSS2DPlugin-hidden`),this._visible=value},get timeout(){return this._timeout},set timeout(value){dom.style.setProperty(`--timeout`,value+`ms`),this._timeout=value}},center&&object.center.copy(center),position&&object.position.copy(position),name&&(object.name=name),object},this.render=()=>{this.camera.fov=this.five.camera.fov,this.camera.aspect=this.five.camera.aspect,this.camera.position.copy(this.five.camera.position),this.camera.rotation.copy(this.five.camera.rotation),this.camera.updateProjectionMatrix(),this.renderer.render(this.scene,this.camera)},this._addEventListener=()=>{this.five.on(`render.prepare`,this.render),this.appendToFiveContainer()},this._removeEventListener=()=>{var _a;this.five.off(`render.prepare`,this.render),(_a=this.resizeObserver)==null||_a.disconnect(),this.resizeObserver=void 0},this.dispose=()=>{this.removeAll(),this._disable({userAction:!1})},this.five=five,this.renderer=new CSS2DRenderer,this.renderer.domElement.id=`five-CSS2DPlugin`,this.styleSheet.replaceSync(style_default),document&&document.adoptedStyleSheets.push(this.styleSheet);let defaultState={enabled:!0,visible:!0};this.state=Object.assign(defaultState,params==null?void 0:params.initialState),this.state.enabled?this._enable({userAction:!1}):this.styleSheet.disabled=!0}load(data){return __awaiter(this,void 0,void 0,function*(){})}appendToFiveContainer(){var _a;if(!this.five.renderer)return;let element=this.five.getElement();if(!(element!=null&&element.parentElement))return;let{x:width,y:height}=this.five.renderer.getSize(new THREE.Vector2);element.parentElement.appendChild(this.renderer.domElement),this.renderer.setSize(width,height),(_a=this.resizeObserver)==null||_a.disconnect(),this.resizeObserver=new ResizeObserver(()=>{var _a;if(!this.five.renderer)return;let bounding=(_a=this.five.getElement())==null?void 0:_a.getBoundingClientRect();if(!bounding)return;let{x,y,width,height}=bounding;this.renderer.setSize(width,height),this.renderer.domElement.style.left=x+`px`,this.renderer.domElement.style.top=y+`px`,this.render()}),this.resizeObserver.observe(element)}add(...object){this.scene.add(...object),this.render()}remove(object){this.scene.remove(object),object.traverse(object=>{object instanceof CSS2DObject&&object.element.remove()}),this.render()}removeAll(){this.scene.remove(...this.scene.children),this.render()}fadeInObjects(...objects){for(let object of objects)object.userData.visible=!0;this.render()}fadeOutObjects(...objects){for(let object of objects)object.userData.visible=!1;this.render()}_enable(options){this.styleSheet.disabled=!1,this.updateState({enabled:!0},options.userAction),this._addEventListener(),this.render()}_disable(options){this.styleSheet.disabled=!0,this.updateState({enabled:!1},options.userAction),this._removeEventListener()}enable(options){var _a;if(this.state.enabled)return;let userAction=(_a=options==null?void 0:options.userAction)==null?!0:_a;this._enable({userAction})}disable(options){var _a;if(this.state.enabled===!1)return;let userAction=(_a=options==null?void 0:options.userAction)==null?!0:_a;this._disable({userAction})}show(options){this.renderer.domElement.style.display=`block`,this.updateState({visible:!0},!0),this.render()}hide(options){this.renderer.domElement.style.display=`none`,this.updateState({visible:!1},!0)}};export{Controller};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/const
|
|
338
|
+
*/const require_Controller=require("./Controller.js");var CSS2DPlugin=(five,params)=>new require_Controller.Controller(five,params);exports.CSS2DPlugin=CSS2DPlugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/import{Controller
|
|
338
|
+
*/import{Controller}from"./Controller.mjs";var CSS2DPlugin=(five,params)=>new Controller(five,params);export{CSS2DPlugin};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/var
|
|
338
|
+
*/var style_default=`#five-CSS2DPlugin {
|
|
339
339
|
position: absolute;
|
|
340
340
|
pointer-events: none;
|
|
341
341
|
user-select: none;
|
|
@@ -355,4 +355,4 @@
|
|
|
355
355
|
#five-CSS2DPlugin .five-CSS2DPlugin-hidden * {
|
|
356
356
|
pointer-events: none;
|
|
357
357
|
}
|
|
358
|
-
`;exports.default=
|
|
358
|
+
`;exports.default=style_default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/var
|
|
338
|
+
*/var style_default=`#five-CSS2DPlugin {
|
|
339
339
|
position: absolute;
|
|
340
340
|
pointer-events: none;
|
|
341
341
|
user-select: none;
|
|
@@ -355,4 +355,4 @@
|
|
|
355
355
|
#five-CSS2DPlugin .five-CSS2DPlugin-hidden * {
|
|
356
356
|
pointer-events: none;
|
|
357
357
|
}
|
|
358
|
-
`;export{
|
|
358
|
+
`;export{style_default as default};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/const
|
|
338
|
+
*/const require_runtime=require("../../_virtual/_rolldown/runtime.js"),require_index=require("../BasePlugin/index.js"),require_uuid=require("../utils/uuid.js"),require_CSS3DRenderer=require("../thirdParty/CSS3DRenderer.js"),require_style=require("./style.css_raw.js");let tslib=require("tslib"),three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var Controller=class extends require_index.BasePlugin.Controller{updateState(state,userAction){let prevState=this.state;this.state=Object.assign(Object.assign({},this.state),state),this.hooks.emit(`stateChange`,{state:this.state,prevState,userAction})}constructor(five,params){super(five),this.scene=new three_webgpu.Scene,this.styleSheet=new CSSStyleSheet,this.camera=new three_webgpu.PerspectiveCamera,this.cacheMap=new WeakMap,this.createCSS3DObject=({id=require_uuid.createUuid(),name,innerHTML,sprite,normal,position,scalar=.00216,visible=!0,timeout})=>{let dom=document.createElement(`div`);dom.className=`five-CSS3DPlugin-X`,visible||dom.classList.add(`five-CSS3DPlugin-hidden`),timeout&&dom.style.setProperty(`--timeout`,timeout+`ms`),dom.innerHTML=innerHTML;let object=sprite?new require_CSS3DRenderer.CSS3DSprite(dom):new require_CSS3DRenderer.CSS3DObject(dom);if(object.userData={id,_visible:visible,_timeout:timeout,get visible(){return this._visible},set visible(value){value?dom.classList.remove(`five-CSS3DPlugin-hidden`):dom.classList.add(`five-CSS3DPlugin-hidden`),this._visible=value},get timeout(){return this._timeout},set timeout(value){dom.style.setProperty(`--timeout`,value+`ms`),this._timeout=value}},normal){let defaultNormal=new three_webgpu.Vector3(0,0,1),quaternion=new three_webgpu.Quaternion().setFromUnitVectors(defaultNormal,normal.clone().normalize());object.quaternion.copy(quaternion)}return position&&object.position.copy(position),scalar&&object.scale.setScalar(scalar),name&&(object.name=name),object},this.render=()=>{this.camera.fov=this.five.camera.fov,this.camera.aspect=this.five.camera.aspect,this.camera.position.copy(this.five.camera.position),this.camera.rotation.copy(this.five.camera.rotation),this.camera.updateProjectionMatrix(),this.renderer.render(this.scene,this.camera)},this.forceRender=()=>{this.renderer.markDirty(),this.render()},this._addEventListener=()=>{this.five.on(`render.prepare`,this.render),this.appendToFiveContainer()},this._removeEventListener=()=>{var _a;this.five.off(`render.prepare`,this.render),(_a=this.resizeObserver)==null||_a.disconnect(),this.resizeObserver=void 0},this.dispose=()=>{this.removeAll(),this._disable({userAction:!1})},this.five=five,this.renderer=new require_CSS3DRenderer.CSS3DRenderer,this.renderer.domElement.id=`five-CSS3DPlugin`,this.styleSheet.replaceSync(require_style.default),/Chrome/.test(navigator.userAgent)&&!/Edge|Edg|OPR/.test(navigator.userAgent)&&this.styleSheet.insertRule(`#five-CSS3DPlugin * { transform-style: preserve-3d; }`),document&&document.adoptedStyleSheets.push(this.styleSheet);let defaultState={enabled:!0,visible:!0};this.state=Object.assign(defaultState,params==null?void 0:params.initialState),this.state.enabled?this._enable({userAction:!1}):this.styleSheet.disabled=!0}load(data){return(0,tslib.__awaiter)(this,void 0,void 0,function*(){})}appendToFiveContainer(){var _a;if(!this.five.renderer)return;let element=this.five.getElement();if(!(element!=null&&element.parentElement))return;let{x:width,y:height}=this.five.renderer.getSize(new three_webgpu.Vector2);element.parentElement.appendChild(this.renderer.domElement),this.renderer.setSize(width*2,height*2),this.renderer.domElement.style.width=width*2+`px`,this.renderer.domElement.style.height=height*2+`px`,this.renderer.domElement.style.transform=`scale(0.5)`,(_a=this.resizeObserver)==null||_a.disconnect(),this.resizeObserver=new ResizeObserver(()=>{var _a;if(!this.five.renderer)return;let bounding=(_a=this.five.getElement())==null?void 0:_a.getBoundingClientRect();if(!bounding)return;let{x,y,width,height}=bounding;this.renderer.setSize(width*2,height*2),this.renderer.domElement.style.left=x+`px`,this.renderer.domElement.style.top=y+`px`,this.renderer.domElement.style.width=width*2+`px`,this.renderer.domElement.style.height=height*2+`px`,this.render()}),this.resizeObserver.observe(element)}add(...object){this.scene.add(...object),this.renderer.updateSpriteSet(this.scene),this.forceRender()}remove(object){this.scene.remove(object),object.traverse(object=>{object instanceof require_CSS3DRenderer.CSS3DObject&&object.element.remove()}),this.renderer.updateSpriteSet(this.scene),this.forceRender()}removeAll(){this.scene.remove(...this.scene.children),this.renderer.updateSpriteSet(this.scene),this.forceRender()}fadeInObjects(...objects){for(let object of objects)object.userData.visible=!0;this.render()}fadeOutObjects(...objects){for(let object of objects)object.userData.visible=!1;this.render()}_enable(options){this.styleSheet.disabled=!1,this.updateState({enabled:!0},options.userAction),this._addEventListener(),this.render()}_disable(options){this.styleSheet.disabled=!0,this.updateState({enabled:!1},options.userAction),this._removeEventListener()}enable(options){var _a;if(this.state.enabled)return;let userAction=(_a=options==null?void 0:options.userAction)==null?!0:_a;this._enable({userAction})}disable(options){var _a;if(this.state.enabled===!1)return;let userAction=(_a=options==null?void 0:options.userAction)==null?!0:_a;this._disable({userAction})}show(options){this.renderer.domElement.style.display=`block`,this.updateState({visible:!0},!0),this.forceRender()}hide(options){this.renderer.domElement.style.display=`none`,this.updateState({visible:!1},!0)}};exports.Controller=Controller;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/import{BasePlugin
|
|
338
|
+
*/import{BasePlugin}from"../BasePlugin/index.mjs";import{createUuid}from"../utils/uuid.mjs";import{CSS3DObject,CSS3DRenderer,CSS3DSprite}from"../thirdParty/CSS3DRenderer.mjs";import style_default from"./style.css_raw.mjs";import{__awaiter}from"tslib";import*as THREE from"three/webgpu";var Controller=class extends BasePlugin.Controller{updateState(state,userAction){let prevState=this.state;this.state=Object.assign(Object.assign({},this.state),state),this.hooks.emit(`stateChange`,{state:this.state,prevState,userAction})}constructor(five,params){super(five),this.scene=new THREE.Scene,this.styleSheet=new CSSStyleSheet,this.camera=new THREE.PerspectiveCamera,this.cacheMap=new WeakMap,this.createCSS3DObject=({id=createUuid(),name,innerHTML,sprite,normal,position,scalar=.00216,visible=!0,timeout})=>{let dom=document.createElement(`div`);dom.className=`five-CSS3DPlugin-X`,visible||dom.classList.add(`five-CSS3DPlugin-hidden`),timeout&&dom.style.setProperty(`--timeout`,timeout+`ms`),dom.innerHTML=innerHTML;let object=sprite?new CSS3DSprite(dom):new CSS3DObject(dom);if(object.userData={id,_visible:visible,_timeout:timeout,get visible(){return this._visible},set visible(value){value?dom.classList.remove(`five-CSS3DPlugin-hidden`):dom.classList.add(`five-CSS3DPlugin-hidden`),this._visible=value},get timeout(){return this._timeout},set timeout(value){dom.style.setProperty(`--timeout`,value+`ms`),this._timeout=value}},normal){let defaultNormal=new THREE.Vector3(0,0,1),quaternion=new THREE.Quaternion().setFromUnitVectors(defaultNormal,normal.clone().normalize());object.quaternion.copy(quaternion)}return position&&object.position.copy(position),scalar&&object.scale.setScalar(scalar),name&&(object.name=name),object},this.render=()=>{this.camera.fov=this.five.camera.fov,this.camera.aspect=this.five.camera.aspect,this.camera.position.copy(this.five.camera.position),this.camera.rotation.copy(this.five.camera.rotation),this.camera.updateProjectionMatrix(),this.renderer.render(this.scene,this.camera)},this.forceRender=()=>{this.renderer.markDirty(),this.render()},this._addEventListener=()=>{this.five.on(`render.prepare`,this.render),this.appendToFiveContainer()},this._removeEventListener=()=>{var _a;this.five.off(`render.prepare`,this.render),(_a=this.resizeObserver)==null||_a.disconnect(),this.resizeObserver=void 0},this.dispose=()=>{this.removeAll(),this._disable({userAction:!1})},this.five=five,this.renderer=new CSS3DRenderer,this.renderer.domElement.id=`five-CSS3DPlugin`,this.styleSheet.replaceSync(style_default),/Chrome/.test(navigator.userAgent)&&!/Edge|Edg|OPR/.test(navigator.userAgent)&&this.styleSheet.insertRule(`#five-CSS3DPlugin * { transform-style: preserve-3d; }`),document&&document.adoptedStyleSheets.push(this.styleSheet);let defaultState={enabled:!0,visible:!0};this.state=Object.assign(defaultState,params==null?void 0:params.initialState),this.state.enabled?this._enable({userAction:!1}):this.styleSheet.disabled=!0}load(data){return __awaiter(this,void 0,void 0,function*(){})}appendToFiveContainer(){var _a;if(!this.five.renderer)return;let element=this.five.getElement();if(!(element!=null&&element.parentElement))return;let{x:width,y:height}=this.five.renderer.getSize(new THREE.Vector2);element.parentElement.appendChild(this.renderer.domElement),this.renderer.setSize(width*2,height*2),this.renderer.domElement.style.width=width*2+`px`,this.renderer.domElement.style.height=height*2+`px`,this.renderer.domElement.style.transform=`scale(0.5)`,(_a=this.resizeObserver)==null||_a.disconnect(),this.resizeObserver=new ResizeObserver(()=>{var _a;if(!this.five.renderer)return;let bounding=(_a=this.five.getElement())==null?void 0:_a.getBoundingClientRect();if(!bounding)return;let{x,y,width,height}=bounding;this.renderer.setSize(width*2,height*2),this.renderer.domElement.style.left=x+`px`,this.renderer.domElement.style.top=y+`px`,this.renderer.domElement.style.width=width*2+`px`,this.renderer.domElement.style.height=height*2+`px`,this.render()}),this.resizeObserver.observe(element)}add(...object){this.scene.add(...object),this.renderer.updateSpriteSet(this.scene),this.forceRender()}remove(object){this.scene.remove(object),object.traverse(object=>{object instanceof CSS3DObject&&object.element.remove()}),this.renderer.updateSpriteSet(this.scene),this.forceRender()}removeAll(){this.scene.remove(...this.scene.children),this.renderer.updateSpriteSet(this.scene),this.forceRender()}fadeInObjects(...objects){for(let object of objects)object.userData.visible=!0;this.render()}fadeOutObjects(...objects){for(let object of objects)object.userData.visible=!1;this.render()}_enable(options){this.styleSheet.disabled=!1,this.updateState({enabled:!0},options.userAction),this._addEventListener(),this.render()}_disable(options){this.styleSheet.disabled=!0,this.updateState({enabled:!1},options.userAction),this._removeEventListener()}enable(options){var _a;if(this.state.enabled)return;let userAction=(_a=options==null?void 0:options.userAction)==null?!0:_a;this._enable({userAction})}disable(options){var _a;if(this.state.enabled===!1)return;let userAction=(_a=options==null?void 0:options.userAction)==null?!0:_a;this._disable({userAction})}show(options){this.renderer.domElement.style.display=`block`,this.updateState({visible:!0},!0),this.forceRender()}hide(options){this.renderer.domElement.style.display=`none`,this.updateState({visible:!1},!0)}};export{Controller};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/const
|
|
338
|
+
*/const require_Controller=require("./Controller.js");var CSS3DPlugin=(five,params)=>new require_Controller.Controller(five,params);exports.CSS3DPlugin=CSS3DPlugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,4 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/import{Controller
|
|
338
|
+
*/import{Controller}from"./Controller.mjs";var CSS3DPlugin=(five,params)=>new Controller(five,params);export{CSS3DPlugin};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/var
|
|
338
|
+
*/var style_default=`#five-CSS3DPlugin {
|
|
339
339
|
position: absolute;
|
|
340
340
|
pointer-events: none;
|
|
341
341
|
user-select: none;
|
|
@@ -354,4 +354,4 @@
|
|
|
354
354
|
#five-CSS3DPlugin .five-CSS3DPlugin-hidden * {
|
|
355
355
|
pointer-events: none;
|
|
356
356
|
}
|
|
357
|
-
`;exports.default=
|
|
357
|
+
`;exports.default=style_default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/var
|
|
338
|
+
*/var style_default=`#five-CSS3DPlugin {
|
|
339
339
|
position: absolute;
|
|
340
340
|
pointer-events: none;
|
|
341
341
|
user-select: none;
|
|
@@ -354,4 +354,4 @@
|
|
|
354
354
|
#five-CSS3DPlugin .five-CSS3DPlugin-hidden * {
|
|
355
355
|
pointer-events: none;
|
|
356
356
|
}
|
|
357
|
-
`;export{
|
|
357
|
+
`;export{style_default as default};
|