@realsee/five 6.8.0-alpha.8 → 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 (475) 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 +32 -2
  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 +280 -56
  13. package/ai_guides/features/flowing-light-3d-pass.md +224 -39
  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 +124 -3
  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 +176 -41
  115. package/docs/documents/features_flowing-light-3d-pass.html +160 -40
  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 +124 -3
  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 -748
  340. package/five/index.mjs +26894 -32055
  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/CESIUM_RTC.d.ts +1 -1
  344. package/five/model/loaders/glTF-helpers/extensions/EXT_meshopt_compression.d.ts +1 -1
  345. package/five/model/loaders/glTF-helpers/extensions/EXT_texture_webp.d.ts +1 -1
  346. package/five/model/loaders/glTF-helpers/extensions/KHR_binary_glTF.d.ts +2 -2
  347. package/five/model/loaders/glTF-helpers/extensions/KHR_draco_mesh_compression.d.ts +1 -1
  348. package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting.d.ts +26 -0
  349. package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +8 -6
  350. package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts +13 -0
  351. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_clearcoat.d.ts +4 -0
  352. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_emissive_strength.d.ts +4 -0
  353. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_sheen.d.ts +4 -0
  354. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_transmission.d.ts +4 -0
  355. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_unlit.d.ts +4 -0
  356. package/five/model/loaders/glTF-helpers/extensions/KHR_node_visibility.d.ts +4 -0
  357. package/five/model/loaders/glTF-helpers/extensions/KHR_texture_basisu.d.ts +1 -1
  358. package/five/model/loaders/glTF-helpers/extensions/KHR_texture_transform.d.ts +1 -1
  359. package/five/model/loaders/glTF-helpers/extensions/REALSEE_materials_lightmap.d.ts +1 -1
  360. package/five/model/loaders/glTF-helpers/extensions/base.d.ts +3 -1
  361. package/five/model/loaders/glTF-helpers/index.d.ts +4 -2
  362. package/five/model/loaders/glTF-helpers/parser.d.ts +16 -14
  363. package/five/model/loaders/spz.d.ts +2 -2
  364. package/five/model/materials/pbmMaterial.d.ts +54 -4
  365. package/five/model/materials/pbmMeshMaterial.d.ts +5 -3
  366. package/five/model/materials/pbmPointCloudMaterial.d.ts +0 -2
  367. package/five/model/objects/{pbmGSObject.d.ts → pbmGaussianSplattingObject.d.ts} +4 -1
  368. package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +59 -0
  369. package/five/model/objects/pbmGaussianSplattingTestMesh.d.ts +7 -0
  370. package/five/model/parameter.d.ts +11 -6
  371. package/five/model/tile3d/index.d.ts +5 -3
  372. package/five/model/tile3d/tile-node.d.ts +2 -2
  373. package/five/model/tile3d/tileset.d.ts +1 -0
  374. package/five/renderer/postprocessing/passes/adaptive-luminance-pass.d.ts +9 -7
  375. package/five/renderer/postprocessing/passes/flowing-light-2d-pass.d.ts +16 -2
  376. package/five/renderer/postprocessing/passes/flowing-light-3d-pass.d.ts +16 -2
  377. package/five/renderer/postprocessing/passes/gaussian-blur-pass.d.ts +1 -1
  378. package/five/renderer/tools/render-cube-to-equirectangular.d.ts +7 -0
  379. package/five/renderer/tools/render-full-screen.d.ts +1 -1
  380. package/five/texture/histogram.d.ts +54 -0
  381. package/five/texture/loader.d.ts +1 -1
  382. package/five/texture/textureData.d.ts +11 -0
  383. package/five/thirdparty/hammer.d.ts +371 -255
  384. package/five/thirdparty/jsrsasign.d.ts +5 -20
  385. package/five/types/movePanoOptions.d.ts +4 -3
  386. package/five/utils/error.d.ts +1 -0
  387. package/five/utils/event.d.ts +98 -37
  388. package/five/utils/imageURL.d.ts +1 -1
  389. package/five/utils/memoryUsage.d.ts +2 -2
  390. package/five/utils/subscribe.d.ts +2 -2
  391. package/five/webxr/motionHelper.d.ts +1 -1
  392. package/five/work/index.d.ts +1 -0
  393. package/five/work/looseWorkType.d.ts +2 -2
  394. package/five/work/work.d.ts +5 -35
  395. package/five/work/workJsonType.d.ts +2 -2
  396. package/five/work/workObserverProto.d.ts +39 -0
  397. package/gltf-loader/index.js +9 -9
  398. package/gltf-loader/index.mjs +1351 -1451
  399. package/line/index.js +4 -4
  400. package/line/index.mjs +334 -513
  401. package/llms.txt +40 -3
  402. package/package.json +4 -4
  403. package/plugins/CSS3DPlugin/Controller.d.ts +64 -0
  404. package/plugins/CSS3DPlugin/index.d.ts +5 -0
  405. package/plugins/CSS3DPlugin/typing.d.ts +32 -0
  406. package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.d.ts +30 -0
  407. package/plugins/GaussianSplattingEntranceAnimationPlugin/index.d.ts +5 -0
  408. package/plugins/GaussianSplattingEntranceAnimationPlugin/typing.d.ts +28 -0
  409. package/plugins/Object3DHelperPlugin/Controller.d.ts +99 -0
  410. package/plugins/Object3DHelperPlugin/Controllers/BaseController.d.ts +142 -0
  411. package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.d.ts +16 -0
  412. package/plugins/Object3DHelperPlugin/Controllers/MoveController.d.ts +66 -0
  413. package/plugins/Object3DHelperPlugin/Controllers/RotateController.d.ts +61 -0
  414. package/plugins/Object3DHelperPlugin/FiveControllerWrapper.d.ts +17 -0
  415. package/plugins/Object3DHelperPlugin/Helper/BaseHelper.d.ts +97 -0
  416. package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.d.ts +16 -0
  417. package/plugins/Object3DHelperPlugin/Helper/MoveHelper.d.ts +37 -0
  418. package/plugins/Object3DHelperPlugin/Helper/RotateHelper.d.ts +93 -0
  419. package/plugins/Object3DHelperPlugin/constant.d.ts +27 -0
  420. package/plugins/Object3DHelperPlugin/index.d.ts +6 -0
  421. package/plugins/Object3DHelperPlugin/typing.d.ts +143 -0
  422. package/plugins/Object3DHelperPlugin/utils/ArrowGroup.d.ts +22 -0
  423. package/plugins/Object3DHelperPlugin/utils/CenterHandle.d.ts +23 -0
  424. package/plugins/Object3DHelperPlugin/utils/PlaneHandle.d.ts +19 -0
  425. package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.d.ts +5 -0
  426. package/plugins/Object3DHelperPlugin/utils/cameraHooks.d.ts +2 -0
  427. package/plugins/Object3DHelperPlugin/utils/direction.d.ts +14 -0
  428. package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.d.ts +5 -0
  429. package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.d.ts +8 -0
  430. package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.d.ts +8 -0
  431. package/plugins/Object3DHelperPlugin/utils/solidGuide.d.ts +27 -0
  432. package/plugins/Object3DHelperPlugin/utils/tipsDom.d.ts +8 -0
  433. package/plugins/TrajectoryPlugin/Controller.d.ts +1 -1
  434. package/plugins/index.d.ts +4 -1
  435. package/plugins/index.js +35 -21
  436. package/plugins/index.mjs +5418 -4238
  437. package/plugins/thirdParty/CSS3DRenderer.d.ts +16 -3
  438. package/plugins/thirdParty/domevents.d.ts +36 -0
  439. package/plugins/utils/uuid.d.ts +1 -4
  440. package/react/context.d.ts +3 -2
  441. package/react/createProvider.d.ts +4 -4
  442. package/react/createStore.d.ts +3 -3
  443. package/react/hooks/useFiveProject2d.d.ts +1 -1
  444. package/react/index.js +3 -3
  445. package/react/index.mjs +572 -783
  446. package/react/rendererPool.d.ts +2 -2
  447. package/shader-lib/index.js +13 -14
  448. package/shader-lib/index.mjs +424 -824
  449. package/sticker/index.js +3 -3
  450. package/sticker/index.mjs +102 -142
  451. package/umd/five-gltf-loader.js +9 -9
  452. package/umd/five-line.js +4 -4
  453. package/umd/five-plugins.js +35 -21
  454. package/umd/five-react.js +3 -3
  455. package/umd/five-shader-lib.js +13 -14
  456. package/umd/five-sticker.js +3 -3
  457. package/umd/five-vfx.js +21 -21
  458. package/umd/five-vue.js +3 -3
  459. package/umd/five.js +267 -743
  460. package/vfx/index.js +21 -21
  461. package/vfx/index.mjs +454 -910
  462. package/vue/index.js +3 -3
  463. package/vue/index.mjs +309 -301
  464. package/vue/rendererPool.d.ts +5 -5
  465. package/work-downloader/index.js +3 -3
  466. package/work-downloader/index.mjs +339 -556
  467. package/five/gs/util/renderData.d.ts +0 -32
  468. package/five/model/loaders/glTF-helpers/extensions/PBM_mesh.d.ts +0 -11
  469. package/five/model/objects/pbmGSRenderMesh.d.ts +0 -29
  470. package/five/work/workObserverUtils.d.ts +0 -36
  471. /package/five/assets/{realsee-pmg-data-url.d.ts → realsee-png-data-url.d.ts} +0 -0
  472. /package/five/{gs → gaussian-splatting}/wasm/data.d.ts +0 -0
  473. /package/five/{gs → gaussian-splatting}/wasm/sort.d.ts +0 -0
  474. /package/five/{gs → gaussian-splatting}/worker/dataWorker.d.ts +0 -0
  475. /package/five/{gs → gaussian-splatting}/worker/sortWorker.d.ts +0 -0
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 2/12/2026
5
- * Version: 6.8.0-alpha.8
4
+ * Generated: 4/17/2026
5
+ * Version: 6.8.0
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -252,574 +252,357 @@
252
252
  * No amendment to or modification of this Agreement will be binding unless in
253
253
  * writing and signed by Realsee. You and Realsee hereto confirm that this
254
254
  * Agreement and all related documents shall be drafted in English.
255
- */import { createWriteStream as Y, existsSync as J } from "node:fs";
256
- import { writeFile as X, mkdir as H, readFile as Z } from "node:fs/promises";
257
- import { dirname as x, extname as K, join as _, resolve as M } from "node:path";
258
- import { Readable as ee } from "node:stream";
259
- import re from "sharp";
260
- function U(n, r, e, a) {
261
- function i(t) {
262
- return t instanceof e ? t : new e(function(u) {
263
- u(t);
264
- });
265
- }
266
- return new (e || (e = Promise))(function(t, u) {
267
- function o(c) {
268
- try {
269
- s(a.next(c));
270
- } catch (f) {
271
- u(f);
272
- }
273
- }
274
- function l(c) {
275
- try {
276
- s(a.throw(c));
277
- } catch (f) {
278
- u(f);
279
- }
280
- }
281
- function s(c) {
282
- c.done ? t(c.value) : i(c.value).then(o, l);
283
- }
284
- s((a = a.apply(n, r || [])).next());
285
- });
255
+ */import { createWriteStream as e, existsSync as t } from "node:fs";
256
+ import { mkdir as n, readFile as r, writeFile as i } from "node:fs/promises";
257
+ import { dirname as a, extname as o, join as s, resolve as c } from "node:path";
258
+ import { Readable as l } from "node:stream";
259
+ import u from "sharp";
260
+ //#region node_modules/tslib/tslib.es6.mjs
261
+ function d(e, t, n, r) {
262
+ function i(e) {
263
+ return e instanceof n ? e : new n(function(t) {
264
+ t(e);
265
+ });
266
+ }
267
+ return new (n || (n = Promise))(function(n, a) {
268
+ function o(e) {
269
+ try {
270
+ c(r.next(e));
271
+ } catch (e) {
272
+ a(e);
273
+ }
274
+ }
275
+ function s(e) {
276
+ try {
277
+ c(r.throw(e));
278
+ } catch (e) {
279
+ a(e);
280
+ }
281
+ }
282
+ function c(e) {
283
+ e.done ? n(e.value) : i(e.value).then(o, s);
284
+ }
285
+ c((r = r.apply(e, t || [])).next());
286
+ });
286
287
  }
287
- function L(n, r) {
288
- var e = { label: 0, sent: function() {
289
- if (t[0] & 1) throw t[1];
290
- return t[1];
291
- }, trys: [], ops: [] }, a, i, t, u = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
292
- return u.next = o(0), u.throw = o(1), u.return = o(2), typeof Symbol == "function" && (u[Symbol.iterator] = function() {
293
- return this;
294
- }), u;
295
- function o(s) {
296
- return function(c) {
297
- return l([s, c]);
298
- };
299
- }
300
- function l(s) {
301
- if (a) throw new TypeError("Generator is already executing.");
302
- for (; u && (u = 0, s[0] && (e = 0)), e; ) try {
303
- if (a = 1, i && (t = s[0] & 2 ? i.return : s[0] ? i.throw || ((t = i.return) && t.call(i), 0) : i.next) && !(t = t.call(i, s[1])).done) return t;
304
- switch (i = 0, t && (s = [s[0] & 2, t.value]), s[0]) {
305
- case 0:
306
- case 1:
307
- t = s;
308
- break;
309
- case 4:
310
- return e.label++, { value: s[1], done: !1 };
311
- case 5:
312
- e.label++, i = s[1], s = [0];
313
- continue;
314
- case 7:
315
- s = e.ops.pop(), e.trys.pop();
316
- continue;
317
- default:
318
- if (t = e.trys, !(t = t.length > 0 && t[t.length - 1]) && (s[0] === 6 || s[0] === 2)) {
319
- e = 0;
320
- continue;
321
- }
322
- if (s[0] === 3 && (!t || s[1] > t[0] && s[1] < t[3])) {
323
- e.label = s[1];
324
- break;
325
- }
326
- if (s[0] === 6 && e.label < t[1]) {
327
- e.label = t[1], t = s;
328
- break;
329
- }
330
- if (t && e.label < t[2]) {
331
- e.label = t[2], e.ops.push(s);
332
- break;
333
- }
334
- t[2] && e.ops.pop(), e.trys.pop();
335
- continue;
336
- }
337
- s = r.call(n, e);
338
- } catch (c) {
339
- s = [6, c], i = 0;
340
- } finally {
341
- a = t = 0;
342
- }
343
- if (s[0] & 5) throw s[1];
344
- return { value: s[0] ? s[1] : void 0, done: !0 };
345
- }
288
+ //#endregion
289
+ //#region build/work-downloader/utils/relative-url.js
290
+ function f(e, t) {
291
+ if (t && t[t.length - 1] !== "/" && (t += "/"), e.length > t.length && e.startsWith(t)) return e.slice(t.length);
292
+ throw Error(`${e} is not starting with ${t}`);
346
293
  }
347
- function S(n, r) {
348
- if (r && r[r.length - 1] !== "/" && (r += "/"), n.length > r.length && n.startsWith(r))
349
- return n.slice(r.length);
350
- throw new Error("".concat(n, " is not starting with ").concat(r));
294
+ //#endregion
295
+ //#region build/work-downloader/utils/join-url.js
296
+ function p(...e) {
297
+ let t = [];
298
+ e = e.map((e) => (e == null ? "" : e).trim()).filter((e) => e.length > 0 && !/^\/+$/.test(e));
299
+ for (let n = 0; n < e.length; n++) {
300
+ let r = n === 0, i = n === e.length - 1, a = e[n];
301
+ r || (a = a.replace(/^\.\//, "").replace(/^\/+/, "")), i || (a = a.replace(/\/+$/, "")), t.push(a);
302
+ }
303
+ return t.join("/");
351
304
  }
352
- function ne() {
353
- for (var n = [], r = 0; r < arguments.length; r++)
354
- n[r] = arguments[r];
355
- var e = [];
356
- n = n.map(function(o) {
357
- return (o != null ? o : "").trim();
358
- }).filter(function(o) {
359
- return o.length > 0 && !/^\/+$/.test(o);
360
- });
361
- for (var a = 0; a < n.length; a++) {
362
- var i = a === 0, t = a === n.length - 1, u = n[a];
363
- i || (u = u.replace(/^\.\//, "").replace(/^\/+/, "")), t || (u = u.replace(/\/+$/, "")), e.push(u);
364
- }
365
- return e.join("/");
305
+ //#endregion
306
+ //#region build/work-downloader/utils/download-to-file.js
307
+ var m = 1024 * 1024 * 5;
308
+ function h(r, o, s) {
309
+ return d(this, void 0, void 0, function* () {
310
+ var c;
311
+ if (t(o)) return o;
312
+ let u = yield s(r);
313
+ if (u.ok && u.body) {
314
+ if (yield n(a(o), { recursive: !0 }), Number((c = u.headers.get("content-length")) == null ? "Infinity" : c) > m) return new Promise((t, n) => {
315
+ let r = l.fromWeb(u.body), i = e(o);
316
+ r.pipe(i), r.on("error", n), i.on("finish", () => t(o));
317
+ });
318
+ {
319
+ let e = yield u.arrayBuffer();
320
+ return yield i(o, Buffer.from(e)), o;
321
+ }
322
+ }
323
+ throw Error(`url: ${r}(${u.statusText})`);
324
+ });
366
325
  }
367
- var te = 1024 * 1024 * 5;
368
- function E(n, r, e) {
369
- return U(this, void 0, void 0, function() {
370
- var a, i, t, u;
371
- return L(this, function(o) {
372
- switch (o.label) {
373
- case 0:
374
- return J(r) ? [2, r] : [4, e(n)];
375
- case 1:
376
- return a = o.sent(), a.ok && a.body ? [4, H(x(r), { recursive: !0 })] : [3, 6];
377
- case 2:
378
- return o.sent(), i = Number((u = a.headers.get("content-length")) !== null && u !== void 0 ? u : "Infinity"), i > te ? [2, new Promise(function(l, s) {
379
- var c = ee.fromWeb(a.body), f = Y(r);
380
- c.pipe(f), c.on("error", s), f.on("finish", function() {
381
- return l(r);
382
- });
383
- })] : [3, 3];
384
- case 3:
385
- return [4, a.arrayBuffer()];
386
- case 4:
387
- return t = o.sent(), [4, X(r, Buffer.from(t))];
388
- case 5:
389
- return o.sent(), [2, r];
390
- case 6:
391
- throw new Error("url: ".concat(n, "(").concat(a.statusText, ")"));
392
- }
393
- });
394
- });
326
+ //#endregion
327
+ //#region build/work-downloader/utils/image-processing.js
328
+ var g = ["jpg", "png"], _ = 95;
329
+ function v(e, t) {
330
+ let n = o(e).slice(1) || "jpg", { cut: r, size: i, format: a = n } = t, s = "";
331
+ if (t.toFilename) s = t.toFilename(e, {
332
+ cut: t.cut,
333
+ size: t.size,
334
+ format: t.format
335
+ });
336
+ else {
337
+ let t = "", o = "", c = a;
338
+ r && (t = r.join("x")), i && (o = `${i}x`), c === n && !o && !t && (c = ""), s = [
339
+ e,
340
+ t,
341
+ o,
342
+ c
343
+ ].filter((e) => e.length > 0).join(".");
344
+ }
345
+ return s;
395
346
  }
396
- var ae = ["jpg", "png"], ie = 95;
397
- function G(n, r) {
398
- var e = K(n).slice(1) || "jpg", a = r.cut, i = r.size, t = r.format, u = t === void 0 ? e : t, o = "";
399
- if (r.toFilename)
400
- o = r.toFilename(n, { cut: r.cut, size: r.size, format: r.format });
401
- else {
402
- var l = "", s = "", c = u;
403
- a && (l = a.join("x")), i && (s = "".concat(i, "x")), c === e && !s && !l && (c = ""), o = [n, l, s, c].filter(function(f) {
404
- return f.length > 0;
405
- }).join(".");
406
- }
407
- return o;
347
+ function y(e, n) {
348
+ return d(this, void 0, void 0, function* () {
349
+ let r = o(e).slice(1) || "jpg", { cut: i, size: a, format: s = r } = n, c = e;
350
+ if ((i || a) && s !== r && g.includes(s)) {
351
+ let r = v(e, {
352
+ format: s,
353
+ toFilename: n.toFilename
354
+ });
355
+ r !== c && t(r) && (c = r);
356
+ }
357
+ let l = u(c);
358
+ i && (l = l.extract({
359
+ left: i[0],
360
+ top: i[1],
361
+ width: i[2],
362
+ height: i[3]
363
+ })), a && (l = l.resize(a)), l = l.toFormat(s, { quality: _ });
364
+ let d = v(e, n);
365
+ return d !== e && !t(d) ? l.toFile(d).then(() => d) : d;
366
+ });
408
367
  }
409
- function B(n, r) {
410
- return U(this, void 0, void 0, function() {
411
- var e, a, i, t, u, o, l, s, c;
412
- return L(this, function(f) {
413
- return e = K(n).slice(1) || "jpg", a = r.cut, i = r.size, t = r.format, u = t === void 0 ? e : t, o = n, (a || i) && u !== e && ae.includes(u) && (l = G(n, {
414
- format: u,
415
- toFilename: r.toFilename
416
- }), l !== o && J(l) && (o = l)), s = re(o), a && (s = s.extract({
417
- left: a[0],
418
- top: a[1],
419
- width: a[2],
420
- height: a[3]
421
- })), i && (s = s.resize(i)), s = s.toFormat(u, { quality: ie }), c = G(n, r), c !== n && !J(c) ? [2, s.toFile(c).then(function() {
422
- return c;
423
- })] : [2, c];
424
- });
425
- });
368
+ //#endregion
369
+ //#region build/work-downloader/components/model-3d-tile.js
370
+ function b(e) {
371
+ let t = [];
372
+ if (e.content && (e.content.uri ? t.push(e.content.uri) : e.content.url && t.push(e.content.url)), e.children) for (let n of e.children) {
373
+ let e = b(n);
374
+ if (e.length > 0) for (let n = 0; n < e.length; n++) t.push(e[n]);
375
+ }
376
+ return t;
426
377
  }
427
- function Q(n) {
428
- var r = [];
429
- if (n.content && (n.content.uri ? r.push(n.content.uri) : n.content.url && r.push(n.content.url)), n.children)
430
- for (var e = 0, a = n.children; e < a.length; e++) {
431
- var i = a[e], t = Q(i);
432
- if (t.length > 0)
433
- for (var u = 0; u < t.length; u++)
434
- r.push(t[u]);
435
- }
436
- return r;
378
+ function x(e, t, n) {
379
+ return d(this, void 0, void 0, function* () {
380
+ let r = new URL(e, t).href, i = h(r, s(n.distPath, f(r, n.baseURL)), n.fetch);
381
+ n.log((e) => `download: ${r} -> ${e}`, i), yield i, /\.json$/.test(e) && (yield S(r, n));
382
+ });
437
383
  }
438
- function se(n, r, e) {
439
- return U(this, void 0, void 0, function() {
440
- var a, i, t;
441
- return L(this, function(u) {
442
- switch (u.label) {
443
- case 0:
444
- return a = new URL(n, r).href, i = _(e.distPath, S(a, e.baseURL)), t = E(a, i, e.fetch), e.log(function(o) {
445
- return "download: ".concat(a, " -> ").concat(o);
446
- }, t), [4, t];
447
- case 1:
448
- return u.sent(), /\.json$/.test(n) ? [4, V(a, e)] : [3, 3];
449
- case 2:
450
- u.sent(), u.label = 3;
451
- case 3:
452
- return [
453
- 2
454
- /*return*/
455
- ];
456
- }
457
- });
458
- });
384
+ function S(e, t) {
385
+ return d(this, void 0, void 0, function* () {
386
+ let n = new URL("tileset_checksum.json", e).href, i = s(t.distPath, f(n, t.baseURL)), a = null;
387
+ try {
388
+ let e = h(n, i, t.fetch);
389
+ t.log((e) => `download: ${n} -> ${e}`, e), yield e;
390
+ let { file_md5: o } = JSON.parse(yield r(i, "utf8"));
391
+ if (typeof o == "object") {
392
+ let e = Object.keys(o);
393
+ e.length > 0 && (a = e);
394
+ }
395
+ } catch (e) {}
396
+ if (a && a.length > 0) {
397
+ let e = [];
398
+ for (let r of a) {
399
+ let i = new URL(r, n).href, a = h(i, s(t.distPath, f(i, t.baseURL)), t.fetch);
400
+ if (t.log((e) => `download: ${i} -> ${e}`, a), e.push(a), e.length >= 10) {
401
+ let t = e;
402
+ e = [], yield Promise.all(t);
403
+ }
404
+ }
405
+ yield Promise.all(e);
406
+ return;
407
+ }
408
+ let o = s(t.distPath, f(e, t.baseURL)), c = h(e, o, t.fetch);
409
+ t.log((t) => `download: ${e} -> ${t}`, c), yield c;
410
+ let l = JSON.parse(yield r(o, "utf8"));
411
+ if (l.asset.overview) {
412
+ let n = new URL(l.asset.overview.imageFile, e).href, r = h(n, s(t.distPath, f(n, t.baseURL)), t.fetch);
413
+ t.log((e) => `download: ${n} -> ${e}`, r), yield r;
414
+ }
415
+ if (l.asset.trajectories) for (let n of l.asset.trajectories.list) {
416
+ let r = new URL(n.file, e).href, i = h(r, s(t.distPath, f(r, t.baseURL)), t.fetch);
417
+ t.log((e) => `download: ${r} -> ${e}`, i), yield i;
418
+ }
419
+ let u = b(l.root);
420
+ for (let n = 0; n < u.length; n += 6) {
421
+ let r = [];
422
+ for (let i = 0; i < 6; i++) {
423
+ let a = u[n + i];
424
+ if (a) {
425
+ let n = x(a, e, t);
426
+ r.push(n);
427
+ }
428
+ }
429
+ yield Promise.all(r);
430
+ }
431
+ });
459
432
  }
460
- function V(n, r) {
461
- return U(this, void 0, void 0, function() {
462
- var e, a, i, t, u, o, l, s, c, f, m, v, p, b, w, d, h, y, k;
463
- return L(this, function(g) {
464
- switch (g.label) {
465
- case 0:
466
- return e = _(r.distPath, S(n, r.baseURL)), a = E(n, e, r.fetch), r.log(function(z) {
467
- return "download: ".concat(n, " -> ").concat(z);
468
- }, a), [4, a];
469
- case 1:
470
- return g.sent(), u = (t = JSON).parse, [4, Z(e, "utf8")];
471
- case 2:
472
- return i = u.apply(t, [g.sent()]), i.asset.overview ? (o = new URL(i.asset.overview.imageFile, n).href, l = _(r.distPath, S(o, r.baseURL)), s = E(o, l, r.fetch), r.log(function(z) {
473
- return "download: ".concat(o, " -> ").concat(z);
474
- }, s), [4, s]) : [3, 4];
475
- case 3:
476
- g.sent(), g.label = 4;
477
- case 4:
478
- if (!i.asset.trajectories) return [3, 8];
479
- c = function(z) {
480
- var F, P, R;
481
- return L(this, function(j) {
482
- switch (j.label) {
483
- case 0:
484
- return F = new URL(z.file, n).href, P = _(r.distPath, S(F, r.baseURL)), R = E(F, P, r.fetch), r.log(function(O) {
485
- return "download: ".concat(F, " -> ").concat(O);
486
- }, R), [4, R];
487
- case 1:
488
- return j.sent(), [
489
- 2
490
- /*return*/
491
- ];
492
- }
493
- });
494
- }, f = 0, m = i.asset.trajectories.list, g.label = 5;
495
- case 5:
496
- return f < m.length ? (v = m[f], [5, c(v)]) : [3, 8];
497
- case 6:
498
- g.sent(), g.label = 7;
499
- case 7:
500
- return f++, [3, 5];
501
- case 8:
502
- p = Q(i.root), b = 6, w = 0, g.label = 9;
503
- case 9:
504
- if (!(w < p.length)) return [3, 12];
505
- for (d = [], h = 0; h < b; h++)
506
- y = p[w + h], y && (k = se(y, n, r), d.push(k));
507
- return [4, Promise.all(d)];
508
- case 10:
509
- g.sent(), g.label = 11;
510
- case 11:
511
- return w += b, [3, 9];
512
- case 12:
513
- return [
514
- 2
515
- /*return*/
516
- ];
517
- }
518
- });
519
- });
433
+ //#endregion
434
+ //#region build/work-downloader/components/model.js
435
+ function C(e, t) {
436
+ return d(this, void 0, void 0, function* () {
437
+ if (t.log("process model"), e.model) {
438
+ let { textures: n, layers: r, file: i, textureBase: a } = e.model;
439
+ if (i) {
440
+ t.log("process model file");
441
+ let r = e.getURL(i), o = h(r, s(t.distPath, f(r, t.baseURL)), t.fetch);
442
+ if (t.log((e) => `download: ${i} -> ${e}`, o), yield o, n) for (let r of n) {
443
+ let n = p(e.getURL(a == null ? "" : a), r), i = s(t.distPath, f(n, t.baseURL)), o = h(n, i, t.fetch);
444
+ t.log((e) => `download: ${n} -> ${e}`, o), yield o;
445
+ let c = t.imageOptions.format;
446
+ c.length === 0 && c.push(void 0);
447
+ let l = t.imageOptions.size;
448
+ l.length === 0 && l.push(void 0);
449
+ let u = [];
450
+ for (let e of c) for (let n of l) {
451
+ let r = y(i, {
452
+ format: e,
453
+ size: n,
454
+ toFilename: t.imageProcessingFilename
455
+ });
456
+ t.log((e) => `imageProcessing: ${i} -> ${e}`, r), u.push(r);
457
+ }
458
+ yield Promise.all(u);
459
+ }
460
+ }
461
+ if (r) for (let n of r) {
462
+ let { tileset: r } = n;
463
+ t.log("process model layer"), yield S(e.getURL(r), t);
464
+ }
465
+ }
466
+ });
520
467
  }
521
- function ue(n, r) {
522
- return U(this, void 0, void 0, function() {
523
- var e, a, i, t, u, d, o, l, s, c, f, m, v, p, b, w, d;
524
- return L(this, function(h) {
525
- switch (h.label) {
526
- case 0:
527
- return r.log("process model"), n.model ? (e = n.model, a = e.textures, i = e.layers, t = e.file, u = e.textureBase, t ? (r.log("process model file"), d = n.getURL(t), o = _(r.distPath, S(d, r.baseURL)), l = E(d, o, r.fetch), r.log(function(y) {
528
- return "download: ".concat(t, " -> ").concat(y);
529
- }, l), [4, l]) : [3, 5]) : [3, 9];
530
- case 1:
531
- if (h.sent(), !a) return [3, 5];
532
- s = function(y) {
533
- var k, g, z, F, P, R, j, O, T, $, C, A, D;
534
- return L(this, function(W) {
535
- switch (W.label) {
536
- case 0:
537
- return k = ne(n.getURL(u != null ? u : ""), y), g = _(r.distPath, S(k, r.baseURL)), z = E(k, g, r.fetch), r.log(function(q) {
538
- return "download: ".concat(k, " -> ").concat(q);
539
- }, z), [4, z];
540
- case 1:
541
- for (W.sent(), F = r.imageOptions.format, F.length === 0 && F.push(void 0), P = r.imageOptions.size, P.length === 0 && P.push(void 0), R = [], j = 0, O = F; j < O.length; j++)
542
- for (T = O[j], $ = 0, C = P; $ < C.length; $++)
543
- A = C[$], D = B(g, {
544
- format: T,
545
- size: A,
546
- toFilename: r.imageProcessingFilename
547
- }), r.log(function(q) {
548
- return "imageProcessing: ".concat(g, " -> ").concat(q);
549
- }, D), R.push(D);
550
- return [4, Promise.all(R)];
551
- case 2:
552
- return W.sent(), [
553
- 2
554
- /*return*/
555
- ];
556
- }
557
- });
558
- }, c = 0, f = a, h.label = 2;
559
- case 2:
560
- return c < f.length ? (m = f[c], [5, s(m)]) : [3, 5];
561
- case 3:
562
- h.sent(), h.label = 4;
563
- case 4:
564
- return c++, [3, 2];
565
- case 5:
566
- if (!i) return [3, 9];
567
- v = 0, p = i, h.label = 6;
568
- case 6:
569
- return v < p.length ? (b = p[v], w = b.tileset, r.log("process model layer"), d = n.getURL(w), [4, V(d, r)]) : [3, 9];
570
- case 7:
571
- h.sent(), h.label = 8;
572
- case 8:
573
- return v++, [3, 6];
574
- case 9:
575
- return [
576
- 2
577
- /*return*/
578
- ];
579
- }
580
- });
581
- });
468
+ //#endregion
469
+ //#region build/work-downloader/components/observer.js
470
+ function w(e, t, n) {
471
+ return d(this, void 0, void 0, function* () {
472
+ let r = s(n.distPath, f(e, n.baseURL)), i = h(e, r, n.fetch);
473
+ n.log((t) => `download: ${e} -> ${t}`, i), yield i;
474
+ let a = Math.pow(2, t.level), o = n.imageOptions.format;
475
+ o.length === 0 && o.push(void 0);
476
+ let c = [];
477
+ if (a > 1) for (let e = 0; e < a; e++) for (let i = 0; i < a; i++) for (let s of o) {
478
+ let o = [
479
+ t.size / a * i,
480
+ t.size / a * e,
481
+ t.size / a,
482
+ t.size / a
483
+ ], l = y(r, {
484
+ format: s,
485
+ size: t.scale >= 1 ? void 0 : t.scale * t.size / a,
486
+ cut: o,
487
+ toFilename: n.imageProcessingFilename
488
+ });
489
+ if (n.log((e) => `imageProcessing: ${r} -> ${e}`, l), c.push(l), t.level === 1 && t.scale >= .5 && (s === "jpg" || /\.jpg$/.test(r))) {
490
+ let e = y(r, {
491
+ format: s,
492
+ size: void 0,
493
+ cut: o,
494
+ toFilename: n.imageProcessingFilename
495
+ });
496
+ n.log((e) => `imageProcessing: ${r} -> ${e}`, e), c.push(e);
497
+ }
498
+ }
499
+ yield Promise.all(c);
500
+ });
582
501
  }
583
- function N(n, r, e) {
584
- return U(this, void 0, void 0, function() {
585
- var a, i, t, u, o, l, s, c, f, m, v, p, b, w;
586
- return L(this, function(d) {
587
- switch (d.label) {
588
- case 0:
589
- return a = _(e.distPath, S(n, e.baseURL)), i = E(n, a, e.fetch), e.log(function(h) {
590
- return "download: ".concat(n, " -> ").concat(h);
591
- }, i), [4, i];
592
- case 1:
593
- if (d.sent(), t = Math.pow(2, r.level), u = e.imageOptions.format, u.length === 0 && u.push(void 0), o = [], t > 1)
594
- for (l = 0; l < t; l++)
595
- for (s = 0; s < t; s++)
596
- for (c = 0, f = u; c < f.length; c++)
597
- m = f[c], v = [
598
- r.size / t * s,
599
- r.size / t * l,
600
- r.size / t,
601
- r.size / t
602
- ], p = r.scale >= 1 ? void 0 : r.scale * r.size / t, b = B(a, {
603
- format: m,
604
- size: p,
605
- cut: v,
606
- toFilename: e.imageProcessingFilename
607
- }), e.log(function(h) {
608
- return "imageProcessing: ".concat(a, " -> ").concat(h);
609
- }, b), o.push(b), r.level === 1 && r.scale >= 0.5 && (m === "jpg" || /\.jpg$/.test(a)) && (w = B(a, {
610
- format: m,
611
- size: void 0,
612
- cut: v,
613
- toFilename: e.imageProcessingFilename
614
- }), e.log(function(h) {
615
- return "imageProcessing: ".concat(a, " -> ").concat(h);
616
- }, w), o.push(w));
617
- return [4, Promise.all(o)];
618
- case 2:
619
- return d.sent(), [
620
- 2
621
- /*return*/
622
- ];
623
- }
624
- });
625
- });
502
+ function T(e, t) {
503
+ return d(this, void 0, void 0, function* () {
504
+ yield Promise.all([
505
+ w(e.work.getURL(e.front), e, t),
506
+ w(e.work.getURL(e.back), e, t),
507
+ w(e.work.getURL(e.left), e, t),
508
+ w(e.work.getURL(e.right), e, t),
509
+ w(e.work.getURL(e.up), e, t),
510
+ w(e.work.getURL(e.down), e, t)
511
+ ]);
512
+ });
626
513
  }
627
- function oe(n, r) {
628
- return U(this, void 0, void 0, function() {
629
- return L(this, function(e) {
630
- switch (e.label) {
631
- case 0:
632
- return [4, Promise.all([
633
- N(n.work.getURL(n.front), n, r),
634
- N(n.work.getURL(n.back), n, r),
635
- N(n.work.getURL(n.left), n, r),
636
- N(n.work.getURL(n.right), n, r),
637
- N(n.work.getURL(n.up), n, r),
638
- N(n.work.getURL(n.down), n, r)
639
- ])];
640
- case 1:
641
- return e.sent(), [
642
- 2
643
- /*return*/
644
- ];
645
- }
646
- });
647
- });
514
+ function E(e, t, n) {
515
+ return d(this, void 0, void 0, function* () {
516
+ let r = s(n.distPath, f(e, n.baseURL)), i = h(e, r, n.fetch);
517
+ n.log((t) => `download: ${e} -> ${t}`, i), yield i;
518
+ let a = n.imageOptions.format;
519
+ a.length === 0 && a.push(void 0);
520
+ let o = n.imageOptions.size;
521
+ o.length === 0 && o.push(void 0);
522
+ for (let r of t) {
523
+ let t = e.replace(/cube\_\d+/, `cube_${r}`), i = s(n.distPath, f(t, n.baseURL)), o = h(t, i, n.fetch);
524
+ n.log((e) => `download ${t} -> ${i}`, o), yield o;
525
+ for (let e of a) {
526
+ let t = y(i, {
527
+ format: e,
528
+ toFilename: n.imageProcessingFilename
529
+ });
530
+ n.log((e) => `imageProcessing: ${i} -> ${e}`, t), yield t;
531
+ }
532
+ }
533
+ let c = [];
534
+ for (let e of a) for (let t of o) {
535
+ let i = y(r, {
536
+ format: e,
537
+ size: t,
538
+ toFilename: n.imageProcessingFilename
539
+ });
540
+ n.log((e) => `imageProcessing: ${r} -> ${e}`, i), c.push(i);
541
+ }
542
+ yield Promise.all(c);
543
+ });
648
544
  }
649
- function I(n, r, e) {
650
- return U(this, void 0, void 0, function() {
651
- var a, i, t, u, o, l, s, c, f, m, v, p, b, w, d, h;
652
- return L(this, function(y) {
653
- switch (y.label) {
654
- case 0:
655
- return a = _(e.distPath, S(n, e.baseURL)), i = E(n, a, e.fetch), e.log(function(k) {
656
- return "download: ".concat(n, " -> ").concat(k);
657
- }, i), [4, i];
658
- case 1:
659
- y.sent(), t = e.imageOptions.format, t.length === 0 && t.push(void 0), u = e.imageOptions.size, u.length === 0 && u.push(void 0), o = function(k) {
660
- var g, z, F, P, R, j, O;
661
- return L(this, function(T) {
662
- switch (T.label) {
663
- case 0:
664
- return g = n.replace(/cube\_\d+/, "cube_".concat(k)), z = _(e.distPath, S(g, e.baseURL)), F = E(g, z, e.fetch), e.log(function($) {
665
- return "download ".concat(g, " -> ").concat(z);
666
- }, F), [4, F];
667
- case 1:
668
- T.sent(), P = 0, R = t, T.label = 2;
669
- case 2:
670
- return P < R.length ? (j = R[P], O = B(z, {
671
- format: j,
672
- toFilename: e.imageProcessingFilename
673
- }), e.log(function($) {
674
- return "imageProcessing: ".concat(z, " -> ").concat($);
675
- }, O), [4, O]) : [3, 5];
676
- case 3:
677
- T.sent(), T.label = 4;
678
- case 4:
679
- return P++, [3, 2];
680
- case 5:
681
- return [
682
- 2
683
- /*return*/
684
- ];
685
- }
686
- });
687
- }, l = 0, s = r, y.label = 2;
688
- case 2:
689
- return l < s.length ? (c = s[l], [5, o(c)]) : [3, 5];
690
- case 3:
691
- y.sent(), y.label = 4;
692
- case 4:
693
- return l++, [3, 2];
694
- case 5:
695
- for (f = [], m = 0, v = t; m < v.length; m++)
696
- for (p = v[m], b = 0, w = u; b < w.length; b++)
697
- d = w[b], h = B(a, {
698
- format: p,
699
- size: d,
700
- toFilename: e.imageProcessingFilename
701
- }), e.log(function(k) {
702
- return "imageProcessing: ".concat(a, " -> ").concat(k);
703
- }, h), f.push(h);
704
- return [4, Promise.all(f)];
705
- case 6:
706
- return y.sent(), [
707
- 2
708
- /*return*/
709
- ];
710
- }
711
- });
712
- });
545
+ function D(e, t) {
546
+ return d(this, void 0, void 0, function* () {
547
+ let { images: n } = e;
548
+ yield Promise.all([
549
+ E(n.work.getURL(n.front), n.sizeList, t),
550
+ E(n.work.getURL(n.back), n.sizeList, t),
551
+ E(n.work.getURL(n.left), n.sizeList, t),
552
+ E(n.work.getURL(n.right), n.sizeList, t),
553
+ E(n.work.getURL(n.up), n.sizeList, t),
554
+ E(n.work.getURL(n.down), n.sizeList, t)
555
+ ]), n.tiles && (yield Promise.all(n.tiles.map((e) => T(e, t))));
556
+ });
713
557
  }
714
- function ce(n, r) {
715
- return U(this, void 0, void 0, function() {
716
- var e;
717
- return L(this, function(a) {
718
- switch (a.label) {
719
- case 0:
720
- return e = n.images, [4, Promise.all([
721
- I(e.work.getURL(e.front), e.sizeList, r),
722
- I(e.work.getURL(e.back), e.sizeList, r),
723
- I(e.work.getURL(e.left), e.sizeList, r),
724
- I(e.work.getURL(e.right), e.sizeList, r),
725
- I(e.work.getURL(e.up), e.sizeList, r),
726
- I(e.work.getURL(e.down), e.sizeList, r)
727
- ])];
728
- case 1:
729
- return a.sent(), e.tiles ? [4, Promise.all(e.tiles.map(function(i) {
730
- return oe(i, r);
731
- }))] : [3, 3];
732
- case 2:
733
- a.sent(), a.label = 3;
734
- case 3:
735
- return [
736
- 2
737
- /*return*/
738
- ];
739
- }
740
- });
741
- });
558
+ function O(e, t) {
559
+ return d(this, void 0, void 0, function* () {
560
+ let { observers: n } = e;
561
+ for (let e of n) {
562
+ let n = D(e, t);
563
+ t.log(`process observer #${e.index} derived: ${e.derivedIdStr}`, n), yield n;
564
+ }
565
+ });
742
566
  }
743
- function le(n, r) {
744
- return U(this, void 0, void 0, function() {
745
- var e, a, i, t, u;
746
- return L(this, function(o) {
747
- switch (o.label) {
748
- case 0:
749
- e = n.observers, a = 0, i = e, o.label = 1;
750
- case 1:
751
- return a < i.length ? (t = i[a], u = ce(t, r), r.log("process observer #".concat(t.index, " derived: ").concat(t.derivedIdStr), u), [4, u]) : [3, 4];
752
- case 2:
753
- o.sent(), o.label = 3;
754
- case 3:
755
- return a++, [3, 1];
756
- case 4:
757
- return [
758
- 2
759
- /*return*/
760
- ];
761
- }
762
- });
763
- });
567
+ //#endregion
568
+ //#region build/work-downloader/utils/log.js
569
+ function k(e, t) {
570
+ if (t) {
571
+ let n = Date.now();
572
+ t.then((t) => {
573
+ let r = Date.now() - n, i = typeof e == "function" ? e(t) : e;
574
+ console.log(i + `(${r}ms)`);
575
+ }).catch(() => {});
576
+ } else {
577
+ let t = typeof e == "function" ? e(null) : e;
578
+ console.log(t);
579
+ }
764
580
  }
765
- function fe(n, r) {
766
- if (r) {
767
- var e = Date.now();
768
- r.then(function(i) {
769
- var t = Date.now() - e, u = typeof n == "function" ? n(i) : n;
770
- console.log(u + "(".concat(t, "ms)"));
771
- }).catch(function() {
772
- });
773
- } else {
774
- var a = typeof n == "function" ? n(null) : n;
775
- console.log(a);
776
- }
581
+ //#endregion
582
+ //#region build/work-downloader/download.js
583
+ function A(e) {
584
+ return d(this, arguments, void 0, function* (e, r = {}) {
585
+ var a, o, s, l, u, d, f, p, m, h;
586
+ let g = e.baseURL, _ = "";
587
+ if (r.distPath) _ = c(process.cwd(), r.distPath);
588
+ else for (_ = c(process.cwd(), (a = e.workCode) == null ? `work-${Date.now()}` : a); t(_);) /.-(\d+)$/.test(_) ? _ = _.replace(/.-(\d+)$/, (e, t) => "-" + (Number(t) + 1)) : _ += "-1";
589
+ let v = {
590
+ baseURL: g,
591
+ distPath: _,
592
+ fetch: (o = r.fetch) == null ? fetch : o,
593
+ imageOptions: {
594
+ size: (l = (s = r.imageOptions) == null ? void 0 : s.size) == null ? [] : l,
595
+ format: (d = (u = r.imageOptions) == null ? void 0 : u.format) == null ? [] : d
596
+ },
597
+ textureOptions: {
598
+ size: (p = (f = r.textureOptions) == null ? void 0 : f.size) == null ? [] : p,
599
+ format: (h = (m = r.textureOptions) == null ? void 0 : m.format) == null ? [] : h
600
+ },
601
+ log: r.log ? k : (() => Promise.resolve()),
602
+ imageProcessingFilename: r.imageProcessingFilename
603
+ };
604
+ v.log(JSON.stringify(v, null, " ")), yield n(_, { recursive: !0 }), yield i(c(_, "work.json"), JSON.stringify(e.toJSON(), null, " ")), yield O(e, v), yield C(e, v);
605
+ });
777
606
  }
778
- function be(n) {
779
- return U(this, arguments, void 0, function(r, e) {
780
- var a, i, t, u, o, l, s, c, f, m, v, p, b, w, d;
781
- return e === void 0 && (e = {}), L(this, function(h) {
782
- switch (h.label) {
783
- case 0:
784
- if (a = r.baseURL, i = "", e.distPath)
785
- i = M(process.cwd(), e.distPath);
786
- else
787
- for (i = M(process.cwd(), (l = r.workCode) !== null && l !== void 0 ? l : "work-".concat(Date.now())); J(i); )
788
- /.-(\d+)$/.test(i) ? i = i.replace(/.-(\d+)$/, function(y, k) {
789
- return "-" + (Number(k) + 1);
790
- }) : i = i + "-1";
791
- return t = {
792
- baseURL: a,
793
- distPath: i,
794
- fetch: (s = e.fetch) !== null && s !== void 0 ? s : fetch,
795
- imageOptions: {
796
- size: (f = (c = e.imageOptions) === null || c === void 0 ? void 0 : c.size) !== null && f !== void 0 ? f : [],
797
- format: (v = (m = e.imageOptions) === null || m === void 0 ? void 0 : m.format) !== null && v !== void 0 ? v : []
798
- },
799
- textureOptions: {
800
- size: (b = (p = e.textureOptions) === null || p === void 0 ? void 0 : p.size) !== null && b !== void 0 ? b : [],
801
- format: (d = (w = e.textureOptions) === null || w === void 0 ? void 0 : w.format) !== null && d !== void 0 ? d : []
802
- },
803
- log: e.log ? fe : (function() {
804
- return Promise.resolve();
805
- }),
806
- imageProcessingFilename: e.imageProcessingFilename
807
- }, t.log(JSON.stringify(t, null, " ")), [4, H(i, { recursive: !0 })];
808
- case 1:
809
- return h.sent(), u = "work.json", o = M(i, u), [4, X(o, JSON.stringify(r.toJSON(), null, " "))];
810
- case 2:
811
- return h.sent(), [4, le(r, t)];
812
- case 3:
813
- return h.sent(), [4, ue(r, t)];
814
- case 4:
815
- return h.sent(), [
816
- 2
817
- /*return*/
818
- ];
819
- }
820
- });
821
- });
822
- }
823
- export {
824
- be as download
825
- };
607
+ //#endregion
608
+ export { A as download };