@realsee/five 6.8.0-alpha.2 → 6.8.0-alpha.21

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 (715) hide show
  1. package/AGENTS_READ_ME.md +4 -0
  2. package/AI_CONTEXT.md +4 -0
  3. package/README.md +9 -6
  4. package/{guides → ai_guides}/README.md +12 -2
  5. package/ai_guides/ai-doc-guidelines.md +102 -0
  6. package/{guides → ai_guides}/api.md +24 -1
  7. package/ai_guides/features/3dtile.md +172 -0
  8. package/{guides → ai_guides}/features/camera-animation.md +24 -3
  9. package/{guides → ai_guides}/features/clipper.md +2 -0
  10. package/{guides/features/coordnate-system.md → ai_guides/features/coordinate-system.md} +2 -0
  11. package/{guides → ai_guides}/features/event.md +2 -0
  12. package/{guides → ai_guides}/features/five.md +4 -0
  13. package/ai_guides/features/flowing-light-2d-pass.md +438 -0
  14. package/ai_guides/features/flowing-light-3d-pass.md +420 -0
  15. package/ai_guides/features/gaussian-blur-pass.md +202 -0
  16. package/{guides → ai_guides}/features/gesture.md +3 -0
  17. package/{guides → ai_guides}/features/get-screen-pixels.md +2 -0
  18. package/{guides → ai_guides}/features/image-options.md +3 -0
  19. package/{guides → ai_guides}/features/load-external-model.md +21 -0
  20. package/ai_guides/features/load-progress.md +140 -0
  21. package/ai_guides/features/material.md +153 -0
  22. package/{guides → ai_guides}/features/mode.md +4 -0
  23. package/{guides → ai_guides}/features/model.md +4 -1
  24. package/{guides → ai_guides}/features/move-pano-effect.md +2 -0
  25. package/{guides → ai_guides}/features/multi-work.md +2 -0
  26. package/ai_guides/features/pano-filter.md +148 -0
  27. package/{guides → ai_guides}/features/pano-tile.md +7 -14
  28. package/ai_guides/features/pano-uv.md +131 -0
  29. package/ai_guides/features/parameter.md +153 -0
  30. package/ai_guides/features/plugin.md +210 -0
  31. package/{guides → ai_guides}/features/postprocessing.md +39 -4
  32. package/{guides → ai_guides}/features/raycast.md +11 -0
  33. package/{guides → ai_guides}/features/request-proxy.md +2 -0
  34. package/{guides → ai_guides}/features/screen-project.md +2 -0
  35. package/{guides → ai_guides}/features/state.md +2 -0
  36. package/ai_guides/features/view-layer.md +187 -0
  37. package/{guides → ai_guides}/features/work.md +63 -2
  38. package/{guides → ai_guides}/glossary.md +26 -5
  39. package/{guides → ai_guides}/intro.md +1 -1
  40. package/{guides → ai_guides}/quick-start.md +1 -0
  41. package/ai_guides/release_notes/6.8.md +208 -0
  42. package/{guides → ai_guides}/template.md +17 -3
  43. package/docs/00_FOR_AI_AGENTS.md +11 -0
  44. package/docs/README.md +4 -7
  45. package/docs/assets/hierarchy.js +1 -1
  46. package/docs/assets/navigation.js +1 -1
  47. package/docs/assets/search.js +1 -1
  48. package/docs/classes/five.AdaptiveLuminancePass.html +7 -6
  49. package/docs/classes/five.BoundingMesh.html +2 -2
  50. package/docs/classes/five.Camera.html +1 -1
  51. package/docs/classes/five.EyeDomeLightingPass.html +1 -1
  52. package/docs/classes/five.Five.html +73 -72
  53. package/docs/classes/five.FivePass.html +1 -1
  54. package/docs/classes/five.Histogram.html +19 -0
  55. package/docs/classes/five.InternalWebGLRenderer.html +1 -1
  56. package/docs/classes/five.Model.html +31 -31
  57. package/docs/classes/five.ModelScene.html +1 -1
  58. package/docs/classes/five.NetworkSubscribe.html +1 -1
  59. package/docs/classes/five.PBMContainer.html +1 -1
  60. package/docs/classes/five.PBMCustomShader.html +42 -3
  61. package/docs/classes/five.PBMGSObject.html +5 -3
  62. package/docs/classes/five.PBMGroup.html +1 -1
  63. package/docs/classes/five.PBMMesh.html +1 -1
  64. package/docs/classes/five.PBMMeshMaterial.html +16 -7
  65. package/docs/classes/five.PBMPanoFilter.html +61 -0
  66. package/docs/classes/five.PBMPointCloud.html +1 -1
  67. package/docs/classes/five.PBMPointCloudMaterial.html +5 -6
  68. package/docs/classes/five.PBMSkinnedMesh.html +1 -1
  69. package/docs/classes/five.PBMUpdateable.html +41 -0
  70. package/docs/classes/five.PanoCircleMesh.html +1 -1
  71. package/docs/classes/five.PanoCircleMeshCustom.html +1 -1
  72. package/docs/classes/five.PanoCircleMeshSolid.html +1 -1
  73. package/docs/classes/five.Parameter.html +57 -53
  74. package/docs/classes/five.Scene.html +1 -1
  75. package/docs/classes/five.Subscribe.html +1 -1
  76. package/docs/classes/five.Tile.html +1 -1
  77. package/docs/classes/five.Tile3D.html +30 -26
  78. package/docs/classes/five.TileNode.html +1 -1
  79. package/docs/classes/five.Trajectory.html +1 -1
  80. package/docs/classes/five.TrajectoryNode.html +1 -1
  81. package/docs/classes/five.Work.html +16 -16
  82. package/docs/classes/five.WorkResolvedObserver.html +27 -2
  83. package/docs/classes/gltf-loader.DDSLoader.html +1 -1
  84. package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
  85. package/docs/classes/gltf-loader.GLTFLoader.html +1 -1
  86. package/docs/classes/gltf-loader.GLTFObject.html +1 -1
  87. package/docs/classes/gltf-loader.GLTFParser.html +1 -1
  88. package/docs/classes/gltf-loader.THREEGLTFLoader.html +1 -1
  89. package/docs/classes/line.Line.html +1 -1
  90. package/docs/classes/line.LineGeometry.html +1 -1
  91. package/docs/classes/line.LineMaterial.html +1 -1
  92. package/docs/classes/line.LineSegmentsGeometry.html +1 -1
  93. package/docs/classes/line.THREE_Line2.html +1 -1
  94. package/docs/classes/line.THREE_LineSegments2.html +1 -1
  95. package/docs/classes/plugins.BasePlugin.Controller.html +1 -1
  96. package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
  97. package/docs/classes/sticker.Sticker.html +1 -1
  98. package/docs/classes/vfx.Airflow.html +1 -1
  99. package/docs/classes/vfx.Flame.html +1 -1
  100. package/docs/classes/vfx.Particle.html +1 -1
  101. package/docs/classes/vfx.ParticleGPU.html +1 -1
  102. package/docs/classes/vfx.SpotLight.html +1 -1
  103. package/docs/documents/README.html +11 -2
  104. package/docs/documents/ai-doc-guidelines.html +60 -15
  105. package/docs/documents/api.html +40 -15
  106. package/docs/documents/features_3dtile.html +142 -45
  107. package/docs/documents/features_camera-animation.html +62 -5
  108. package/docs/documents/features_clipper.html +3 -0
  109. package/docs/documents/{features_coordnate-system.html → features_coordinate-system.html} +4 -1
  110. package/docs/documents/features_event.html +3 -0
  111. package/docs/documents/features_five.html +4 -0
  112. package/docs/documents/features_flowing-light-2d-pass.html +356 -0
  113. package/docs/documents/features_flowing-light-3d-pass.html +351 -0
  114. package/docs/documents/features_gaussian-blur-pass.html +182 -0
  115. package/docs/documents/features_gesture.html +4 -0
  116. package/docs/documents/features_get-screen-pixels.html +3 -0
  117. package/docs/documents/features_image-options.html +3 -0
  118. package/docs/documents/features_load-external-model.html +25 -2
  119. package/docs/documents/features_load-progress.html +110 -0
  120. package/docs/documents/features_material.html +341 -0
  121. package/docs/documents/features_mode.html +5 -0
  122. package/docs/documents/features_model.html +5 -1
  123. package/docs/documents/features_move-pano-effect.html +3 -0
  124. package/docs/documents/features_multi-work.html +3 -0
  125. package/docs/documents/features_pano-filter.html +122 -0
  126. package/docs/documents/features_pano-tile.html +34 -19
  127. package/docs/documents/features_pano-uv.html +82 -0
  128. package/docs/documents/features_parameter.html +76 -56
  129. package/docs/documents/features_plugin.html +105 -0
  130. package/docs/documents/features_postprocessing.html +22 -5
  131. package/docs/documents/features_raycast.html +4 -1
  132. package/docs/documents/features_request-proxy.html +3 -0
  133. package/docs/documents/features_screen-project.html +3 -0
  134. package/docs/documents/features_state.html +3 -0
  135. package/docs/documents/features_view-layer.html +158 -0
  136. package/docs/documents/features_work.html +63 -2
  137. package/docs/documents/glossary.html +31 -6
  138. package/docs/documents/intro.html +1 -1
  139. package/docs/documents/quick-start.html +1 -0
  140. package/docs/documents/release_notes_6.8.html +189 -0
  141. package/docs/documents/template.html +45 -4
  142. package/docs/functions/five.loadAt3d.html +1 -1
  143. package/docs/functions/five.loadB3dm.html +1 -1
  144. package/docs/functions/five.loadDome.html +1 -1
  145. package/docs/functions/five.loadDomez.html +1 -1
  146. package/docs/functions/five.loadFbx.html +1 -1
  147. package/docs/functions/five.loadGltf.html +1 -1
  148. package/docs/functions/five.loadPbm.html +1 -1
  149. package/docs/functions/five.loadPly.html +1 -1
  150. package/docs/functions/five.loadPnts.html +1 -1
  151. package/docs/functions/five.loadSplat.html +1 -1
  152. package/docs/functions/five.loadSpz.html +1 -1
  153. package/docs/functions/five.loadX3p.html +1 -1
  154. package/docs/functions/five.parseWork.html +1 -1
  155. package/docs/functions/vue.useFiveWorks.html +2 -2
  156. package/docs/hierarchy.html +1 -1
  157. package/docs/index.html +11 -2
  158. package/docs/interfaces/five.AddableObject.html +1 -1
  159. package/docs/interfaces/five.AjaxOptions.html +1 -1
  160. package/docs/interfaces/five.BaseEvent.html +2 -2
  161. package/docs/interfaces/five.EventCallback.html +53 -47
  162. package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +9 -9
  163. package/docs/interfaces/five.GestureEvent.html +2 -2
  164. package/docs/interfaces/five.ImageOptions.html +1 -1
  165. package/docs/interfaces/five.IntersectEvent.html +2 -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 +4 -3
  169. package/docs/interfaces/five.LooseWorkWithExtrinsics.html +6 -6
  170. package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +9 -9
  171. package/docs/interfaces/five.ModeChangeEvent.html +2 -2
  172. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
  173. package/docs/interfaces/five.ModelEvent.html +2 -2
  174. package/docs/interfaces/five.ModelSceneEvent.html +2 -2
  175. package/docs/interfaces/five.ModelTileEvent.html +8 -0
  176. package/docs/interfaces/five.MovePanoOptions.html +7 -7
  177. package/docs/interfaces/five.NetworkAbortError.html +1 -1
  178. package/docs/interfaces/five.NetworkFirbiddenError.html +1 -1
  179. package/docs/interfaces/five.NetworkOptions.html +1 -1
  180. package/docs/interfaces/five.NetworkProxyError.html +1 -1
  181. package/docs/interfaces/five.NetworkResourceEvent.html +2 -2
  182. package/docs/interfaces/five.NetworkResponseError.html +1 -1
  183. package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
  184. package/docs/interfaces/five.ObjectEvent.html +2 -2
  185. package/docs/interfaces/five.PBMClipperParameter.html +2 -2
  186. package/docs/interfaces/five.PBMCustomShaderInitArgs.html +2 -2
  187. package/docs/interfaces/five.PBMCustomShaderSlots.html +2 -2
  188. package/docs/interfaces/five.PBMMaterial.html +1 -1
  189. package/docs/interfaces/five.PBMMeshMaterialParameters.html +5 -3
  190. package/docs/interfaces/five.PBMPanoDepth.html +5 -5
  191. package/docs/interfaces/five.PBMPanoFilterValue.html +6 -0
  192. package/docs/interfaces/five.PBMPanoPicture.html +8 -6
  193. package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +2 -3
  194. package/docs/interfaces/five.PBMRefinedScreen.html +2 -2
  195. package/docs/interfaces/five.PanoCircleMeshInterface.html +1 -1
  196. package/docs/interfaces/five.PanoEvent.html +2 -2
  197. package/docs/interfaces/five.PanoTextureEvent.html +2 -2
  198. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
  199. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
  200. package/docs/interfaces/five.ParameterMaterialValue.html +42 -38
  201. package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
  202. package/docs/interfaces/five.ParameterValue.html +56 -52
  203. package/docs/interfaces/five.Pose.html +1 -1
  204. package/docs/interfaces/five.RenderEvent.html +2 -2
  205. package/docs/interfaces/five.ResolvedParameterValue.html +56 -52
  206. package/docs/interfaces/five.RgbaData.html +7 -0
  207. package/docs/interfaces/five.SplatData.html +2 -2
  208. package/docs/interfaces/five.State.html +1 -1
  209. package/docs/interfaces/five.StateEvent.html +2 -2
  210. package/docs/interfaces/five.TextureOptions.html +1 -1
  211. package/docs/interfaces/five.Tile3DOptions.html +2 -2
  212. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -7
  213. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
  214. package/docs/interfaces/five.ViewLayer.html +30 -26
  215. package/docs/interfaces/five.WorkCubeImage.html +1 -1
  216. package/docs/interfaces/five.WorkImage.html +1 -1
  217. package/docs/interfaces/five.WorkModel.html +8 -8
  218. package/docs/interfaces/five.WorkModelLayer.html +6 -6
  219. package/docs/interfaces/five.WorkObserver.html +27 -2
  220. package/docs/interfaces/five.WorkTile.html +1 -1
  221. package/docs/interfaces/five.WorksEvent.html +2 -2
  222. package/docs/interfaces/five.XRControllerEvent.html +2 -2
  223. package/docs/interfaces/five.XRGestureEvent.html +2 -2
  224. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
  225. package/docs/interfaces/five.XRSessionEvent.html +2 -2
  226. package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
  227. package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
  228. package/docs/interfaces/plugins.BasePlugin.State.html +1 -1
  229. package/docs/interfaces/plugins.DynamicPathLinePluginController.html +1 -1
  230. package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
  231. package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +1 -1
  232. package/docs/interfaces/plugins.ItemMaskController.html +1 -1
  233. package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
  234. package/docs/interfaces/plugins.ItemMaskPluginType.State.html +1 -1
  235. package/docs/interfaces/plugins.OrientationPluginController.html +1 -1
  236. package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
  237. package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
  238. package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
  239. package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
  240. package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
  241. package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
  242. package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
  243. package/docs/interfaces/plugins.TrajectoryController.html +1 -1
  244. package/docs/interfaces/react.FiveInjectionTypes.html +13 -13
  245. package/docs/modules/five.html +1 -1
  246. package/docs/modules.html +1 -1
  247. package/docs/types/five.ControllerEventTypes.html +27 -25
  248. package/docs/types/five.EasingFunction.html +1 -0
  249. package/docs/types/five.EventTypes.html +27 -25
  250. package/docs/types/five.FivePlugin.html +1 -1
  251. package/docs/types/five.FivePluginInit.html +1 -1
  252. package/docs/types/five.FivePluginInstance.html +1 -1
  253. package/docs/types/five.NetworkProgressCallback.html +1 -1
  254. package/docs/types/five.PBMAlphaMode.html +1 -1
  255. package/docs/types/five.PBMColorStyle.html +1 -1
  256. package/docs/types/five.PBMFloorStyle.html +1 -1
  257. package/docs/types/five.PBMMeshShaderType.html +1 -1
  258. package/docs/types/five.PBMPointBack.html +1 -1
  259. package/docs/types/five.PBMPointCloudShaderType.html +1 -1
  260. package/docs/types/five.PBMPointShape.html +1 -1
  261. package/docs/types/five.PBMPointSize.html +1 -1
  262. package/docs/types/five.PBMTransition.html +1 -1
  263. package/docs/types/five.ParseOptions.html +6 -6
  264. package/docs/types/plugins.BasePlugin.EventMap.html +1 -1
  265. package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
  266. package/five/application/analysis.d.ts +40 -0
  267. package/five/application/controllers.d.ts +41 -0
  268. package/five/application/events-legacy.d.ts +454 -0
  269. package/five/application/events.d.ts +69 -0
  270. package/five/application/five.d.ts +519 -0
  271. package/five/application/fiveInitArgs.d.ts +176 -0
  272. package/five/application/fiveLoadOptions.d.ts +21 -0
  273. package/five/application/generateDefaultVideoElement.d.ts +2 -0
  274. package/five/application/getViewportScale.d.ts +2 -0
  275. package/five/application/initLights.d.ts +3 -0
  276. package/five/application/mode.d.ts +28 -0
  277. package/five/application/renderPoweredByRealsee.d.ts +3 -0
  278. package/five/assets/cardboard-png-data-url.d.ts +2 -0
  279. package/five/assets/gradient-png-data-url.d.ts +2 -0
  280. package/five/assets/loading-png-data-url.d.ts +2 -0
  281. package/five/assets/phone-png-data-url.d.ts +2 -0
  282. package/five/assets/realsee-png-data-url.d.ts +2 -0
  283. package/five/bvh/bvhMath.d.ts +33 -0
  284. package/five/bvh/bvhMesh.d.ts +7 -0
  285. package/five/bvh/bvhNode.d.ts +29 -0
  286. package/five/bvh/bvhObject.d.ts +18 -0
  287. package/five/bvh/bvhPoints.d.ts +6 -0
  288. package/five/bvh/index.d.ts +10 -0
  289. package/five/bvh/worker.d.ts +35 -0
  290. package/five/cardboard/helper.d.ts +2 -0
  291. package/five/cardboard/index.d.ts +13 -0
  292. package/five/cardboard/sensor.d.ts +158 -0
  293. package/five/certificates/hardware.d.ts +1 -0
  294. package/five/controllers/base.d.ts +167 -0
  295. package/five/controllers/events.d.ts +71 -0
  296. package/five/controllers/floorplan.d.ts +119 -0
  297. package/five/controllers/mapview.d.ts +139 -0
  298. package/five/controllers/model.d.ts +57 -0
  299. package/five/controllers/panorama.d.ts +143 -0
  300. package/five/controllers/panoramaLike.d.ts +87 -0
  301. package/five/controllers/topview.d.ts +42 -0
  302. package/five/controllers/vrPanorama.d.ts +56 -0
  303. package/five/controllers/xrPanorama.d.ts +81 -0
  304. package/five/core/camera.d.ts +65 -0
  305. package/five/core/internalWebGLRenderer.d.ts +14 -0
  306. package/five/core/panoVideo.d.ts +18 -0
  307. package/five/core/scene.d.ts +10 -0
  308. package/five/core/tiling.d.ts +43 -0
  309. package/five/declare.d.ts +2 -1
  310. package/five/gaussian-splatting/util/renderData.d.ts +52 -0
  311. package/five/gaussian-splatting/wasm/data.d.ts +20 -0
  312. package/five/gaussian-splatting/wasm/sort.d.ts +18 -0
  313. package/five/gaussian-splatting/worker/dataWorker.d.ts +1 -0
  314. package/five/gaussian-splatting/worker/sortWorker.d.ts +1 -0
  315. package/five/index.d.ts +60 -4637
  316. package/five/index.js +193 -341
  317. package/five/index.mjs +26455 -31011
  318. package/five/meshes/boundingMesh.d.ts +12 -0
  319. package/five/meshes/intersectMesh.d.ts +8 -0
  320. package/five/meshes/panoCircleMesh.d.ts +35 -0
  321. package/five/meshes/panoCircleMeshCustom.d.ts +40 -0
  322. package/five/meshes/panoCircleMeshSolid.d.ts +34 -0
  323. package/five/meshes/panoSphereMesh.d.ts +27 -0
  324. package/five/model/helpers/coordinate-transform.d.ts +3 -0
  325. package/five/model/helpers/ellipsoid-coordinates.d.ts +14 -0
  326. package/five/model/helpers/get-edges-by-sphere.d.ts +8 -0
  327. package/five/model/helpers/get-recommend-tile3d-parameters.d.ts +8 -0
  328. package/five/model/index.d.ts +70 -0
  329. package/five/model/intersection.d.ts +18 -0
  330. package/five/model/loaders/at3d.d.ts +12 -0
  331. package/five/model/loaders/b3dm.d.ts +9 -0
  332. package/five/model/loaders/dome.d.ts +22 -0
  333. package/five/model/loaders/domez.d.ts +11 -0
  334. package/five/model/loaders/fbx.d.ts +8 -0
  335. package/five/model/loaders/glTF-helpers/extensions/CESIUM_RTC.d.ts +9 -0
  336. package/five/model/loaders/glTF-helpers/extensions/EXT_meshopt_compression.d.ts +8 -0
  337. package/five/model/loaders/glTF-helpers/extensions/EXT_texture_webp.d.ts +11 -0
  338. package/five/model/loaders/glTF-helpers/extensions/KHR_animation_pointer.d.ts +6 -0
  339. package/five/model/loaders/glTF-helpers/extensions/KHR_binary_glTF.d.ts +25 -0
  340. package/five/model/loaders/glTF-helpers/extensions/KHR_draco_mesh_compression.d.ts +11 -0
  341. package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +9 -0
  342. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_clearcoat.d.ts +10 -0
  343. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_emissive_strength.d.ts +10 -0
  344. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_sheen.d.ts +10 -0
  345. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_transmission.d.ts +10 -0
  346. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_unlit.d.ts +10 -0
  347. package/five/model/loaders/glTF-helpers/extensions/KHR_mesh_quantization.d.ts +6 -0
  348. package/five/model/loaders/glTF-helpers/extensions/KHR_node_visibility.d.ts +10 -0
  349. package/five/model/loaders/glTF-helpers/extensions/KHR_texture_basisu.d.ts +9 -0
  350. package/five/model/loaders/glTF-helpers/extensions/KHR_texture_transform.d.ts +10 -0
  351. package/five/model/loaders/glTF-helpers/extensions/REALSEE_materials_lightmap.d.ts +7 -0
  352. package/five/model/loaders/glTF-helpers/extensions/base.d.ts +24 -0
  353. package/five/model/loaders/glTF-helpers/glTF.d.ts +713 -0
  354. package/five/model/loaders/glTF-helpers/index.d.ts +47 -0
  355. package/five/model/loaders/glTF-helpers/parser.d.ts +114 -0
  356. package/five/model/loaders/glTF-helpers/type.d.ts +14 -0
  357. package/five/model/loaders/gltf.d.ts +10 -0
  358. package/five/model/loaders/obj.d.ts +9 -0
  359. package/five/model/loaders/pbm.d.ts +26 -0
  360. package/five/model/loaders/ply.d.ts +24 -0
  361. package/five/model/loaders/pnts.d.ts +8 -0
  362. package/five/model/loaders/protobuf/dome.d.ts +540 -0
  363. package/five/model/loaders/protobuf/pbm.d.ts +203 -0
  364. package/five/model/loaders/shared.d.ts +16 -0
  365. package/five/model/loaders/splat.d.ts +8 -0
  366. package/five/model/loaders/spz.d.ts +14 -0
  367. package/five/model/loaders/tile3d-helpers/feature-table.d.ts +15 -0
  368. package/five/model/loaders/tile3d-helpers/gl-type.d.ts +20 -0
  369. package/five/model/loaders/tile3d-helpers/parse-gltf-array-buffer.d.ts +2 -0
  370. package/five/model/loaders/tile3d-helpers/parse-header.d.ts +2 -0
  371. package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.d.ts +2 -0
  372. package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.worker.d.ts +6 -0
  373. package/five/model/loaders/tile3d-helpers/parse-table.d.ts +3 -0
  374. package/five/model/loaders/tile3d-helpers/tile3d-type.d.ts +35 -0
  375. package/five/model/loaders/x3p.d.ts +22 -0
  376. package/five/model/materials/pbmMaterial.d.ts +137 -0
  377. package/five/model/materials/pbmMeshMaterial.d.ts +126 -0
  378. package/five/model/materials/pbmPointCloudMaterial.d.ts +70 -0
  379. package/five/model/model-scene.d.ts +172 -0
  380. package/five/model/model.d.ts +209 -0
  381. package/five/model/objects/pbmContainer.d.ts +28 -0
  382. package/five/model/objects/pbmGaussianSplattingObject.d.ts +43 -0
  383. package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +55 -0
  384. package/five/model/objects/pbmGaussianSplattingTestMesh.d.ts +7 -0
  385. package/five/model/objects/pbmGroup.d.ts +8 -0
  386. package/five/model/objects/pbmMesh.d.ts +10 -0
  387. package/five/model/objects/pbmPointCloud.d.ts +7 -0
  388. package/five/model/parameter.d.ts +140 -0
  389. package/five/model/shaders/pbm_gaussian_splatting/fragment.d.ts +2 -0
  390. package/five/model/shaders/pbm_gaussian_splatting/vertex.d.ts +2 -0
  391. package/five/model/shaders/pbm_mesh_basic/fragment.d.ts +2 -0
  392. package/five/model/shaders/pbm_mesh_basic/vertex.d.ts +2 -0
  393. package/five/model/shaders/pbm_mesh_none/fragment.d.ts +2 -0
  394. package/five/model/shaders/pbm_mesh_none/vertex.d.ts +2 -0
  395. package/five/model/shaders/pbm_mesh_phong/fragment.d.ts +2 -0
  396. package/five/model/shaders/pbm_mesh_phong/vertex.d.ts +2 -0
  397. package/five/model/shaders/pbm_mesh_standard/fragment.d.ts +2 -0
  398. package/five/model/shaders/pbm_mesh_standard/vertex.d.ts +2 -0
  399. package/five/model/shaders/pbm_pointcloud/fragment.d.ts +2 -0
  400. package/five/model/shaders/pbm_pointcloud/vertex.d.ts +2 -0
  401. package/five/model/tile3d/header.d.ts +88 -0
  402. package/five/model/tile3d/index.d.ts +214 -0
  403. package/five/model/tile3d/tile-cache.d.ts +18 -0
  404. package/five/model/tile3d/tile-content.d.ts +10 -0
  405. package/five/model/tile3d/tile-node.d.ts +24 -0
  406. package/five/model/tile3d/tile-request-scheduler.d.ts +17 -0
  407. package/five/model/tile3d/tile.d.ts +79 -0
  408. package/five/model/tile3d/tileset-base-traverser.d.ts +59 -0
  409. package/five/model/tile3d/tileset-most-detail-traverser.d.ts +14 -0
  410. package/five/model/tile3d/tileset-normal-traverser.d.ts +15 -0
  411. package/five/model/tile3d/tileset-skip-traverser.d.ts +60 -0
  412. package/five/model/tile3d/tileset.d.ts +69 -0
  413. package/five/model/tile3d/trajectory-content.d.ts +9 -0
  414. package/five/model/tile3d/trajectory-node.d.ts +15 -0
  415. package/five/model/tile3d/trajectory.d.ts +30 -0
  416. package/five/model/tile3d/types.d.ts +33 -0
  417. package/five/model/view-layer.d.ts +20 -0
  418. package/five/renderer/five-renderer.d.ts +17 -0
  419. package/five/renderer/index.d.ts +3 -0
  420. package/five/renderer/postprocessing/composer.d.ts +37 -0
  421. package/five/renderer/postprocessing/index.d.ts +7 -0
  422. package/five/renderer/postprocessing/passes/adaptive-luminance-pass.d.ts +17 -0
  423. package/five/renderer/postprocessing/passes/eye-dome-lighting-pass.d.ts +14 -0
  424. package/five/renderer/postprocessing/passes/flowing-light-2d-pass.d.ts +36 -0
  425. package/five/renderer/postprocessing/passes/flowing-light-3d-pass.d.ts +36 -0
  426. package/five/renderer/postprocessing/passes/gaussian-blur-pass.d.ts +12 -0
  427. package/five/renderer/postprocessing/passes/pass.d.ts +38 -0
  428. package/five/renderer/scene-renderers/point-cloud-high-quality-scene-renderer.d.ts +11 -0
  429. package/five/renderer/scene-renderers/scene-renderer.d.ts +9 -0
  430. package/five/renderer/scene-renderers/ssaa-scene-renderer.d.ts +15 -0
  431. package/five/renderer/tools/full-screen-quad.d.ts +15 -0
  432. package/five/renderer/tools/render-cube-to-equirectangular.d.ts +7 -0
  433. package/five/renderer/tools/render-full-screen-depth.d.ts +2 -0
  434. package/five/renderer/tools/render-full-screen.d.ts +2 -0
  435. package/five/texture/histogram.d.ts +54 -0
  436. package/five/texture/imageBitmap.d.ts +13 -0
  437. package/five/texture/initTexture.d.ts +3 -0
  438. package/five/texture/loader.d.ts +39 -0
  439. package/five/texture/textureData.d.ts +11 -0
  440. package/five/thirdparty/fflate.d.ts +1407 -0
  441. package/five/thirdparty/hammer.d.ts +375 -0
  442. package/five/thirdparty/jsrsasign.d.ts +753 -0
  443. package/five/thirdparty/meshopt_decoder.d.ts +15 -0
  444. package/five/three-version-check.d.ts +1 -0
  445. package/five/types/addableObject.d.ts +12 -0
  446. package/five/types/cube.d.ts +1 -0
  447. package/five/types/gestureInput.d.ts +24 -0
  448. package/five/types/imageOptions.d.ts +20 -0
  449. package/five/types/intersectMeshInterface.d.ts +8 -0
  450. package/five/types/movePanoEffect.d.ts +13 -0
  451. package/five/types/movePanoOptions.d.ts +36 -0
  452. package/five/types/panoCircleMeshInterface.d.ts +34 -0
  453. package/five/types/plugin.d.ts +25 -0
  454. package/five/types/pose.d.ts +17 -0
  455. package/five/types/state.d.ts +20 -0
  456. package/five/types/viewport.d.ts +22 -0
  457. package/five/utils/ajax.d.ts +66 -0
  458. package/five/utils/animationFrameLoop.d.ts +45 -0
  459. package/five/utils/array.d.ts +31 -0
  460. package/five/utils/asyncTaskQueue.d.ts +8 -0
  461. package/five/utils/bufferGeometry.d.ts +33 -0
  462. package/five/utils/calculateProgress.d.ts +39 -0
  463. package/five/utils/calculateThreeMouse.d.ts +13 -0
  464. package/five/utils/canplayVideo.d.ts +2 -0
  465. package/five/utils/clamp.d.ts +2 -0
  466. package/five/utils/clock.d.ts +17 -0
  467. package/five/utils/createSymbol.d.ts +5 -0
  468. package/five/utils/decodeText.d.ts +2 -0
  469. package/five/utils/deepEqual.d.ts +2 -0
  470. package/five/utils/deepFreeze.d.ts +2 -0
  471. package/five/utils/defineProperty.d.ts +9 -0
  472. package/five/utils/detector.d.ts +14 -0
  473. package/five/utils/distance.d.ts +10 -0
  474. package/five/utils/draco.d.ts +26 -0
  475. package/five/utils/easing.d.ts +63 -0
  476. package/five/utils/event.d.ts +159 -0
  477. package/five/utils/formatRad.d.ts +7 -0
  478. package/five/utils/imageSupport.d.ts +6 -0
  479. package/five/utils/imageURL.d.ts +42 -0
  480. package/five/utils/isEmptyObject.d.ts +2 -0
  481. package/five/utils/isNil.d.ts +6 -0
  482. package/five/utils/isNumber.d.ts +2 -0
  483. package/five/utils/isPowerOfTwo.d.ts +2 -0
  484. package/five/utils/isPromise.d.ts +2 -0
  485. package/five/utils/isSimilar.d.ts +6 -0
  486. package/five/utils/json.d.ts +7 -0
  487. package/five/utils/ktx2.d.ts +30 -0
  488. package/five/utils/lzma/index.d.ts +2 -0
  489. package/five/utils/lzma/lzma.d.ts +3 -0
  490. package/five/utils/lzma/lzmaWASM.d.ts +2 -0
  491. package/five/utils/lzma/lzmaWorker.d.ts +14 -0
  492. package/five/utils/memoryUsage.d.ts +29 -0
  493. package/five/utils/motion.d.ts +38 -0
  494. package/five/utils/noop.d.ts +6 -0
  495. package/five/utils/now.d.ts +7 -0
  496. package/five/utils/pano.d.ts +9 -0
  497. package/five/utils/pick.d.ts +3 -0
  498. package/five/utils/poseUtils.d.ts +5 -0
  499. package/five/utils/renderCubeTextureToCubeRenderTarget.d.ts +3 -0
  500. package/five/utils/renderDepth.d.ts +2 -0
  501. package/five/utils/renderTexturesToCubeRenderTarget.d.ts +10 -0
  502. package/five/utils/requestPermission.d.ts +3 -0
  503. package/five/utils/shaderContentFix.d.ts +7 -0
  504. package/five/utils/shaderMaterial.d.ts +20 -0
  505. package/five/utils/stateUtils.d.ts +5 -0
  506. package/five/utils/string-pattern.d.ts +8 -0
  507. package/five/utils/subscribe.d.ts +67 -0
  508. package/five/utils/tileCube.d.ts +19 -0
  509. package/five/utils/toFastProperties.d.ts +1 -0
  510. package/five/utils/typedCache.d.ts +10 -0
  511. package/five/utils/uniform.d.ts +15 -0
  512. package/five/utils/url.d.ts +35 -0
  513. package/five/utils/uuid.d.ts +5 -0
  514. package/five/utils/values.d.ts +2 -0
  515. package/five/utils/vectorCoordinates.d.ts +29 -0
  516. package/five/utils/volume.d.ts +111 -0
  517. package/five/utils/webglError.d.ts +7 -0
  518. package/five/utils/worker.d.ts +26 -0
  519. package/five/webxr/XRControllerModelFactory.d.ts +28 -0
  520. package/five/webxr/motionHelper.d.ts +68 -0
  521. package/five/webxr/xrButton.d.ts +4 -0
  522. package/five/webxr/xrController.d.ts +24 -0
  523. package/five/webxr/xrManager.d.ts +84 -0
  524. package/five/work/_ALLOW_HOST.d.ts +2 -0
  525. package/five/work/index.d.ts +6 -0
  526. package/five/work/keychain.d.ts +5 -0
  527. package/five/work/looseWorkType.d.ts +121 -0
  528. package/five/work/verify.d.ts +7 -0
  529. package/five/work/work.d.ts +236 -0
  530. package/five/work/workFetcher.d.ts +4 -0
  531. package/five/work/workJson.d.ts +3 -0
  532. package/five/work/workJsonType.d.ts +73 -0
  533. package/five/work/workObserverUtils.d.ts +36 -0
  534. package/five/work/workParser.d.ts +6 -0
  535. package/five/work/workResolvedObserver.d.ts +12 -0
  536. package/five/work/workVerify.d.ts +2 -0
  537. package/five/work/works.d.ts +10 -0
  538. package/gltf-loader/gltf-object.d.ts +17 -0
  539. package/gltf-loader/index.d.ts +60 -160
  540. package/gltf-loader/index.js +9 -9
  541. package/gltf-loader/index.mjs +1351 -1451
  542. package/gltf-loader/thirdparty/DDSLoader.d.ts +23 -0
  543. package/gltf-loader/thirdparty/DRACOLoader.d.ts +18 -0
  544. package/gltf-loader/thirdparty/GLTFLoader.d.ts +59 -0
  545. package/line/circle_png.d.ts +1 -0
  546. package/line/index.d.ts +19 -69
  547. package/line/index.js +4 -4
  548. package/line/index.mjs +334 -513
  549. package/line/utils/Line2.d.ts +7 -0
  550. package/line/utils/LineGeometry.d.ts +10 -0
  551. package/line/utils/LineMaterial.d.ts +20 -0
  552. package/line/utils/LineSegments2.d.ts +11 -0
  553. package/line/utils/LineSegmentsGeometry.d.ts +15 -0
  554. package/llms.txt +43 -31
  555. package/package.json +11 -2
  556. package/plugins/BackgroundPlugin/Controller.d.ts +20 -0
  557. package/plugins/BackgroundPlugin/index.d.ts +5 -0
  558. package/plugins/BackgroundPlugin/typings.d.ts +44 -0
  559. package/plugins/BasePlugin/index.d.ts +119 -0
  560. package/plugins/DynamicPathLinePlugin/Controller.d.ts +167 -0
  561. package/plugins/DynamicPathLinePlugin/index.d.ts +5 -0
  562. package/plugins/DynamicPathLinePlugin/line2/Line2.d.ts +7 -0
  563. package/plugins/DynamicPathLinePlugin/line2/LineGeometry.d.ts +10 -0
  564. package/plugins/DynamicPathLinePlugin/line2/LineMaterial.d.ts +17 -0
  565. package/plugins/DynamicPathLinePlugin/line2/LineSegments2.d.ts +11 -0
  566. package/plugins/DynamicPathLinePlugin/line2/LineSegmentsGeometry.d.ts +15 -0
  567. package/plugins/DynamicPathLinePlugin/typing.d.ts +129 -0
  568. package/plugins/DynamicPathLinePlugin/typings.d.ts +72 -0
  569. package/plugins/ItemMaskPlugin/Controller.d.ts +48 -0
  570. package/plugins/ItemMaskPlugin/index.d.ts +5 -0
  571. package/plugins/ItemMaskPlugin/typing.d.ts +58 -0
  572. package/plugins/OrientationPlugin/Controller.d.ts +82 -0
  573. package/plugins/OrientationPlugin/RoundedBoxGeometry.d.ts +11 -0
  574. package/plugins/OrientationPlugin/index.d.ts +6 -0
  575. package/plugins/OrientationPlugin/typing.d.ts +25 -0
  576. package/plugins/PanoAnimePlugin/Controller.d.ts +46 -0
  577. package/plugins/PanoAnimePlugin/index.d.ts +5 -0
  578. package/plugins/PanoAnimePlugin/typing.d.ts +37 -0
  579. package/plugins/PluginTemplate/Controller.d.ts +27 -0
  580. package/plugins/PluginTemplate/index.d.ts +5 -0
  581. package/plugins/PluginTemplate/typing.d.ts +21 -0
  582. package/plugins/TrajectoryPlugin/Controller.d.ts +85 -0
  583. package/plugins/TrajectoryPlugin/index.d.ts +6 -0
  584. package/plugins/TrajectoryPlugin/typing.d.ts +25 -0
  585. package/plugins/index.d.ts +9 -1102
  586. package/plugins/index.js +17 -21
  587. package/plugins/index.mjs +3342 -4245
  588. package/plugins/thirdParty/CSS3DRenderer.d.ts +32 -0
  589. package/plugins/thirdParty/OrbitControls.d.ts +78 -0
  590. package/plugins/utils/absoluteUrl.d.ts +5 -0
  591. package/plugins/utils/clamp.d.ts +2 -0
  592. package/plugins/utils/loadImage.d.ts +1 -0
  593. package/plugins/utils/motion.d.ts +38 -0
  594. package/plugins/utils/now.d.ts +6 -0
  595. package/plugins/utils/uuid.d.ts +5 -0
  596. package/react/canvas.d.ts +19 -0
  597. package/react/context.d.ts +11 -0
  598. package/react/createProvider.d.ts +95 -0
  599. package/react/createStore.d.ts +144 -0
  600. package/react/hooks/unsafe__useFiveInstance.d.ts +9 -0
  601. package/react/hooks/useFiveAction.d.ts +147 -0
  602. package/react/hooks/useFiveCameraDirection.d.ts +7 -0
  603. package/react/hooks/useFiveCameraRaycaster.d.ts +7 -0
  604. package/react/hooks/useFiveCurrentObserver.d.ts +11 -0
  605. package/react/hooks/useFiveCurrentState.d.ts +15 -0
  606. package/react/hooks/useFiveEventCallback.d.ts +12 -0
  607. package/react/hooks/useFiveFloor.d.ts +15 -0
  608. package/react/hooks/useFiveHelper.d.ts +14 -0
  609. package/react/hooks/useFiveModelBounding.d.ts +5 -0
  610. package/react/hooks/useFiveModelEffect.d.ts +14 -0
  611. package/react/hooks/useFiveModelIntersectRaycaster.d.ts +22 -0
  612. package/react/hooks/useFiveModelReadyState.d.ts +8 -0
  613. package/react/hooks/useFiveProject2d.d.ts +20 -0
  614. package/react/hooks/useFiveSceneEffect.d.ts +21 -0
  615. package/react/hooks/useFiveState.d.ts +6 -0
  616. package/react/hooks/useFiveWork.d.ts +29 -0
  617. package/react/index.d.ts +24 -830
  618. package/react/index.js +3 -3
  619. package/react/index.mjs +572 -783
  620. package/react/rendererPool.d.ts +7 -0
  621. package/react/withFive.d.ts +213 -0
  622. package/shader-lib/EvenessPlane/index.d.ts +10 -0
  623. package/shader-lib/PointCloudExpand/index.d.ts +59 -0
  624. package/shader-lib/PolygonCuter/index.d.ts +52 -0
  625. package/shader-lib/PolygonCuter/worker.d.ts +14 -0
  626. package/shader-lib/ShineModel/index.d.ts +7 -0
  627. package/shader-lib/SweepModel/index.d.ts +7 -0
  628. package/shader-lib/index.d.ts +5 -86
  629. package/shader-lib/index.js +13 -14
  630. package/shader-lib/index.mjs +424 -824
  631. package/sticker/geometry.d.ts +3 -0
  632. package/sticker/index.d.ts +68 -71
  633. package/sticker/index.js +3 -3
  634. package/sticker/index.mjs +102 -142
  635. package/umd/five-gltf-loader.js +9 -9
  636. package/umd/five-line.js +4 -4
  637. package/umd/five-plugins.js +17 -21
  638. package/umd/five-react.js +3 -3
  639. package/umd/five-shader-lib.js +13 -14
  640. package/umd/five-sticker.js +3 -3
  641. package/umd/five-vfx.js +21 -21
  642. package/umd/five-vue.js +3 -3
  643. package/umd/five.js +188 -336
  644. package/vfx/airflow/airflow.d.ts +18 -0
  645. package/vfx/airflow/fragment-shader.d.ts +2 -0
  646. package/vfx/airflow/vertex-shader.d.ts +2 -0
  647. package/vfx/common/scale-shader.d.ts +2 -0
  648. package/vfx/common/simplex-noise-shader.d.ts +2 -0
  649. package/vfx/frame/fragment-shader.d.ts +2 -0
  650. package/vfx/frame/frame.d.ts +22 -0
  651. package/vfx/frame/vertex-shader.d.ts +2 -0
  652. package/vfx/index.d.ts +7 -363
  653. package/vfx/index.js +21 -21
  654. package/vfx/index.mjs +454 -910
  655. package/vfx/particle/fragment-shader.d.ts +2 -0
  656. package/vfx/particle/instance.d.ts +36 -0
  657. package/vfx/particle/particle.d.ts +205 -0
  658. package/vfx/particle/utils.d.ts +11 -0
  659. package/vfx/particle/vertex-shader.d.ts +2 -0
  660. package/vfx/particle-gpu/fragment-shader.d.ts +2 -0
  661. package/vfx/particle-gpu/instance.d.ts +36 -0
  662. package/vfx/particle-gpu/particle.d.ts +95 -0
  663. package/vfx/particle-gpu/utils.d.ts +11 -0
  664. package/vfx/particle-gpu/vertex-shader.d.ts +2 -0
  665. package/vfx/spotLight/fragment-shader.d.ts +2 -0
  666. package/vfx/spotLight/spotLight.d.ts +15 -0
  667. package/vfx/spotLight/vertex-shader.d.ts +2 -0
  668. package/vue/context.d.ts +7 -0
  669. package/vue/hooks/FiveCanvas.d.ts +36 -0
  670. package/vue/hooks/FiveProvider.d.ts +35 -0
  671. package/vue/hooks/unsafe__useFiveInject.d.ts +9 -0
  672. package/vue/hooks/useFiveAction.d.ts +178 -0
  673. package/vue/hooks/useFiveCameraDirection.d.ts +8 -0
  674. package/vue/hooks/useFiveCameraRaycaster.d.ts +8 -0
  675. package/vue/hooks/useFiveCurrentObserver.d.ts +12 -0
  676. package/vue/hooks/useFiveCurrentState.d.ts +16 -0
  677. package/vue/hooks/useFiveEventCallback.d.ts +11 -0
  678. package/vue/hooks/useFiveFloor.d.ts +16 -0
  679. package/vue/hooks/useFiveHelper.d.ts +15 -0
  680. package/vue/hooks/useFiveModel.d.ts +7 -0
  681. package/vue/hooks/useFiveModelBounding.d.ts +7 -0
  682. package/vue/hooks/useFiveModelIntersectRaycaster.d.ts +23 -0
  683. package/vue/hooks/useFiveModelReadyState.d.ts +9 -0
  684. package/vue/hooks/useFiveProject2d.d.ts +26 -0
  685. package/vue/hooks/useFiveScene.d.ts +6 -0
  686. package/vue/hooks/useFiveState.d.ts +16 -0
  687. package/vue/hooks/useFiveWork.d.ts +30 -0
  688. package/vue/index.d.ts +23 -467
  689. package/vue/index.js +3 -3
  690. package/vue/index.mjs +309 -301
  691. package/vue/rendererPool.d.ts +10 -0
  692. package/work-downloader/components/model-3d-tile.d.ts +2 -0
  693. package/work-downloader/components/model.d.ts +3 -0
  694. package/work-downloader/components/observer.d.ts +7 -0
  695. package/work-downloader/download.d.ts +16 -0
  696. package/work-downloader/index.d.ts +2 -33
  697. package/work-downloader/index.js +3 -3
  698. package/work-downloader/index.mjs +317 -556
  699. package/work-downloader/type.d.ts +28 -0
  700. package/work-downloader/utils/download-to-file.d.ts +1 -0
  701. package/work-downloader/utils/image-processing.d.ts +7 -0
  702. package/work-downloader/utils/join-url.d.ts +2 -0
  703. package/work-downloader/utils/log.d.ts +1 -0
  704. package/work-downloader/utils/relative-url.d.ts +1 -0
  705. package/docs/documents/five.FivePlugin.plugin.html +0 -60
  706. package/docs/documents/plugin.html +0 -60
  707. package/docs/media/five.ts +0 -2881
  708. package/docs/media/pass.ts +0 -64
  709. package/guides/ai-doc-guidelines.md +0 -72
  710. package/guides/features/3dtile.md +0 -264
  711. package/guides/features/parameter.md +0 -178
  712. package/guides/plugin.md +0 -206
  713. /package/{guides → ai_guides}/release_notes/6.6.md +0 -0
  714. /package/{guides → ai_guides}/release_notes/6.7.md +0 -0
  715. /package/{guides → ai_guides}/support.md +0 -0
package/react/index.d.ts CHANGED
@@ -1,830 +1,24 @@
1
- import { EventCallback } from '@realsee/five';
2
- import { EventTypes } from '@realsee/five';
3
- import { Five } from '@realsee/five';
4
- import { FiveInitArgs } from '@realsee/five';
5
- import { FiveLoadOptions } from '@realsee/five';
6
- import { Intersection } from '@realsee/five';
7
- import { Model } from '@realsee/five';
8
- import { Pano } from '@realsee/five';
9
- import { PanoId } from '@realsee/five';
10
- import { Pose } from '@realsee/five';
11
- import * as React_2 from 'react';
12
- import { Scene } from '@realsee/five';
13
- import { State } from '@realsee/five';
14
- import { Subscribe } from '@realsee/five';
15
- import * as THREE_2 from 'three';
16
- import { Vector2 } from 'three';
17
- import { Work } from '@realsee/five';
18
- import { WorkObserver } from '@realsee/five';
19
- import { Works } from '@realsee/five';
20
-
21
- export declare function createFiveFeature<T extends FiveInjectionFeature>(...features: T[]): T[];
22
-
23
- /**
24
- * 创建一个 FiveProvider
25
- * 在 React 的体系下,使用 Provider 的方式来组织组件结构。
26
- * 在 FiveProvider 下,可以使用 FiveCanvas 来创建渲染画布。
27
- * 以及使用 useFiveState useFiveEvent等 Five React Hooks API 来对 FiveProvider 进行操作
28
- * @param fiveInitArgs - Five 初始化参数
29
- * @returns FiveProvider React 组件
30
- * @example
31
- * ```
32
- * const FiveProvider = createFiveProvider({...fiveInitArgs});
33
- * const App: React.FC = () => {
34
- * return <FiveProvider initialWork={work}>
35
- * <FiveCanvas width={512} height={512} />
36
- * </FiveProvider>
37
- * };
38
- * ReactDOM.render(<App/>, document.getElementById("app"));
39
- * ```
40
- */
41
- export declare function createFiveProvider(fiveInitArgs?: Omit<FiveInitArgs, "renderer" | "scissor">): {
42
- new (props: FiveProviderPropTypes): {
43
- /**
44
- * five 实例,可以通过 FiveProvider 的 ref.five 获取得到
45
- * 在一些外部调用方面可以尝试使用
46
- */
47
- five: Five;
48
- __fiveEventDisposers: (() => void)[];
49
- __fiveDisposeTimer: any;
50
- loadWork(works: Work | Work[], state?: "inherit" | "initial" | Partial<Omit<State, "offset">>, options?: number | FiveLoadOptions, userAction?: boolean): Promise<void>;
51
- shouldComponentUpdate(nextProps: FiveProviderPropTypes): boolean;
52
- componentDidMount(): void;
53
- componentWillUnmount(): void;
54
- render(): React_2.FunctionComponentElement<React_2.ProviderProps<{
55
- renderer?: THREE_2.WebGLRenderer;
56
- five: Five;
57
- loadWork: (works: Work | Work[], state?: "inherit" | "initial" | Partial<Omit<State, "offset">>, options?: number | FiveLoadOptions, userAction?: boolean) => Promise<void>;
58
- }>>;
59
- context: any;
60
- setState<K extends "renderer">(state: {
61
- renderer?: THREE_2.WebGLRenderer;
62
- } | ((prevState: Readonly<{
63
- renderer?: THREE_2.WebGLRenderer;
64
- }>, props: Readonly<FiveProviderPropTypes>) => {
65
- renderer?: THREE_2.WebGLRenderer;
66
- } | Pick<{
67
- renderer?: THREE_2.WebGLRenderer;
68
- }, K>) | Pick<{
69
- renderer?: THREE_2.WebGLRenderer;
70
- }, K>, callback?: () => void): void;
71
- forceUpdate(callback?: () => void): void;
72
- readonly props: Readonly<FiveProviderPropTypes> & Readonly<{
73
- children?: React_2.ReactNode | undefined;
74
- }>;
75
- state: Readonly<{
76
- renderer?: THREE_2.WebGLRenderer;
77
- }>;
78
- refs: {
79
- [key: string]: React_2.ReactInstance;
80
- };
81
- componentDidCatch?(error: Error, errorInfo: React_2.ErrorInfo): void;
82
- getSnapshotBeforeUpdate?(prevProps: Readonly<FiveProviderPropTypes>, prevState: Readonly<{
83
- renderer?: THREE_2.WebGLRenderer;
84
- }>): any;
85
- componentDidUpdate?(prevProps: Readonly<FiveProviderPropTypes>, prevState: Readonly<{
86
- renderer?: THREE_2.WebGLRenderer;
87
- }>, snapshot?: any): void;
88
- componentWillMount?(): void;
89
- UNSAFE_componentWillMount?(): void;
90
- componentWillReceiveProps?(nextProps: Readonly<FiveProviderPropTypes>, nextContext: any): void;
91
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<FiveProviderPropTypes>, nextContext: any): void;
92
- componentWillUpdate?(nextProps: Readonly<FiveProviderPropTypes>, nextState: Readonly<{
93
- renderer?: THREE_2.WebGLRenderer;
94
- }>, nextContext: any): void;
95
- UNSAFE_componentWillUpdate?(nextProps: Readonly<FiveProviderPropTypes>, nextState: Readonly<{
96
- renderer?: THREE_2.WebGLRenderer;
97
- }>, nextContext: any): void;
98
- };
99
- contextType?: React_2.Context<any> | undefined;
100
- };
101
-
102
- export declare function createStore<T extends StoreValueMapType, A extends StoreActionMapType = {}>(actionHandler: StoreActionMapHanlder<T, keyof T, A>): {
103
- /**
104
- * 使用 Store
105
- * @param names - 获取的 Store 字段
106
- * @returns [值, 修改值方法]
107
- */
108
- useStore<K extends keyof T>(names: K[]): [values: Pick<T, K>, setValues: (values: Pick<T, K>) => void];
109
- /**
110
- * 使用 Store (仅设置值)
111
- * @param names - 获取的 Store 字段
112
- * @returns 修改值方法
113
- */
114
- useStoreSetter<K extends keyof T>(names: K[]): (values: Pick<T, K>) => void;
115
- /**
116
- * 监听 Store 变化
117
- * @param names - Store 字段
118
- * @param callback - 监听变化的回调函数
119
- * @param deps - 依赖对象
120
- */
121
- watchStore<K extends keyof T>(names: K[], callback: (values: Pick<T, K>, prevValues: Pick<T, K>) => void, deps?: React_2.DependencyList | undefined): void;
122
- useStoreAction<N extends keyof A, F extends A[N]>(actionName: N): F;
123
- /**
124
- * Store Provider.
125
- * 内部组件均可和 store 交互
126
- */
127
- StoreProvider: {
128
- new (props: {
129
- initialValue: T;
130
- onValuesChange?: (value: T, prevValue: T) => void;
131
- children: React_2.ReactNode;
132
- }): {
133
- store: Store<T>;
134
- shouldComponentUpdate(nextProps: {
135
- initialValue: T;
136
- onValuesChange?: (value: T, prevValue: T) => void;
137
- children: React_2.ReactNode;
138
- }): boolean;
139
- render(): React_2.FunctionComponentElement<React_2.ProviderProps<Store<T>>>;
140
- context: any;
141
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
142
- initialValue: T;
143
- onValuesChange?: (value: T, prevValue: T) => void;
144
- children: React_2.ReactNode;
145
- }>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
146
- forceUpdate(callback?: () => void): void;
147
- readonly props: Readonly<{
148
- initialValue: T;
149
- onValuesChange?: (value: T, prevValue: T) => void;
150
- children: React_2.ReactNode;
151
- }> & Readonly<{
152
- children?: React_2.ReactNode | undefined;
153
- }>;
154
- state: Readonly<{}>;
155
- refs: {
156
- [key: string]: React_2.ReactInstance;
157
- };
158
- componentDidMount?(): void;
159
- componentWillUnmount?(): void;
160
- componentDidCatch?(error: Error, errorInfo: React_2.ErrorInfo): void;
161
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
162
- initialValue: T;
163
- onValuesChange?: (value: T, prevValue: T) => void;
164
- children: React_2.ReactNode;
165
- }>, prevState: Readonly<{}>): any;
166
- componentDidUpdate?(prevProps: Readonly<{
167
- initialValue: T;
168
- onValuesChange?: (value: T, prevValue: T) => void;
169
- children: React_2.ReactNode;
170
- }>, prevState: Readonly<{}>, snapshot?: any): void;
171
- componentWillMount?(): void;
172
- UNSAFE_componentWillMount?(): void;
173
- componentWillReceiveProps?(nextProps: Readonly<{
174
- initialValue: T;
175
- onValuesChange?: (value: T, prevValue: T) => void;
176
- children: React_2.ReactNode;
177
- }>, nextContext: any): void;
178
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
179
- initialValue: T;
180
- onValuesChange?: (value: T, prevValue: T) => void;
181
- children: React_2.ReactNode;
182
- }>, nextContext: any): void;
183
- componentWillUpdate?(nextProps: Readonly<{
184
- initialValue: T;
185
- onValuesChange?: (value: T, prevValue: T) => void;
186
- children: React_2.ReactNode;
187
- }>, nextState: Readonly<{}>, nextContext: any): void;
188
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
189
- initialValue: T;
190
- onValuesChange?: (value: T, prevValue: T) => void;
191
- children: React_2.ReactNode;
192
- }>, nextState: Readonly<{}>, nextContext: any): void;
193
- };
194
- contextType?: React_2.Context<any> | undefined;
195
- };
196
- };
197
-
198
- /**
199
- * Five 命令集合
200
- */
201
- export declare interface FiveActionReactCallbacks {
202
- /**
203
- * 移动相机。(不触发点位移动)
204
- * @description
205
- * 如果动画中途被打断(用户触发行为,或者调用 setState, load, changeMode)的等
206
- * 会 Promise.reject。运动完成则 Promise.resolve
207
- * @param pose - 相机目标位置
208
- * @param duration - 动画触发的时常
209
- * @returns Promise 是否移动成功
210
- */
211
- updateCamera(pose: Pose, duration: number): Promise<void>;
212
- /**
213
- * 获取画面中的像素颜色
214
- * @param x - 获取像素区域的起始坐标 x
215
- * @param y - 获取像素区域的起始坐标 y
216
- * @param width - 获取像素区域的宽度
217
- * @param height - 获取像素区域的高度
218
- * @param pixelRatio - 获取区域的像素比
219
- * @param flipY - 是否Y轴翻转
220
- * @param buffer - 存储数组
221
- * @returns rgba颜色平铺的 Uint8Array
222
- */
223
- getPixels<T extends Uint8Array | Uint8ClampedArray = Uint8Array>(x: number, y: number, width: number, height: number, pixelRatio?: number, flipY?: boolean, buffer?: T): T;
224
- /**
225
- * 获取画面中的像素颜色
226
- * @param options - 参数
227
- * @returns
228
- */
229
- getPixels<T extends Uint8Array | Uint8ClampedArray = Uint8Array>(options: {
230
- /** 获取像素区域的起始坐标 x */
231
- x: number;
232
- /** 获取像素区域的起始坐标 y */
233
- y: number;
234
- /** 获取像素区域的宽度 */
235
- width: number;
236
- /** 获取像素区域的高度 */
237
- height: number;
238
- /** 获取区域的像素比 */
239
- pixelRatio?: number;
240
- helperVisible?: boolean;
241
- skipPanorama?: boolean;
242
- /** 是否Y轴翻转 */
243
- flipY?: boolean;
244
- /** 存储数组 */
245
- buffer?: T;
246
- }): T;
247
- /**
248
- * 强制渲染
249
- * @description
250
- * 调用 `render()` 和 `needsRender()` 均可在按需渲染时,使得画面渲染一次
251
- * 区别在于:
252
- * - `needsRender()` 为在下帧渲染画面
253
- * - `render()` 在当前帧渲染画面
254
- * 推荐使用 `needsRender()`, 可以更加流畅。但是如果需要截图等同步操作,可以使用 `render()`
255
- *
256
- * @param callback - 渲染完成回调
257
- */
258
- render(callback?: () => void): void;
259
- /**
260
- * 下一帧渲染
261
- * @description
262
- * 调用 `render()` 和 `needsRender()` 均可在按需渲染时,使得画面渲染一次
263
- * 区别在于:
264
- * - `needsRender()` 为在下帧渲染画面
265
- * - `render()` 在当前帧渲染画面
266
- * 推荐使用 `needsRender()`, 可以更加流畅。但是如果需要截图等同步操作,可以使用 `render()`
267
- */
268
- needsRender(): void;
269
- /**
270
- * 预加载点位图片资源
271
- * @param pano - 观察点
272
- * @param callback - 加载完成回调, 并传递加载用时。
273
- * @returns 加载完成的 Promise 参数同 callback
274
- */
275
- preloadPano(pano: Pano | PanoId | number, callback?: (costs: number) => void): Promise<number>;
276
- }
277
-
278
- /**
279
- * Five 渲染区域组件
280
- * @description Five 渲染区域组件,请在 FiveProvider 内使用
281
- * @example
282
- * ```typescript
283
- * <FiveProvider initialWork={work}>
284
- * <FiveCanvas width={512} height={512}/>
285
- * </FiveProvider>
286
- * ```
287
- */
288
- export declare const FiveCanvas: React_2.FC<FiveCanvasProps>;
289
-
290
- export declare interface FiveCanvasProps {
291
- /** 渲染区宽度 */
292
- width: number;
293
- /** 渲染区高度 */
294
- height: number;
295
- }
296
-
297
- export declare type FiveInjectionActionFeature = "loadWork" | "setState" | "on" | "off" | "intersectRaycaster" | "project2d" | "updateCamera" | "getPixels" | "render" | "needsRender" | "preloadPano" | "showFloor" | "toggleHelperVisible";
298
-
299
- export declare type FiveInjectionDataFeature = "unsafe__fiveInstance" | "currentState" | "currentObserver" | "state" | "works" | "model" | "scene" | "cameraDirection" | "cameraRaycaster" | "modelReadyState" | "shownFloor" | "helperVisible";
300
-
301
- export declare type FiveInjectionFeature = FiveInjectionDataFeature | FiveInjectionActionFeature;
302
-
303
- export declare interface FiveInjectionTypes extends Subscribe<EventTypes> {
304
- /**
305
- * Five React Inject: 获取 five 实例
306
- * @description 不到万不得已,并不推荐直接使用。
307
- * @deprecated 不到万不得已,并不推荐直接使用。
308
- */
309
- unsafe__fiveInstance: Five;
310
- /**
311
- * Five React Inject: Five 的目标状态
312
- * @description
313
- * ```text
314
- * five 设置了以下状态
315
- *
316
- * - mode: Mode
317
- * - panoId: string
318
- * - panoIndex: number
319
- * - longitude: number
320
- * - latitude: number
321
- * - fov: number
322
- * - offset: THREE.Vector3
323
- *
324
- * 可以通过 state, currentState 和 setState 来获取和设置。
325
- * 通过 state 设置后,five 会通过合适的动画运动来达到设置的位置。
326
- * 来迎合一些通过数据驱动的场景。
327
- * ```
328
- */
329
- state: State;
330
- /**
331
- * Five React Inject: Five 的当前状态
332
- * @description
333
- * ```text
334
- * five 设置了以下状态
335
- *
336
- * - mode: Mode
337
- * - panoId: string
338
- * - panoIndex: number
339
- * - longitude: number
340
- * - latitude: number
341
- * - fov: number
342
- * - offset: THREE.Vector3
343
- *
344
- * 可以通过 state, currentState 和 setState 来获取和设置。
345
- * 通过 state 设置后,five 会通过合适的动画运动来达到设置的位置。
346
- * 来迎合一些通过数据驱动的场景。
347
- * ```
348
- */
349
- currentState: State;
350
- /**
351
- * Five React Inject: Five currentState
352
- */
353
- currentObserver: WorkObserver;
354
- /**
355
- * Five React Inject: Five cameraDirection
356
- */
357
- cameraDirection: THREE_2.Vector3;
358
- /**
359
- * Five React Inject: Five cameraRaycaster
360
- */
361
- cameraRaycaster: THREE_2.Raycaster;
362
- /**
363
- * Five React Inject: Five Work
364
- */
365
- work: Five['work'];
366
- /**
367
- * Five React Inject: Five Work
368
- */
369
- works: Five['works'];
370
- /**
371
- * Five React Inject: Five model
372
- */
373
- model: Five['model'];
374
- /**
375
- * Five React Inject: Five models
376
- */
377
- models: Five['models'];
378
- /**
379
- * Five React Inject: Five models
380
- */
381
- scene: Five['scene'];
382
- /**
383
- * Five React Inject: Five modelReadyState
384
- */
385
- modelReadyState: "Empty" | "Loaded" | undefined;
386
- /**
387
- * Five React Inject: Five shownFloor
388
- */
389
- shownFloor: number | null | undefined;
390
- /**
391
- * Five React Inject: Five helperVisible
392
- */
393
- helperVisible: boolean | undefined;
394
- /**
395
- * 设置 State
396
- * @description
397
- * ```text
398
- * five 设置了以下状态
399
- *
400
- * - mode: Mode
401
- * - panoId: string
402
- * - panoIndex: number
403
- * - longitude: number
404
- * - latitude: number
405
- * - fov: number
406
- * - offset: THREE.Vector3
407
- *
408
- * 可以通过 state, currentState 和 setState 来获取和设置。
409
- * 通过 state 设置后,five 会通过合适的动画运动来达到设置的位置。
410
- * 来迎合一些通过数据驱动的场景。
411
- * ```
412
- * @param state - 目标状态
413
- * @param immediately - 是否马上转换,马上转换会尽快达到目标状态,尽量减少中间状态,更少动画。
414
- */
415
- setState: Five["setState"];
416
- /**
417
- * 加载 Work 数据
418
- * @param inputWork - Work 数据
419
- * @param state - 初始化姿态
420
- * - "inherit" 使用当前姿态
421
- * - "initial" 使用 Work 数据中的 initial 姿态
422
- * - State 自定义姿态
423
- * @param duration - 切换时间
424
- */
425
- loadWork: Five["load"];
426
- /**
427
- * 计算模型射线碰撞检测
428
- * @param raycaster - THREE 射线对象
429
- * @param floor - 和某一楼层做碰撞检测, 不传为和所有楼层做碰撞检测
430
- * @returns 返回碰撞
431
- */
432
- intersectRaycaster: Model["intersectRaycaster"];
433
- /**
434
- * 计算三维坐标对应到屏幕的二维坐标
435
- * @description
436
- * 如果三维坐标不在屏幕中,则返回 null
437
- * @param vector - 三维坐标
438
- * @param testModel - 是否计算模型遮挡
439
- * @returns 二维坐标 或者 null
440
- */
441
- project2d: Five["project2d"];
442
- /**
443
- * 移动相机。(不触发点位移动)
444
- * @description
445
- * 如果动画中途被打断(用户触发行为,或者调用 setState, load, changeMode)的等
446
- * 会 Promise.reject。运动完成则 Promise.resolve
447
- * @param pose - 相机目标位置
448
- * @param duration - 动画触发的时常
449
- * @returns Promise 是否移动成功
450
- */
451
- updateCamera: Five["updateCamera"];
452
- /**
453
- * 获取画面中的像素颜色
454
- * @param x - 获取像素区域的起始坐标 x
455
- * @param y - 获取像素区域的起始坐标 y
456
- * @param width - 获取像素区域的宽度
457
- * @param height - 获取像素区域的高度
458
- * @param pixelRatio - 获取区域的像素比
459
- * @returns rgba颜色平铺的 Uint8Array
460
- */
461
- getPixels: Five["getPixels"];
462
- /**
463
- * 强制渲染
464
- * @description
465
- * 调用 `render()` 和设置 `needsRender()` 均可在按需渲染时,使得画面渲染一次
466
- * 区别在于:
467
- * - `needsRender()` 为在下帧渲染画面
468
- * - `render()` 在当前帧渲染画面
469
- * 推荐使用 `needsRender()`, 可以更加流畅。但是如果需要截图等同步操作,可以使用 `render()`
470
- *
471
- * @param callback - 渲染完成回调
472
- */
473
- render: Five["render"];
474
- /**
475
- * 下一帧渲染
476
- * @description
477
- * 调用 `render()` 和设置 `needsRender()` 均可在按需渲染时,使得画面渲染一次
478
- * 区别在于:
479
- * - `needsRender()` 为在下帧渲染画面
480
- * - `render()` 在当前帧渲染画面
481
- * 推荐使用 `needsRender()`, 可以更加流畅。但是如果需要截图等同步操作,可以使用 `render()`
482
- *
483
- */
484
- needsRender: () => void;
485
- /**
486
- * 预加载点位图片资源
487
- * @param panoId - 观察点
488
- * @param callback - 加载完成回调, 并传递加载用时。
489
- * @returns 加载完成的 Promise 参数同 callback
490
- */
491
- preloadPano: Five["preloadPano"];
492
- /**
493
- * 显示楼层
494
- * @param floorIndex - 楼层,如果不传则都显示
495
- */
496
- showFloor: (floorIndex?: number) => void;
497
- /**
498
- * 帮助元素的隐藏/显示
499
- * @param visible - 隐藏/显示
500
- */
501
- toggleHelperVisible: (visible: boolean) => void;
502
- }
503
-
504
- export declare type FiveProviderPropTypes = {
505
- work?: Work | Work[];
506
- initialWork?: Work | Work[];
507
- initialState?: "inherit" | "initial" | Partial<Omit<State, "offset">>;
508
- initialOptions?: number | FiveLoadOptions;
509
- initialUserAction?: boolean;
510
- onWorksChange?: (works: Works) => void;
511
- onStateChange?: (state: State, userAction: boolean) => void;
512
- onCurrentStateChange?: (state: State, userAction: boolean) => void;
513
- onError?: (error: Error) => void;
514
- children: React_2.ReactNode;
515
- };
516
-
517
- export declare type FiveProviderType = ReturnType<typeof createFiveProvider>;
518
-
519
- export declare const INJECTION_PROPNAME = "$five";
520
-
521
- export declare interface PropTypeOfFiveFeatures<F extends FiveInjectionFeature[]> {
522
- [INJECTION_PROPNAME]: Pick<FiveInjectionTypes, F[number]>;
523
- }
524
-
525
- /**
526
- * 监听者模式
527
- * @template T - 预设的监听回调类型
528
- * @example
529
- * ```
530
- * new Store<{
531
- * "foo": [arg1: number, arg2: string],
532
- * "bar": [arg: boolean],
533
- * }>()
534
- * ```
535
- */
536
- export declare class Store<T extends StoreValueMapType> {
537
- /** 值 */
538
- values: T;
539
- /** 全局的数据变化钩子 */
540
- onValuesChange?: (values: T, prevValues: T) => void;
541
- private listeners;
542
- constructor(initialValue: T, onValuesChange?: (values: T, prevValues: T) => void);
543
- /**
544
- * 监听数据变化
545
- * @param names - 监听的字段名称
546
- * @param callback - 回调函数
547
- * @returns 解除监听数据变化
548
- */
549
- on<K extends keyof T>(names: K[], callback: (values: Pick<T, K>, prevValues: Pick<T, K>) => void): () => void;
550
- /**
551
- * 获取值
552
- * @param names - 值的名称
553
- */
554
- getValues<K extends keyof T>(names: K[]): Pick<T, K>;
555
- /**
556
- * 设置值
557
- * @param values - 设置值
558
- */
559
- setValues<K extends keyof T>(names: K[], values: Pick<T, K>): void;
560
- }
561
-
562
- export declare type StoreActionMapHanlder<T extends StoreValueMapType, K extends keyof T, M extends StoreActionMapType> = {
563
- [Key in keyof M]: [
564
- callback: (getValues: () => Pick<T, K>, setValues: (values: Pick<T, K>) => void, ...args: Parameters<M[Key]>) => ReturnType<M[Key]>,
565
- ...deps: K[]
566
- ];
567
- };
568
-
569
- export declare type StoreActionMapType = {
570
- [name: string]: (...args: any[]) => any;
571
- };
572
-
573
- export declare type StoreProviderType = ReturnType<typeof createStore>["StoreProvider"];
574
-
575
- export declare type StoreValueMapType = Record<string, any>;
576
-
577
- /**
578
- * Five React Hooks: 获取 five 实例
579
- * @description 不到万不得已,并不推荐直接使用。
580
- * @deprecated 不到万不得已,并不推荐直接使用。
581
- * @returns five 实例
582
- */
583
- export declare function unsafe__useFiveInstance(): Five;
584
-
585
- /**
586
- * Five React Hooks: 使用 Five 的命令
587
- *
588
- * @function updateCamera
589
- * ```
590
- * 移动相机。(不触发点位移动)
591
- * 如果动画中途被打断(用户触发行为,或者调用 setState, load, changeMode)的等
592
- * 会 Promise.reject。运动完成则 Promise.resolve
593
- *
594
- * // params pose - 相机目标位置
595
- * // params duration - 动画触发的时常
596
- * // params Promise - 是否移动成功
597
- * updateCamera(pose: Pose, duration: number): Promise<void>
598
- * ```
599
- *
600
- * @function getPixels
601
- * ```
602
- * 获取画面中的像素颜色
603
- * // param x - 获取像素区域的起始坐标 x
604
- * // param y - 获取像素区域的起始坐标 y
605
- * // param width - 获取像素区域的宽度
606
- * // param height - 获取像素区域的高度
607
- * // param pixelRatio - 获取区域的像素比
608
- * // returns rgba颜色平铺的 Uint8Array
609
- * getPixels(x: number, y: number, width: number, height: number, pixelRatio?: number): Uint8Array,
610
- * ```
611
- *
612
- * @function render
613
- * ```
614
- * 强制渲染
615
- * 调用 render() 和 needsRender() 均可在按需渲染时,使得画面渲染一次
616
- * 区别在于:
617
- * - needsRender() 为在下帧渲染画面
618
- * - render() 在当前帧渲染画面
619
- * 推荐使用 needsRender(), 可以更加流畅。但是如果需要截图等同步操作,可以使用 render()
620
- *
621
- * // param callback 渲染完成回调
622
- * render(callback?: () => void): void,
623
- * ```
624
- *
625
- * @function needsRender
626
- * ```
627
- * 下一帧渲染
628
- * 调用 render() 和 needsRender() 均可在按需渲染时,使得画面渲染一次
629
- * 区别在于:
630
- * - needsRender() 为在下帧渲染画面
631
- * - render() 在当前帧渲染画面
632
- * 推荐使用 needsRender(), 可以更加流畅。但是如果需要截图等同步操作,可以使用 render()
633
- * needsRender(): void,
634
- * ```
635
- *
636
- * @function preloadPano
637
- * ```
638
- * 预加载点位图片资源
639
- * // param panoIndex - 观察点序号
640
- * // param callback - 加载完成回调, 并传递加载用时。
641
- * // returns 加载完成的 Promise 参数同 callback
642
- * preloadPano(panoIndex: number, callback?: (costs: number) => void): Promise<number>
643
- * ```
644
- *
645
- * @example
646
- * ```
647
- * const { updateCamera, initBasisLoader, getPixels, render, needsRender, preloadPano } = useFiveAction();
648
- * ```
649
- */
650
- export declare function useFiveAction(): FiveActionReactCallbacks;
651
-
652
- /**
653
- * Five React Hooks: 得到当前相机的方向(单位向量)
654
- * @returns 当前相机的方向的单位向量
655
- */
656
- export declare function useFiveCameraDirection(): THREE_2.Vector3;
657
-
658
- /**
659
- * Five React Hooks: 得到当前相机的方向(射线对象)
660
- * @returns 当前相机的方向的射线对象
661
- */
662
- export declare function useFiveCameraRaycaster(): THREE_2.Raycaster;
663
-
664
- /**
665
- * Five React Hooks: Five 的当前观测点
666
- * @returns Work.observers[number] 当前观测点, 如果 work 未加载则为 undefined
667
- * @example
668
- * ```
669
- * const observer = useFiveCurrentObserver();
670
- * ```
671
- */
672
- export declare function useFiveCurrentObserver(): WorkObserver | undefined;
673
-
674
- /**
675
- * Five React Hooks: Five 的实时状态
676
- * @returns
677
- * [ currentState: Five 的实时状态, setState: 设置 Five 的状态 ]
678
- * @example
679
- * ```
680
- * const [ currentState, setState ] = useFiveCurrentState;
681
- * ```
682
- */
683
- export declare function useFiveCurrentState(): [
684
- currentState: State,
685
- setState: (state: Partial<State> | ((prevState: State) => Partial<State>), immediately?: boolean, userAction?: boolean) => void
686
- ];
687
-
688
- /**
689
- * Five React Hooks: Five 事件监听
690
- * 具体事件列表 请查看 Five.EventCallback
691
- * @example
692
- * ```
693
- * useFiveEvent("cameraUpdate", pose => {});
694
- * ```
695
- */
696
- export declare function useFiveEventCallback<T extends keyof EventCallback>(name: T, callback: EventCallback[T], deps?: React_2.DependencyList | undefined): void;
697
-
698
- /**
699
- * Five React Hooks: Five 楼层
700
- * @returns
701
- * [ shownFloor: Five 当前显示的楼层, null 为都显示, showFloor: 设置显示楼层,不传参数为都显示 ]
702
- * @example
703
- * ```
704
- * const [ shownFloor, showFloor ] = useFiveFloor;
705
- * ```
706
- */
707
- export declare function useFiveFloor(): [
708
- shownFloor: number | null,
709
- totalFloorLength: number,
710
- showFloor: (floorIndex?: number) => void
711
- ];
712
-
713
- /**
714
- * Five React Hooks: Five 帮助元素的隐藏/显示
715
- * @returns
716
- * [ helperVisible: Five 帮助元素是否显示显示, toggleHelperVisible: 设置 帮助元素的隐藏/显示 ]
717
- * @example
718
- * ```
719
- * const [ helperVisible, toggleHelperVisible ] = useFiveHelper;
720
- * ```
721
- */
722
- export declare function useFiveHelper(): [
723
- helperVisible: boolean,
724
- toggleHelperVisible: (visible: boolean) => void
725
- ];
726
-
727
- /**
728
- * Five React Hooks: 获取当前模型碰撞检测方法
729
- *
730
- * @function fiveModelIntersectRaycaster
731
- * ```
732
- * 计算模型射线碰撞检测
733
- * // param raycaster THREE 射线对象
734
- * // param floors 和某一楼层做碰撞检测, 不传为和所有楼层做碰撞检测
735
- * // returns 返回碰撞
736
- * intersectRaycaster(raycaster: THREE.Raycaster, floors?: number | number[]): Intersection[]
737
- * ```
738
- *
739
- * @example
740
- * ```
741
- * const fiveModelIntersectRaycaster = useFiveModelIntersectRaycaster();
742
- * const intersects = fiveModelIntersectRaycaster(raycaster);
743
- * ```
744
- */
745
- export declare function useFiveModelIntersectRaycaster(): (raycaster: THREE_2.Raycaster) => Intersection[];
746
-
747
- /**
748
- * Five React Hooks: 获取当前模型加载状态
749
- * @returns
750
- * "Loaded": 加载完成
751
- * "Empty" 加载未完成
752
- */
753
- export declare function useFiveModelReadyState(): "Empty" | "Loaded";
754
-
755
- /**
756
- * Five React Hooks: 将三维的坐标对应到而为屏幕
757
- *
758
- * @function preject2d
759
- * ```
760
- * 计算模型射线碰撞检测
761
- * // param vector 三维的坐标
762
- * // param testModel 是否和模型检测,如果检测,则被模型遮挡会返回 null
763
- * // returns 三维的坐标 或者 null
764
- * preject2d(vector: THREE.Vector3, testModel: boolean): THREE.Vector2 | null
765
- * ```
766
- *
767
- * @example
768
- * ```
769
- * const preject2d = useFiveProject2d();
770
- * const { x: width, y: height } = preject2d(new THREE.Vector3(0, 0, 0));
771
- * ```
772
- */
773
- export declare function useFiveProject2d(): (vector: THREE.Vector3, testModel: boolean) => Vector2;
774
-
775
- /**
776
- * @deprecated
777
- * 请使用 `useFiveSceneEffect` 替代
778
- */
779
- export declare const useFiveScene: typeof useFiveSceneEffect;
780
-
781
- /**
782
- * Five React Hooks: 操作 Five 的 Scene
783
- * @param callback - 获取 Five 的 Scene 的回调函数
784
- * @example
785
- * ```
786
- * useFiveSceneEffect(scene => {
787
- * // object is a THREE.Object3D
788
- * scene.add(object);
789
- * return () => scene.remove(object); // 析构函数
790
- * });
791
- * ```
792
- */
793
- export declare function useFiveSceneEffect(callback: (scene: Scene) => void | (() => void), deps?: React_2.DependencyList | undefined): void;
794
-
795
- export declare function useFiveState(): [
796
- state: State,
797
- setState: (state: Partial<State> | ((prevState: State) => Partial<State>), immediately?: boolean, userAction?: boolean) => void
798
- ];
799
-
800
- /**
801
- * Five React Hooks: 获取/设置当前的 Work
802
- *
803
- * @returns
804
- * [ work: 获取当前的 Work, loadWork: 设置 Work ]
805
-
806
- * @function loadWork
807
- * ```
808
- * 加载 Work 数据
809
- * // param work Work 数据
810
- * // param state 初始化姿态
811
- * // - "inherit" 使用当前姿态
812
- * // - "initial" 使用 Work 数据中的 initial 姿态
813
- * // - State 自定义姿态
814
- * // param duration 切换时间
815
- * (work: Work, state?: "inherit" | "initial" | Partial<Omit<State, "offset">>, duration?: number) => void
816
- * ```
817
- *
818
- * @example
819
- * ```
820
- * const [ work, loadWork ] = useFiveWork;
821
- * ```
822
- */
823
- export declare function useFiveWork(): [
824
- works: Works,
825
- loadWork: (work: Work | Work[], state?: "inherit" | "initial" | Partial<Omit<State, "offset">>, options?: number | FiveLoadOptions, userAction?: boolean) => Promise<void>
826
- ];
827
-
828
- export declare function withFive<F extends FiveInjectionFeature[]>(features: F): <P extends PropTypeOfFiveFeatures<F>, C extends React_2.ComponentClass<P>>(Component: C & React_2.ComponentClass<P>) => React_2.ForwardRefExoticComponent<React_2.PropsWithoutRef<Omit<P, "$five">> & React_2.RefAttributes<Omit<InstanceType<C>, "render" | "context" | "state" | "setState" | "componentDidMount" | "shouldComponentUpdate" | "componentWillUnmount" | "componentDidCatch" | "getSnapshotBeforeUpdate" | "componentDidUpdate" | "componentWillMount" | "UNSAFE_componentWillMount" | "componentWillReceiveProps" | "UNSAFE_componentWillReceiveProps" | "componentWillUpdate" | "UNSAFE_componentWillUpdate" | "forceUpdate" | "props" | "refs">>>;
829
-
830
- export { }
1
+ export { createFiveProvider } from "./createProvider";
2
+ export type { FiveProviderType, FiveProviderPropTypes } from "./createProvider";
3
+ export { FiveCanvas } from "./canvas";
4
+ export type { FiveCanvasProps } from "./canvas";
5
+ export { unsafe__useFiveInstance } from "./hooks/unsafe__useFiveInstance";
6
+ export { useFiveSceneEffect, useFiveScene } from "./hooks/useFiveSceneEffect";
7
+ export { useFiveWork } from "./hooks/useFiveWork";
8
+ export { useFiveState } from "./hooks/useFiveState";
9
+ export { useFiveCurrentState } from "./hooks/useFiveCurrentState";
10
+ export { useFiveCurrentObserver } from "./hooks/useFiveCurrentObserver";
11
+ export { useFiveEventCallback } from "./hooks/useFiveEventCallback";
12
+ export { useFiveAction } from "./hooks/useFiveAction";
13
+ export type { FiveActionReactCallbacks } from "./hooks/useFiveAction";
14
+ export { useFiveProject2d } from "./hooks/useFiveProject2d";
15
+ export { useFiveCameraRaycaster } from "./hooks/useFiveCameraRaycaster";
16
+ export { useFiveCameraDirection } from "./hooks/useFiveCameraDirection";
17
+ export { useFiveModelIntersectRaycaster } from "./hooks/useFiveModelIntersectRaycaster";
18
+ export { useFiveModelReadyState } from "./hooks/useFiveModelReadyState";
19
+ export { useFiveFloor } from "./hooks/useFiveFloor";
20
+ export { useFiveHelper } from "./hooks/useFiveHelper";
21
+ export { INJECTION_PROPNAME, withFive, createFiveFeature, } from "./withFive";
22
+ export type { PropTypeOfFiveFeatures, FiveInjectionActionFeature, FiveInjectionDataFeature, FiveInjectionFeature, FiveInjectionTypes } from "./withFive";
23
+ export { Store, createStore, } from "./createStore";
24
+ export type { StoreProviderType, StoreValueMapType, StoreActionMapType, StoreActionMapHanlder } from "./createStore";