@realsee/five-webgpu 1.0.0-alpha.5 → 1.0.0-alpha.7

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.
Files changed (378) hide show
  1. package/ai_guides/api.md +9 -8
  2. package/ai_guides/features/camera-animation.md +1 -1
  3. package/ai_guides/features/event.md +0 -1
  4. package/ai_guides/features/five.md +78 -9
  5. package/ai_guides/features/gesture.md +1 -1
  6. package/ai_guides/features/load-external-model.md +6 -6
  7. package/ai_guides/features/load-progress.md +2 -2
  8. package/ai_guides/features/material.md +35 -8
  9. package/ai_guides/features/mode.md +26 -29
  10. package/ai_guides/features/model.md +1 -1
  11. package/ai_guides/features/state.md +2 -2
  12. package/ai_guides/features/ultra-hdr.md +41 -32
  13. package/ai_guides/quick-start.md +2 -2
  14. package/ai_guides/release_notes/6.8.md +2 -2
  15. package/ai_guides/support.md +0 -4
  16. package/docs/assets/hierarchy.js +1 -1
  17. package/docs/assets/navigation.js +1 -1
  18. package/docs/assets/search.js +1 -1
  19. package/docs/classes/index.AdaptiveLuminancePass.html +1 -1
  20. package/docs/classes/index.BoundingMesh.html +1 -1
  21. package/docs/classes/index.Camera.html +1 -1
  22. package/docs/classes/index.EffectComposer.html +1 -1
  23. package/docs/classes/index.EyeDomeLightingPass.html +1 -1
  24. package/docs/classes/index.Five.html +69 -67
  25. package/docs/classes/index.FivePass.html +1 -1
  26. package/docs/classes/index.FlowingFireworks3DPass.html +1 -1
  27. package/docs/classes/index.FlowingLight2DPass.html +1 -1
  28. package/docs/classes/index.FlowingLight3DPass.html +2 -2
  29. package/docs/classes/index.GaussianBlurPass.html +1 -1
  30. package/docs/classes/index.InternalWebGPURenderer.html +8 -5
  31. package/docs/classes/index.Model.html +1 -1
  32. package/docs/classes/index.ModelScene.html +1 -1
  33. package/docs/classes/index.NetworkSubscribe.html +1 -1
  34. package/docs/classes/index.PBMCustomNode.html +8 -8
  35. package/docs/classes/index.PBMGaussianSplattingNodeMaterial.html +8 -6
  36. package/docs/classes/index.PBMGaussianSplattingObject.html +10 -4
  37. package/docs/classes/index.PBMGaussianSplattingRenderMesh.html +26 -15
  38. package/docs/classes/index.PBMGroup.html +1 -1
  39. package/docs/classes/index.PBMMesh.html +1 -1
  40. package/docs/classes/index.PBMMeshBasicMaterial.html +13 -8
  41. package/docs/classes/index.PBMMeshBasicNodeMaterial.html +15 -10
  42. package/docs/classes/index.PBMMeshPanoOnlyMaterial.html +13 -8
  43. package/docs/classes/index.PBMMeshPanoOnlyNodeMaterial.html +13 -8
  44. package/docs/classes/index.PBMMeshPhongMaterial.html +13 -8
  45. package/docs/classes/index.PBMMeshPhongNodeMaterial.html +15 -10
  46. package/docs/classes/index.PBMMeshPhysicalMaterial.html +13 -8
  47. package/docs/classes/index.PBMMeshPhysicalNodeMaterial.html +15 -10
  48. package/docs/classes/index.PBMPanoFilter.html +8 -8
  49. package/docs/classes/index.PBMPointCloud.html +6 -7
  50. package/docs/classes/index.PBMPointCloudMaterial.html +83 -0
  51. package/docs/classes/index.PBMSkinnedMesh.html +1 -1
  52. package/docs/classes/index.PBMUpdateable.html +1 -1
  53. package/docs/classes/index.PanoCircleMesh.html +1 -1
  54. package/docs/classes/index.PanoCircleMeshCustom.html +5 -5
  55. package/docs/classes/index.PanoCircleMeshSolid.html +1 -1
  56. package/docs/classes/index.Parameter.html +57 -56
  57. package/docs/classes/index.Scene.html +1 -1
  58. package/docs/classes/index.Subscribe.html +1 -1
  59. package/docs/classes/index.TextureLoader.html +4 -1
  60. package/docs/classes/index.Tile3D.html +23 -21
  61. package/docs/classes/index.TileNode.html +1 -1
  62. package/docs/classes/index.Tileset.html +4 -4
  63. package/docs/classes/index.TrajectoryNode.html +3 -3
  64. package/docs/classes/index.Work.html +20 -18
  65. package/docs/classes/index.WorkResolvedObserver.html +22 -22
  66. package/docs/classes/index.XRButton.html +3 -0
  67. package/docs/documents/api.html +11 -10
  68. package/docs/documents/features_camera-animation.html +1 -1
  69. package/docs/documents/features_event.html +0 -1
  70. package/docs/documents/features_five.html +51 -9
  71. package/docs/documents/features_gesture.html +1 -1
  72. package/docs/documents/features_load-external-model.html +6 -6
  73. package/docs/documents/features_load-progress.html +1 -1
  74. package/docs/documents/features_material.html +20 -9
  75. package/docs/documents/features_mode.html +28 -13
  76. package/docs/documents/features_model.html +1 -1
  77. package/docs/documents/features_state.html +1 -1
  78. package/docs/documents/features_ultra-hdr.html +50 -44
  79. package/docs/documents/quick-start.html +1 -1
  80. package/docs/documents/release_notes_6.8.html +2 -2
  81. package/docs/documents/support.html +1 -3
  82. package/docs/functions/index.customNodesCacheKey.html +1 -1
  83. package/docs/functions/index.parseWork.html +1 -1
  84. package/docs/functions/index.workToJson.html +1 -1
  85. package/docs/hierarchy.html +1 -1
  86. package/docs/interfaces/index.AddableObject.html +1 -1
  87. package/docs/interfaces/index.AjaxOptions.html +1 -1
  88. package/docs/interfaces/index.BaseEvent.html +2 -2
  89. package/docs/interfaces/index.Clock.html +24 -0
  90. package/docs/interfaces/index.DeviceProfile.html +8 -0
  91. package/docs/interfaces/index.EventCallback.html +49 -47
  92. package/docs/interfaces/index.FiveInitArgs.html +65 -41
  93. package/docs/interfaces/index.GainmapCfgData.html +15 -0
  94. package/docs/interfaces/index.GestureEvent.html +2 -2
  95. package/docs/interfaces/index.IPBMMaterial.html +12 -7
  96. package/docs/interfaces/index.ImageOptions.html +1 -1
  97. package/docs/interfaces/index.IntersectEvent.html +2 -2
  98. package/docs/interfaces/index.IntersectMesh.html +1 -1
  99. package/docs/interfaces/index.IntersectMeshInterface.html +1 -1
  100. package/docs/interfaces/index.Intersection.html +1 -1
  101. package/docs/interfaces/index.LoosePanoWork.html +2 -2
  102. package/docs/interfaces/index.LooseWork.html +2 -2
  103. package/docs/interfaces/index.LooseWorkInitial.html +2 -2
  104. package/docs/interfaces/index.LooseWorkModel.html +2 -2
  105. package/docs/interfaces/index.LooseWorkObserver.html +2 -2
  106. package/docs/interfaces/index.LooseWorkPanorama.html +4 -3
  107. package/docs/interfaces/index.LooseWorkWithExtrinsics.html +15 -9
  108. package/docs/interfaces/index.ModeChangeEvent.html +2 -2
  109. package/docs/interfaces/index.ModelControllerCustomInitArgs.html +1 -1
  110. package/docs/interfaces/index.ModelEvent.html +2 -2
  111. package/docs/interfaces/index.ModelSceneEvent.html +2 -2
  112. package/docs/interfaces/index.ModelTileEvent.html +2 -2
  113. package/docs/interfaces/index.MovePanoOptions.html +1 -1
  114. package/docs/interfaces/index.NetworkAbortError.html +1 -1
  115. package/docs/interfaces/index.NetworkFirbiddenError.html +1 -1
  116. package/docs/interfaces/index.NetworkOptions.html +1 -1
  117. package/docs/interfaces/index.NetworkProxyError.html +1 -1
  118. package/docs/interfaces/index.NetworkResourceEvent.html +2 -2
  119. package/docs/interfaces/index.NetworkResponseError.html +1 -1
  120. package/docs/interfaces/index.NetworkTimeoutError.html +1 -1
  121. package/docs/interfaces/index.ObjectEvent.html +2 -2
  122. package/docs/interfaces/index.PBMClipperParameter.html +2 -2
  123. package/docs/interfaces/index.PBMCustomNodeContext.html +60 -12
  124. package/docs/interfaces/index.PBMCustomNodeOptions.html +4 -4
  125. package/docs/interfaces/index.PBMCustomNodePanoContext.html +13 -6
  126. package/docs/interfaces/index.PBMCustomNodeSlots.html +6 -6
  127. package/docs/interfaces/index.PBMGaussianSplattingNodeMaterialOptions.html +4 -0
  128. package/docs/interfaces/index.PBMPanoDepth.html +5 -5
  129. package/docs/interfaces/index.PBMPanoFilterValue.html +2 -2
  130. package/docs/interfaces/index.PBMPanoGainmap.html +6 -0
  131. package/docs/interfaces/index.PBMPanoPicture.html +9 -8
  132. package/docs/interfaces/index.PBMRefinedScreen.html +2 -2
  133. package/docs/interfaces/index.PanoCircleMeshCustomOptions.html +2 -2
  134. package/docs/interfaces/index.PanoCircleMeshInterface.html +1 -1
  135. package/docs/interfaces/index.PanoEvent.html +2 -2
  136. package/docs/interfaces/index.PanoPrepareEvent.html +15 -0
  137. package/docs/interfaces/index.PanoTextureEvent.html +2 -2
  138. package/docs/interfaces/index.PanoramaControllerCustomInitArgs.html +9 -9
  139. package/docs/interfaces/index.PanoramaLikeControllerCustomInitArgs.html +1 -1
  140. package/docs/interfaces/index.ParameterMaterialValue.html +42 -41
  141. package/docs/interfaces/index.ParameterTilesetValue.html +15 -15
  142. package/docs/interfaces/index.ParameterValue.html +56 -55
  143. package/docs/interfaces/index.Pose.html +1 -1
  144. package/docs/interfaces/index.RenderEvent.html +2 -2
  145. package/docs/interfaces/index.ResolvedParameterValue.html +56 -55
  146. package/docs/interfaces/index.State.html +1 -1
  147. package/docs/interfaces/index.StateEvent.html +2 -2
  148. package/docs/interfaces/index.TextureOptions.html +1 -1
  149. package/docs/interfaces/index.TilesetOptions.html +7 -2
  150. package/docs/interfaces/index.TopviewControllerCustomInitArgs.html +1 -1
  151. package/docs/interfaces/index.VRPanoramaControllerCustomInitArgs.html +37 -0
  152. package/docs/interfaces/index.ViewLayer.html +23 -21
  153. package/docs/interfaces/index.WorkCubeHdrGainmapImage.html +10 -0
  154. package/docs/interfaces/index.WorkCubeImage.html +5 -9
  155. package/docs/interfaces/index.WorkImage.html +8 -12
  156. package/docs/interfaces/index.WorkInitial.html +8 -8
  157. package/docs/interfaces/index.WorkModel.html +8 -8
  158. package/docs/interfaces/index.WorkModelLayer.html +6 -6
  159. package/docs/interfaces/index.WorkObserver.html +23 -23
  160. package/docs/interfaces/index.WorkPanoramaJson.html +3 -2
  161. package/docs/interfaces/index.WorkTile.html +8 -12
  162. package/docs/interfaces/index.WorksEvent.html +2 -2
  163. package/docs/interfaces/index.XRControllerEvent.html +2 -2
  164. package/docs/interfaces/index.XRGestureEvent.html +2 -2
  165. package/docs/interfaces/index.XRPanoramaControllerCustomInitArgs.html +52 -0
  166. package/docs/interfaces/index.XRSessionEvent.html +2 -2
  167. package/docs/modules/index.html +1 -1
  168. package/docs/types/index.ControllerCustomInitTypes.html +4 -2
  169. package/docs/types/index.ControllerEventTypes.html +25 -23
  170. package/docs/types/index.DeviceProfileOverride.html +5 -0
  171. package/docs/types/index.EventTypes.html +26 -26
  172. package/docs/types/index.FlowingLightLineInput.html +11 -0
  173. package/docs/types/index.Mode.html +6 -3
  174. package/docs/types/index.OutputTextureDataType.html +1 -1
  175. package/docs/types/index.PBMCustomNodeTargetType.html +1 -1
  176. package/docs/types/index.ParseOptions.html +14 -8
  177. package/docs/types/index.XRMachineType.html +7 -0
  178. package/docs/variables/index.GSPLAT_PIPELINE_AUTO.html +2 -0
  179. package/docs/variables/index.GSPLAT_PIPELINE_RASTER_CPU_SORT.html +2 -0
  180. package/docs/variables/index.GSPLAT_PIPELINE_RASTER_GPU_SORT.html +2 -0
  181. package/docs/variables/index.PBMVertexMarkFlag.html +4 -0
  182. package/docs/variables/index.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
  183. package/docs/variables/index.controllersDefaultInitArgs.html +1 -1
  184. package/five/application/controllers.d.ts +8 -0
  185. package/five/application/events.d.ts +1 -1
  186. package/five/application/five.d.ts +6 -1
  187. package/five/application/fiveInitArgs.d.ts +32 -1
  188. package/five/application/mode.d.ts +8 -1
  189. package/five/cardboard/helper.d.ts +2 -0
  190. package/five/cardboard/index.d.ts +13 -0
  191. package/five/cardboard/sensor.d.ts +158 -0
  192. package/five/controllers/base.d.ts +3 -0
  193. package/five/controllers/events.d.ts +5 -3
  194. package/five/controllers/panorama.d.ts +2 -2
  195. package/five/controllers/vrPanorama.d.ts +56 -0
  196. package/five/controllers/xrPanorama.d.ts +506 -0
  197. package/five/core/internalWebGPURenderer.d.ts +7 -1
  198. package/five/core/panoVideo.d.ts +4 -1
  199. package/five/core/tiling.d.ts +25 -11
  200. package/five/core/webglAsyncReadFix.d.ts +25 -0
  201. package/five/gaussian-splatting/gpu-sort/prefixSumKernel.d.ts +65 -0
  202. package/five/gaussian-splatting/gpu-sort/radixSortModule.d.ts +128 -0
  203. package/five/gaussian-splatting/gpu-sort/shaders/prefixSum.d.ts +2 -0
  204. package/five/gaussian-splatting/gpu-sort/shaders/radixHistogram.d.ts +2 -0
  205. package/five/gaussian-splatting/gpu-sort/shaders/radixReorder.d.ts +2 -0
  206. package/five/gaussian-splatting/gpu-sort/shaders/sortKeygen.d.ts +2 -0
  207. package/five/gaussian-splatting/gpu-sort/sortAdapter.d.ts +234 -0
  208. package/five/gaussian-splatting/pipelines/cpuSortPipeline.d.ts +159 -0
  209. package/five/gaussian-splatting/pipelines/gpuSortPipeline.d.ts +98 -0
  210. package/five/gaussian-splatting/pipelines/gsplatPipeline.d.ts +104 -0
  211. package/five/gaussian-splatting/pipelines/pipelineMode.d.ts +42 -0
  212. package/five/gaussian-splatting/pipelines/sortThrottle.d.ts +45 -0
  213. package/five/index.d.ts +8 -2
  214. package/five/index.js +272 -269
  215. package/five/index.mjs +8389 -4487
  216. package/five/meshes/panoCircleMeshCustom.d.ts +1 -0
  217. package/five/model/index.d.ts +3 -2
  218. package/five/model/materials/pbmGaussianSplattingNodeMaterial.d.ts +4 -0
  219. package/five/model/materials/pbmMaterial.d.ts +126 -19
  220. package/five/model/materials/pbmMeshMaterial.d.ts +0 -9
  221. package/five/model/materials/pbmPointCloudNodeMaterial.d.ts +1 -1
  222. package/five/model/materials/tsl/defines.d.ts +6 -1
  223. package/five/model/materials/tsl/outputBuilder.d.ts +1 -12
  224. package/five/model/materials/tsl/panoColor.d.ts +8 -2
  225. package/five/model/materials/tsl/utils.d.ts +13 -0
  226. package/five/model/objects/pbmGaussianSplattingObject.d.ts +9 -0
  227. package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +67 -101
  228. package/five/model/objects/pbmPointCloud.d.ts +0 -1
  229. package/five/model/objects/pbmPointCloudObject.d.ts +1 -1
  230. package/five/model/parameter.d.ts +5 -4
  231. package/five/model/tile3d/index.d.ts +2 -0
  232. package/five/model/tile3d/tileset.d.ts +5 -0
  233. package/five/model/tile3d/trajectory-content.d.ts +53 -0
  234. package/five/renderer/index.d.ts +1 -1
  235. package/five/renderer/postprocessing/index.d.ts +1 -1
  236. package/five/texture/loader.d.ts +6 -0
  237. package/five/types/cube.d.ts +0 -1
  238. package/five/utils/detector.d.ts +11 -1
  239. package/five/utils/error.d.ts +1 -0
  240. package/five/utils/event.d.ts +26 -3
  241. package/five/utils/gainmap-data.d.ts +23 -0
  242. package/five/webxr/XRControllerModelFactory.d.ts +55 -0
  243. package/five/webxr/buttonStateMachine.d.ts +31 -0
  244. package/five/webxr/deviceProfile.d.ts +70 -0
  245. package/five/webxr/inputSourceTracker.d.ts +59 -0
  246. package/five/webxr/referenceSpace.d.ts +60 -0
  247. package/five/webxr/renderTargetBridge.d.ts +45 -0
  248. package/five/webxr/xrButton.d.ts +4 -0
  249. package/five/webxr/xrManager.d.ts +174 -0
  250. package/five/work/index.d.ts +1 -1
  251. package/five/work/looseWorkType.d.ts +2 -1
  252. package/five/work/work.d.ts +30 -7
  253. package/five/work/workJsonType.d.ts +2 -1
  254. package/gltf-loader/gltf-object.d.ts +17 -0
  255. package/gltf-loader/index.d.ts +45 -0
  256. package/gltf-loader/index.js +255 -0
  257. package/gltf-loader/index.mjs +302 -0
  258. package/line/circle_png.d.ts +1 -0
  259. package/line/index.d.ts +49 -0
  260. package/line/index.js +255 -0
  261. package/line/index.mjs +340 -0
  262. package/package.json +30 -5
  263. package/plugins/BackgroundPlugin/Controller.d.ts +20 -0
  264. package/plugins/BackgroundPlugin/index.d.ts +5 -0
  265. package/plugins/BackgroundPlugin/typings.d.ts +44 -0
  266. package/plugins/CSS2DPlugin/Controller.d.ts +59 -0
  267. package/plugins/CSS2DPlugin/index.d.ts +5 -0
  268. package/plugins/CSS2DPlugin/typing.d.ts +31 -0
  269. package/plugins/CSS3DPlugin/Controller.d.ts +64 -0
  270. package/plugins/CSS3DPlugin/index.d.ts +5 -0
  271. package/plugins/CSS3DPlugin/typing.d.ts +33 -0
  272. package/plugins/FloorplanPlugin/Controller.d.ts +100 -0
  273. package/plugins/FloorplanPlugin/index.d.ts +6 -0
  274. package/plugins/FloorplanPlugin/render/assets.d.ts +9 -0
  275. package/plugins/FloorplanPlugin/render/index.d.ts +35 -0
  276. package/plugins/FloorplanPlugin/render/isPointInPolygon.d.ts +5 -0
  277. package/plugins/FloorplanPlugin/render/renderFloor.d.ts +22 -0
  278. package/plugins/FloorplanPlugin/render/roomLabelVisibility.d.ts +10 -0
  279. package/plugins/FloorplanPlugin/typing.d.ts +156 -0
  280. package/plugins/FloorplanPlugin/typings/floorplanData.d.ts +112 -0
  281. package/plugins/FloorplanPlugin/typings/floorplanJson.d.ts +167 -0
  282. package/plugins/FloorplanPlugin/typings/floorplanServerData.d.ts +78 -0
  283. package/plugins/FloorplanPlugin/typings/index.d.ts +3 -0
  284. package/plugins/FloorplanPlugin/utils/changeMode.d.ts +5 -0
  285. package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.d.ts +6 -0
  286. package/plugins/FloorplanPlugin/utils/correctFiveState.d.ts +11 -0
  287. package/plugins/FloorplanPlugin/utils/equal.d.ts +9 -0
  288. package/plugins/FloorplanPlugin/utils/filter.d.ts +8 -0
  289. package/plugins/FloorplanPlugin/utils/fiveModelLoad.d.ts +6 -0
  290. package/plugins/FloorplanPlugin/utils/formatData.d.ts +6 -0
  291. package/plugins/FloorplanPlugin/utils/formatFloorplanJson.d.ts +20 -0
  292. package/plugins/FloorplanPlugin/utils/formatPosition.d.ts +33 -0
  293. package/plugins/FloorplanPlugin/utils/getDistanceFromModel.d.ts +6 -0
  294. package/plugins/FloorplanPlugin/utils/getPxmm.d.ts +19 -0
  295. package/plugins/FloorplanPlugin/utils/isTruelyObject.d.ts +4 -0
  296. package/plugins/FloorplanPlugin/utils/nearlyEqual.d.ts +8 -0
  297. package/plugins/FloorplanPlugin/utils/polylabel.d.ts +8 -0
  298. package/plugins/FloorplanPlugin/utils/to.d.ts +5 -0
  299. package/plugins/Object3DHelperPlugin/Controller.d.ts +99 -0
  300. package/plugins/Object3DHelperPlugin/Controllers/BaseController.d.ts +142 -0
  301. package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.d.ts +16 -0
  302. package/plugins/Object3DHelperPlugin/Controllers/MoveController.d.ts +66 -0
  303. package/plugins/Object3DHelperPlugin/Controllers/RotateController.d.ts +61 -0
  304. package/plugins/Object3DHelperPlugin/FiveControllerWrapper.d.ts +17 -0
  305. package/plugins/Object3DHelperPlugin/Helper/BaseHelper.d.ts +97 -0
  306. package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.d.ts +16 -0
  307. package/plugins/Object3DHelperPlugin/Helper/MoveHelper.d.ts +37 -0
  308. package/plugins/Object3DHelperPlugin/Helper/RotateHelper.d.ts +93 -0
  309. package/plugins/Object3DHelperPlugin/constant.d.ts +27 -0
  310. package/plugins/Object3DHelperPlugin/index.d.ts +6 -0
  311. package/plugins/Object3DHelperPlugin/typing.d.ts +143 -0
  312. package/plugins/Object3DHelperPlugin/utils/ArrowGroup.d.ts +22 -0
  313. package/plugins/Object3DHelperPlugin/utils/CenterHandle.d.ts +23 -0
  314. package/plugins/Object3DHelperPlugin/utils/PlaneHandle.d.ts +19 -0
  315. package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.d.ts +5 -0
  316. package/plugins/Object3DHelperPlugin/utils/cameraHooks.d.ts +3 -0
  317. package/plugins/Object3DHelperPlugin/utils/direction.d.ts +14 -0
  318. package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.d.ts +5 -0
  319. package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.d.ts +8 -0
  320. package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.d.ts +8 -0
  321. package/plugins/Object3DHelperPlugin/utils/solidGuide.d.ts +27 -0
  322. package/plugins/Object3DHelperPlugin/utils/tipsDom.d.ts +8 -0
  323. package/plugins/PanoAnimePlugin/Controller.d.ts +49 -0
  324. package/plugins/PanoAnimePlugin/index.d.ts +5 -0
  325. package/plugins/PanoAnimePlugin/typing.d.ts +37 -0
  326. package/plugins/index.d.ts +6 -0
  327. package/plugins/index.js +748 -3
  328. package/plugins/index.mjs +28761 -88
  329. package/plugins/thirdParty/CSS2DRenderer.d.ts +37 -0
  330. package/plugins/thirdParty/CSS3DRenderer.d.ts +45 -0
  331. package/plugins/thirdParty/OrbitControls.d.ts +78 -0
  332. package/plugins/thirdParty/doctorstrange-model.d.ts +92 -0
  333. package/plugins/thirdParty/domevents.d.ts +36 -0
  334. package/plugins/utils/clamp.d.ts +2 -0
  335. package/plugins/utils/uuid.d.ts +2 -0
  336. package/react/index.js +2 -2
  337. package/react/index.mjs +2 -2
  338. package/sticker/geometry.d.ts +3 -0
  339. package/sticker/index.d.ts +68 -0
  340. package/sticker/index.js +255 -0
  341. package/sticker/index.mjs +358 -0
  342. package/umd/five-gltf-loader.js +255 -0
  343. package/umd/five-line.js +322 -0
  344. package/umd/five-plugins.js +816 -3
  345. package/umd/five-react.js +2 -2
  346. package/umd/five-sticker.js +255 -0
  347. package/umd/five-vfx.js +323 -0
  348. package/umd/five.js +347 -344
  349. package/vfx/airflow/airflow.d.ts +18 -0
  350. package/vfx/common/simplex-noise.d.ts +2 -0
  351. package/vfx/frame/frame.d.ts +27 -0
  352. package/vfx/index.d.ts +7 -0
  353. package/vfx/index.js +255 -0
  354. package/vfx/index.mjs +738 -0
  355. package/vfx/particle/instance.d.ts +36 -0
  356. package/vfx/particle/particle.d.ts +119 -0
  357. package/vfx/particle/utils.d.ts +11 -0
  358. package/vfx/particle-gpu/particle.d.ts +75 -0
  359. package/vfx/particle-gpu/utils.d.ts +11 -0
  360. package/vfx/spotLight/spotLight.d.ts +15 -0
  361. package/work-downloader/components/model-3d-tile.d.ts +2 -0
  362. package/work-downloader/components/model.d.ts +3 -0
  363. package/work-downloader/components/observer.d.ts +9 -0
  364. package/work-downloader/download.d.ts +16 -0
  365. package/work-downloader/index.d.ts +2 -0
  366. package/work-downloader/index.js +255 -0
  367. package/work-downloader/index.mjs +595 -0
  368. package/work-downloader/type.d.ts +28 -0
  369. package/work-downloader/utils/download-to-file.d.ts +1 -0
  370. package/work-downloader/utils/image-processing.d.ts +7 -0
  371. package/work-downloader/utils/join-url.d.ts +2 -0
  372. package/work-downloader/utils/log.d.ts +1 -0
  373. package/work-downloader/utils/relative-url.d.ts +1 -0
  374. package/docs/interfaces/index.PBMHDRConfig.html +0 -12
  375. package/five/gaussian-splatting/worker/dataWorker.d.ts +0 -1
  376. package/five/three-version-check.d.ts +0 -1
  377. package/five/utils/hdr-data.d.ts +0 -13
  378. package/five/utils/shaderContentFix.d.ts +0 -7
@@ -0,0 +1,13 @@
1
+ import * as THREE from "three/webgpu";
2
+ import { Sensor } from "./sensor";
3
+ declare class Cardboard {
4
+ renderer: THREE.WebGPURenderer;
5
+ sensor: Sensor;
6
+ scale: number;
7
+ private cameraL;
8
+ private cameraR;
9
+ constructor(renderer: THREE.WebGPURenderer);
10
+ render(scene: THREE.Scene, camera: THREE.Camera): void;
11
+ dispose(): void;
12
+ }
13
+ export { Cardboard };
@@ -0,0 +1,158 @@
1
+ import * as THREE from "three/webgpu";
2
+ declare class SensorSample {
3
+ sample: THREE.Vector3;
4
+ timestampS: number;
5
+ constructor(sample?: THREE.Vector3, timestampS?: number);
6
+ set(sample: THREE.Vector3, timestampS: number): void;
7
+ copy(sensorSample: SensorSample): void;
8
+ }
9
+ /**
10
+ * An implementation of a simple complementary filter, which fuses gyroscope and
11
+ * accelerometer data from the 'devicemotion' event.
12
+ *
13
+ * Accelerometer data is very noisy, but stable over the long term.
14
+ * Gyroscope data is smooth, but tends to drift over the long term.
15
+ *
16
+ * This fusion is relatively simple:
17
+ * 1. Get orientation estimates from accelerometer by applying a low-pass filter
18
+ * on that data.
19
+ * 2. Get orientation estimates from gyroscope by integrating over time.
20
+ * 3. Combine the two estimates, weighing (1) in the long term, but (2) for the
21
+ * short term.
22
+ */
23
+ declare class ComplementaryFilter {
24
+ kFilter: number;
25
+ isDebug: boolean;
26
+ currentAccelMeasurement: SensorSample;
27
+ currentGyroMeasurement: SensorSample;
28
+ previousGyroMeasurement: SensorSample;
29
+ filterQ: THREE.Quaternion;
30
+ previousFilterQ: THREE.Quaternion;
31
+ accelQ: THREE.Quaternion;
32
+ isOrientationInitialized: boolean;
33
+ estimatedGravity: THREE.Vector3;
34
+ measuredGravity: THREE.Vector3;
35
+ gyroIntegralQ: THREE.Quaternion;
36
+ constructor(kFilter: number, isDebug: boolean);
37
+ addAccelMeasurement(vector: THREE.Vector3, timestampS: number): void;
38
+ addGyroMeasurement(vector: THREE.Vector3, timestampS: number): void;
39
+ getOrientation(): THREE.Quaternion;
40
+ private run_;
41
+ private accelToQuaternion_;
42
+ private gyroToQuaternionDelta_;
43
+ }
44
+ /**
45
+ * Given an orientation and the gyroscope data, predicts the future orientation
46
+ * of the head. This makes rendering appear faster.
47
+ *
48
+ * Also see: http://msl.cs.uiuc.edu/~lavalle/papers/LavYerKatAnt14.pdf
49
+ *
50
+ * @param predictionTimeS - time from head movement to the appearance of
51
+ * the corresponding image.
52
+ */
53
+ declare class PosePredictor {
54
+ predictionTimeS: number;
55
+ isDebug: boolean;
56
+ previousQ: THREE.Quaternion;
57
+ previousTimestampS: number | null;
58
+ deltaQ: THREE.Quaternion;
59
+ outQ: THREE.Quaternion;
60
+ constructor(predictionTimeS: number, isDebug: boolean);
61
+ getPrediction(currentQ: THREE.Quaternion, gyro: THREE.Vector3, timestampS: number): THREE.Quaternion;
62
+ }
63
+ declare class Pose {
64
+ angularAcceleration: Float32Array | null;
65
+ angularVelocity: Float32Array | null;
66
+ linearAcceleration: Float32Array | null;
67
+ linearVelocity: Float32Array | null;
68
+ orientation: Float32Array | null;
69
+ position: Float32Array | null;
70
+ constructor();
71
+ }
72
+ declare class FrameData {
73
+ leftProjectionMatrix: Float32Array;
74
+ leftViewMatrix: Float32Array;
75
+ pose: Pose;
76
+ rightProjectionMatrix: Float32Array;
77
+ rightViewMatrix: Float32Array;
78
+ timestamp: number;
79
+ constructor();
80
+ }
81
+ declare class FieldOfView {
82
+ leftDegrees: number;
83
+ rightDegrees: number;
84
+ upDegrees: number;
85
+ downDegrees: number;
86
+ constructor();
87
+ }
88
+ /**
89
+ * The pose sensor, implemented using DeviceMotion APIs.
90
+ */
91
+ declare class Sensor {
92
+ viewer: {
93
+ id?: string;
94
+ label?: string;
95
+ fov: number;
96
+ interLensDistance: number;
97
+ baselineLensDistance: number;
98
+ screenLensDistance: number;
99
+ distortionCoefficients: [number, number];
100
+ inverseCoefficients: number[];
101
+ };
102
+ device: {
103
+ widthMeters: number;
104
+ heightMeters: number;
105
+ bevelMeters: number;
106
+ };
107
+ depthNear: number;
108
+ depthFar: number;
109
+ yawOnly: boolean;
110
+ accelerometer: THREE.Vector3;
111
+ gyroscope: THREE.Vector3;
112
+ filter: ComplementaryFilter;
113
+ posePredictor: PosePredictor;
114
+ isFirefoxAndroid: boolean;
115
+ isIOS: boolean;
116
+ isDeviceMotionInRadians: boolean;
117
+ isWithoutDeviceMotion: boolean;
118
+ filterToWorldQ: THREE.Quaternion;
119
+ inverseWorldToScreenQ: THREE.Quaternion;
120
+ worldToScreenQ: THREE.Quaternion;
121
+ originalPoseAdjustQ: THREE.Quaternion;
122
+ resetQ: THREE.Quaternion;
123
+ private previousTimestampS;
124
+ private orientationOut_;
125
+ private _deviceOrientationQ?;
126
+ private deviceOrientationFixQ?;
127
+ private deviceOrientationFilterToWorldQ?;
128
+ constructor(kFilter: number, predictionTime: number, yawOnly: boolean, isDebug: boolean);
129
+ getPosition(): any;
130
+ getOrientation(): Float32Array<ArrayBufferLike>;
131
+ getPose(): Pose;
132
+ resetPose(): void;
133
+ getFrameData(frameData: FrameData): FrameData;
134
+ start(): () => void;
135
+ getEyeOffset(): {
136
+ left: number[];
137
+ right: number[];
138
+ };
139
+ getEyeProjectionMatrix(): {
140
+ left: number[];
141
+ right: number[];
142
+ };
143
+ getEyeFieldOfView(): {
144
+ left: FieldOfView;
145
+ right: FieldOfView;
146
+ };
147
+ private onDeviceOrientation_;
148
+ private onDeviceMotion_;
149
+ private updateDeviceMotion_;
150
+ private onOrientationChange_;
151
+ /**
152
+ * This is only needed if we are in an cross origin iframe on iOS to work around
153
+ * this issue: https://bugs.webkit.org/show_bug.cgi?id=152299.
154
+ */
155
+ private onMessage_;
156
+ private setScreenTransform_;
157
+ }
158
+ export { Sensor, Pose, FrameData, FieldOfView };
@@ -30,6 +30,8 @@ interface BaseControllerInitArgs {
30
30
  extraElements: HTMLElement[];
31
31
  imageOptions: ImageOptions;
32
32
  enableWheel: boolean;
33
+ /** 是否开启 HDR 支持,详见 {@link FiveInitArgs.enableHDR} */
34
+ enableHDR: boolean;
33
35
  videoTexture: THREE.VideoTexture;
34
36
  initial: {
35
37
  /** 初始化状态 */
@@ -65,6 +67,7 @@ declare class BaseController extends Subscribe<ControllerEventTypes> implements
65
67
  videoTexture: THREE.VideoTexture;
66
68
  extraElements: HTMLElement[];
67
69
  enableWheel: boolean;
70
+ enableHDR: boolean;
68
71
  initial: {
69
72
  state: Partial<State>;
70
73
  currentState: State;
@@ -1,4 +1,4 @@
1
- import { GestureEvent, BaseEvent, StateEvent, IntersectEvent, PanoEvent, PanoTextureEvent, XRSessionEvent, XRGestureEvent, XRControllerEvent } from "../utils/event";
1
+ import { GestureEvent, BaseEvent, StateEvent, IntersectEvent, PanoEvent, PanoPrepareEvent, PanoTextureEvent, XRSessionEvent, XRGestureEvent, XRControllerEvent } from "../utils/event";
2
2
  type ControllerEventTypes = {
3
3
  /** 手势 滑动屏幕 */
4
4
  "gesture.pan"(event: GestureEvent): void;
@@ -16,8 +16,8 @@ type ControllerEventTypes = {
16
16
  "gesture.mousemove"(event: GestureEvent): void;
17
17
  /** 手势 惯性 */
18
18
  "gesture.momentum"(event: GestureEvent): void;
19
- /** 手势开始 */
20
- "gesture.create"(event: GestureEvent): void;
19
+ /** 手势被触发 */
20
+ "gesture.fire"(event: GestureEvent): void;
21
21
  /** 模态切换动画 开始 */
22
22
  "initAnimation.start"(event: StateEvent): void;
23
23
  /** 模态切换动画 结束 */
@@ -29,6 +29,8 @@ type ControllerEventTypes = {
29
29
  "pano.select"(event: PanoEvent): void;
30
30
  /** 请求点位 */
31
31
  "pano.request"(event: PanoEvent): void;
32
+ /** 准备点位 */
33
+ "pano.prepare"(event: PanoPrepareEvent): void;
32
34
  /** 运动去点位 */
33
35
  "pano.moveTo"(event: PanoEvent): void;
34
36
  /** 运动点位过程 */
@@ -1,6 +1,6 @@
1
1
  import * as THREE from "three/webgpu";
2
2
  import { NetworkResponse, NetWorkMeta } from "../utils/ajax";
3
- import { ModelScene, PBMPanoPicture } from "../model";
3
+ import { ModelScene, PBMPanoPicture, PBMPanoGainmap } from "../model";
4
4
  import { Works, WorkObserver } from "../work";
5
5
  import { Pano, PanoId } from "../utils/pano";
6
6
  import { TextureLoader } from "../texture/loader";
@@ -84,7 +84,7 @@ declare class PanoramaController extends PanoramaLikeController implements Requi
84
84
  protected pendingTextureTask?: {
85
85
  panoId: PanoId;
86
86
  hash: string;
87
- onLoad(colorResponse: NetworkResponse<THREE.Texture, NetWorkMeta[]>, hdrConfig?: any): void;
87
+ onLoad(colorResponse: NetworkResponse<THREE.CubeTexture, NetWorkMeta[]>, gainmap?: PBMPanoGainmap): void;
88
88
  onError(error: Error): void;
89
89
  };
90
90
  protected panoVideo: PanoVideo;
@@ -0,0 +1,56 @@
1
+ import { CameraPose } from "../core/camera";
2
+ import { Cardboard } from "../cardboard";
3
+ import { State } from "../types/state";
4
+ import { Pose } from "../types/pose";
5
+ import { BaseControllerInitArgs } from "./base";
6
+ import { PanoramaController, PanoramaControllerCustomInitArgs, PanoramaControllerInitArgs } from "./panorama";
7
+ import { PanoCircleMeshInterface } from "../types/panoCircleMeshInterface";
8
+ interface VRPanoramaControllerCustomInitArgs extends Omit<PanoramaControllerCustomInitArgs, "maxLatitude" | "minLatitude"> {
9
+ }
10
+ declare const defaultVRPanoramaControllerCustomInitArgs: Required<VRPanoramaControllerCustomInitArgs>;
11
+ type VRPanoramaControllerInitArgs = BaseControllerInitArgs & VRPanoramaControllerCustomInitArgs;
12
+ declare class VRPanoramaController extends PanoramaController implements Required<VRPanoramaControllerInitArgs> {
13
+ protected cardboard: Cardboard;
14
+ protected helperElement?: HTMLElement;
15
+ protected activePanoMesh?: PanoCircleMeshInterface;
16
+ protected activeTime?: number;
17
+ static parseArgs(args: VRPanoramaControllerInitArgs): Required<PanoramaControllerInitArgs>;
18
+ static initAnimationEndState(args: VRPanoramaControllerInitArgs): State;
19
+ constructor(args: VRPanoramaControllerInitArgs);
20
+ updateConfiguration(args: VRPanoramaControllerCustomInitArgs): boolean;
21
+ /** 析构函数 */
22
+ destroy(): void;
23
+ /** 是否准备好,即不在用户操作中,并且不再动画中 */
24
+ isReady(): boolean;
25
+ /** 生命周期: 更新屏幕渲染尺寸 */
26
+ updateRenderSize(): void;
27
+ /** 转动摄像头 */
28
+ updateCamera(pose: Partial<Pose>, duration: number, userAction: boolean): Promise<void>;
29
+ /** 通过帧动画转动摄像头 */
30
+ updateCameraWithKeyframes(keyframes: {
31
+ progress: number;
32
+ value: Pose;
33
+ key?: string;
34
+ }[], duration: number, userAction: boolean): Promise<void>;
35
+ /** 时间迭代 */
36
+ updateTime(time: number, deltaTime: number, ...args: any[]): void;
37
+ /** 生命周期 渲染 */
38
+ render(): boolean;
39
+ /**
40
+ * 同步修改相机参数
41
+ * @param cameraPose
42
+ */
43
+ protected setCamera(cameraPose?: Partial<CameraPose>): void;
44
+ /** 删除提示层 */
45
+ protected destroyHelper(): void;
46
+ /** 设置提示层大小 */
47
+ protected updateHelperElementSize(): void;
48
+ /** 计算看向方向的射线碰撞 */
49
+ protected intersect(time: number): PanoCircleMeshInterface | undefined;
50
+ protected onPanGesture(): void;
51
+ protected onTapGesture(): void;
52
+ protected onPinchGesture(): void;
53
+ protected onMouseMove(): void;
54
+ protected onMouseOut(): void;
55
+ }
56
+ export { VRPanoramaController, VRPanoramaControllerInitArgs, VRPanoramaControllerCustomInitArgs, defaultVRPanoramaControllerCustomInitArgs, };