melonjs 20.3.0 → 20.4.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 (442) hide show
  1. package/README.md +19 -19
  2. package/build/application/application.d.ts +0 -17
  3. package/build/application/application.d.ts.map +1 -1
  4. package/build/application/settings.d.ts +3 -0
  5. package/build/application/settings.d.ts.map +1 -1
  6. package/build/audio/audio.d.ts.map +1 -1
  7. package/build/audio/backend/engine.d.ts +0 -19
  8. package/build/audio/backend/engine.d.ts.map +1 -1
  9. package/build/audio/backend/sound.d.ts +1 -51
  10. package/build/audio/backend/sound.d.ts.map +1 -1
  11. package/build/audio/backend/spatial.d.ts.map +1 -1
  12. package/build/audio/backend/types.d.ts +11 -1
  13. package/build/audio/backend/types.d.ts.map +1 -1
  14. package/build/audio/backend/voice.d.ts +0 -25
  15. package/build/audio/backend/voice.d.ts.map +1 -1
  16. package/build/audio/playback.d.ts.map +1 -1
  17. package/build/audio/procedural.d.ts.map +1 -1
  18. package/build/audio/state.d.ts +6 -79
  19. package/build/audio/state.d.ts.map +1 -1
  20. package/build/camera/camera2d.d.ts +0 -68
  21. package/build/camera/camera2d.d.ts.map +1 -1
  22. package/build/camera/camera3d.d.ts +86 -79
  23. package/build/camera/camera3d.d.ts.map +1 -1
  24. package/build/camera/effects/fade_effect.d.ts +0 -5
  25. package/build/camera/effects/fade_effect.d.ts.map +1 -1
  26. package/build/camera/effects/mask_effect.d.ts +0 -5
  27. package/build/camera/effects/mask_effect.d.ts.map +1 -1
  28. package/build/camera/fog.d.ts +118 -0
  29. package/build/camera/fog.d.ts.map +1 -0
  30. package/build/geometries/box3d.d.ts +0 -28
  31. package/build/geometries/box3d.d.ts.map +1 -1
  32. package/build/geometries/ellipse.d.ts +0 -20
  33. package/build/geometries/ellipse.d.ts.map +1 -1
  34. package/build/geometries/observablePoint.d.ts +0 -3
  35. package/build/geometries/observablePoint.d.ts.map +1 -1
  36. package/build/geometries/path2d.d.ts +0 -19
  37. package/build/geometries/path2d.d.ts.map +1 -1
  38. package/build/geometries/polygon.d.ts +0 -12
  39. package/build/geometries/polygon.d.ts.map +1 -1
  40. package/build/geometries/roundrect.d.ts +0 -18
  41. package/build/geometries/roundrect.d.ts.map +1 -1
  42. package/build/geometries/sphere.d.ts +0 -9
  43. package/build/geometries/sphere.d.ts.map +1 -1
  44. package/build/geometries/toarccanvas.d.ts.map +1 -1
  45. package/build/index.d.ts +1 -0
  46. package/build/index.d.ts.map +1 -1
  47. package/build/index.js +2652 -413
  48. package/build/index.js.map +3 -3
  49. package/build/input/gamepad.d.ts.map +1 -1
  50. package/build/input/pointer.d.ts +0 -4
  51. package/build/input/pointer.d.ts.map +1 -1
  52. package/build/input/pointerevent.d.ts +0 -6
  53. package/build/input/pointerevent.d.ts.map +1 -1
  54. package/build/lang/deprecated.d.ts.map +1 -1
  55. package/build/level/gltf/GLTFModel.d.ts +0 -81
  56. package/build/level/gltf/GLTFModel.d.ts.map +1 -1
  57. package/build/level/gltf/GLTFScene.d.ts +1 -44
  58. package/build/level/gltf/GLTFScene.d.ts.map +1 -1
  59. package/build/level/gltf/gltf_sampler.d.ts +1 -48
  60. package/build/level/gltf/gltf_sampler.d.ts.map +1 -1
  61. package/build/level/level.d.ts +195 -113
  62. package/build/level/level.d.ts.map +1 -1
  63. package/build/level/tiled/TMXGroup.d.ts +1 -65
  64. package/build/level/tiled/TMXGroup.d.ts.map +1 -1
  65. package/build/level/tiled/TMXLayer.d.ts +0 -44
  66. package/build/level/tiled/TMXLayer.d.ts.map +1 -1
  67. package/build/level/tiled/TMXObject.d.ts +1 -136
  68. package/build/level/tiled/TMXObject.d.ts.map +1 -1
  69. package/build/level/tiled/TMXObjectFactory.d.ts +1 -40
  70. package/build/level/tiled/TMXObjectFactory.d.ts.map +1 -1
  71. package/build/level/tiled/TMXTile.d.ts +1 -30
  72. package/build/level/tiled/TMXTile.d.ts.map +1 -1
  73. package/build/level/tiled/TMXTileMap.d.ts +0 -10
  74. package/build/level/tiled/TMXTileMap.d.ts.map +1 -1
  75. package/build/level/tiled/TMXTileset.d.ts +0 -113
  76. package/build/level/tiled/TMXTileset.d.ts.map +1 -1
  77. package/build/level/tiled/TMXTilesetGroup.d.ts +0 -1
  78. package/build/level/tiled/TMXTilesetGroup.d.ts.map +1 -1
  79. package/build/level/tiled/TMXUtils.d.ts +1 -43
  80. package/build/level/tiled/TMXUtils.d.ts.map +1 -1
  81. package/build/level/tiled/factories/shape.d.ts +1 -7
  82. package/build/level/tiled/factories/shape.d.ts.map +1 -1
  83. package/build/level/tiled/factories/text.d.ts +1 -7
  84. package/build/level/tiled/factories/text.d.ts.map +1 -1
  85. package/build/level/tiled/factories/tile.d.ts +1 -7
  86. package/build/level/tiled/factories/tile.d.ts.map +1 -1
  87. package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts +0 -60
  88. package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts.map +1 -1
  89. package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts +0 -42
  90. package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts.map +1 -1
  91. package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts +0 -5
  92. package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts.map +1 -1
  93. package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts +0 -31
  94. package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts.map +1 -1
  95. package/build/level/tiled/renderer/TMXRenderer.d.ts +2 -2
  96. package/build/level/tiled/renderer/TMXRenderer.d.ts.map +1 -1
  97. package/build/level/tiled/renderer/TMXStaggeredRenderer.d.ts.map +1 -1
  98. package/build/level/tiled/renderer/autodetect.d.ts +1 -6
  99. package/build/level/tiled/renderer/autodetect.d.ts.map +1 -1
  100. package/build/lighting/light2d.d.ts +0 -25
  101. package/build/lighting/light2d.d.ts.map +1 -1
  102. package/build/lighting/light3d.d.ts +0 -16
  103. package/build/lighting/light3d.d.ts.map +1 -1
  104. package/build/loader/loader.d.ts +42 -33
  105. package/build/loader/loader.d.ts.map +1 -1
  106. package/build/loader/loadingscreen.d.ts +0 -33
  107. package/build/loader/loadingscreen.d.ts.map +1 -1
  108. package/build/loader/parsers/aseprite.d.ts +0 -13
  109. package/build/loader/parsers/aseprite.d.ts.map +1 -1
  110. package/build/loader/parsers/audio.d.ts +1 -30
  111. package/build/loader/parsers/audio.d.ts.map +1 -1
  112. package/build/loader/parsers/binary.d.ts +1 -10
  113. package/build/loader/parsers/binary.d.ts.map +1 -1
  114. package/build/loader/parsers/compressed_textures/compressed_image.d.ts.map +1 -1
  115. package/build/loader/parsers/compressed_textures/parseDDS.d.ts +1 -7
  116. package/build/loader/parsers/compressed_textures/parseDDS.d.ts.map +1 -1
  117. package/build/loader/parsers/compressed_textures/parseKTX.d.ts +1 -7
  118. package/build/loader/parsers/compressed_textures/parseKTX.d.ts.map +1 -1
  119. package/build/loader/parsers/compressed_textures/parseKTX2.d.ts +1 -7
  120. package/build/loader/parsers/compressed_textures/parseKTX2.d.ts.map +1 -1
  121. package/build/loader/parsers/compressed_textures/parsePKM.d.ts +1 -7
  122. package/build/loader/parsers/compressed_textures/parsePKM.d.ts.map +1 -1
  123. package/build/loader/parsers/compressed_textures/parsePVR.d.ts +1 -7
  124. package/build/loader/parsers/compressed_textures/parsePVR.d.ts.map +1 -1
  125. package/build/loader/parsers/fontface.d.ts +1 -13
  126. package/build/loader/parsers/fontface.d.ts.map +1 -1
  127. package/build/loader/parsers/gltf.d.ts +1 -70
  128. package/build/loader/parsers/gltf.d.ts.map +1 -1
  129. package/build/loader/parsers/image.d.ts +1 -22
  130. package/build/loader/parsers/image.d.ts.map +1 -1
  131. package/build/loader/parsers/json.d.ts +1 -10
  132. package/build/loader/parsers/json.d.ts.map +1 -1
  133. package/build/loader/parsers/mtl.d.ts +1 -28
  134. package/build/loader/parsers/mtl.d.ts.map +1 -1
  135. package/build/loader/parsers/obj.d.ts +1 -59
  136. package/build/loader/parsers/obj.d.ts.map +1 -1
  137. package/build/loader/parsers/pbr.d.ts +1 -62
  138. package/build/loader/parsers/pbr.d.ts.map +1 -1
  139. package/build/loader/parsers/script.d.ts +1 -10
  140. package/build/loader/parsers/script.d.ts.map +1 -1
  141. package/build/loader/parsers/shader.d.ts +1 -52
  142. package/build/loader/parsers/shader.d.ts.map +1 -1
  143. package/build/loader/parsers/tmx.d.ts +1 -10
  144. package/build/loader/parsers/tmx.d.ts.map +1 -1
  145. package/build/loader/parsers/video.d.ts +1 -10
  146. package/build/loader/parsers/video.d.ts.map +1 -1
  147. package/build/math/color.d.ts.map +1 -1
  148. package/build/math/noise.d.ts +0 -40
  149. package/build/math/noise.d.ts.map +1 -1
  150. package/build/math/observableVector2d.d.ts +0 -3
  151. package/build/math/observableVector2d.d.ts.map +1 -1
  152. package/build/math/observableVector3d.d.ts +0 -3
  153. package/build/math/observableVector3d.d.ts.map +1 -1
  154. package/build/math/vector2d.d.ts +0 -6
  155. package/build/math/vector2d.d.ts.map +1 -1
  156. package/build/math/vertex.d.ts +25 -0
  157. package/build/math/vertex.d.ts.map +1 -1
  158. package/build/particles/emitter.d.ts +0 -65
  159. package/build/particles/emitter.d.ts.map +1 -1
  160. package/build/particles/particle.d.ts +0 -81
  161. package/build/particles/particle.d.ts.map +1 -1
  162. package/build/physics/bounds.d.ts +0 -1
  163. package/build/physics/bounds.d.ts.map +1 -1
  164. package/build/physics/broadphase/broadphase.d.ts +0 -7
  165. package/build/physics/broadphase/broadphase.d.ts.map +1 -1
  166. package/build/physics/broadphase/octree.d.ts +0 -91
  167. package/build/physics/broadphase/octree.d.ts.map +1 -1
  168. package/build/physics/broadphase/quadtree.d.ts +0 -47
  169. package/build/physics/broadphase/quadtree.d.ts.map +1 -1
  170. package/build/physics/builtin/body.d.ts +2 -65
  171. package/build/physics/builtin/body.d.ts.map +1 -1
  172. package/build/physics/builtin/detector.d.ts +0 -312
  173. package/build/physics/builtin/detector.d.ts.map +1 -1
  174. package/build/physics/builtin/sat.d.ts +1 -48
  175. package/build/physics/builtin/sat.d.ts.map +1 -1
  176. package/build/physics/builtin/sat3d.d.ts +1 -56
  177. package/build/physics/builtin/sat3d.d.ts.map +1 -1
  178. package/build/physics/collision.d.ts +0 -2
  179. package/build/physics/collision.d.ts.map +1 -1
  180. package/build/physics/response.d.ts +0 -1
  181. package/build/physics/response.d.ts.map +1 -1
  182. package/build/physics/world.d.ts.map +1 -1
  183. package/build/renderable/anchorPoint.d.ts +1 -73
  184. package/build/renderable/anchorPoint.d.ts.map +1 -1
  185. package/build/renderable/animation.d.ts +0 -7
  186. package/build/renderable/animation.d.ts.map +1 -1
  187. package/build/renderable/colorlayer.d.ts +0 -5
  188. package/build/renderable/colorlayer.d.ts.map +1 -1
  189. package/build/renderable/container.d.ts +0 -55
  190. package/build/renderable/container.d.ts.map +1 -1
  191. package/build/renderable/draggable.d.ts +0 -5
  192. package/build/renderable/draggable.d.ts.map +1 -1
  193. package/build/renderable/dragndrop.d.ts +1 -12
  194. package/build/renderable/dragndrop.d.ts.map +1 -1
  195. package/build/renderable/entity/entity.d.ts +0 -8
  196. package/build/renderable/entity/entity.d.ts.map +1 -1
  197. package/build/renderable/frameAnimation.d.ts +0 -41
  198. package/build/renderable/frameAnimation.d.ts.map +1 -1
  199. package/build/renderable/groundshadow.d.ts +1 -91
  200. package/build/renderable/groundshadow.d.ts.map +1 -1
  201. package/build/renderable/imagelayer.d.ts +0 -29
  202. package/build/renderable/imagelayer.d.ts.map +1 -1
  203. package/build/renderable/instanced_mesh.d.ts +26 -104
  204. package/build/renderable/instanced_mesh.d.ts.map +1 -1
  205. package/build/renderable/mesh.d.ts +130 -141
  206. package/build/renderable/mesh.d.ts.map +1 -1
  207. package/build/renderable/nineslicesprite.d.ts +0 -4
  208. package/build/renderable/nineslicesprite.d.ts.map +1 -1
  209. package/build/renderable/renderable.d.ts +1 -44
  210. package/build/renderable/renderable.d.ts.map +1 -1
  211. package/build/renderable/sprite.d.ts +0 -45
  212. package/build/renderable/sprite.d.ts.map +1 -1
  213. package/build/renderable/sprite3d.d.ts +0 -95
  214. package/build/renderable/sprite3d.d.ts.map +1 -1
  215. package/build/renderable/text/bitmaptext.d.ts +0 -14
  216. package/build/renderable/text/bitmaptext.d.ts.map +1 -1
  217. package/build/renderable/text/bitmaptextdata.d.ts +0 -22
  218. package/build/renderable/text/bitmaptextdata.d.ts.map +1 -1
  219. package/build/renderable/text/glyph.d.ts +1 -39
  220. package/build/renderable/text/glyph.d.ts.map +1 -1
  221. package/build/renderable/text/text.d.ts +0 -20
  222. package/build/renderable/text/text.d.ts.map +1 -1
  223. package/build/renderable/text/textstyle.d.ts +1 -5
  224. package/build/renderable/text/textstyle.d.ts.map +1 -1
  225. package/build/renderable/trail.d.ts +0 -29
  226. package/build/renderable/trail.d.ts.map +1 -1
  227. package/build/renderable/trigger.d.ts +0 -6
  228. package/build/renderable/trigger.d.ts.map +1 -1
  229. package/build/renderable/ui/uibaseelement.d.ts +0 -40
  230. package/build/renderable/ui/uibaseelement.d.ts.map +1 -1
  231. package/build/renderable/ui/uispriteelement.d.ts +0 -35
  232. package/build/renderable/ui/uispriteelement.d.ts.map +1 -1
  233. package/build/state/stage.d.ts +0 -66
  234. package/build/state/stage.d.ts.map +1 -1
  235. package/build/state/state.d.ts.map +1 -1
  236. package/build/system/device.d.ts +0 -12
  237. package/build/system/device.d.ts.map +1 -1
  238. package/build/system/dom.d.ts +1 -8
  239. package/build/system/dom.d.ts.map +1 -1
  240. package/build/system/legacy_pool.d.ts +1 -6
  241. package/build/system/legacy_pool.d.ts.map +1 -1
  242. package/build/system/platform.d.ts +0 -1
  243. package/build/system/platform.d.ts.map +1 -1
  244. package/build/system/pool.d.ts +0 -9
  245. package/build/system/pool.d.ts.map +1 -1
  246. package/build/system/save.d.ts.map +1 -1
  247. package/build/system/timer.d.ts +0 -20
  248. package/build/system/timer.d.ts.map +1 -1
  249. package/build/tweens/tween.d.ts +0 -62
  250. package/build/tweens/tween.d.ts.map +1 -1
  251. package/build/utils/array-multimap.d.ts +1 -13
  252. package/build/utils/array-multimap.d.ts.map +1 -1
  253. package/build/utils/decode.d.ts.map +1 -1
  254. package/build/utils/fetchdata.d.ts +1 -31
  255. package/build/utils/fetchdata.d.ts.map +1 -1
  256. package/build/utils/utils.d.ts +0 -13
  257. package/build/utils/utils.d.ts.map +1 -1
  258. package/build/video/blendmodes.d.ts +1 -106
  259. package/build/video/blendmodes.d.ts.map +1 -1
  260. package/build/video/buffer/index.d.ts +1 -39
  261. package/build/video/buffer/index.d.ts.map +1 -1
  262. package/build/video/buffer/vertex.d.ts +1 -82
  263. package/build/video/buffer/vertex.d.ts.map +1 -1
  264. package/build/video/canvas/canvas_renderer.d.ts +2 -23
  265. package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
  266. package/build/video/canvas_factory.d.ts +1 -24
  267. package/build/video/canvas_factory.d.ts.map +1 -1
  268. package/build/video/effects/blendEffect.d.ts +0 -54
  269. package/build/video/effects/blendEffect.d.ts.map +1 -1
  270. package/build/video/effects/colorMatrix.d.ts +0 -10
  271. package/build/video/effects/colorMatrix.d.ts.map +1 -1
  272. package/build/video/effects/glsl_realization.d.ts +1 -17
  273. package/build/video/effects/glsl_realization.d.ts.map +1 -1
  274. package/build/video/effects/radialGradient.d.ts +0 -1
  275. package/build/video/effects/radialGradient.d.ts.map +1 -1
  276. package/build/video/effects/shadereffect.d.ts +0 -113
  277. package/build/video/effects/shadereffect.d.ts.map +1 -1
  278. package/build/video/effects/wgsl/layout.d.ts +1 -27
  279. package/build/video/effects/wgsl/layout.d.ts.map +1 -1
  280. package/build/video/effects/wgsl/parse.d.ts +1 -8
  281. package/build/video/effects/wgsl/parse.d.ts.map +1 -1
  282. package/build/video/effects/wgsl/scaffold.d.ts +1 -42
  283. package/build/video/effects/wgsl/scaffold.d.ts.map +1 -1
  284. package/build/video/effects/wgsl_realization.d.ts +1 -82
  285. package/build/video/effects/wgsl_realization.d.ts.map +1 -1
  286. package/build/video/gpu/batcher.d.ts +1 -13
  287. package/build/video/gpu/batcher.d.ts.map +1 -1
  288. package/build/video/gpu/instancerecord.d.ts +1 -163
  289. package/build/video/gpu/instancerecord.d.ts.map +1 -1
  290. package/build/video/gpu/meshchunk.d.ts +1 -48
  291. package/build/video/gpu/meshchunk.d.ts.map +1 -1
  292. package/build/video/gpu/meshvertex.d.ts +1 -53
  293. package/build/video/gpu/meshvertex.d.ts.map +1 -1
  294. package/build/video/gpu/primitives.d.ts +1 -59
  295. package/build/video/gpu/primitives.d.ts.map +1 -1
  296. package/build/video/gpu/quadcorners.d.ts +1 -10
  297. package/build/video/gpu/quadcorners.d.ts.map +1 -1
  298. package/build/video/gpu/textureslots.d.ts +1 -121
  299. package/build/video/gpu/textureslots.d.ts.map +1 -1
  300. package/build/video/gpu/texturestore.d.ts +1 -138
  301. package/build/video/gpu/texturestore.d.ts.map +1 -1
  302. package/build/video/gpu/topology.d.ts.map +1 -1
  303. package/build/video/gpu/vertexformat.d.ts +0 -28
  304. package/build/video/gpu/vertexformat.d.ts.map +1 -1
  305. package/build/video/gradient.d.ts +0 -81
  306. package/build/video/gradient.d.ts.map +1 -1
  307. package/build/video/renderer.d.ts +21 -102
  308. package/build/video/renderer.d.ts.map +1 -1
  309. package/build/video/renderstate.d.ts +0 -51
  310. package/build/video/renderstate.d.ts.map +1 -1
  311. package/build/video/rendertarget/canvasrendertarget.d.ts +0 -10
  312. package/build/video/rendertarget/canvasrendertarget.d.ts.map +1 -1
  313. package/build/video/rendertarget/render_target_pool.d.ts +1 -82
  314. package/build/video/rendertarget/render_target_pool.d.ts.map +1 -1
  315. package/build/video/rendertarget/webglrendertarget.d.ts +1 -64
  316. package/build/video/rendertarget/webglrendertarget.d.ts.map +1 -1
  317. package/build/video/rendertarget/webgpurendertarget.d.ts +0 -8
  318. package/build/video/rendertarget/webgpurendertarget.d.ts.map +1 -1
  319. package/build/video/texture/atlas.d.ts +1 -75
  320. package/build/video/texture/atlas.d.ts.map +1 -1
  321. package/build/video/texture/cache.d.ts +0 -136
  322. package/build/video/texture/cache.d.ts.map +1 -1
  323. package/build/video/texture/frametexture.d.ts +1 -71
  324. package/build/video/texture/frametexture.d.ts.map +1 -1
  325. package/build/video/texture/noise_texture2d.d.ts +0 -43
  326. package/build/video/texture/noise_texture2d.d.ts.map +1 -1
  327. package/build/video/texture/parser/aseprite.d.ts +1 -8
  328. package/build/video/texture/parser/aseprite.d.ts.map +1 -1
  329. package/build/video/texture/parser/spritesheet.d.ts +1 -8
  330. package/build/video/texture/parser/spritesheet.d.ts.map +1 -1
  331. package/build/video/texture/parser/texturepacker.d.ts +1 -8
  332. package/build/video/texture/parser/texturepacker.d.ts.map +1 -1
  333. package/build/video/texture/resource.d.ts +0 -9
  334. package/build/video/texture/resource.d.ts.map +1 -1
  335. package/build/video/texture/texture2d.d.ts +0 -11
  336. package/build/video/texture/texture2d.d.ts.map +1 -1
  337. package/build/video/utils/autodetect.d.ts +1 -5
  338. package/build/video/utils/autodetect.d.ts.map +1 -1
  339. package/build/video/webgl/batchers/batcher.d.ts +0 -55
  340. package/build/video/webgl/batchers/batcher.d.ts.map +1 -1
  341. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts +0 -14
  342. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts.map +1 -1
  343. package/build/video/webgl/batchers/lit_quad_batcher.d.ts +0 -72
  344. package/build/video/webgl/batchers/lit_quad_batcher.d.ts.map +1 -1
  345. package/build/video/webgl/batchers/material_batcher.d.ts +0 -89
  346. package/build/video/webgl/batchers/material_batcher.d.ts.map +1 -1
  347. package/build/video/webgl/batchers/mesh_batcher.d.ts +14 -343
  348. package/build/video/webgl/batchers/mesh_batcher.d.ts.map +1 -1
  349. package/build/video/webgl/batchers/primitive_batcher.d.ts +0 -10
  350. package/build/video/webgl/batchers/primitive_batcher.d.ts.map +1 -1
  351. package/build/video/webgl/batchers/quad_batcher.d.ts +0 -30
  352. package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -1
  353. package/build/video/webgl/buffer/index.d.ts +1 -36
  354. package/build/video/webgl/buffer/index.d.ts.map +1 -1
  355. package/build/video/webgl/buffer/instance_buffer.d.ts +1 -53
  356. package/build/video/webgl/buffer/instance_buffer.d.ts.map +1 -1
  357. package/build/video/webgl/buffer/retained_geometry.d.ts +1 -81
  358. package/build/video/webgl/buffer/retained_geometry.d.ts.map +1 -1
  359. package/build/video/webgl/buffer/uniformblock.d.ts +1 -80
  360. package/build/video/webgl/buffer/uniformblock.d.ts.map +1 -1
  361. package/build/video/webgl/buffer/vertexstate.d.ts +1 -100
  362. package/build/video/webgl/buffer/vertexstate.d.ts.map +1 -1
  363. package/build/video/webgl/glshader.d.ts +0 -49
  364. package/build/video/webgl/glshader.d.ts.map +1 -1
  365. package/build/video/webgl/lighting/pack3d.d.ts +1 -47
  366. package/build/video/webgl/lighting/pack3d.d.ts.map +1 -1
  367. package/build/video/webgl/lighting/std140.d.ts +1 -109
  368. package/build/video/webgl/lighting/std140.d.ts.map +1 -1
  369. package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts +1 -103
  370. package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
  371. package/build/video/webgl/shaders/multitexture-lit.d.ts +1 -26
  372. package/build/video/webgl/shaders/multitexture-lit.d.ts.map +1 -1
  373. package/build/video/webgl/shaders/multitexture.d.ts +1 -9
  374. package/build/video/webgl/shaders/multitexture.d.ts.map +1 -1
  375. package/build/video/webgl/texture/store.d.ts +1 -50
  376. package/build/video/webgl/texture/store.d.ts.map +1 -1
  377. package/build/video/webgl/utils/attributes.d.ts +1 -11
  378. package/build/video/webgl/utils/attributes.d.ts.map +1 -1
  379. package/build/video/webgl/utils/maxtextures.d.ts +1 -36
  380. package/build/video/webgl/utils/maxtextures.d.ts.map +1 -1
  381. package/build/video/webgl/utils/precision.d.ts +1 -14
  382. package/build/video/webgl/utils/precision.d.ts.map +1 -1
  383. package/build/video/webgl/utils/program.d.ts +1 -5
  384. package/build/video/webgl/utils/program.d.ts.map +1 -1
  385. package/build/video/webgl/utils/samplercache.d.ts +1 -68
  386. package/build/video/webgl/utils/samplercache.d.ts.map +1 -1
  387. package/build/video/webgl/utils/string.d.ts +1 -21
  388. package/build/video/webgl/utils/string.d.ts.map +1 -1
  389. package/build/video/webgl/utils/topology.d.ts +1 -23
  390. package/build/video/webgl/utils/topology.d.ts.map +1 -1
  391. package/build/video/webgl/utils/uniforms.d.ts +1 -25
  392. package/build/video/webgl/utils/uniforms.d.ts.map +1 -1
  393. package/build/video/webgl/utils/vertexformat.d.ts +1 -26
  394. package/build/video/webgl/utils/vertexformat.d.ts.map +1 -1
  395. package/build/video/webgl/webgl_renderer.d.ts +22 -285
  396. package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
  397. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts +0 -6
  398. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts.map +1 -1
  399. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts +0 -8
  400. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts.map +1 -1
  401. package/build/video/webgpu/batchers/mesh_batcher.d.ts +1 -230
  402. package/build/video/webgpu/batchers/mesh_batcher.d.ts.map +1 -1
  403. package/build/video/webgpu/batchers/primitive_batcher.d.ts.map +1 -1
  404. package/build/video/webgpu/batchers/quad_batcher.d.ts +0 -82
  405. package/build/video/webgpu/batchers/quad_batcher.d.ts.map +1 -1
  406. package/build/video/webgpu/buffer/arena.d.ts +1 -63
  407. package/build/video/webgpu/buffer/arena.d.ts.map +1 -1
  408. package/build/video/webgpu/buffer/instance_buffer.d.ts +1 -64
  409. package/build/video/webgpu/buffer/instance_buffer.d.ts.map +1 -1
  410. package/build/video/webgpu/buffer/retained_geometry.d.ts +1 -54
  411. package/build/video/webgpu/buffer/retained_geometry.d.ts.map +1 -1
  412. package/build/video/webgpu/buffer/uniformring.d.ts +1 -67
  413. package/build/video/webgpu/buffer/uniformring.d.ts.map +1 -1
  414. package/build/video/webgpu/effect_binding.d.ts +1 -16
  415. package/build/video/webgpu/effect_binding.d.ts.map +1 -1
  416. package/build/video/webgpu/pipeline/bindgroups.d.ts +1 -32
  417. package/build/video/webgpu/pipeline/bindgroups.d.ts.map +1 -1
  418. package/build/video/webgpu/pipeline/cache.d.ts +1 -163
  419. package/build/video/webgpu/pipeline/cache.d.ts.map +1 -1
  420. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts +1 -87
  421. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
  422. package/build/video/webgpu/shaders/mesh-instanced.d.ts +1 -43
  423. package/build/video/webgpu/shaders/mesh-instanced.d.ts.map +1 -1
  424. package/build/video/webgpu/texture/compressed.d.ts +1 -32
  425. package/build/video/webgpu/texture/compressed.d.ts.map +1 -1
  426. package/build/video/webgpu/texture/frametexture.d.ts +1 -62
  427. package/build/video/webgpu/texture/frametexture.d.ts.map +1 -1
  428. package/build/video/webgpu/texture/store.d.ts +1 -147
  429. package/build/video/webgpu/texture/store.d.ts.map +1 -1
  430. package/build/video/webgpu/webgpu_renderer.d.ts +0 -88
  431. package/build/video/webgpu/webgpu_renderer.d.ts.map +1 -1
  432. package/package.json +5 -4
  433. package/skills/melonjs/SKILL.md +1 -1
  434. package/skills/melonjs-3d/SKILL.md +301 -2
  435. package/skills/melonjs-3d-assets/SKILL.md +25 -6
  436. package/skills/melonjs-audio/SKILL.md +21 -0
  437. package/skills/melonjs-camera-and-drawing/SKILL.md +4 -0
  438. package/skills/melonjs-effects-and-shaders/SKILL.md +2 -1
  439. package/skills/melonjs-loading-assets/SKILL.md +30 -1
  440. package/skills/melonjs-performance/SKILL.md +5 -0
  441. package/skills/melonjs-tilemaps/SKILL.md +31 -11
  442. package/skills/melonjs-ui-and-text/SKILL.md +17 -127
@@ -1 +1 @@
1
- {"version":3,"file":"mtl.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/mtl.js"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;;GAgBG;AACH,+BALW,MAAM,YACN,MAAM,GACJ,MAAM,CAkJlB;AAED;;;;;;;;GAQG;AACH,iCAPW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAwElB"}
1
+ {"version":3,"file":"mtl.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/mtl.js"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;;;GAiBG;AACH,+BANW,MAAM,YACN,MAAM,GACJ,MAAM,CAmJlB;AAED;;;;;;;;;GASG;AACH,iCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAyElB"}
@@ -1,60 +1,2 @@
1
- /**
2
- * Parse a Wavefront OBJ file into geometry data.
3
- * Supports: `v` (vertex positions), `vt` (texture coordinates),
4
- * `f` (faces in `v`, `v/vt`, `v/vt/vn`, or `v//vn` format),
5
- * `mtllib` (material library reference),
6
- * `usemtl` (material group boundaries — emitted as `groups[]`).
7
- *
8
- * Features:
9
- * - Quad and n-gon triangulation (fan from first vertex)
10
- * - Automatic CW → CCW winding correction via signed volume test
11
- * - V texture coordinate flipped for OpenGL convention (OBJ has origin at bottom-left)
12
- * - Single-pass parsing with direct vertex unification (no intermediate arrays)
13
- * - Material grouping: each `usemtl` switch emits a new `groups[]` entry
14
- * pointing to a slice of the unified `indices` buffer, so callers
15
- * (e.g. `Mesh`) can render each group with its own material without
16
- * touching the geometry. A model with no `usemtl` directives produces
17
- * a single group with `materialName: null`.
18
- *
19
- * `vn` (vertex normals) are consumed: a face referencing them
20
- * (`v//vn` or `v/vt/vn`) produces unified vertices carrying the authored
21
- * normal, so an OBJ model lights under `Light3d` exactly as the same model
22
- * imported from glTF does. Every vertex WITHOUT a usable authored normal
23
- * gets one GENERATED from face geometry — angle-weighted, accumulated per
24
- * source position and normalized, i.e. smooth across UV and material seams
25
- * — after the winding correction below, so the result follows the final
26
- * triangle orientation rather than the authored one. That rule is
27
- * per-vertex, so a file mixing normalled and un-normalled faces, or one
28
- * carrying an out-of-range `vn`, still comes out fully normalled.
29
- *
30
- * Parsed but ignored: `g` (groups), `s` (smooth shading — generated normals
31
- * are smooth across the whole mesh, so a model relying on hard edges from
32
- * smoothing groups will read softer than authored),
33
- * `o` (object name).
34
- *
35
- * @param {string} text - raw OBJ file contents
36
- * @returns {object} parsed geometry with `vertices` (Float32Array),
37
- * `uvs` (Float32Array), `normals` (Float32Array), `indices`
38
- * (Uint16Array, widening to Uint32Array past 65 536 vertices),
39
- * `vertexCount` (number),
40
- * `mtllib` (string|null), and `groups`
41
- * (Array<{materialName: string|null, start: number, count: number}>).
42
- * `groups` follows the glTF convention — each entry is a
43
- * contiguous slice of the shared `indices` buffer that draws as one
44
- * submesh against a single material. Single-material models still
45
- * produce a `groups` array of length 1, so consumers don't need a
46
- * special case.
47
- * @ignore
48
- */
49
- export function parseOBJ(text: string): object;
50
- /**
51
- * parse/preload a Wavefront OBJ file
52
- * @param {loader.Asset} data - asset data
53
- * @param {Function} [onload] - function to be called when the resource is loaded
54
- * @param {Function} [onerror] - function to be called in case of error
55
- * @param {Object} [settings] - Additional settings to be passed when loading the asset
56
- * @returns {number} the amount of corresponding resource parsed/preloaded
57
- * @ignore
58
- */
59
- export function preloadOBJ(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
1
+
60
2
  //# sourceMappingURL=obj.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"obj.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/obj.js"],"names":[],"mappings":"AAqEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,+BAdW,MAAM,GACJ,MAAM,CAkZlB;AAED;;;;;;;;GAQG;AACH,iCAPW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAuBlB"}
1
+ {"version":3,"file":"obj.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/obj.js"],"names":[],"mappings":"AAuEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,+BAfW,MAAM,GACJ,MAAM,CAqZlB;AAED;;;;;;;;;GASG;AACH,iCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAwBlB"}
@@ -1,63 +1,2 @@
1
- /**
2
- * Mapping authored metallic/roughness onto the lit mesh path's Blinn-Phong
3
- * terms (#1575).
4
- *
5
- * Two formats describe the same material concept — glTF's
6
- * `pbrMetallicRoughness` and MTL's `Pr` / `Pm` extension, both of which
7
- * Blender writes by default — and both land here so the two cannot drift
8
- * apart. What they land ON is a stylized half-Lambert shading model, not a
9
- * microfacet BRDF, so this is deliberately an APPROXIMATION: the point is to
10
- * recover the "is this surface glossy, and what colour does it glint"
11
- * information the asset already carries, rather than to be energy-correct.
12
- *
13
- * An explicitly authored specular (`Ks` + `Ns`) always wins over this — it
14
- * says exactly what the artist wanted, where metallic/roughness only implies
15
- * it.
16
- * @ignore
17
- */
18
- /**
19
- * The exponent a mirror-smooth surface is clamped to. The Blinn-Phong
20
- * exponent runs away as roughness approaches 0, and a highlight narrower
21
- * than a pixel only aliases.
22
- * @ignore
23
- */
24
- export declare const MAX_SHININESS = 256;
25
- /**
26
- * The specular reflectance of a non-metal, the standard value used by every
27
- * metallic/roughness workflow. Metals reflect their own base colour instead.
28
- * @ignore
29
- */
30
- export declare const DIELECTRIC_F0 = 0.04;
31
- /**
32
- * The result of the mapping: a specular colour and exponent ready to hand to
33
- * a {@link Mesh}, or `undefined` / `0` when the material implies no
34
- * highlight at all.
35
- * @ignore
36
- */
37
- export interface SpecularTerms {
38
- /** specular colour `[r, g, b]`, or `undefined` for none */
39
- specular: number[] | undefined;
40
- /** specular exponent; `0` disables the term outright */
41
- shininess: number;
42
- }
43
- /**
44
- * Map a metallic/roughness pair onto a Blinn-Phong specular colour and
45
- * exponent.
46
- *
47
- * - **roughness → exponent** through the usual Blinn-Phong/GGX bridge,
48
- * `2 / a^4 - 2` for `a = roughness^2`. A roughness of 1 — which is the
49
- * glTF default, and what a matte material declares — lands on exactly 0,
50
- * so a material that says nothing gets no highlight and shades exactly as
51
- * it did before this existed.
52
- * - **metallic → tint**, interpolating from the dielectric reflectance to
53
- * the material's own base colour. Chrome glints in its own hue while
54
- * plaster gets a faint neutral sheen, which is the visible half of the
55
- * metal/non-metal distinction.
56
- * @param roughness - authored roughness (0..1); absent or malformed reads as 1
57
- * @param metallic - authored metalness (0..1); absent or malformed reads as 1
58
- * @param baseColor - the material's base colour, `[r, g, b, a?]`
59
- * @returns the specular terms, inert when the material implies no highlight
60
- * @ignore
61
- */
62
- export declare function specularFromMetallicRoughness(roughness: unknown, metallic: unknown, baseColor?: number[]): SpecularTerms;
1
+
63
2
  //# sourceMappingURL=pbr.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pbr.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/pbr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC;;;;GAIG;AACH,eAAO,MAAM,aAAa,OAAO,CAAC;AAElC;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC7B,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,wDAAwD;IACxD,SAAS,EAAE,MAAM,CAAC;CAClB;AAgBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,6BAA6B,CAC5C,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,OAAO,EACjB,SAAS,GAAE,MAAM,EAAiB,GAChC,aAAa,CAaf"}
1
+ {"version":3,"file":"pbr.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/pbr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,11 +1,2 @@
1
- /**
2
- * parse/preload a Javascript files
3
- * @param {loader.Asset} data - asset data
4
- * @param {Function} [onload] - function to be called when the resource is loaded
5
- * @param {Function} [onerror] - function to be called in case of error
6
- * @param {Object} [settings] - Additional settings to be passed when loading the asset
7
- * @returns {number} the amount of corresponding resource parsed/preloaded
8
- * @ignore
9
- */
10
- export function preloadJavascript(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
1
+
11
2
  //# sourceMappingURL=script.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/script.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wCAPW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CA8BlB"}
1
+ {"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/script.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CA+BlB"}
@@ -1,55 +1,4 @@
1
- /**
2
- * compile a shader asset's source into its shared, loader-owned instance:
3
- * a fragment body (the `apply()` convention) compiles into a
4
- * {@link ShaderEffect}; a complete program — a `{vertex, fragment}` GLSL
5
- * pair and/or a `wgsl` full module, either omittable — compiles into a
6
- * {@link GLShader} carrying whichever realizations were declared, for the
7
- * hosted paths that take one (a `Mesh` custom shader,
8
- * `renderer.customShader`, a custom batcher). The active renderer hosts
9
- * the realization it speaks; a shader without one for this backend is
10
- * inert — assigning it degrades to built-in shading, never fails.
11
- * @param {string|object} source - the fragment body (or `{glsl, wgsl}`
12
- * bodies), or a complete program: `{vertex, fragment, wgsl?, precision?}`
13
- * @returns {ShaderEffect|GLShader} the compiled asset, flagged `shared`
14
- * @throws if called before any `app.init()` resolved (no renderer to compile against)
15
- * @ignore
16
- */
17
- export function compileShaderAsset(source: string | object): ShaderEffect | GLShader;
18
- /**
19
- * parse/preload a shader asset, from a `src` URL (or data: URI) or inline
20
- * source via the `data` field. Three source shapes are accepted:
21
- *
22
- * - a GLSL **fragment body** following the ShaderEffect convention (uniform
23
- * declarations + `vec4 apply(vec4, vec2)`) → compiles into a shared
24
- * {@link ShaderEffect};
25
- * - a **dual-language body** — `src: {glsl: url, wgsl: url}` or
26
- * `data: {glsl: source, wgsl: source}`, either language omittable — →
27
- * a shared {@link ShaderEffect} carrying one body per shading language;
28
- * the renderer compiles the matching one, and when none matches the
29
- * preload still succeeds with an inert (`enabled === false`) effect;
30
- * - a complete **program** — `src: {vertex: url, fragment: url}` (GLSL
31
- * pair), `src: {wgsl: url}` where the WGSL declares its own `@vertex`
32
- * entry point (a complete module), or both together for a dual-backend
33
- * asset — → compiles into a shared raw {@link GLShader} carrying the
34
- * declared realizations (`isWebGL` / `isWebGPU`), for the hosted paths
35
- * that take one (a `Mesh` custom shader, `renderer.customShader`, a
36
- * custom batcher); the active renderer hosts the realization it speaks
37
- * and a missing one degrades to built-in shading.
38
- *
39
- * Always compiled AT LOAD TIME, so the GLSL compile cost lands in the
40
- * loading screen and compile errors carry the asset name. An initialized
41
- * Application (`await app.init()`) is an inherent precondition of the
42
- * preload flow (the loading screen itself needs the renderer, and a failed
43
- * init rejects and halts) — loading a shader without it fails with a clear
44
- * error.
45
- * @param {loader.Asset} data - asset data
46
- * @param {Function} [onload] - function to be called when the resource is loaded
47
- * @param {Function} [onerror] - function to be called in case of error
48
- * @param {Object} [settings] - Additional settings to be passed when loading the asset
49
- * @returns {number} the amount of corresponding resource parsed/preloaded
50
- * @ignore
51
- */
52
- export function preloadShader(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
1
+
53
2
  import ShaderEffect from "../../video/effects/shadereffect.js";
54
3
  import GLShader from "../../video/webgl/glshader.js";
55
4
  //# sourceMappingURL=shader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shader.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/shader.js"],"names":[],"mappings":"AA6BA;;;;;;;;;;;;;;;GAeG;AACH,2CANW,MAAM,GAAC,MAAM,GAEX,YAAY,GAAC,QAAQ,CAqDjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,oCAPW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAgHlB;yBA7OwB,qCAAqC;qBACzC,+BAA+B"}
1
+ {"version":3,"file":"shader.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/shader.js"],"names":[],"mappings":"AAiCA;;;;;;;;;;;;;;;;GAgBG;AACH,2CAPW,MAAM,GAAC,MAAM,GAEX,YAAY,GAAC,QAAQ,CAsDjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,oCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAiHlB;yBAnPwB,qCAAqC;qBACzC,+BAA+B"}
@@ -1,11 +1,2 @@
1
- /**
2
- * parse/preload a TMX file
3
- * @param {loader.Asset} data - asset data
4
- * @param {Function} [onload] - function to be called when the asset is loaded
5
- * @param {Function} [onerror] - function to be called in case of error
6
- * @param {Object} [settings] - Additional settings to be passed when loading the asset
7
- * @returns {number} the amount of corresponding resource parsed/preloaded
8
- * @ignore
9
- */
10
- export function preloadTMX(tmxData: any, onload?: Function, onerror?: Function, settings?: Object): number;
1
+
11
2
  //# sourceMappingURL=tmx.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tmx.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/tmx.js"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,2FAJW,MAAM,GACJ,MAAM,CAkFlB"}
1
+ {"version":3,"file":"tmx.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/tmx.js"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,2FALW,MAAM,GACJ,MAAM,CAoFlB"}
@@ -1,11 +1,2 @@
1
- /**
2
- * parse/preload a Video file
3
- * @param {loader.Asset} data - asset data
4
- * @param {Function} [onload] - function to be called when the resource is loaded
5
- * @param {Function} [onerror] - function to be called in case of error
6
- * @param {Object} [settings] - Additional settings to be passed when loading the asset
7
- * @returns {number} the amount of corresponding resource parsed/preloaded
8
- * @ignore
9
- */
10
- export function preloadVideo(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
1
+
11
2
  //# sourceMappingURL=video.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/video.js"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,mCAPW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAkGlB"}
1
+ {"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/video.js"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,mCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAmGlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/math/color.ts"],"names":[],"mappings":"AA+MA;;;GAGG;AACH,qBAAa,KAAK;IACjB,OAAO,CAAC,cAAc,CAAe;IAErC;;;;;;OAMG;gBACS,CAAC,GAAE,KAAK,GAAG,MAAM,GAAG,MAAU,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,KAAK,SAAM;IAcrE;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,QAAA,EAEV;IAED;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,QAAA,EAEV;IAED;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,QAAA,EAEV;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,KAAK,CAAC,KAAK,QAAA,EAEd;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,KAAK,SAAM;IASjE;;;;;;;OAOG;IACH,QAAQ,CAAC,CAAC,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IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAY5C;;;OAGG;IACH,KAAK;IAIL;;;;OAIG;IACH,IAAI,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM;IAS1B;;;;OAIG;IACH,GAAG,CAAC,KAAK,EAAE,KAAK;IAsBhB;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM;IASpB;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM;IAYhC;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM;IAqBrB;;;;;OAKG;IACH,MAAM,CAAC,GAAG,SAAI,EAAE,GAAG,SAAM;IAgBzB;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,KAAK;IASnB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAQzB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAazB;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,IAAI,MAAM,EAAE,EAAE,IAAI,UAAQ;IAmD7C;;;;OAIG;IACH,QAAQ,CAAC,KAAK,SAAM;IAgBpB;;;OAGG;IACH,OAAO;IAIP;;;OAGG;IACH,KAAK;IAKL;;;;OAIG;IACH,MAAM,CAAC,KAAK,SAAyB;IAKrC;;;OAGG;IACH,KAAK;IAIL;;;;OAIG;IACH,MAAM,CAAC,KAAK,SAAa;CAGzB;AAED,eAAO,MAAM,SAAS,gKAwBpB,CAAC"}
@@ -68,8 +68,6 @@ export declare class Noise {
68
68
  offsetX: number;
69
69
  offsetY: number;
70
70
  offsetZ: number;
71
- /** @ignore */
72
- private _perm;
73
71
  constructor(settings?: NoiseSettings);
74
72
  /**
75
73
  * Re-seed the noise field. Same seed ⇒ same field.
@@ -99,43 +97,5 @@ export declare class Noise {
99
97
  * @returns noise value in the `[-1, 1]` range
100
98
  */
101
99
  getNoise3d(x: number, y: number, z: number): number;
102
- /** @ignore */
103
- private _applyFractalShape;
104
- /** @ignore */
105
- private _single2d;
106
- /** @ignore */
107
- private _single3d;
108
- /** @ignore */
109
- private _hash2d;
110
- /** @ignore */
111
- private _value2d;
112
- /** @ignore */
113
- private _hash3d;
114
- /** @ignore */
115
- private _value3d;
116
- /** @ignore */
117
- private _cubicRow2d;
118
- /** @ignore */
119
- private _valueCubic2d;
120
- /** @ignore */
121
- private _cubicPlane3d;
122
- /** @ignore */
123
- private _valueCubic3d;
124
- /** @ignore */
125
- private _cellular2d;
126
- /** @ignore */
127
- private _cellular3d;
128
- /** @ignore */
129
- private _grad2;
130
- /** @ignore */
131
- private _perlin2d;
132
- /** @ignore */
133
- private _grad3;
134
- /** @ignore */
135
- private _perlin3d;
136
- /** @ignore */
137
- private _simplex2d;
138
- /** @ignore */
139
- private _simplex3d;
140
100
  }
141
101
  //# sourceMappingURL=noise.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"noise.d.ts","sourceRoot":"","sources":["../../src/math/noise.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,SAAS,GAClB,SAAS,GACT,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,UAAU,CAAC;AACd,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEjE,MAAM,WAAW,aAAa;IAC7B,mDAAmD;IACnD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;I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AC;gBASJ,QAAQ,GAAE,aAAkB;IAwBxC;;;;OAIG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM;IAoBtB;;;;OAIG;IACH,UAAU,CAAC,CAAC,EAAE,MAAM;IAIpB;;;;;OAKG;IACH,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IA8B/B;;;;;;;OAOG;IACH,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;CAskB1C"}
@@ -4,9 +4,6 @@ import { Vector2d } from "./vector2d.ts";
4
4
  * @category Math
5
5
  */
6
6
  export declare class ObservableVector2d {
7
- private _callback;
8
- private _vector2d;
9
- private _revoke;
10
7
  private callBackEnabled;
11
8
  /**
12
9
  * Creates a new ObservableVector3d instance.
@@ -1 +1 @@
1
- {"version":3,"file":"observableVector2d.d.ts","sourceRoot":"","sources":["../../src/math/observableVector2d.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAezC;;;GAGG;AACH,qBAAa,kBAAkB;IAC9B,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,OAAO,CAAa;IAE5B,OAAO,CAAC,eAAe,CAAiB;IAExC;;;;;OAKG;gBACS,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI;IAsB/D;;;;;OAKG;IACH,GAAG,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI;IAShB;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI;IAQrB;;OAEG;IACH,IAAI,CAAC,IAQQ,MAAM,CANlB;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAElB;IAED;;OAEG;IACH,IAAI,CAAC,IAQQ,MAAM,CANlB;IAED;;;OAGG;IACH,IAAI,CA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;;;OAIG;IACH,KAAK,CAAC,CAAC,EAAE,QAAQ,GAAG,kBAAkB;IAItC;;;;OAIG;IACH,OAAO,CAAC,CAAC,EAAE,QAAQ,GAAG,kBAAkB;IAIxC;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,EAAE,QAAQ,GAAG,kBAAkB;IAIzC;;;;OAIG;IACH,KAAK,CAAC,EAAE,CAAC,EAAE,MAAM,IAAI;IAIrB;;;OAGG;IACH,QAAQ;IAIR;;OAEG;IACH,MAAM;CAGN;AAED,eAAO,MAAM,sBAAsB,yHAEgC,IAAI,EAarE,CAAC"}
@@ -6,9 +6,6 @@ import { Vector3d } from "./vector3d";
6
6
  * @category Math
7
7
  */
8
8
  export declare class ObservableVector3d {
9
- private _callback;
10
- private _vector3d;
11
- private _revoke;
12
9
  private callBackEnabled;
13
10
  /**
14
11
  * Creates a new ObservableVector3d instance.
@@ -1 +1 @@
1
- {"version":3,"file":"observableVector3d.d.ts","sourceRoot":"","sources":["../../src/math/observableVector3d.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAG/C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAetC;;;GAGG;AACH,qBAAa,kBAAkB;IAC9B,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,OAAO,CAAa;IAE5B,OAAO,CAAC,eAAe,CAAiB;IAExC;;;;;;OAMG;gBAEF,CAAC,GAAE,MAAU,EACb,CAAC,GAAE,MAAU,EACb,CAAC,GAAE,MAAU,EACb,QAAQ,CAAC,EAAE,MAAM,IAAI;IAuBtB;;;;;;OAMG;IACH,GAAG,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI;IAUvB;;;;;;OAMG;IACH,QAAQ,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI,EA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nD;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,kBAAkB;IAKpD;;;;OAIG;IACH,KAAK,CAAC,EAAE,CAAC,EAAE,MAAM,IAAI;IAIrB;;;OAGG;IACH,QAAQ;IAIR;;OAEG;IACH,MAAM;CAGN;AAED,eAAO,MAAM,sBAAsB,iJAMhB,IAAI,EAcrB,CAAC"}
@@ -11,12 +11,6 @@ export declare class Vector2d {
11
11
  * @param [y] - y value of the vector
12
12
  */
13
13
  constructor(x?: number | undefined, y?: number | undefined);
14
- /**
15
- * @param [x] - x value of the vector
16
- * @param [y] - y value of the vector
17
- * @ignore
18
- */
19
- onResetEvent(x?: number, y?: number): void;
20
14
  /**
21
15
  * set the Vector x and y properties to the given values
22
16
  * @param x - x component of the vector
@@ -1 +1 @@
1
- {"version":3,"file":"vector2d.d.ts","sourceRoot":"","sources":["../../src/math/vector2d.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C;;;GAGG;AACH,qBAAa,QAAQ;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IAEV;;;OAGG;gBACS,CAAC,GAAE,MAAM,GAAG,SAAa,EAAE,CAAC,GAAE,MAAM,GAAG,SAAa;IAKhE;;;;OAIG;IACH,YAAY,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI;IAWzB;;;;;OAKG;IACH,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAMxB;;;OAGG;IACH,OAAO;IAIP;;;;OAIG;IACH,IAAI,CAAC,CAAC,EAAE,QAAQ;IAIhB;;;;OAIG;IACH,GAAG,CAAC,CAAC,EAAE,QAAQ;IAIf;;;;OAIG;IACH,GAAG,CAAC,CAAC,EAAE,QAAQ;IAIf;;;;;OAKG;IACH,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,SAAI;IAItB;;;OAGG;IACH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AC,EAAE,QAAQ;IAIjB;;;;OAIG;IACH,OAAO,CAAC,CAAC,EAAE,QAAQ;IAInB;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,EAAE,QAAQ;IAIpB;;;OAGG;IACH,KAAK;IAIL;;;OAGG;IACH,QAAQ;CAGR;AAED,eAAO,MAAM,YAAY,8FAavB,CAAC"}
@@ -64,4 +64,29 @@ export declare function computeVertexNormal(points: XYPoint[], index: number, ou
64
64
  * @returns convex hull vertices in CCW order
65
65
  */
66
66
  export declare function convexHull(points: Vector2d[]): Vector2d[];
67
+ /**
68
+ * Compute per-vertex surface normals for indexed triangle geometry.
69
+ *
70
+ * Each triangle's normal is accumulated into its three vertices weighted by
71
+ * the triangle's area — that falls out of using the raw cross product rather
72
+ * than a normalized one — and the result is normalized at the end. Area
73
+ * weighting keeps a large face from being outvoted by a fan of slivers meeting
74
+ * at the same vertex.
75
+ *
76
+ * One algorithm covers both shading styles, because the answer depends on the
77
+ * geometry rather than on a flag: where vertices are shared between faces the
78
+ * accumulation averages them and the surface shades smoothly, and where every
79
+ * triangle carries its own three vertices (a triangle soup, which is how most
80
+ * hand-built geometry comes out) each vertex belongs to exactly one face, so
81
+ * the average IS that face's normal and the surface shades flat.
82
+ *
83
+ * Degenerate triangles contribute a zero-length cross product and so drop out
84
+ * on their own; a vertex touched only by degenerate faces is left at zero
85
+ * rather than becoming NaN.
86
+ * @param vertices - vertex positions as x,y,z triplets
87
+ * @param indices - triangle vertex indices
88
+ * @param out - optional destination, sized `vertices.length`
89
+ * @returns unit normals as x,y,z triplets, one per vertex
90
+ */
91
+ export declare function generateNormals(vertices: Float32Array, indices: Uint16Array | Uint32Array | number[], out?: Float32Array): Float32Array;
67
92
  //# sourceMappingURL=vertex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vertex.d.ts","sourceRoot":"","sources":["../../src/math/vertex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC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;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAC9B,GAAG,EAAE,YAAY,EACjB,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,SAAI,EACX,OAAO,SAAI,EACX,MAAM,SAAI,QA0DV;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAChC,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,EACzB,GAAG,EAAE,MAAM,EAAE,EACb,GAAG,EAAE,MAAM,EAAE,QA4Cb;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC7B,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,GACxB,MAAM,CAwCR;AAID;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAClC,MAAM,EAAE,OAAO,EAAE,EACjB,KAAK,EAAE,MAAM,EACb,GAAG,GAAE,OAAwB,GAC3B,OAAO,CAwCT;AAuBD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAmDzD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,WAAW,GAAG,WAAW,GAAG,MAAM,EAAE,EAC7C,GAAG,GAAE,YAAgD,GACnD,YAAY,CAqCd"}
@@ -1,8 +1,4 @@
1
- import { Matrix3d } from "../math/matrix3d.ts";
2
1
  import Container from "./../renderable/container.js";
3
- import type CanvasRenderer from "../video/canvas/canvas_renderer.js";
4
- import CanvasRenderTarget from "../video/rendertarget/canvasrendertarget.js";
5
- import type WebGLRenderer from "../video/webgl/webgl_renderer.js";
6
2
  import { type ParticleEmitterSettings } from "./settings.ts";
7
3
  /**
8
4
  * Particle Emitter Object.
@@ -55,46 +51,6 @@ export default class ParticleEmitter extends Container {
55
51
  * the current (active) emitter settings (with defaults merged in)
56
52
  */
57
53
  settings: ParticleEmitterSettings;
58
- /** @ignore */
59
- _stream: boolean;
60
- /** @ignore */
61
- _frequencyTimer: number;
62
- /** @ignore */
63
- _durationTimer: number;
64
- /** @ignore */
65
- _enabled: boolean;
66
- /** @ignore */
67
- _updateCount: number;
68
- /** @ignore */
69
- _dt: number;
70
- /** @ignore */
71
- _defaultParticle: CanvasRenderTarget | undefined;
72
- /**
73
- * whether at least one particle has been spawned by this emitter — used as
74
- * the precondition for completion detection (a brand-new emitter with zero
75
- * children must not count as "complete")
76
- * @ignore
77
- */
78
- _hasSpawned: boolean;
79
- /**
80
- * cached `timer.maxfps / 1000` — particles read this directly instead of
81
- * recomputing it on every spawn.
82
- * @ignore
83
- */
84
- _deltaInv: number;
85
- /**
86
- * Maps an emitter-local spawn point into the reference frame the particles
87
- * live in, so a particle is BORN where the emitter is even though its
88
- * position is thereafter measured from somewhere else. `undefined` in
89
- * local mode, where the two frames coincide and no mapping is needed.
90
- *
91
- * Held per emitter (not a module scratch) because particles read it during
92
- * their own reset, after `addParticles` has computed it. One matrix per
93
- * emitter that actually uses a non-local space — emitters are few, unlike
94
- * particles, which allocate nothing.
95
- * @ignore
96
- */
97
- _spawnMap: Matrix3d | undefined;
98
54
  /**
99
55
  * @param x - x position of the particle emitter
100
56
  * @param y - y position of the particle emitter
@@ -151,18 +107,6 @@ export default class ParticleEmitter extends Container {
151
107
  * @returns a random y position within the emitter bounds
152
108
  */
153
109
  getRandomPointY(): number;
154
- /**
155
- * Draw the particles in their reference frame rather than the emitter's.
156
- *
157
- * The correction goes in before `super.draw()` because that is where the
158
- * child walk happens; translations and the correction compose, and in
159
- * local mode there is no correction and this is the inherited path
160
- * untouched.
161
- * @ignore
162
- */
163
- draw(renderer: CanvasRenderer | WebGLRenderer, viewport?: Parameters<Container["draw"]>[1]): void;
164
- /** @ignore */
165
- addParticles(count: number): void;
166
110
  /**
167
111
  * Emitter is of type stream and is launching particles
168
112
  * @returns Emitter is Stream and is launching particles
@@ -182,14 +126,5 @@ export default class ParticleEmitter extends Container {
182
126
  * @param [total] - number of particles to launch
183
127
  */
184
128
  burstParticles(total?: number): void;
185
- /**
186
- * @ignore
187
- */
188
- update(dt: number): boolean;
189
- /**
190
- * Destroy function
191
- * @ignore
192
- */
193
- destroy(): void;
194
129
  }
195
130
  //# sourceMappingURL=emitter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../src/particles/emitter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,KAAK,cAAc,MAAM,oCAAoC,CAAC;AACrE,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAC;AAElE,OAA+B,EAC9B,KAAK,uBAAuB,EAC5B,MAAM,eAAe,CAAC;AAmDvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,SAAS;;IACrD;;OAEG;IACH,QAAQ,EAAE,uBAAuB,CAAC;IAElC,cAAc;IACd,OAAO,EAAE,OAAO,CAAC;IAEjB,cAAc;IACd,eAAe,EAAE,MAAM,CAAC;IAExB,cAAc;IACd,cAAc,EAAE,MAAM,CAAC;IAEvB,cAAc;IACd,QAAQ,EAAE,OAAO,CAAC;IAElB,cAAc;IACd,YAAY,EAAE,MAAM,CAAC;IAErB,cAAc;IACd,GAAG,EAAE,MAAM,CAAC;IAEZ,cAAc;IACd,gBAAgB,EAAE,kBAAkB,GAAG,SAAS,CAAC;IASjD;;;;;OAKG;IACH,WAAW,EAAE,OAAO,CA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