@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
|
@@ -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
|
-
*/var
|
|
338
|
+
*/var ControllerWrapper=class{constructor(five,donEvents,HelperController,object,helperObject3D,HelperControllerConfig,hooks,internalHooks,helperGroup){this.onFiveWantsTapGesture=params=>{if(!this.helperController)return;if(this.helperController.preventTapDefaultEvent)return!1;let result=this.helperController.onWantsTapGesture(params);return this.five.needsRender=!0,result},this.onFiveWantsGesture=(...params)=>{if(!this.helperController)return;let result=this.helperController.onWantsGesture(...params);return this.five.needsRender=!0,result},this.onFiveIntersectionOnModelUpdate=(...params)=>{this.helperController&&this.helperController.onIntersectionOnModelUpdate(...params)};let{camera,model,scene}=five,container=five.getElement();if(this.five=five,!camera||!model||!container||!scene)return;let targetScene=helperGroup==null?scene:helperGroup,onRender=()=>{five.needsRender=!0};this.helperController=new HelperController({camera,model,domEvents:donEvents,originObject3D:object,helperObject3D,container,scene:targetScene,onRender,sharedHooks:hooks,sharedInternalHooks:internalHooks},HelperControllerConfig),five.on(`wantsTapGesture`,this.onFiveWantsTapGesture),five.on(`wantsGesture`,this.onFiveWantsGesture),five.on(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate)}dispose(){var _a;this.five.off(`wantsTapGesture`,this.onFiveWantsTapGesture),this.five.off(`wantsGesture`,this.onFiveWantsGesture),this.five.off(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate),(_a=this.helperController)==null||_a.dispose()}};exports.ControllerWrapper=ControllerWrapper,exports.FiveControllerWrapper=ControllerWrapper;
|
|
@@ -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
|
-
*/var
|
|
338
|
+
*/var ControllerWrapper=class{constructor(five,donEvents,HelperController,object,helperObject3D,HelperControllerConfig,hooks,internalHooks,helperGroup){this.onFiveWantsTapGesture=params=>{if(!this.helperController)return;if(this.helperController.preventTapDefaultEvent)return!1;let result=this.helperController.onWantsTapGesture(params);return this.five.needsRender=!0,result},this.onFiveWantsGesture=(...params)=>{if(!this.helperController)return;let result=this.helperController.onWantsGesture(...params);return this.five.needsRender=!0,result},this.onFiveIntersectionOnModelUpdate=(...params)=>{this.helperController&&this.helperController.onIntersectionOnModelUpdate(...params)};let{camera,model,scene}=five,container=five.getElement();if(this.five=five,!camera||!model||!container||!scene)return;let targetScene=helperGroup==null?scene:helperGroup,onRender=()=>{five.needsRender=!0};this.helperController=new HelperController({camera,model,domEvents:donEvents,originObject3D:object,helperObject3D,container,scene:targetScene,onRender,sharedHooks:hooks,sharedInternalHooks:internalHooks},HelperControllerConfig),five.on(`wantsTapGesture`,this.onFiveWantsTapGesture),five.on(`wantsGesture`,this.onFiveWantsGesture),five.on(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate)}dispose(){var _a;this.five.off(`wantsTapGesture`,this.onFiveWantsTapGesture),this.five.off(`wantsGesture`,this.onFiveWantsGesture),this.five.off(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate),(_a=this.helperController)==null||_a.dispose()}};export{ControllerWrapper,ControllerWrapper as FiveControllerWrapper};
|
|
@@ -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_setObjectQuaternion=require("../utils/setObjectQuaternion.js"),require_isNil=require("../../../five/utils/isNil.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var BaseHelper=class extends three_webgpu.Object3D{removeChildren(){for(;this.children.length>0;)this.remove(this.children[0]);return this}add(...objects){let notNilObjects=objects.filter(Boolean);return notNilObjects.length===0?this:super.add(...notNilObjects)}addIfNotExists(...objects){return objects.forEach(object=>{this.children.includes(object)||this.add(object)}),this}remove(...objects){if(objects.length===0)return this;let notNilObjects=objects.filter(Boolean);return super.remove(...notNilObjects)}removeFromParent(){let parent=this.parent;return parent!==null&&parent.remove(this),this}get helperObject(){return this}constructor(originObject3D,config){var _a,_b;super(),this.originObject3D=originObject3D,this.onRender=(_a=config==null?void 0:config.onRender)==null?(()=>{}):_a,this.positionFrom=(_b=config==null?void 0:config.positionFrom)==null?`objectPosition`:_b}render(){this.onRender()}enable(){this.parent&&(this.parent.children.includes(this)||this.parent.add(this))}disable(){this.removeFromParent()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}raycasterIntersectObject(raycaster,intersection=[]){return raycaster.intersectObject(this,!0,intersection)}initialPosition(offset){this.positionFrom===`objectPosition`?this.position.copy(this.originObject3D.position):this.positionFrom===`boundingBox`||this.positionFrom===`boundingSphere`?this.position.copy(new three_webgpu.Box3().expandByObject(this.originObject3D).getCenter(new three_webgpu.Vector3)):this.positionFrom instanceof three_webgpu.Vector3?this.position.copy(this.positionFrom):this.positionFrom instanceof Function&&this.position.copy(this.positionFrom(this.originObject3D)),offset&&this.position.add(offset)}setScaleByCamera(camera){}initQuaternion(config){if(this.quaternion.set(0,0,0,1),config&&(config.xAxis||config.yAxis||config.zAxis)){let xAxis=config.xAxis instanceof Function?config.xAxis():config.xAxis,yAxis=config.yAxis instanceof Function?config.yAxis():config.yAxis,zAxis=config.zAxis instanceof Function?config.zAxis():config.zAxis,newX=xAxis==null?void 0:xAxis.clone(),newY=yAxis==null?void 0:yAxis.clone(),newZ=zAxis==null?void 0:zAxis.clone();if(newX&&!newY&&!newY){let quaternionX=new three_webgpu.Quaternion().setFromUnitVectors(new three_webgpu.Vector3(1,0,0),newX.normalize());this.applyQuaternion(quaternionX)}if(newY&&!newX&&!newZ){let quaternionY=new three_webgpu.Quaternion().setFromUnitVectors(new three_webgpu.Vector3(0,1,0),newY.normalize());this.applyQuaternion(quaternionY)}if(newZ&&!newX&&!newY){let quaternionZ=new three_webgpu.Quaternion().setFromUnitVectors(new three_webgpu.Vector3(0,0,1),newZ.normalize());this.applyQuaternion(quaternionZ)}if([newX,newY,newZ].filter(v=>!require_isNil.isNil(v)).length>=2){newX||(newX=new three_webgpu.Vector3().crossVectors(newY,newZ).normalize()),newY||(newY=new three_webgpu.Vector3().crossVectors(newX,newZ).normalize()),newZ||(newZ=new three_webgpu.Vector3().crossVectors(newX,newY).normalize()),newX.applyQuaternion(this.quaternion),newY.applyQuaternion(this.quaternion),newZ.applyQuaternion(this.quaternion);let newMatrix=new three_webgpu.Matrix4().makeBasis(newX,newY,newZ),quaternion=new three_webgpu.Quaternion().setFromRotationMatrix(newMatrix);this.quaternion.copy(quaternion)}}}applyHelperScaleMatrix4(matrix,origin){this.scale.applyMatrix4(matrix)}setHelperQuaternion(quaternion,origin){this.initQuaternion(),origin?require_setObjectQuaternion.default(this,this.quaternion.clone().premultiply(quaternion),origin):this.quaternion.premultiply(quaternion)}applyHelperQuaternion(quaternion,origin){if(origin){let v=new three_webgpu.Vector3().subVectors(this.position,origin).applyQuaternion(quaternion).add(origin);this.position.copy(v)}this.applyQuaternion(quaternion)}dispose(){this.removeFromParent()}},MoveHelperAbstract=class extends BaseHelper{},BoundingBoxHelperAbstract=class extends BaseHelper{},RotateHelperAbstract=class extends BaseHelper{};exports.BaseHelper=BaseHelper,exports.BoundingBoxHelperAbstract=BoundingBoxHelperAbstract,exports.MoveHelperAbstract=MoveHelperAbstract,exports.RotateHelperAbstract=RotateHelperAbstract;
|
|
@@ -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
|
|
338
|
+
*/import setObjectQuaternion from"../utils/setObjectQuaternion.mjs";import{isNil}from"../../../five/utils/isNil.mjs";import*as THREE from"three/webgpu";import{Vector3}from"three/webgpu";var BaseHelper=class extends THREE.Object3D{removeChildren(){for(;this.children.length>0;)this.remove(this.children[0]);return this}add(...objects){let notNilObjects=objects.filter(Boolean);return notNilObjects.length===0?this:super.add(...notNilObjects)}addIfNotExists(...objects){return objects.forEach(object=>{this.children.includes(object)||this.add(object)}),this}remove(...objects){if(objects.length===0)return this;let notNilObjects=objects.filter(Boolean);return super.remove(...notNilObjects)}removeFromParent(){let parent=this.parent;return parent!==null&&parent.remove(this),this}get helperObject(){return this}constructor(originObject3D,config){var _a,_b;super(),this.originObject3D=originObject3D,this.onRender=(_a=config==null?void 0:config.onRender)==null?(()=>{}):_a,this.positionFrom=(_b=config==null?void 0:config.positionFrom)==null?`objectPosition`:_b}render(){this.onRender()}enable(){this.parent&&(this.parent.children.includes(this)||this.parent.add(this))}disable(){this.removeFromParent()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}raycasterIntersectObject(raycaster,intersection=[]){return raycaster.intersectObject(this,!0,intersection)}initialPosition(offset){this.positionFrom===`objectPosition`?this.position.copy(this.originObject3D.position):this.positionFrom===`boundingBox`||this.positionFrom===`boundingSphere`?this.position.copy(new THREE.Box3().expandByObject(this.originObject3D).getCenter(new THREE.Vector3)):this.positionFrom instanceof Vector3?this.position.copy(this.positionFrom):this.positionFrom instanceof Function&&this.position.copy(this.positionFrom(this.originObject3D)),offset&&this.position.add(offset)}setScaleByCamera(camera){}initQuaternion(config){if(this.quaternion.set(0,0,0,1),config&&(config.xAxis||config.yAxis||config.zAxis)){let xAxis=config.xAxis instanceof Function?config.xAxis():config.xAxis,yAxis=config.yAxis instanceof Function?config.yAxis():config.yAxis,zAxis=config.zAxis instanceof Function?config.zAxis():config.zAxis,newX=xAxis==null?void 0:xAxis.clone(),newY=yAxis==null?void 0:yAxis.clone(),newZ=zAxis==null?void 0:zAxis.clone();if(newX&&!newY&&!newY){let quaternionX=new THREE.Quaternion().setFromUnitVectors(new THREE.Vector3(1,0,0),newX.normalize());this.applyQuaternion(quaternionX)}if(newY&&!newX&&!newZ){let quaternionY=new THREE.Quaternion().setFromUnitVectors(new THREE.Vector3(0,1,0),newY.normalize());this.applyQuaternion(quaternionY)}if(newZ&&!newX&&!newY){let quaternionZ=new THREE.Quaternion().setFromUnitVectors(new THREE.Vector3(0,0,1),newZ.normalize());this.applyQuaternion(quaternionZ)}if([newX,newY,newZ].filter(v=>!isNil(v)).length>=2){newX||(newX=new THREE.Vector3().crossVectors(newY,newZ).normalize()),newY||(newY=new THREE.Vector3().crossVectors(newX,newZ).normalize()),newZ||(newZ=new THREE.Vector3().crossVectors(newX,newY).normalize()),newX.applyQuaternion(this.quaternion),newY.applyQuaternion(this.quaternion),newZ.applyQuaternion(this.quaternion);let newMatrix=new THREE.Matrix4().makeBasis(newX,newY,newZ),quaternion=new THREE.Quaternion().setFromRotationMatrix(newMatrix);this.quaternion.copy(quaternion)}}}applyHelperScaleMatrix4(matrix,origin){this.scale.applyMatrix4(matrix)}setHelperQuaternion(quaternion,origin){this.initQuaternion(),origin?setObjectQuaternion(this,this.quaternion.clone().premultiply(quaternion),origin):this.quaternion.premultiply(quaternion)}applyHelperQuaternion(quaternion,origin){if(origin){let v=new Vector3().subVectors(this.position,origin).applyQuaternion(quaternion).add(origin);this.position.copy(v)}this.applyQuaternion(quaternion)}dispose(){this.removeFromParent()}},MoveHelperAbstract=class extends BaseHelper{},BoundingBoxHelperAbstract=class extends BaseHelper{},RotateHelperAbstract=class extends BaseHelper{};export{BaseHelper,BoundingBoxHelperAbstract,MoveHelperAbstract,RotateHelperAbstract};
|
|
@@ -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_setObjectQuaternion=require("../utils/setObjectQuaternion.js"),require_BaseHelper=require("./BaseHelper.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var BoundingBoxHelper=class extends require_BaseHelper.BoundingBoxHelperAbstract{constructor(originObject){super(originObject),this.name=`BoundingBoxHelper`,this.positionAttribute=new three_webgpu.BufferAttribute(new Float32Array(24),3),this.box=this.createBox(),this.outline=this.createOutline(),this.add(this.box,this.outline),this.update()}initQuaternion(){this.quaternion.copy(this.originObject3D.quaternion),this.scale.copy(this.originObject3D.scale)}setHelperQuaternion(quaternion,origin){require_setObjectQuaternion.default(this,quaternion,origin)}raycasterIntersectObject(raycaster,intersection){return raycaster.intersectObject(this,!1,intersection)}raycast(raycaster,intersects){this.box.raycast(raycaster,intersects)}update(){let localBox=new three_webgpu.Box3,inverseMatrix=new three_webgpu.Matrix4().copy(this.originObject3D.matrixWorld).invert(),vertex=new three_webgpu.Vector3;if(this.originObject3D.updateMatrixWorld(!0),this.originObject3D.traverse(child=>{let geometry=child.geometry;if(!geometry)return;child.updateMatrixWorld(!0);let toLocal=new three_webgpu.Matrix4().multiplyMatrices(inverseMatrix,child.matrixWorld);if(geometry.isBufferGeometry){let bufGeom=geometry,position=bufGeom.attributes.position;if(position)for(let i=0,l=position.count;i<l;i++)vertex.fromBufferAttribute(position,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex);let instanceStart=bufGeom.attributes.instanceStart,instanceEnd=bufGeom.attributes.instanceEnd;if(instanceStart)for(let i=0,l=instanceStart.count;i<l;i++)vertex.fromBufferAttribute(instanceStart,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex);if(instanceEnd)for(let i=0,l=instanceEnd.count;i<l;i++)vertex.fromBufferAttribute(instanceEnd,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex)}else if(geometry.vertices){let vertices=geometry.vertices;for(let v of vertices)vertex.copy(v).applyMatrix4(toLocal),localBox.expandByPoint(vertex)}}),localBox.isEmpty())return;let{min,max}=localBox;this.positionAttribute.setXYZ(0,max.x,max.y,max.z),this.positionAttribute.setXYZ(1,min.x,max.y,max.z),this.positionAttribute.setXYZ(2,min.x,min.y,max.z),this.positionAttribute.setXYZ(3,max.x,min.y,max.z),this.positionAttribute.setXYZ(4,max.x,max.y,min.z),this.positionAttribute.setXYZ(5,min.x,max.y,min.z),this.positionAttribute.setXYZ(6,min.x,min.y,min.z),this.positionAttribute.setXYZ(7,max.x,min.y,min.z),this.positionAttribute.needsUpdate=!0}createOutline(){let lineIndices=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),lineGeometry=new three_webgpu.BufferGeometry;lineGeometry.setIndex(new three_webgpu.BufferAttribute(lineIndices,1)),lineGeometry.setAttribute(`position`,this.positionAttribute);let lineMaterial=new three_webgpu.LineBasicMaterial({color:64767,linewidth:1,opacity:1,toneMapped:!1}),lineSegments=new three_webgpu.LineSegments(lineGeometry,lineMaterial);return lineSegments.matrixAutoUpdate=!1,lineSegments}createBox(){let boxIndices=new Uint16Array([0,1,2,0,2,3,0,3,7,0,7,4,0,4,5,0,5,1,6,1,5,6,2,1,6,5,4,6,4,7,6,3,2,6,7,3]),boxGeometry=new three_webgpu.BufferGeometry;boxGeometry.setIndex(new three_webgpu.BufferAttribute(boxIndices,1)),boxGeometry.setAttribute(`position`,this.positionAttribute);let boxMaterial=new three_webgpu.MeshBasicMaterial({color:64767,opacity:.1,depthTest:!1,transparent:!0});return new three_webgpu.Mesh(boxGeometry,boxMaterial)}};exports.BoundingBoxHelper=BoundingBoxHelper;
|
|
@@ -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
|
|
338
|
+
*/import setObjectQuaternion from"../utils/setObjectQuaternion.mjs";import{BoundingBoxHelperAbstract}from"./BaseHelper.mjs";import*as THREE from"three/webgpu";var BoundingBoxHelper=class extends BoundingBoxHelperAbstract{constructor(originObject){super(originObject),this.name=`BoundingBoxHelper`,this.positionAttribute=new THREE.BufferAttribute(new Float32Array(24),3),this.box=this.createBox(),this.outline=this.createOutline(),this.add(this.box,this.outline),this.update()}initQuaternion(){this.quaternion.copy(this.originObject3D.quaternion),this.scale.copy(this.originObject3D.scale)}setHelperQuaternion(quaternion,origin){setObjectQuaternion(this,quaternion,origin)}raycasterIntersectObject(raycaster,intersection){return raycaster.intersectObject(this,!1,intersection)}raycast(raycaster,intersects){this.box.raycast(raycaster,intersects)}update(){let localBox=new THREE.Box3,inverseMatrix=new THREE.Matrix4().copy(this.originObject3D.matrixWorld).invert(),vertex=new THREE.Vector3;if(this.originObject3D.updateMatrixWorld(!0),this.originObject3D.traverse(child=>{let geometry=child.geometry;if(!geometry)return;child.updateMatrixWorld(!0);let toLocal=new THREE.Matrix4().multiplyMatrices(inverseMatrix,child.matrixWorld);if(geometry.isBufferGeometry){let bufGeom=geometry,position=bufGeom.attributes.position;if(position)for(let i=0,l=position.count;i<l;i++)vertex.fromBufferAttribute(position,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex);let instanceStart=bufGeom.attributes.instanceStart,instanceEnd=bufGeom.attributes.instanceEnd;if(instanceStart)for(let i=0,l=instanceStart.count;i<l;i++)vertex.fromBufferAttribute(instanceStart,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex);if(instanceEnd)for(let i=0,l=instanceEnd.count;i<l;i++)vertex.fromBufferAttribute(instanceEnd,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex)}else if(geometry.vertices){let vertices=geometry.vertices;for(let v of vertices)vertex.copy(v).applyMatrix4(toLocal),localBox.expandByPoint(vertex)}}),localBox.isEmpty())return;let{min,max}=localBox;this.positionAttribute.setXYZ(0,max.x,max.y,max.z),this.positionAttribute.setXYZ(1,min.x,max.y,max.z),this.positionAttribute.setXYZ(2,min.x,min.y,max.z),this.positionAttribute.setXYZ(3,max.x,min.y,max.z),this.positionAttribute.setXYZ(4,max.x,max.y,min.z),this.positionAttribute.setXYZ(5,min.x,max.y,min.z),this.positionAttribute.setXYZ(6,min.x,min.y,min.z),this.positionAttribute.setXYZ(7,max.x,min.y,min.z),this.positionAttribute.needsUpdate=!0}createOutline(){let lineIndices=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),lineGeometry=new THREE.BufferGeometry;lineGeometry.setIndex(new THREE.BufferAttribute(lineIndices,1)),lineGeometry.setAttribute(`position`,this.positionAttribute);let lineMaterial=new THREE.LineBasicMaterial({color:64767,linewidth:1,opacity:1,toneMapped:!1}),lineSegments=new THREE.LineSegments(lineGeometry,lineMaterial);return lineSegments.matrixAutoUpdate=!1,lineSegments}createBox(){let boxIndices=new Uint16Array([0,1,2,0,2,3,0,3,7,0,7,4,0,4,5,0,5,1,6,1,5,6,2,1,6,5,4,6,4,7,6,3,2,6,7,3]),boxGeometry=new THREE.BufferGeometry;boxGeometry.setIndex(new THREE.BufferAttribute(boxIndices,1)),boxGeometry.setAttribute(`position`,this.positionAttribute);let boxMaterial=new THREE.MeshBasicMaterial({color:64767,opacity:.1,depthTest:!1,transparent:!0});return new THREE.Mesh(boxGeometry,boxMaterial)}};export{BoundingBoxHelper};
|
|
@@ -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_BaseHelper=require("./BaseHelper.js"),require_constant=require("../constant.js"),require_ArrowGroup=require("../utils/ArrowGroup.js"),require_CenterHandle=require("../utils/CenterHandle.js"),require_PlaneHandle=require("../utils/PlaneHandle.js"),require_calculateScaleByCamera=require("../utils/calculateScaleByCamera.js"),require_getOrthographicCameraDirection=require("../utils/getOrthographicCameraDirection.js"),require_tipsDom=require("../utils/tipsDom.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var MoveHelper=class extends require_BaseHelper.MoveHelperAbstract{constructor(originObject3D,config){super(originObject3D,config),this.name=`MoveHelper`,(config==null?void 0:config.xArrowEnable)!==!1&&(this.xArrow=new require_ArrowGroup.ArrowGroup({direction:`x`,color:require_constant.AXES_THREE_COLOR.X})),(config==null?void 0:config.yArrowEnable)!==!1&&(this.yArrow=new require_ArrowGroup.ArrowGroup({direction:`y`,color:require_constant.AXES_THREE_COLOR.Y})),(config==null?void 0:config.zArrowEnable)!==!1&&(this.zArrow=new require_ArrowGroup.ArrowGroup({direction:`z`,color:require_constant.AXES_THREE_COLOR.Z})),(config==null?void 0:config.centerHandleEnable)!==!1&&(this.centerHandle=new require_CenterHandle.CenterHandle),(config==null?void 0:config.xyPlaneEnable)!==!1&&(this.xyPlane=new require_PlaneHandle.PlaneHandle({direction:`xy`,color:require_constant.AXES_THREE_COLOR.Z})),(config==null?void 0:config.xzPlaneEnable)!==!1&&(this.xzPlane=new require_PlaneHandle.PlaneHandle({direction:`xz`,color:require_constant.AXES_THREE_COLOR.Y})),(config==null?void 0:config.yzPlaneEnable)!==!1&&(this.yzPlane=new require_PlaneHandle.PlaneHandle({direction:`yz`,color:require_constant.AXES_THREE_COLOR.X})),config!=null&&config.container&&(config==null?void 0:config.moveTipsEnable)!==!1&&(this.container=config.container,this.moveTips=require_tipsDom.tipsDom({display:`none`}),this.container.appendChild(this.moveTips.element)),this.add(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean))}update(camera){if(this.xArrow&&(this.xArrow.visible=!0),this.yArrow&&(this.yArrow.visible=!0),this.zArrow&&(this.zArrow.visible=!0),this.centerHandle&&this.centerHandle.update(camera),camera.type===`OrthographicCamera`){let worldDirectionX=new three_webgpu.Vector3(1,0,0).applyQuaternion(this.quaternion),worldDirectionY=new three_webgpu.Vector3(0,1,0).applyQuaternion(this.quaternion),worldDirectionZ=new three_webgpu.Vector3(0,0,1).applyQuaternion(this.quaternion),pose=camera.pose,orthographicCameraDirection=require_getOrthographicCameraDirection.getOrthographicCameraDirection(pose),hideThreshold=.0872665;Math.abs(worldDirectionX.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionX.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold?this.xArrow&&(this.xArrow.visible=!1):Math.abs(worldDirectionY.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionY.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold?this.yArrow&&(this.yArrow.visible=!1):(Math.abs(worldDirectionZ.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionZ.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold)&&this.zArrow&&(this.zArrow.visible=!1)}}show(){var _a;super.show(),this.xArrow&&this.add(this.xArrow),this.yArrow&&this.add(this.yArrow),this.zArrow&&this.add(this.zArrow),this.centerHandle&&this.add(this.centerHandle),this.xyPlane&&this.add(this.xyPlane),this.xzPlane&&this.add(this.xzPlane),this.yzPlane&&this.add(this.yzPlane),(_a=this.moveTips)==null||_a.hide()}setScaleByCamera(camera){this.scale.setScalar(require_calculateScaleByCamera.default(camera,this.position))}showDraggingHelper(directions){this.xArrow&&(directions.includes(`x`)?this.add(this.xArrow):this.remove(this.xArrow)),this.yArrow&&(directions.includes(`y`)?this.add(this.yArrow):this.remove(this.yArrow)),this.zArrow&&(directions.includes(`z`)?this.add(this.zArrow):this.remove(this.zArrow)),this.centerHandle&&(directions.includes(`plane`)?this.add(this.centerHandle):this.remove(this.centerHandle)),this.xyPlane&&(directions.includes(`xy`)?this.add(this.xyPlane):this.remove(this.xyPlane)),this.xzPlane&&(directions.includes(`xz`)?this.add(this.xzPlane):this.remove(this.xzPlane)),this.yzPlane&&(directions.includes(`yz`)?this.add(this.yzPlane):this.remove(this.yzPlane))}dispose(){var _a,_b;this.remove(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean)),(_b=(_a=this.moveTips)==null?void 0:_a.element)==null||_b.remove(),super.dispose()}};exports.MoveHelper=MoveHelper;
|
|
@@ -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{MoveHelperAbstract
|
|
338
|
+
*/import{MoveHelperAbstract}from"./BaseHelper.mjs";import{AXES_THREE_COLOR}from"../constant.mjs";import{ArrowGroup}from"../utils/ArrowGroup.mjs";import{CenterHandle}from"../utils/CenterHandle.mjs";import{PlaneHandle}from"../utils/PlaneHandle.mjs";import calculateScaleByCamera from"../utils/calculateScaleByCamera.mjs";import{getOrthographicCameraDirection}from"../utils/getOrthographicCameraDirection.mjs";import{tipsDom}from"../utils/tipsDom.mjs";import*as THREE from"three/webgpu";var MoveHelper=class extends MoveHelperAbstract{constructor(originObject3D,config){super(originObject3D,config),this.name=`MoveHelper`,(config==null?void 0:config.xArrowEnable)!==!1&&(this.xArrow=new ArrowGroup({direction:`x`,color:AXES_THREE_COLOR.X})),(config==null?void 0:config.yArrowEnable)!==!1&&(this.yArrow=new ArrowGroup({direction:`y`,color:AXES_THREE_COLOR.Y})),(config==null?void 0:config.zArrowEnable)!==!1&&(this.zArrow=new ArrowGroup({direction:`z`,color:AXES_THREE_COLOR.Z})),(config==null?void 0:config.centerHandleEnable)!==!1&&(this.centerHandle=new CenterHandle),(config==null?void 0:config.xyPlaneEnable)!==!1&&(this.xyPlane=new PlaneHandle({direction:`xy`,color:AXES_THREE_COLOR.Z})),(config==null?void 0:config.xzPlaneEnable)!==!1&&(this.xzPlane=new PlaneHandle({direction:`xz`,color:AXES_THREE_COLOR.Y})),(config==null?void 0:config.yzPlaneEnable)!==!1&&(this.yzPlane=new PlaneHandle({direction:`yz`,color:AXES_THREE_COLOR.X})),config!=null&&config.container&&(config==null?void 0:config.moveTipsEnable)!==!1&&(this.container=config.container,this.moveTips=tipsDom({display:`none`}),this.container.appendChild(this.moveTips.element)),this.add(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean))}update(camera){if(this.xArrow&&(this.xArrow.visible=!0),this.yArrow&&(this.yArrow.visible=!0),this.zArrow&&(this.zArrow.visible=!0),this.centerHandle&&this.centerHandle.update(camera),camera.type===`OrthographicCamera`){let worldDirectionX=new THREE.Vector3(1,0,0).applyQuaternion(this.quaternion),worldDirectionY=new THREE.Vector3(0,1,0).applyQuaternion(this.quaternion),worldDirectionZ=new THREE.Vector3(0,0,1).applyQuaternion(this.quaternion),pose=camera.pose,orthographicCameraDirection=getOrthographicCameraDirection(pose),hideThreshold=.0872665;Math.abs(worldDirectionX.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionX.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold?this.xArrow&&(this.xArrow.visible=!1):Math.abs(worldDirectionY.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionY.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold?this.yArrow&&(this.yArrow.visible=!1):(Math.abs(worldDirectionZ.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionZ.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold)&&this.zArrow&&(this.zArrow.visible=!1)}}show(){var _a;super.show(),this.xArrow&&this.add(this.xArrow),this.yArrow&&this.add(this.yArrow),this.zArrow&&this.add(this.zArrow),this.centerHandle&&this.add(this.centerHandle),this.xyPlane&&this.add(this.xyPlane),this.xzPlane&&this.add(this.xzPlane),this.yzPlane&&this.add(this.yzPlane),(_a=this.moveTips)==null||_a.hide()}setScaleByCamera(camera){this.scale.setScalar(calculateScaleByCamera(camera,this.position))}showDraggingHelper(directions){this.xArrow&&(directions.includes(`x`)?this.add(this.xArrow):this.remove(this.xArrow)),this.yArrow&&(directions.includes(`y`)?this.add(this.yArrow):this.remove(this.yArrow)),this.zArrow&&(directions.includes(`z`)?this.add(this.zArrow):this.remove(this.zArrow)),this.centerHandle&&(directions.includes(`plane`)?this.add(this.centerHandle):this.remove(this.centerHandle)),this.xyPlane&&(directions.includes(`xy`)?this.add(this.xyPlane):this.remove(this.xyPlane)),this.xzPlane&&(directions.includes(`xz`)?this.add(this.xzPlane):this.remove(this.xzPlane)),this.yzPlane&&(directions.includes(`yz`)?this.add(this.yzPlane):this.remove(this.yzPlane))}dispose(){var _a,_b;this.remove(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean)),(_b=(_a=this.moveTips)==null?void 0:_a.element)==null||_b.remove(),super.dispose()}};export{MoveHelper};
|
|
@@ -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_BaseHelper=require("./BaseHelper.js"),require_constant=require("../constant.js"),require_calculateScaleByCamera=require("../utils/calculateScaleByCamera.js"),require_tipsDom=require("../utils/tipsDom.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var RotateHelper=class extends require_BaseHelper.RotateHelperAbstract{constructor(originObject3D,config){super(originObject3D,config),this.name=`RotateHelper`,this.children=[],(config==null?void 0:config.yzCircleEnable)!==!1&&(this.xCircle=new RotateCircleGroup({direction:`x`,color:require_constant.AXES_THREE_COLOR.X})),(config==null?void 0:config.xzCircleEnable)!==!1&&(this.yCircle=new RotateCircleGroup({direction:`y`,color:require_constant.AXES_THREE_COLOR.Y})),(config==null?void 0:config.xyCircleEnable)!==!1&&(this.zCircle=new RotateCircleGroup({direction:`z`,color:require_constant.AXES_THREE_COLOR.Z})),config!=null&&config.container&&(config==null?void 0:config.angleTipsEnable)!==!1&&(this.container=config==null?void 0:config.container,this.angleTips=require_tipsDom.tipsDom({display:`none`}),this.container.appendChild(this.angleTips.element)),this.add(...[this.xCircle,this.yCircle,this.zCircle].filter(Boolean)),this.show()}hide(){this.children.forEach(child=>child.hide())}show(){var _a;this.children.forEach(child=>child.showCircle()),(_a=this.angleTips)==null||_a.hide()}setScaleByCamera(camera){this.scale.setScalar(require_calculateScaleByCamera.default(camera,this.position))}update(camera){if(camera.type===`OrthographicCamera`)return;let cameraDirection=this.helperObject.position.clone().sub(camera.position).normalize(),worldDirectionX=new three_webgpu.Vector3(1,0,0).applyQuaternion(this.quaternion),worldDirectionY=new three_webgpu.Vector3(0,1,0).applyQuaternion(this.quaternion),worldDirectionZ=new three_webgpu.Vector3(0,0,1).applyQuaternion(this.quaternion),angleX=cameraDirection.angleTo(worldDirectionX),angleY=cameraDirection.angleTo(worldDirectionY),angleZ=cameraDirection.angleTo(worldDirectionZ),threshold=Math.PI/2,positiveY=angleY>=threshold,positiveZ=angleZ>=threshold,positiveX=angleX>=threshold;if(this.xCircle){let gapAngle=this.xCircle.circle.gapAngle;positiveY&&positiveZ?this.xCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveY&&!positiveZ?this.xCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveY&&positiveZ?this.xCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveY&&!positiveZ&&(this.xCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),this.xCircle.angleSector&&(this.xCircle.angleSector.offsetAngle=angle=>angle,positiveY&&positiveZ||positiveY&&!positiveZ?this.xCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,0,1):!positiveY&&positiveZ?(this.xCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,-1,0),this.xCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveY&&!positiveZ&&(this.xCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,0,-1),this.xCircle.angleSector.offsetAngle=angle=>angle-Math.PI))}if(this.yCircle){this.yCircle.angleSector.offsetAngle=angle=>angle;let gapAngle=this.yCircle.circle.gapAngle;positiveX&&positiveZ?this.yCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveX&&!positiveZ?this.yCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&positiveZ?this.yCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&!positiveZ&&(this.yCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),positiveX&&positiveZ?this.yCircle.angleSector.baseAxes=new three_webgpu.Vector3(1,0,0):positiveX&&!positiveZ?(this.yCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,0,-1),this.yCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveX&&positiveZ?(this.yCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,0,1),this.yCircle.angleSector.offsetAngle=angle=>angle+Math.PI/2):!positiveX&&!positiveZ&&(this.yCircle.angleSector.baseAxes=new three_webgpu.Vector3(-1,0,0),this.yCircle.angleSector.offsetAngle=angle=>angle+Math.PI)}if(this.zCircle){this.zCircle.angleSector.offsetAngle=angle=>angle;let gapAngle=this.zCircle.circle.gapAngle;positiveX&&positiveY?this.zCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveX&&!positiveY?this.zCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&positiveY?this.zCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&!positiveY&&(this.zCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),this.zCircle.angleSector&&(positiveX&&positiveY?this.zCircle.angleSector.baseAxes=new three_webgpu.Vector3(1,0,0):positiveX&&!positiveY?(this.zCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,-1,0),this.zCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveX&&positiveY?(this.zCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,1,0),this.zCircle.angleSector.offsetAngle=angle=>angle+Math.PI/2):!positiveX&&!positiveY&&(this.zCircle.angleSector.baseAxes=new three_webgpu.Vector3(-1,0,0),this.zCircle.angleSector.offsetAngle=angle=>angle+Math.PI))}}showDraggingHelper(directions){var _a;this.hide(),this.children.filter(child=>directions.includes(child.direction)).forEach(child=>child.showRing()),(_a=this.angleTips)==null||_a.show()}dispose(){var _a,_b;this.removeFromParent(),(_b=(_a=this.angleTips)==null?void 0:_a.element)==null||_b.remove()}},RotateCircleGroup=class extends three_webgpu.Group{constructor(options){super(),this.direction=options.direction,this.circle=new Circle(options),this.ring=new DashedRing(options),this.angleSector=new AngleSector(options),this.add(this.circle,this.ring,this.angleSector),this.direction===`y`?this.rotation.x=Math.PI/2:this.direction===`x`&&(this.rotation.y=-Math.PI/2)}showCircle(){this.add(this.circle),this.remove(this.ring,this.angleSector)}showRing(){this.add(this.ring,this.angleSector),this.remove(this.circle)}hide(){this.remove(this.ring,this.angleSector,this.circle)}},Circle=class extends three_webgpu.Mesh{constructor(options){var _a;super(),this.gapAngle=.02,this.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,this.gapAngle,Math.PI/2-this.gapAngle*2),this.material=new three_webgpu.MeshBasicMaterial({opacity:.6,transparent:!0,color:(_a=options.color)==null?16777215:_a,side:three_webgpu.DoubleSide,depthTest:!1}),this.direction=options.direction,this.renderOrder=require_constant.RENDER_ORDER.ROTATE_HELPER,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`}},DashedRing=class extends three_webgpu.Group{constructor(options){super(),this.direction=options.direction;let gapAngle=.015,meshes=Array(8).fill(null).map((_,i)=>{let geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/4*i+gapAngle,Math.PI/4-gapAngle*2),material=new three_webgpu.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,depthWrite:!1,transparent:!0,side:three_webgpu.DoubleSide}),mesh=new three_webgpu.Mesh(geometry,material);return mesh.name=`AxesDashedRing-${this.direction}-${i}`,mesh});this.add(...meshes)}},AngleSector=class extends three_webgpu.Mesh{constructor(options){var _a;switch(super(),this.offsetAngle=angle=>angle,options.direction){case`x`:this.baseAxes=new three_webgpu.Vector3(0,0,1);break;case`y`:this.baseAxes=new three_webgpu.Vector3(1,0,0);break;case`z`:this.baseAxes=new three_webgpu.Vector3(1,0,0);break}this.geometry=new three_webgpu.CircleGeometry(.3505,48,0,1e-4),this.material=new three_webgpu.MeshBasicMaterial({opacity:.4,color:(_a=options.color)==null?16777215:_a,depthTest:!1,depthWrite:!1,transparent:!0,side:three_webgpu.DoubleSide}),this.direction=options.direction,this.angleDirection=1}setClockwiseDirection(){this.angleDirection=-1}setCounterClockwiseDirection(){this.angleDirection=1}toggleDirection(){this.angleDirection=this.angleDirection===1?-1:1}setBaseAxes(axes){this.baseAxes=axes.clone().normalize()}getDirection(){return this.angleDirection===-1?`clockwise`:`counterclockwise`}};exports.RotateHelper=RotateHelper;
|
|
@@ -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{RotateHelperAbstract
|
|
338
|
+
*/import{RotateHelperAbstract}from"./BaseHelper.mjs";import{AXES_THREE_COLOR,RENDER_ORDER}from"../constant.mjs";import calculateScaleByCamera from"../utils/calculateScaleByCamera.mjs";import{tipsDom}from"../utils/tipsDom.mjs";import*as THREE from"three/webgpu";var RotateHelper=class extends RotateHelperAbstract{constructor(originObject3D,config){super(originObject3D,config),this.name=`RotateHelper`,this.children=[],(config==null?void 0:config.yzCircleEnable)!==!1&&(this.xCircle=new RotateCircleGroup({direction:`x`,color:AXES_THREE_COLOR.X})),(config==null?void 0:config.xzCircleEnable)!==!1&&(this.yCircle=new RotateCircleGroup({direction:`y`,color:AXES_THREE_COLOR.Y})),(config==null?void 0:config.xyCircleEnable)!==!1&&(this.zCircle=new RotateCircleGroup({direction:`z`,color:AXES_THREE_COLOR.Z})),config!=null&&config.container&&(config==null?void 0:config.angleTipsEnable)!==!1&&(this.container=config==null?void 0:config.container,this.angleTips=tipsDom({display:`none`}),this.container.appendChild(this.angleTips.element)),this.add(...[this.xCircle,this.yCircle,this.zCircle].filter(Boolean)),this.show()}hide(){this.children.forEach(child=>child.hide())}show(){var _a;this.children.forEach(child=>child.showCircle()),(_a=this.angleTips)==null||_a.hide()}setScaleByCamera(camera){this.scale.setScalar(calculateScaleByCamera(camera,this.position))}update(camera){if(camera.type===`OrthographicCamera`)return;let cameraDirection=this.helperObject.position.clone().sub(camera.position).normalize(),worldDirectionX=new THREE.Vector3(1,0,0).applyQuaternion(this.quaternion),worldDirectionY=new THREE.Vector3(0,1,0).applyQuaternion(this.quaternion),worldDirectionZ=new THREE.Vector3(0,0,1).applyQuaternion(this.quaternion),angleX=cameraDirection.angleTo(worldDirectionX),angleY=cameraDirection.angleTo(worldDirectionY),angleZ=cameraDirection.angleTo(worldDirectionZ),threshold=Math.PI/2,positiveY=angleY>=threshold,positiveZ=angleZ>=threshold,positiveX=angleX>=threshold;if(this.xCircle){let gapAngle=this.xCircle.circle.gapAngle;positiveY&&positiveZ?this.xCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveY&&!positiveZ?this.xCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveY&&positiveZ?this.xCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveY&&!positiveZ&&(this.xCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),this.xCircle.angleSector&&(this.xCircle.angleSector.offsetAngle=angle=>angle,positiveY&&positiveZ||positiveY&&!positiveZ?this.xCircle.angleSector.baseAxes=new THREE.Vector3(0,0,1):!positiveY&&positiveZ?(this.xCircle.angleSector.baseAxes=new THREE.Vector3(0,-1,0),this.xCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveY&&!positiveZ&&(this.xCircle.angleSector.baseAxes=new THREE.Vector3(0,0,-1),this.xCircle.angleSector.offsetAngle=angle=>angle-Math.PI))}if(this.yCircle){this.yCircle.angleSector.offsetAngle=angle=>angle;let gapAngle=this.yCircle.circle.gapAngle;positiveX&&positiveZ?this.yCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveX&&!positiveZ?this.yCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&positiveZ?this.yCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&!positiveZ&&(this.yCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),positiveX&&positiveZ?this.yCircle.angleSector.baseAxes=new THREE.Vector3(1,0,0):positiveX&&!positiveZ?(this.yCircle.angleSector.baseAxes=new THREE.Vector3(0,0,-1),this.yCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveX&&positiveZ?(this.yCircle.angleSector.baseAxes=new THREE.Vector3(0,0,1),this.yCircle.angleSector.offsetAngle=angle=>angle+Math.PI/2):!positiveX&&!positiveZ&&(this.yCircle.angleSector.baseAxes=new THREE.Vector3(-1,0,0),this.yCircle.angleSector.offsetAngle=angle=>angle+Math.PI)}if(this.zCircle){this.zCircle.angleSector.offsetAngle=angle=>angle;let gapAngle=this.zCircle.circle.gapAngle;positiveX&&positiveY?this.zCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveX&&!positiveY?this.zCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&positiveY?this.zCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&!positiveY&&(this.zCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),this.zCircle.angleSector&&(positiveX&&positiveY?this.zCircle.angleSector.baseAxes=new THREE.Vector3(1,0,0):positiveX&&!positiveY?(this.zCircle.angleSector.baseAxes=new THREE.Vector3(0,-1,0),this.zCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveX&&positiveY?(this.zCircle.angleSector.baseAxes=new THREE.Vector3(0,1,0),this.zCircle.angleSector.offsetAngle=angle=>angle+Math.PI/2):!positiveX&&!positiveY&&(this.zCircle.angleSector.baseAxes=new THREE.Vector3(-1,0,0),this.zCircle.angleSector.offsetAngle=angle=>angle+Math.PI))}}showDraggingHelper(directions){var _a;this.hide(),this.children.filter(child=>directions.includes(child.direction)).forEach(child=>child.showRing()),(_a=this.angleTips)==null||_a.show()}dispose(){var _a,_b;this.removeFromParent(),(_b=(_a=this.angleTips)==null?void 0:_a.element)==null||_b.remove()}},RotateCircleGroup=class extends THREE.Group{constructor(options){super(),this.direction=options.direction,this.circle=new Circle(options),this.ring=new DashedRing(options),this.angleSector=new AngleSector(options),this.add(this.circle,this.ring,this.angleSector),this.direction===`y`?this.rotation.x=Math.PI/2:this.direction===`x`&&(this.rotation.y=-Math.PI/2)}showCircle(){this.add(this.circle),this.remove(this.ring,this.angleSector)}showRing(){this.add(this.ring,this.angleSector),this.remove(this.circle)}hide(){this.remove(this.ring,this.angleSector,this.circle)}},Circle=class extends THREE.Mesh{constructor(options){var _a;super(),this.gapAngle=.02,this.geometry=new THREE.RingGeometry(.3,.35,20,8,this.gapAngle,Math.PI/2-this.gapAngle*2),this.material=new THREE.MeshBasicMaterial({opacity:.6,transparent:!0,color:(_a=options.color)==null?16777215:_a,side:THREE.DoubleSide,depthTest:!1}),this.direction=options.direction,this.renderOrder=RENDER_ORDER.ROTATE_HELPER,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`}},DashedRing=class extends THREE.Group{constructor(options){super(),this.direction=options.direction;let gapAngle=.015,meshes=Array(8).fill(null).map((_,i)=>{let geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/4*i+gapAngle,Math.PI/4-gapAngle*2),material=new THREE.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,depthWrite:!1,transparent:!0,side:THREE.DoubleSide}),mesh=new THREE.Mesh(geometry,material);return mesh.name=`AxesDashedRing-${this.direction}-${i}`,mesh});this.add(...meshes)}},AngleSector=class extends THREE.Mesh{constructor(options){var _a;switch(super(),this.offsetAngle=angle=>angle,options.direction){case`x`:this.baseAxes=new THREE.Vector3(0,0,1);break;case`y`:this.baseAxes=new THREE.Vector3(1,0,0);break;case`z`:this.baseAxes=new THREE.Vector3(1,0,0);break}this.geometry=new THREE.CircleGeometry(.3505,48,0,1e-4),this.material=new THREE.MeshBasicMaterial({opacity:.4,color:(_a=options.color)==null?16777215:_a,depthTest:!1,depthWrite:!1,transparent:!0,side:THREE.DoubleSide}),this.direction=options.direction,this.angleDirection=1}setClockwiseDirection(){this.angleDirection=-1}setCounterClockwiseDirection(){this.angleDirection=1}toggleDirection(){this.angleDirection=this.angleDirection===1?-1:1}setBaseAxes(axes){this.baseAxes=axes.clone().normalize()}getDirection(){return this.angleDirection===-1?`clockwise`:`counterclockwise`}};export{RotateHelper};
|
|
@@ -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");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var AXES_COLOR={X:16730698,Y:54927,Z:3368703},AXES_THREE_COLOR=class{static get X(){return new three_webgpu.Color(AXES_COLOR.X).convertSRGBToLinear().clone()}static get Y(){return new three_webgpu.Color(AXES_COLOR.Y).convertSRGBToLinear().clone()}static get Z(){return new three_webgpu.Color(AXES_COLOR.Z).convertSRGBToLinear().clone()}},RENDER_ORDER={ROTATE_HELPER:9992,MOVE_HELPER:9993,SCALE_HELPER_LINE:9994,SCALE_HELPER_SPHERE:9995,MOVE_HELPER_ARROW:10001,MOVE_HELPER_CENTER:10002,DRAG_GUIDE_LINE:10003,DRAG_FACE_PATCH:10004};exports.AXES_COLOR=AXES_COLOR,exports.AXES_THREE_COLOR=AXES_THREE_COLOR,exports.RENDER_ORDER=RENDER_ORDER;
|
|
@@ -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*as
|
|
338
|
+
*/import*as THREE from"three/webgpu";var AXES_COLOR={X:16730698,Y:54927,Z:3368703},AXES_THREE_COLOR=class{static get X(){return new THREE.Color(AXES_COLOR.X).convertSRGBToLinear().clone()}static get Y(){return new THREE.Color(AXES_COLOR.Y).convertSRGBToLinear().clone()}static get Z(){return new THREE.Color(AXES_COLOR.Z).convertSRGBToLinear().clone()}},RENDER_ORDER={ROTATE_HELPER:9992,MOVE_HELPER:9993,SCALE_HELPER_LINE:9994,SCALE_HELPER_SPHERE:9995,MOVE_HELPER_ARROW:10001,MOVE_HELPER_CENTER:10002,DRAG_GUIDE_LINE:10003,DRAG_FACE_PATCH:10004};export{AXES_COLOR,AXES_THREE_COLOR,RENDER_ORDER};
|
|
@@ -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 Object3DHelperPlugin=five=>new require_Controller.Controller(five);exports.Object3DHelperController=require_Controller.Controller,exports.Object3DHelperPlugin=Object3DHelperPlugin;
|
|
@@ -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 Object3DHelperPlugin=five=>new Controller(five);export{Controller as Object3DHelperController,Object3DHelperPlugin};
|
|
@@ -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_direction=require("./direction.js"),require_constant=require("../constant.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var ArrowGroup=class extends require_direction.DirectionGroup{constructor(param){var _a;super(param.direction),this.lineHeight=.5,this.arrowHeight=.1,this.name=`ArrowGroup`;let color=new three_webgpu.Color((_a=param.color)==null?16214315:_a),makeMaterial=()=>new three_webgpu.MeshBasicMaterial({color,transparent:!0,opacity:1,depthTest:!1,depthWrite:!1}),coneGeometry=new three_webgpu.ConeGeometry(.04,this.arrowHeight,32);this.arrow=new require_direction.DirectionMesh(coneGeometry,makeMaterial(),param.direction),this.arrow.name=`arrow-${param.direction}`,this.arrow.renderOrder=require_constant.RENDER_ORDER.MOVE_HELPER_ARROW;let coneGeometryNeg=new three_webgpu.ConeGeometry(.04,this.arrowHeight,32);this.arrowNeg=new require_direction.DirectionMesh(coneGeometryNeg,makeMaterial(),param.direction),this.arrowNeg.name=`arrow-neg-${param.direction}`,this.arrowNeg.renderOrder=require_constant.RENDER_ORDER.MOVE_HELPER_ARROW;let radius=.004,cylinderGeometry=new three_webgpu.CylinderGeometry(radius,radius,this.lineHeight,32);this.line=new require_direction.DirectionMesh(cylinderGeometry,makeMaterial(),param.direction),this.line.name=`line-${param.direction}`,this.line.renderOrder=require_constant.RENDER_ORDER.MOVE_HELPER_ARROW,this.formatGeometries(),this.add(this.arrow,this.arrowNeg,this.line)}formatGeometries(){let h=this.lineHeight,ah=this.arrowHeight;this.arrow.geometry.translate(0,h+ah/2,0),this.arrowNeg.geometry.rotateZ(Math.PI),this.arrowNeg.geometry.translate(0,-(h+ah/2),0),this.line.geometry.translate(0,h/2,0),this.direction===`x`?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateY(Math.PI/2),this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction===`z`&&(this.arrow.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.line.geometry.rotateX(Math.PI/2))}};exports.ArrowGroup=ArrowGroup;
|
|
@@ -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{DirectionGroup
|
|
338
|
+
*/import{DirectionGroup,DirectionMesh}from"./direction.mjs";import{RENDER_ORDER}from"../constant.mjs";import*as THREE from"three/webgpu";var ArrowGroup=class extends DirectionGroup{constructor(param){var _a;super(param.direction),this.lineHeight=.5,this.arrowHeight=.1,this.name=`ArrowGroup`;let color=new THREE.Color((_a=param.color)==null?16214315:_a),makeMaterial=()=>new THREE.MeshBasicMaterial({color,transparent:!0,opacity:1,depthTest:!1,depthWrite:!1}),coneGeometry=new THREE.ConeGeometry(.04,this.arrowHeight,32);this.arrow=new DirectionMesh(coneGeometry,makeMaterial(),param.direction),this.arrow.name=`arrow-${param.direction}`,this.arrow.renderOrder=RENDER_ORDER.MOVE_HELPER_ARROW;let coneGeometryNeg=new THREE.ConeGeometry(.04,this.arrowHeight,32);this.arrowNeg=new DirectionMesh(coneGeometryNeg,makeMaterial(),param.direction),this.arrowNeg.name=`arrow-neg-${param.direction}`,this.arrowNeg.renderOrder=RENDER_ORDER.MOVE_HELPER_ARROW;let radius=.004,cylinderGeometry=new THREE.CylinderGeometry(radius,radius,this.lineHeight,32);this.line=new DirectionMesh(cylinderGeometry,makeMaterial(),param.direction),this.line.name=`line-${param.direction}`,this.line.renderOrder=RENDER_ORDER.MOVE_HELPER_ARROW,this.formatGeometries(),this.add(this.arrow,this.arrowNeg,this.line)}formatGeometries(){let h=this.lineHeight,ah=this.arrowHeight;this.arrow.geometry.translate(0,h+ah/2,0),this.arrowNeg.geometry.rotateZ(Math.PI),this.arrowNeg.geometry.translate(0,-(h+ah/2),0),this.line.geometry.translate(0,h/2,0),this.direction===`x`?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateY(Math.PI/2),this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction===`z`&&(this.arrow.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.line.geometry.rotateX(Math.PI/2))}};export{ArrowGroup};
|
|
@@ -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_direction=require("./direction.js"),require_constant=require("../constant.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var CenterHandle=class extends require_direction.DirectionGroup{constructor(param){var _a,_b;super(`plane`),this.name=`CenterHandle`,this.faceNormals=[new three_webgpu.Vector3(1,0,0),new three_webgpu.Vector3(-1,0,0),new three_webgpu.Vector3(0,1,0),new three_webgpu.Vector3(0,-1,0),new three_webgpu.Vector3(0,0,1),new three_webgpu.Vector3(0,0,-1)],this.baseColor=new three_webgpu.Color((_a=param==null?void 0:param.color)==null?16419862:_a);let centerSize=(_b=param==null?void 0:param.size)==null?.05:_b,brightColor=new three_webgpu.Color(16755008).convertSRGBToLinear();this.faceMaterials=Array.from({length:6},()=>new three_webgpu.MeshBasicMaterial({color:brightColor,transparent:!0,opacity:1,depthTest:!1,depthWrite:!1,side:three_webgpu.FrontSide}));let centerGeometry=new three_webgpu.BoxGeometry(centerSize,centerSize,centerSize),cube=new three_webgpu.Mesh(centerGeometry,this.faceMaterials);cube.direction=`plane`,cube.renderOrder=require_constant.RENDER_ORDER.MOVE_HELPER_CENTER,cube.name=`center-plane-handle`,this.cube=cube,this.add(this.cube)}update(camera){let cameraDirection=new three_webgpu.Vector3().subVectors(camera.position,this.cube.getWorldPosition(new three_webgpu.Vector3)).normalize(),worldQuaternion=this.cube.getWorldQuaternion(new three_webgpu.Quaternion),faceAngles=this.faceNormals.map((normal,index)=>{let dotProduct=normal.clone().applyQuaternion(worldQuaternion).dot(cameraDirection);return{index,angle:Math.acos(Math.abs(dotProduct))}});faceAngles.sort((a,b)=>a.angle-b.angle);let colors=[new three_webgpu.Color(16755008).convertSRGBToLinear(),new three_webgpu.Color(16419862).convertSRGBToLinear(),new three_webgpu.Color(13921032).convertSRGBToLinear()];faceAngles.forEach((item,sortedIndex)=>{let colorIndex=Math.floor(sortedIndex/2);this.faceMaterials[item.index].color.copy(colors[colorIndex])})}};exports.CenterHandle=CenterHandle;
|