@realsee/five 6.8.0-alpha.9 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (458) hide show
  1. package/AGENTS_READ_ME.md +6 -1
  2. package/AI_CONTEXT.md +6 -1
  3. package/README.md +10 -3
  4. package/ai_guides/README.md +29 -0
  5. package/ai_guides/api.md +92 -21
  6. package/ai_guides/features/3dtile.md +1 -1
  7. package/ai_guides/features/camera-animation.md +18 -1
  8. package/ai_guides/features/clipper.md +2 -2
  9. package/ai_guides/features/coordinate-system.md +20 -2
  10. package/ai_guides/features/event.md +106 -10
  11. package/ai_guides/features/five.md +17 -17
  12. package/ai_guides/features/flowing-light-2d-pass.md +11 -7
  13. package/ai_guides/features/flowing-light-3d-pass.md +12 -7
  14. package/ai_guides/features/gaussian-blur-pass.md +1 -1
  15. package/ai_guides/features/gesture.md +2 -1
  16. package/ai_guides/features/get-screen-pixels.md +2 -2
  17. package/ai_guides/features/image-options.md +2 -2
  18. package/ai_guides/features/load-external-model.md +6 -2
  19. package/ai_guides/features/load-progress.md +1 -1
  20. package/ai_guides/features/material.md +20 -12
  21. package/ai_guides/features/mode.md +1 -1
  22. package/ai_guides/features/model.md +1 -1
  23. package/ai_guides/features/move-pano-effect.md +1 -1
  24. package/ai_guides/features/multi-work.md +1 -1
  25. package/ai_guides/features/pano-filter.md +149 -0
  26. package/ai_guides/features/pano-tile.md +1 -1
  27. package/ai_guides/features/pano-uv.md +1 -1
  28. package/ai_guides/features/parameter.md +26 -2
  29. package/ai_guides/features/plugin.md +1 -1
  30. package/ai_guides/features/postprocessing.md +1 -1
  31. package/ai_guides/features/raycast.md +5 -2
  32. package/ai_guides/features/request-proxy.md +1 -1
  33. package/ai_guides/features/screen-project.md +2 -1
  34. package/ai_guides/features/state.md +23 -3
  35. package/ai_guides/features/view-layer.md +1 -1
  36. package/ai_guides/features/work.md +1 -1
  37. package/ai_guides/glossary.md +4 -4
  38. package/ai_guides/release_notes/6.8.md +190 -58
  39. package/ai_guides/template.md +11 -0
  40. package/docs/00_FOR_AI_AGENTS.md +3 -2
  41. package/docs/README.md +3 -2
  42. package/docs/assets/hierarchy.js +1 -1
  43. package/docs/assets/main.js +1 -1
  44. package/docs/assets/navigation.js +1 -1
  45. package/docs/assets/search.js +1 -1
  46. package/docs/classes/five.AdaptiveLuminancePass.html +7 -6
  47. package/docs/classes/five.AnimationFrameLoop.html +1 -1
  48. package/docs/classes/five.BoundingMesh.html +2 -2
  49. package/docs/classes/five.Camera.html +3 -3
  50. package/docs/classes/five.EyeDomeLightingPass.html +1 -1
  51. package/docs/classes/five.Five.html +77 -76
  52. package/docs/classes/five.FivePass.html +1 -1
  53. package/docs/classes/five.Histogram.html +19 -0
  54. package/docs/classes/five.InternalWebGLRenderer.html +1 -1
  55. package/docs/classes/five.Model.html +8 -8
  56. package/docs/classes/five.ModelScene.html +1 -1
  57. package/docs/classes/five.NetworkSubscribe.html +5 -5
  58. package/docs/classes/five.PBMContainer.html +1 -1
  59. package/docs/classes/five.PBMCustomShader.html +42 -3
  60. package/docs/classes/five.PBMGSObject.html +5 -3
  61. package/docs/classes/five.PBMGroup.html +1 -1
  62. package/docs/classes/five.PBMMesh.html +1 -1
  63. package/docs/classes/five.PBMMeshMaterial.html +7 -7
  64. package/docs/classes/five.PBMPanoFilter.html +61 -0
  65. package/docs/classes/five.PBMPointCloud.html +1 -1
  66. package/docs/classes/five.PBMPointCloudMaterial.html +5 -6
  67. package/docs/classes/five.PBMSkinnedMesh.html +1 -1
  68. package/docs/classes/five.PBMUpdateable.html +41 -0
  69. package/docs/classes/five.PanoCircleMesh.html +1 -1
  70. package/docs/classes/five.PanoCircleMeshCustom.html +1 -1
  71. package/docs/classes/five.PanoCircleMeshSolid.html +1 -1
  72. package/docs/classes/five.Parameter.html +57 -55
  73. package/docs/classes/five.Scene.html +1 -1
  74. package/docs/classes/five.Subscribe.html +5 -5
  75. package/docs/classes/five.Tile.html +1 -1
  76. package/docs/classes/five.Tile3D.html +24 -24
  77. package/docs/classes/five.TileNode.html +1 -1
  78. package/docs/classes/five.Tileset.html +3 -2
  79. package/docs/classes/five.TrajectoryNode.html +1 -1
  80. package/docs/classes/five.Work.html +16 -16
  81. package/docs/classes/five.WorkResolvedObserver.html +22 -22
  82. package/docs/classes/gltf-loader.DDSLoader.html +1 -1
  83. package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
  84. package/docs/classes/gltf-loader.GLTFLoader.html +2 -2
  85. package/docs/classes/gltf-loader.GLTFObject.html +1 -1
  86. package/docs/classes/gltf-loader.GLTFParser.html +1 -1
  87. package/docs/classes/gltf-loader.THREEGLTFLoader.html +2 -2
  88. package/docs/classes/line.Line.html +1 -1
  89. package/docs/classes/line.LineGeometry.html +1 -1
  90. package/docs/classes/line.LineMaterial.html +1 -1
  91. package/docs/classes/line.LineSegmentsGeometry.html +1 -1
  92. package/docs/classes/line.THREE_Line2.html +1 -1
  93. package/docs/classes/line.THREE_LineSegments2.html +1 -1
  94. package/docs/classes/plugins.BasePlugin.Controller.html +1 -1
  95. package/docs/classes/plugins.CSS3DObject.html +9 -0
  96. package/docs/classes/plugins.CSS3DRenderer.html +4 -2
  97. package/docs/classes/plugins.CSS3DSprite.html +11 -0
  98. package/docs/classes/plugins.Object3DHelperController.html +43 -0
  99. package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
  100. package/docs/classes/sticker.Sticker.html +1 -1
  101. package/docs/classes/vfx.Airflow.html +1 -1
  102. package/docs/classes/vfx.Flame.html +1 -1
  103. package/docs/classes/vfx.Particle.html +6 -6
  104. package/docs/classes/vfx.ParticleGPU.html +3 -3
  105. package/docs/classes/vfx.SpotLight.html +1 -1
  106. package/docs/documents/README.html +122 -1
  107. package/docs/documents/api.html +163 -35
  108. package/docs/documents/features_3dtile.html +1 -1
  109. package/docs/documents/features_camera-animation.html +18 -2
  110. package/docs/documents/features_clipper.html +2 -2
  111. package/docs/documents/features_coordinate-system.html +52 -3
  112. package/docs/documents/features_event.html +44 -8
  113. package/docs/documents/features_five.html +17 -17
  114. package/docs/documents/features_flowing-light-2d-pass.html +19 -116
  115. package/docs/documents/features_flowing-light-3d-pass.html +22 -124
  116. package/docs/documents/features_gaussian-blur-pass.html +6 -6
  117. package/docs/documents/features_gesture.html +2 -1
  118. package/docs/documents/features_get-screen-pixels.html +2 -2
  119. package/docs/documents/features_image-options.html +2 -2
  120. package/docs/documents/features_load-external-model.html +6 -2
  121. package/docs/documents/features_load-progress.html +1 -1
  122. package/docs/documents/features_material.html +11 -4
  123. package/docs/documents/features_mode.html +1 -1
  124. package/docs/documents/features_model.html +1 -1
  125. package/docs/documents/features_move-pano-effect.html +1 -1
  126. package/docs/documents/features_multi-work.html +1 -1
  127. package/docs/documents/features_pano-filter.html +123 -0
  128. package/docs/documents/features_pano-tile.html +1 -1
  129. package/docs/documents/features_pano-uv.html +1 -1
  130. package/docs/documents/features_parameter.html +11 -3
  131. package/docs/documents/features_plugin.html +1 -1
  132. package/docs/documents/features_postprocessing.html +1 -1
  133. package/docs/documents/features_raycast.html +5 -2
  134. package/docs/documents/features_request-proxy.html +1 -1
  135. package/docs/documents/features_screen-project.html +2 -1
  136. package/docs/documents/features_state.html +9 -2
  137. package/docs/documents/features_view-layer.html +1 -1
  138. package/docs/documents/features_work.html +1 -1
  139. package/docs/documents/glossary.html +5 -5
  140. package/docs/documents/release_notes_6.8.html +164 -64
  141. package/docs/documents/template.html +9 -0
  142. package/docs/functions/five.createDebugBoundingMesh.html +1 -1
  143. package/docs/functions/five.parseWork.html +1 -1
  144. package/docs/functions/plugins.CSS3DPlugin.html +1 -0
  145. package/docs/functions/plugins.GaussianSplattingEntranceAnimationPlugin.html +1 -0
  146. package/docs/functions/plugins.Object3DHelperPlugin.html +1 -0
  147. package/docs/functions/react.useFiveCurrentObserver.html +2 -2
  148. package/docs/functions/react.useFiveFloor.html +2 -2
  149. package/docs/functions/react.useFiveProject2d.html +2 -2
  150. package/docs/functions/vue.useFiveCurrentObserver.html +2 -2
  151. package/docs/functions/vue.useFiveFloor.html +2 -2
  152. package/docs/functions/vue.useFiveWorks.html +2 -2
  153. package/docs/hierarchy.html +1 -1
  154. package/docs/index.html +122 -1
  155. package/docs/interfaces/five.AddableObject.html +1 -1
  156. package/docs/interfaces/five.AjaxOptions.html +1 -1
  157. package/docs/interfaces/five.BaseEvent.html +7 -2
  158. package/docs/interfaces/five.BaseExtendableEvent.html +11 -0
  159. package/docs/interfaces/five.EventCallback.html +58 -54
  160. package/docs/interfaces/five.FiveInitArgs.html +2 -2
  161. package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +9 -9
  162. package/docs/interfaces/five.GestureEvent.html +21 -2
  163. package/docs/interfaces/five.GesturePointer.html +20 -0
  164. package/docs/interfaces/five.ImageOptions.html +1 -1
  165. package/docs/interfaces/five.IntersectEvent.html +10 -2
  166. package/docs/interfaces/five.IntersectMesh.html +1 -1
  167. package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
  168. package/docs/interfaces/five.Intersection.html +1 -1
  169. package/docs/interfaces/five.LooseWorkObserver.html +2 -2
  170. package/docs/interfaces/five.LooseWorkPanorama.html +2 -2
  171. package/docs/interfaces/five.LooseWorkWithExtrinsics.html +6 -6
  172. package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +10 -10
  173. package/docs/interfaces/five.ModeChangeEvent.html +9 -2
  174. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
  175. package/docs/interfaces/five.ModelEvent.html +7 -2
  176. package/docs/interfaces/five.ModelSceneEvent.html +7 -2
  177. package/docs/interfaces/five.ModelTileEvent.html +7 -2
  178. package/docs/interfaces/five.MovePanoOptions.html +8 -8
  179. package/docs/interfaces/five.NetworkAbortError.html +1 -1
  180. package/docs/interfaces/five.NetworkFirbiddenError.html +1 -1
  181. package/docs/interfaces/five.NetworkOptions.html +1 -1
  182. package/docs/interfaces/five.NetworkProxyError.html +1 -1
  183. package/docs/interfaces/five.NetworkResourceEvent.html +7 -2
  184. package/docs/interfaces/five.NetworkResponseError.html +1 -1
  185. package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
  186. package/docs/interfaces/five.ObjectEvent.html +7 -2
  187. package/docs/interfaces/five.PBMClipperParameter.html +2 -2
  188. package/docs/interfaces/five.PBMCustomShaderInitArgs.html +2 -2
  189. package/docs/interfaces/five.PBMCustomShaderSlots.html +2 -2
  190. package/docs/interfaces/five.PBMMaterial.html +1 -1
  191. package/docs/interfaces/five.PBMMeshMaterialParameters.html +5 -3
  192. package/docs/interfaces/five.PBMPanoDepth.html +5 -5
  193. package/docs/interfaces/five.PBMPanoFilterValue.html +6 -0
  194. package/docs/interfaces/five.PBMPanoPicture.html +8 -6
  195. package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +2 -3
  196. package/docs/interfaces/five.PBMRefinedScreen.html +2 -2
  197. package/docs/interfaces/five.PanoCircleMeshInterface.html +2 -2
  198. package/docs/interfaces/five.PanoEvent.html +15 -2
  199. package/docs/interfaces/five.PanoPrepareEvent.html +15 -0
  200. package/docs/interfaces/five.PanoTextureEvent.html +11 -2
  201. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
  202. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
  203. package/docs/interfaces/five.ParameterMaterialValue.html +40 -38
  204. package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
  205. package/docs/interfaces/five.ParameterValue.html +54 -52
  206. package/docs/interfaces/five.Pose.html +1 -1
  207. package/docs/interfaces/five.RenderEvent.html +7 -2
  208. package/docs/interfaces/five.ResolvedParameterValue.html +55 -54
  209. package/docs/interfaces/five.RgbaData.html +7 -0
  210. package/docs/interfaces/five.SplatData.html +2 -2
  211. package/docs/interfaces/five.State.html +1 -1
  212. package/docs/interfaces/five.StateEvent.html +9 -2
  213. package/docs/interfaces/five.TextureOptions.html +1 -1
  214. package/docs/interfaces/five.Tile3DOptions.html +2 -2
  215. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -7
  216. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
  217. package/docs/interfaces/five.ViewLayer.html +24 -24
  218. package/docs/interfaces/five.WorkCubeImage.html +3 -2
  219. package/docs/interfaces/five.WorkImage.html +6 -5
  220. package/docs/interfaces/five.WorkInitial.html +8 -8
  221. package/docs/interfaces/five.WorkModel.html +8 -8
  222. package/docs/interfaces/five.WorkModelLayer.html +6 -6
  223. package/docs/interfaces/five.WorkObserver.html +29 -29
  224. package/docs/interfaces/five.WorkObserverJson.html +2 -2
  225. package/docs/interfaces/five.WorkObserverProto.html +26 -0
  226. package/docs/interfaces/five.WorkPanoramaJson.html +2 -2
  227. package/docs/interfaces/five.WorkTile.html +6 -5
  228. package/docs/interfaces/five.WorkVideo.html +4 -4
  229. package/docs/interfaces/five.WorksEvent.html +7 -2
  230. package/docs/interfaces/five.XRControllerEvent.html +10 -2
  231. package/docs/interfaces/five.XRControllerState.html +8 -0
  232. package/docs/interfaces/five.XRGestureEvent.html +13 -2
  233. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
  234. package/docs/interfaces/five.XRSessionEvent.html +9 -2
  235. package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
  236. package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
  237. package/docs/interfaces/plugins.BasePlugin.State.html +1 -1
  238. package/docs/interfaces/plugins.CSS3DPluginController.html +52 -0
  239. package/docs/interfaces/plugins.CSS3DPluginType.Config.html +2 -0
  240. package/docs/interfaces/plugins.CSS3DPluginType.CreateCSS3DObjectType.html +10 -0
  241. package/docs/interfaces/plugins.CSS3DPluginType.EventMap.html +10 -0
  242. package/docs/interfaces/plugins.CSS3DPluginType.Params.html +4 -0
  243. package/docs/interfaces/plugins.CSS3DPluginType.State.html +8 -0
  244. package/docs/interfaces/plugins.CSS3DRendererParameters.html +2 -0
  245. package/docs/interfaces/plugins.DynamicPathLinePluginController.html +3 -3
  246. package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
  247. package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +1 -1
  248. package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationController.html +44 -0
  249. package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.BoundingAABB2D.html +3 -0
  250. package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.Config.html +8 -0
  251. package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.EventMap.html +10 -0
  252. package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.Keyframe.html +3 -0
  253. package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.State.html +8 -0
  254. package/docs/interfaces/plugins.ItemMaskController.html +1 -1
  255. package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
  256. package/docs/interfaces/plugins.ItemMaskPluginType.State.html +2 -2
  257. package/docs/interfaces/plugins.Object3DHelperPluginType.BaseController.html +30 -0
  258. package/docs/interfaces/plugins.Object3DHelperPluginType.BaseHelper.html +22 -0
  259. package/docs/interfaces/plugins.Object3DHelperPluginType.BoundingBoxController.html +30 -0
  260. package/docs/interfaces/plugins.Object3DHelperPluginType.HelperOffset.html +4 -0
  261. package/docs/interfaces/plugins.Object3DHelperPluginType.MoveController.html +36 -0
  262. package/docs/interfaces/plugins.Object3DHelperPluginType.MoveHelperAbstract.html +32 -0
  263. package/docs/interfaces/plugins.Object3DHelperPluginType.Object3DHelper.html +12 -0
  264. package/docs/interfaces/plugins.Object3DHelperPluginType.Object3DHelperPluginState.html +4 -0
  265. package/docs/interfaces/plugins.Object3DHelperPluginType.Object3DHelperState.html +4 -0
  266. package/docs/interfaces/plugins.Object3DHelperPluginType.ObjectHelperControllers.html +4 -0
  267. package/docs/interfaces/plugins.Object3DHelperPluginType.RotateController.html +36 -0
  268. package/docs/interfaces/plugins.Object3DHelperPluginType.RotateHelperAbstract.html +28 -0
  269. package/docs/interfaces/plugins.Object3DHelperPluginType.Scissor.html +5 -0
  270. package/docs/interfaces/plugins.Object3DHelperPluginType.Vector2Position.html +3 -0
  271. package/docs/interfaces/plugins.Object3DHelperPluginType.Vector3Position.html +4 -0
  272. package/docs/interfaces/plugins.OrientationPluginController.html +6 -6
  273. package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
  274. package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
  275. package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
  276. package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
  277. package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
  278. package/docs/interfaces/plugins.PlayingState.html +2 -2
  279. package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
  280. package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
  281. package/docs/interfaces/plugins.TrajectoryController.html +8 -8
  282. package/docs/interfaces/react.FiveInjectionTypes.html +21 -21
  283. package/docs/interfaces/sticker.IntersectionLike.html +2 -2
  284. package/docs/interfaces/vfx.ParticleArgs.html +4 -4
  285. package/docs/interfaces/vue.FiveActionVueCallbacks.html +3 -3
  286. package/docs/modules/five.html +1 -1
  287. package/docs/modules/plugins.CSS3DPluginType.html +1 -0
  288. package/docs/modules/plugins.GaussianSplattingEntranceAnimationPluginType.html +1 -0
  289. package/docs/modules/plugins.Object3DHelperPluginType.html +1 -0
  290. package/docs/modules/plugins.html +1 -1
  291. package/docs/modules.html +1 -1
  292. package/docs/types/five.ControllerEventTypes.html +30 -26
  293. package/docs/types/five.EasingFunction.html +1 -0
  294. package/docs/types/five.EventTypes.html +26 -26
  295. package/docs/types/five.LegacyEventType.html +7 -7
  296. package/docs/types/five.PBMAlphaMode.html +1 -1
  297. package/docs/types/five.PBMColorStyle.html +1 -1
  298. package/docs/types/five.PBMFloorStyle.html +1 -1
  299. package/docs/types/five.PBMMeshShaderType.html +1 -1
  300. package/docs/types/five.PBMPointBack.html +1 -1
  301. package/docs/types/five.PBMPointCloudShaderType.html +1 -1
  302. package/docs/types/five.PBMPointShape.html +1 -1
  303. package/docs/types/five.PBMPointSize.html +1 -1
  304. package/docs/types/five.PBMTransition.html +1 -1
  305. package/docs/types/five.ParseOptions.html +6 -6
  306. package/docs/types/five.Works.html +1 -1
  307. package/docs/types/plugins.BasePlugin.EventMap.html +1 -1
  308. package/docs/types/plugins.CSS3DPluginType.PluginData.html +1 -0
  309. package/docs/types/plugins.CSS3DPluginType.ServerData.html +1 -0
  310. package/docs/types/plugins.Object3DHelperPluginType.AddObject3DHelperConfig.html +13 -0
  311. package/docs/types/plugins.Object3DHelperPluginType.Circle.html +1 -0
  312. package/docs/types/plugins.Object3DHelperPluginType.Color.html +1 -0
  313. package/docs/types/plugins.Object3DHelperPluginType.Direction.html +1 -0
  314. package/docs/types/plugins.Object3DHelperPluginType.Direction4.html +1 -0
  315. package/docs/types/plugins.Object3DHelperPluginType.HelperConfig.html +1 -0
  316. package/docs/types/plugins.Object3DHelperPluginType.HelperEventMap.html +17 -0
  317. package/docs/types/plugins.Object3DHelperPluginType.InternalHelperEventMap.html +8 -0
  318. package/docs/types/plugins.Object3DHelperPluginType.Object3DHelperEventMap.html +1 -0
  319. package/docs/types/plugins.Object3DHelperPluginType.Object3DHelperPluginEventMap.html +7 -0
  320. package/docs/types/plugins.Object3DHelperPluginType.PositionFrom.html +1 -0
  321. package/docs/types/plugins.Object3DHelperPluginType.ScaleCallback.html +1 -0
  322. package/docs/types/plugins.Object3DHelperPluginType.ScalePosition.html +4 -0
  323. package/docs/types/plugins.Object3DHelperPluginType.UseFaceNormalInterface.html +4 -0
  324. package/docs/types/plugins.Object3DHelperPluginType.Vector2WithArray.html +1 -0
  325. package/docs/types/plugins.Object3DHelperPluginType.Vector3WithArray.html +1 -0
  326. package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
  327. package/five/application/events.d.ts +1 -1
  328. package/five/application/five.d.ts +6 -5
  329. package/five/bvh/bvhObject.d.ts +2 -2
  330. package/five/controllers/base.d.ts +1 -0
  331. package/five/controllers/events.d.ts +5 -1
  332. package/five/controllers/mapview.d.ts +1 -0
  333. package/five/controllers/model.d.ts +2 -2
  334. package/five/controllers/panorama.d.ts +3 -2
  335. package/five/controllers/xrPanorama.d.ts +1 -1
  336. package/five/core/camera.d.ts +1 -1
  337. package/five/gaussian-splatting/util/renderData.d.ts +66 -0
  338. package/five/index.d.ts +4 -1
  339. package/five/index.js +272 -782
  340. package/five/index.mjs +26894 -32056
  341. package/five/meshes/boundingMesh.d.ts +1 -0
  342. package/five/model/index.d.ts +2 -2
  343. package/five/model/loaders/glTF-helpers/extensions/KHR_binary_glTF.d.ts +1 -1
  344. package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting.d.ts +26 -0
  345. package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +7 -5
  346. package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts +13 -0
  347. package/five/model/loaders/glTF-helpers/extensions/base.d.ts +2 -1
  348. package/five/model/loaders/glTF-helpers/index.d.ts +4 -0
  349. package/five/model/loaders/glTF-helpers/parser.d.ts +2 -1
  350. package/five/model/loaders/spz.d.ts +2 -2
  351. package/five/model/materials/pbmMaterial.d.ts +54 -4
  352. package/five/model/materials/pbmMeshMaterial.d.ts +5 -3
  353. package/five/model/materials/pbmPointCloudMaterial.d.ts +0 -2
  354. package/five/model/objects/{pbmGSObject.d.ts → pbmGaussianSplattingObject.d.ts} +4 -1
  355. package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +59 -0
  356. package/five/model/objects/pbmGaussianSplattingTestMesh.d.ts +7 -0
  357. package/five/model/parameter.d.ts +11 -6
  358. package/five/model/tile3d/index.d.ts +5 -3
  359. package/five/model/tile3d/tile-node.d.ts +2 -2
  360. package/five/model/tile3d/tileset.d.ts +1 -0
  361. package/five/renderer/postprocessing/passes/adaptive-luminance-pass.d.ts +9 -7
  362. package/five/renderer/tools/render-cube-to-equirectangular.d.ts +7 -0
  363. package/five/renderer/tools/render-full-screen.d.ts +1 -1
  364. package/five/texture/histogram.d.ts +54 -0
  365. package/five/texture/loader.d.ts +1 -1
  366. package/five/texture/textureData.d.ts +11 -0
  367. package/five/thirdparty/hammer.d.ts +371 -255
  368. package/five/thirdparty/jsrsasign.d.ts +5 -20
  369. package/five/types/movePanoOptions.d.ts +4 -3
  370. package/five/utils/error.d.ts +1 -0
  371. package/five/utils/event.d.ts +98 -37
  372. package/five/utils/imageURL.d.ts +1 -1
  373. package/five/utils/memoryUsage.d.ts +2 -2
  374. package/five/utils/subscribe.d.ts +2 -2
  375. package/five/webxr/motionHelper.d.ts +1 -1
  376. package/five/work/index.d.ts +1 -0
  377. package/five/work/looseWorkType.d.ts +2 -2
  378. package/five/work/work.d.ts +5 -35
  379. package/five/work/workJsonType.d.ts +2 -2
  380. package/five/work/workObserverProto.d.ts +39 -0
  381. package/gltf-loader/index.js +9 -9
  382. package/gltf-loader/index.mjs +1351 -1451
  383. package/line/index.js +4 -4
  384. package/line/index.mjs +334 -513
  385. package/llms.txt +37 -1
  386. package/package.json +4 -4
  387. package/plugins/CSS3DPlugin/Controller.d.ts +64 -0
  388. package/plugins/CSS3DPlugin/index.d.ts +5 -0
  389. package/plugins/CSS3DPlugin/typing.d.ts +32 -0
  390. package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.d.ts +30 -0
  391. package/plugins/GaussianSplattingEntranceAnimationPlugin/index.d.ts +5 -0
  392. package/plugins/GaussianSplattingEntranceAnimationPlugin/typing.d.ts +28 -0
  393. package/plugins/Object3DHelperPlugin/Controller.d.ts +99 -0
  394. package/plugins/Object3DHelperPlugin/Controllers/BaseController.d.ts +142 -0
  395. package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.d.ts +16 -0
  396. package/plugins/Object3DHelperPlugin/Controllers/MoveController.d.ts +66 -0
  397. package/plugins/Object3DHelperPlugin/Controllers/RotateController.d.ts +61 -0
  398. package/plugins/Object3DHelperPlugin/FiveControllerWrapper.d.ts +17 -0
  399. package/plugins/Object3DHelperPlugin/Helper/BaseHelper.d.ts +97 -0
  400. package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.d.ts +16 -0
  401. package/plugins/Object3DHelperPlugin/Helper/MoveHelper.d.ts +37 -0
  402. package/plugins/Object3DHelperPlugin/Helper/RotateHelper.d.ts +93 -0
  403. package/plugins/Object3DHelperPlugin/constant.d.ts +27 -0
  404. package/plugins/Object3DHelperPlugin/index.d.ts +6 -0
  405. package/plugins/Object3DHelperPlugin/typing.d.ts +143 -0
  406. package/plugins/Object3DHelperPlugin/utils/ArrowGroup.d.ts +22 -0
  407. package/plugins/Object3DHelperPlugin/utils/CenterHandle.d.ts +23 -0
  408. package/plugins/Object3DHelperPlugin/utils/PlaneHandle.d.ts +19 -0
  409. package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.d.ts +5 -0
  410. package/plugins/Object3DHelperPlugin/utils/cameraHooks.d.ts +2 -0
  411. package/plugins/Object3DHelperPlugin/utils/direction.d.ts +14 -0
  412. package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.d.ts +5 -0
  413. package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.d.ts +8 -0
  414. package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.d.ts +8 -0
  415. package/plugins/Object3DHelperPlugin/utils/solidGuide.d.ts +27 -0
  416. package/plugins/Object3DHelperPlugin/utils/tipsDom.d.ts +8 -0
  417. package/plugins/TrajectoryPlugin/Controller.d.ts +1 -1
  418. package/plugins/index.d.ts +4 -1
  419. package/plugins/index.js +35 -21
  420. package/plugins/index.mjs +5418 -4238
  421. package/plugins/thirdParty/CSS3DRenderer.d.ts +16 -3
  422. package/plugins/thirdParty/domevents.d.ts +36 -0
  423. package/plugins/utils/uuid.d.ts +1 -4
  424. package/react/context.d.ts +3 -2
  425. package/react/createProvider.d.ts +4 -4
  426. package/react/createStore.d.ts +3 -3
  427. package/react/hooks/useFiveProject2d.d.ts +1 -1
  428. package/react/index.js +3 -3
  429. package/react/index.mjs +572 -783
  430. package/react/rendererPool.d.ts +2 -2
  431. package/shader-lib/index.js +13 -14
  432. package/shader-lib/index.mjs +424 -824
  433. package/sticker/index.js +3 -3
  434. package/sticker/index.mjs +102 -142
  435. package/umd/five-gltf-loader.js +9 -9
  436. package/umd/five-line.js +4 -4
  437. package/umd/five-plugins.js +35 -21
  438. package/umd/five-react.js +3 -3
  439. package/umd/five-shader-lib.js +13 -14
  440. package/umd/five-sticker.js +3 -3
  441. package/umd/five-vfx.js +21 -21
  442. package/umd/five-vue.js +3 -3
  443. package/umd/five.js +267 -777
  444. package/vfx/index.js +21 -21
  445. package/vfx/index.mjs +454 -910
  446. package/vue/index.js +3 -3
  447. package/vue/index.mjs +309 -301
  448. package/vue/rendererPool.d.ts +5 -5
  449. package/work-downloader/index.js +3 -3
  450. package/work-downloader/index.mjs +339 -556
  451. package/five/gs/util/renderData.d.ts +0 -32
  452. package/five/model/objects/pbmGSRenderMesh.d.ts +0 -29
  453. package/five/work/workObserverUtils.d.ts +0 -36
  454. /package/five/assets/{realsee-pmg-data-url.d.ts → realsee-png-data-url.d.ts} +0 -0
  455. /package/five/{gs → gaussian-splatting}/wasm/data.d.ts +0 -0
  456. /package/five/{gs → gaussian-splatting}/wasm/sort.d.ts +0 -0
  457. /package/five/{gs → gaussian-splatting}/worker/dataWorker.d.ts +0 -0
  458. /package/five/{gs → gaussian-splatting}/worker/sortWorker.d.ts +0 -0
@@ -88,31 +88,16 @@
88
88
  * https://code.google.com/p/crypto-js/wiki/License
89
89
  * PART: ext/cryptojs
90
90
  */
91
- declare var KJUR: {};
92
91
  declare function hex2b64(d: any): string;
93
92
  declare function b64tohex(f: any): string;
94
- declare function RSAKey(): void;
95
- declare namespace RSAKey {
96
- var getPosArrayOfChildrenFromHex: (a: any) => any;
97
- var getHexValueArrayOfChildrenFromHex: (f: any) => any;
98
- var SALT_LEN_HLEN: number;
99
- var SALT_LEN_MAX: number;
100
- var SALT_LEN_RECOVER: number;
101
- }
102
93
  declare function hextopem(a: any, b: any): string;
103
94
  declare function pemtohex(a: any, b: any): string;
104
- declare function X509(q: any): void;
105
- declare namespace X509 {
106
- var hex2dn: (e: any, b: any) => any;
107
- var hex2rdn: (f: any, b: any) => string;
108
- var hex2attrTypeValue: (d: any, i: any) => string;
109
- var getPublicKeyFromCertHex: (b: any) => any;
110
- var getPublicKeyFromCertPEM: (b: any) => any;
111
- var getPublicKeyInfoPropOfCertPEM: (c: any) => {};
112
- var KEYUSAGE_NAME: string[];
113
- }
95
+
114
96
  declare namespace KJUR {
115
- namespace crypto { }
97
+ namespace crypto {
98
+ export type DSA = any;
99
+ export type ECDSA = any;
100
+ }
116
101
  }
117
102
  interface ECCPrivateKey {
118
103
  curve: string;
@@ -1,5 +1,6 @@
1
- import { State } from "./state";
2
- import { MovePanoEffect } from './movePanoEffect';
1
+ import type { State } from "./state";
2
+ import type { MovePanoEffect } from './movePanoEffect';
3
+ import type { EasingFunction } from '../utils/easing';
3
4
  /**
4
5
  * 点位移动参数
5
6
  */
@@ -9,7 +10,7 @@ interface MovePanoOptions extends Partial<Omit<State, "offset" | 'distance' | 'm
9
10
  */
10
11
  effect?: MovePanoEffect;
11
12
  /** 走点图片过度策略 */
12
- effectEasing?: (progress: number) => number;
13
+ effectEasing?: EasingFunction;
13
14
  /**
14
15
  * 运动耗时
15
16
  * @description
@@ -0,0 +1 @@
1
+ export declare function toError(error: any): Error;
@@ -8,86 +8,138 @@ import { ModelScene, Model } from '../model';
8
8
  import { type Tile } from '../model/tile3d/tile';
9
9
  import { Intersection } from '../model/intersection';
10
10
  import { MovePanoOptions } from '../types/movePanoOptions';
11
+ /** 所有事件的基础接口 */
11
12
  export interface BaseEvent {
13
+ /** 事件类型名称 */
12
14
  type: string;
15
+ /** 事件触发时的时间戳 */
13
16
  timeStamp: number;
17
+ /** 阻止事件的默认行为 */
14
18
  preventDefault(): void;
15
- defaultPrevented: boolean;
19
+ /** 是否已调用过 preventDefault */
20
+ readonly defaultPrevented: boolean;
16
21
  }
22
+ export interface BaseExtendableEvent extends BaseEvent {
23
+ waitUntil(f: Promise<any>): void;
24
+ }
25
+ /** 射线检测事件 */
17
26
  export interface IntersectEvent extends BaseEvent {
27
+ /** 被检测到的 3D 对象 */
18
28
  object: THREE.Object3D;
29
+ /** 发出射线的 Raycaster */
19
30
  raycaster: THREE.Raycaster;
31
+ /** 射线与对象的交点信息,未命中时为 null */
20
32
  intersection: Intersection | null;
21
33
  }
34
+ /** 状态变更事件 */
22
35
  export interface StateEvent extends BaseEvent {
36
+ /** 当前的 Five 状态 */
23
37
  state: State;
38
+ /** 是否由用户交互触发 */
24
39
  userAction: boolean;
25
40
  }
41
+ /** 全景图切换事件 */
26
42
  export interface PanoEvent extends StateEvent {
43
+ /** 切换前的全景图 */
27
44
  prevPano: Pano;
45
+ /** 新的全景图 */
46
+ pano: Pano;
47
+ /** 切换动画进度(0-1) */
28
48
  progress: number;
49
+ /** 切换时传入的选项 */
29
50
  options: MovePanoOptions;
51
+ /** 切换过程中发生的错误 */
30
52
  error: Error | null;
31
53
  }
54
+ /** 全景图准备事件 */
55
+ export interface PanoPrepareEvent extends BaseExtendableEvent {
56
+ /** 切换前的全景图 */
57
+ prevPano: Pano;
58
+ /** 新的全景图 */
59
+ pano: Pano;
60
+ }
61
+ /** 全景图纹理加载事件 */
32
62
  export interface PanoTextureEvent extends BaseEvent {
63
+ /** 对应的全景图 */
33
64
  pano: Pano;
65
+ /** 纹理加载进度(0-1) */
34
66
  progress: number;
67
+ /** 网络请求元信息 */
35
68
  meta: NetWorkMeta[] | null;
69
+ /** 加载过程中发生的错误 */
36
70
  error: Error | null;
37
71
  }
72
+ /** 单个触控点 / 鼠标指针的信息 */
73
+ export interface GesturePointer {
74
+ /** 指针在屏幕上的 x 坐标(像素) */
75
+ x: number;
76
+ /** 指针在屏幕上的 y 坐标(像素) */
77
+ y: number;
78
+ /** 相对上一帧的位移量 */
79
+ delta: number;
80
+ /** 当前按下的鼠标键(单键编号) */
81
+ button: number;
82
+ /** 当前按下的所有鼠标键(位掩码) */
83
+ buttons: number;
84
+ shiftKey: boolean;
85
+ ctrlKey: boolean;
86
+ altKey: boolean;
87
+ metaKey: boolean;
88
+ /** 归一化设备坐标(NDC) */
89
+ coords: THREE.Vector2;
90
+ /** 从该指针位置发出的射线 */
91
+ raycaster: THREE.Raycaster;
92
+ }
93
+ /** 手势事件,涵盖触摸、鼠标、笔等输入方式 */
38
94
  export interface GestureEvent extends StateEvent {
95
+ /** 事件的原始 DOM 目标 */
39
96
  target: EventTarget | null;
97
+ /** 输入设备类型 */
40
98
  pointerType: 'touch' | 'pen' | 'mouse' | 'kinect';
99
+ /** 原始 DOM 事件 */
41
100
  srcEvent: MouseEvent | TouchEvent | PointerEvent;
42
- pointers: {
43
- x: number;
44
- y: number;
45
- delta: number;
46
- buttons: number;
47
- coords: THREE.Vector2;
48
- raycaster: THREE.Raycaster;
49
- }[];
101
+ /** 所有活跃指针的信息列表 */
102
+ pointers: GesturePointer[];
103
+ /** 是否为该手势序列的第一个事件 */
50
104
  isFirst: boolean;
105
+ /** 是否为该手势序列的最后一个事件 */
51
106
  isFinal: boolean;
107
+ /** 多指缩放比例 */
52
108
  scale: number;
53
- center: {
54
- x: number;
55
- y: number;
56
- delta: number;
57
- buttons: number;
58
- coords: THREE.Vector2;
59
- raycaster: THREE.Raycaster;
60
- };
109
+ /** 所有活跃指针的中心点信息 */
110
+ center: GesturePointer;
111
+ /** 当前 x 方向速度 */
61
112
  velocityX: number;
113
+ /** 当前 y 方向速度 */
62
114
  velocityY: number;
115
+ /** 整个手势序列的 x 方向平均速度 */
63
116
  overallVelocityX: number;
117
+ /** 整个手势序列的 y 方向平均速度 */
64
118
  overallVelocityY: number;
65
119
  }
120
+ /** XR 会话事件(进入/退出 XR 模式时触发) */
66
121
  export interface XRSessionEvent extends BaseEvent {
122
+ /** 当前 XR 会话 */
67
123
  session: XRSession | null;
124
+ /** XR 设备类型 */
68
125
  machineType: 'Pico' | 'Oculus';
69
126
  }
127
+ /** XR 控制器状态 */
128
+ export interface XRControllerState {
129
+ /** 摇杆轴输入(0-1) */
130
+ axes: Record<'up' | 'down' | 'left' | 'right', number>;
131
+ /** 左手控制器射线 */
132
+ raycaster: THREE.Raycaster;
133
+ /** 距上一帧的时间间隔 */
134
+ deltaTime: number;
135
+ }
136
+ /** XR 控制器输入事件 */
70
137
  export interface XRControllerEvent extends BaseEvent {
71
- left: {
72
- axes: {
73
- up: number;
74
- down: number;
75
- left: number;
76
- right: number;
77
- };
78
- raycaster: THREE.Raycaster;
79
- deltaTime: number;
80
- };
81
- right: {
82
- axes: {
83
- up: number;
84
- down: number;
85
- left: number;
86
- right: number;
87
- };
88
- raycaster: THREE.Raycaster;
89
- deltaTime: number;
90
- };
138
+ /** 左手控制器状态 */
139
+ left: XRControllerState;
140
+ /** 右手控制器状态 */
141
+ right: XRControllerState;
142
+ /** 各按键的按下状态 */
91
143
  buttons: {
92
144
  X: boolean;
93
145
  Y: boolean;
@@ -99,12 +151,19 @@ export interface XRControllerEvent extends BaseEvent {
99
151
  RightPinch: boolean;
100
152
  };
101
153
  }
154
+ /** XR 手势事件(按键、摇杆方向等离散输入) */
102
155
  export interface XRGestureEvent extends BaseEvent {
156
+ /** 当前 XR 会话 */
103
157
  session: XRSession | null;
158
+ /** 触发该手势的按键或摇杆方向 */
104
159
  buttons: 'A' | 'B' | 'X' | 'Y' | 'RightTrigger' | 'RightPinch' | 'LeftTrigger' | 'LeftPinch' | 'LeftAxesLeft' | 'LeftAxesRight' | 'LeftAxesUp' | 'LeftAxesDown' | 'RightAxesLeft' | 'RightAxesRight' | 'RightAxesUp' | 'RightAxesDown';
160
+ /** XR 设备类型 */
105
161
  machineType: 'Pico' | 'Oculus';
162
+ /** 是否为该手势序列的第一个事件 */
106
163
  isFirst: boolean;
164
+ /** 是否为该手势序列的最后一个事件 */
107
165
  isFinal: boolean;
166
+ /** 控制器射线信息 */
108
167
  controllers: {
109
168
  raycaster: {
110
169
  leftRay: THREE.Raycaster;
@@ -147,3 +206,5 @@ export interface NetworkResourceEvent extends BaseEvent {
147
206
  detail: string;
148
207
  }
149
208
  export declare function createEvent<T extends BaseEvent = BaseEvent>(type: string, eventArgs: Omit<T, keyof BaseEvent>): T;
209
+ export declare function createExtendableEvent<T extends BaseExtendableEvent = BaseExtendableEvent>(type: string, eventArgs: Omit<T, keyof BaseExtendableEvent>): T;
210
+ export declare function waitForExtendableEvent(event: BaseExtendableEvent): Promise<void>;
@@ -33,7 +33,7 @@ interface ImageURLOptions {
33
33
  * @returns url 转换结果
34
34
  */
35
35
  declare function imageURL(source: string, options: ImageURLOptions): string;
36
- declare function applyImageURLOptions(source: string, imageURLTransform: (source: string, options: ImageURLOptions) => string, imageURLOptions: ImageURLOptions): string;
36
+ declare function applyImageURLOptions(source: string, imageURLTransform: ((source: string, options: ImageURLOptions) => string) | undefined, imageURLOptions: ImageURLOptions): string;
37
37
  /** 从 url 获取图片尺寸, 图片中有 cube_<size> 特征 */
38
38
  declare function getImageSizeFromURL(url: string): number | null;
39
39
  /** 从 url 替换图片尺寸, 图片中有 cube_<size> 特征 */
@@ -1,12 +1,12 @@
1
1
  import * as THREE from 'three';
2
- import { PBMGSObject } from '../model/objects/pbmGSObject';
2
+ import { PBMGaussianSplattingObject } from '../model/objects/pbmGaussianSplattingObject';
3
3
  /**
4
4
  * 统计 Geometry 的存储占用 单位 bytes
5
5
  * @param geometry
6
6
  * @returns
7
7
  */
8
8
  export declare function getGeometryMemoryUsed(geometry: THREE.BufferGeometry | THREE.Geometry): number;
9
- export declare function getPBMGSObjectMemoryUsed(object: PBMGSObject): number;
9
+ export declare function getPBMGSObjectMemoryUsed(object: PBMGaussianSplattingObject): number;
10
10
  /**
11
11
  * 统计 Texture 的存储占用 单位 bytes
12
12
  * Textures are often the part of a three.js app that use the most memory.
@@ -27,7 +27,7 @@ declare class Subscribe<T extends SubscribeEventMap> {
27
27
  * @template K - 预设的监听事件名称
28
28
  * @template C - 回调函数函数上下文
29
29
  */
30
- on<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>, once?: boolean): () => void;
30
+ on<K extends keyof T>(name: K, callback: (this: this, ...args: Parameters<T[K]>) => ReturnType<T[K]>, once?: boolean): () => void;
31
31
  /**
32
32
  * 注册事件(是否只执行一次)
33
33
  * @param name - 事件类型
@@ -36,7 +36,7 @@ declare class Subscribe<T extends SubscribeEventMap> {
36
36
  * @template K - 预设的监听事件名称
37
37
  * @template C - 回调函数函数上下文
38
38
  */
39
- once<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>): () => void;
39
+ once<K extends keyof T>(name: K, callback: (this: this, ...args: Parameters<T[K]>) => ReturnType<T[K]>): () => void;
40
40
  /**
41
41
  * 解除事件
42
42
  *
@@ -54,7 +54,7 @@ declare class MotionController {
54
54
  layoutDescription: any;
55
55
  components: any;
56
56
  constructor(xrInputSource: XRInputSource, profile: any, assetUrl: string);
57
- get gripSpace(): XRSpace;
57
+ get gripSpace(): XRSpace | undefined;
58
58
  get targetRaySpace(): XRSpace;
59
59
  /**
60
60
  * @description Returns a subset of component data for simplified debugging
@@ -1,4 +1,5 @@
1
1
  export { parseWork, type ParseOptions, Work, type WorkCubeImage, type WorkImage, type WorkInitial, type WorkModel, type WorkModelLayer, type WorkObserver, type WorkTile, type WorkVideo, } from './work';
2
+ export { type WorkObserverProto, } from './workObserverProto';
2
3
  export { type WorkInitialJson, type WorkJson, type WorkModelJson, type WorkModelLayerJson, type WorkObserverJson, type WorkPanoramaJson, type WorkPanoramasJson, } from './workJsonType';
3
4
  export { workToJson, } from './workJson';
4
5
  export { type LoosePanoWork, type LooseWork, type LooseWorkInitial, type LooseWorkModel, type LooseWorkObserver, type LooseWorkPanorama, type LooseWorkVideo, type LooseWorkWithExtrinsics, } from './looseWorkType';
@@ -18,7 +18,7 @@ export interface LooseWorkPanorama {
18
18
  video?: LooseWorkVideo;
19
19
  tiles?: number[];
20
20
  size_list?: number[];
21
- derived_id?: number;
21
+ derived_id?: number | string;
22
22
  derived_id_str?: string;
23
23
  }
24
24
  export interface LooseWorkInitial {
@@ -78,7 +78,7 @@ export interface LooseWorkObserver {
78
78
  floor?: number;
79
79
  floor_index?: number;
80
80
  floorIndex?: number;
81
- derived_id?: number;
81
+ derived_id?: number | string;
82
82
  derived_id_str?: string;
83
83
  }
84
84
  export interface LooseWork {
@@ -1,9 +1,11 @@
1
1
  import * as THREE from "three";
2
2
  import type { Mode } from "../application/mode";
3
3
  import type { TilesetHeader } from "../model/tile3d/header";
4
+ import type { WorkObserverProto } from './workObserverProto';
4
5
  import type { LooseWork, LoosePanoWork } from "./looseWorkType";
5
6
  import { CubeFace } from "../types/cube";
6
7
  import type { PanoId } from "../utils/pano";
8
+ import type { Histogram } from "../texture/histogram";
7
9
  /** 全景视频贴片 */
8
10
  export interface WorkVideo {
9
11
  work: Work;
@@ -16,6 +18,7 @@ export interface WorkVideo {
16
18
  }
17
19
  export interface WorkCubeImage extends Record<CubeFace, string> {
18
20
  work: Work;
21
+ histogram?: Histogram;
19
22
  }
20
23
  export interface WorkTile extends WorkCubeImage {
21
24
  /** 层级 */
@@ -53,7 +56,7 @@ export interface WorkInitial {
53
56
  distance?: number;
54
57
  }
55
58
  /** 每个点位的数据 */
56
- export interface WorkObserver {
59
+ export interface WorkObserver extends WorkObserverProto {
57
60
  /** work */
58
61
  work: Work;
59
62
  /** 序号 */
@@ -69,7 +72,7 @@ export interface WorkObserver {
69
72
  /** 点位所在楼层 */
70
73
  floorIndex: number;
71
74
  /** 点位 derived_id */
72
- derivedId: number;
75
+ derivedId: number | string;
73
76
  /** 点位 derived_id_str */
74
77
  derivedIdStr: string;
75
78
  /** 点位是否激活可用 */
@@ -94,39 +97,6 @@ export interface WorkObserver {
94
97
  quaternion: THREE.Quaternion;
95
98
  /** 点位和模型的旋转对齐关系矩阵 */
96
99
  matrix: THREE.Matrix4;
97
- /**
98
- * 将方向向量转化为全景图 uv。
99
- * @param vector - 全局的方向向量。单位向量。
100
- * @param uvOrigin - top-left 原点在左上角,x轴向右,y轴向下[默认]。bottom-left 原点左下角,x轴向右,y轴向上。
101
- * @returns uv坐标 取值范围 [0,1]。
102
- */
103
- vectorToEquirectangularUv(this: WorkObserver, vector: THREE.Vector3, uvOrigin?: 'top-left' | 'bottom-left'): THREE.Vector2;
104
- /**
105
- * 将全景图 uv 转化为方向向量。
106
- * @param uv - uv坐标 取值范围 [0,1]。
107
- * @param uvOrigin - top-left 原点在左上角,x轴向右,y轴向下[默认]。bottom-left 原点左下角,x轴向右,y轴向上。
108
- * @returns 全局的方向向量。单位向量。
109
- */
110
- equirectangularUvToVector(this: WorkObserver, uv: THREE.Vector2, uvOrigin?: 'top-left' | 'bottom-left'): THREE.Vector3;
111
- /**
112
- * 将方向向量转化为获六视图 uv
113
- * @param vector - 全局的方向向量。单位向量。
114
- * @param uvOrigin - top-left 原点在左上角,x轴向右,y轴向下[默认]。bottom-left 原点左下角,x轴向右,y轴向上。
115
- * @returns uv 坐标,取值范围 [0,1]
116
- */
117
- vectorToCubemapUv(this: WorkObserver, vector: THREE.Vector3, uvOrigin?: 'top-left' | 'bottom-left'): [cubeFace: CubeFace, cubemapUv: THREE.Vector2];
118
- /**
119
- * 将六视图 uv 转化为方向向量
120
- * @param cubeFace - 六视图的某一面。
121
- * @param uv - uv坐标 取值范围 [0,1]。
122
- * @param uvOrigin - top-left 原点在左上角,x轴向右,y轴向下[默认]。bottom-left 原点左下角,x轴向右,y轴向上。
123
- * @returns 全局的方向向量。单位向量。
124
- */
125
- cubemapUvToVector(this: WorkObserver, cubeFace: CubeFace, uv: THREE.Vector2, uvOrigin?: 'top-left' | 'bottom-left'): THREE.Vector3;
126
- /** 获取点位的全局坐标 */
127
- getWorldPosition(this: WorkObserver): THREE.Vector3;
128
- /** 获取点位的全局地面坐标 */
129
- getWorldStandingPosition(this: WorkObserver): THREE.Vector3;
130
100
  }
131
101
  export interface WorkModelLayer {
132
102
  /** work */
@@ -35,7 +35,7 @@ export interface WorkModelLayerJson {
35
35
  export interface WorkObserverJson {
36
36
  index: number;
37
37
  floor_index: number;
38
- derived_id: number;
38
+ derived_id: number | string;
39
39
  derived_id_str: string;
40
40
  position: number[];
41
41
  standing_position: number[];
@@ -56,7 +56,7 @@ export interface WorkPanoramaJson {
56
56
  index: number;
57
57
  active?: boolean;
58
58
  loadable?: boolean;
59
- derived_id?: number;
59
+ derived_id?: number | string;
60
60
  derived_id_str?: string;
61
61
  size_list: number[];
62
62
  up: string;
@@ -0,0 +1,39 @@
1
+ import * as THREE from 'three';
2
+ import { type WorkObserver } from './work';
3
+ import { type CubeFace } from '../types/cube';
4
+ export interface WorkObserverProto {
5
+ /**
6
+ * 将方向向量转化为全景图 uv。
7
+ * @param vector - 全局的方向向量。单位向量。
8
+ * @param uvOrigin - top-left 原点在左上角,x轴向右,y轴向下[默认]。bottom-left 原点左下角,x轴向右,y轴向上。
9
+ * @returns uv坐标 取值范围 [0,1]。
10
+ */
11
+ vectorToEquirectangularUv(this: WorkObserver, vector: THREE.Vector3, uvOrigin?: 'top-left' | 'bottom-left'): THREE.Vector2;
12
+ /**
13
+ * 将方向向量转化为获六视图 uv
14
+ * @param vector - 全局的方向向量。单位向量。
15
+ * @param uvOrigin - top-left 原点在左上角,x轴向右,y轴向下[默认]。bottom-left 原点左下角,x轴向右,y轴向上。
16
+ * @returns uv 坐标,取值范围 [0,1]
17
+ */
18
+ vectorToCubemapUv(this: WorkObserver, vector: THREE.Vector3, uvOrigin?: 'top-left' | 'bottom-left'): [cubeFace: CubeFace, cubemapUv: THREE.Vector2];
19
+ /**
20
+ * 将全景图 uv 转化为方向向量。
21
+ * @param uv - uv坐标 取值范围 [0,1]。
22
+ * @param uvOrigin - top-left 原点在左上角,x轴向右,y轴向下[默认]。bottom-left 原点左下角,x轴向右,y轴向上。
23
+ * @returns 全局的方向向量。单位向量。
24
+ */
25
+ equirectangularUvToVector(this: WorkObserver, uv: THREE.Vector2, uvOrigin?: 'top-left' | 'bottom-left'): THREE.Vector3;
26
+ /**
27
+ * 将六视图 uv 转化为方向向量
28
+ * @param cubeFace - 六视图的某一面。
29
+ * @param uv - uv坐标 取值范围 [0,1]。
30
+ * @param uvOrigin - top-left 原点在左上角,x轴向右,y轴向下[默认]。bottom-left 原点左下角,x轴向右,y轴向上。
31
+ * @returns 全局的方向向量。单位向量。
32
+ */
33
+ cubemapUvToVector(this: WorkObserver, cubeFace: CubeFace, uv: THREE.Vector2, uvOrigin?: 'top-left' | 'bottom-left'): THREE.Vector3;
34
+ /** 获取点位的全局坐标 */
35
+ getWorldPosition(this: WorkObserver): THREE.Vector3;
36
+ /** 获取点位的全局地面坐标 */
37
+ getWorldStandingPosition(this: WorkObserver): THREE.Vector3;
38
+ }
39
+ export declare const workObserverProto: WorkObserverProto;