melonjs 20.2.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 (515) hide show
  1. package/README.md +86 -8
  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 +6 -2
  5. package/build/application/settings.d.ts.map +1 -1
  6. package/build/audio/audio.d.ts +2 -2
  7. package/build/audio/audio.d.ts.map +1 -1
  8. package/build/audio/backend/buffer.d.ts +26 -0
  9. package/build/audio/backend/buffer.d.ts.map +1 -0
  10. package/build/audio/backend/cache.d.ts +2 -0
  11. package/build/audio/backend/cache.d.ts.map +1 -0
  12. package/build/audio/backend/core.d.ts +24 -0
  13. package/build/audio/backend/core.d.ts.map +1 -0
  14. package/build/audio/backend/engine.d.ts +35 -0
  15. package/build/audio/backend/engine.d.ts.map +1 -0
  16. package/build/audio/backend/sound.d.ts +29 -0
  17. package/build/audio/backend/sound.d.ts.map +1 -0
  18. package/build/audio/backend/spatial.d.ts +191 -0
  19. package/build/audio/backend/spatial.d.ts.map +1 -0
  20. package/build/audio/backend/types.d.ts +107 -0
  21. package/build/audio/backend/types.d.ts.map +1 -0
  22. package/build/audio/backend/voice.d.ts +8 -0
  23. package/build/audio/backend/voice.d.ts.map +1 -0
  24. package/build/audio/playback.d.ts +49 -4
  25. package/build/audio/playback.d.ts.map +1 -1
  26. package/build/audio/procedural.d.ts.map +1 -1
  27. package/build/audio/state.d.ts +69 -0
  28. package/build/audio/state.d.ts.map +1 -0
  29. package/build/audio/types.d.ts +93 -1
  30. package/build/audio/types.d.ts.map +1 -1
  31. package/build/camera/camera2d.d.ts +0 -68
  32. package/build/camera/camera2d.d.ts.map +1 -1
  33. package/build/camera/camera3d.d.ts +91 -84
  34. package/build/camera/camera3d.d.ts.map +1 -1
  35. package/build/camera/effects/fade_effect.d.ts +0 -5
  36. package/build/camera/effects/fade_effect.d.ts.map +1 -1
  37. package/build/camera/effects/mask_effect.d.ts +0 -5
  38. package/build/camera/effects/mask_effect.d.ts.map +1 -1
  39. package/build/camera/fog.d.ts +118 -0
  40. package/build/camera/fog.d.ts.map +1 -0
  41. package/build/const.d.ts +2 -2
  42. package/build/geometries/box3d.d.ts +0 -28
  43. package/build/geometries/box3d.d.ts.map +1 -1
  44. package/build/geometries/ellipse.d.ts +0 -20
  45. package/build/geometries/ellipse.d.ts.map +1 -1
  46. package/build/geometries/observablePoint.d.ts +0 -3
  47. package/build/geometries/observablePoint.d.ts.map +1 -1
  48. package/build/geometries/path2d.d.ts +0 -19
  49. package/build/geometries/path2d.d.ts.map +1 -1
  50. package/build/geometries/polygon.d.ts +0 -12
  51. package/build/geometries/polygon.d.ts.map +1 -1
  52. package/build/geometries/roundrect.d.ts +0 -18
  53. package/build/geometries/roundrect.d.ts.map +1 -1
  54. package/build/geometries/sphere.d.ts +0 -9
  55. package/build/geometries/sphere.d.ts.map +1 -1
  56. package/build/geometries/toarccanvas.d.ts.map +1 -1
  57. package/build/index.d.ts +1 -0
  58. package/build/index.d.ts.map +1 -1
  59. package/build/index.js +12150 -11289
  60. package/build/index.js.map +4 -4
  61. package/build/input/gamepad.d.ts.map +1 -1
  62. package/build/input/input.d.ts +19 -0
  63. package/build/input/input.d.ts.map +1 -1
  64. package/build/input/pointer.d.ts +0 -4
  65. package/build/input/pointer.d.ts.map +1 -1
  66. package/build/input/pointerevent.d.ts +0 -6
  67. package/build/input/pointerevent.d.ts.map +1 -1
  68. package/build/lang/deprecated.d.ts +4 -2
  69. package/build/lang/deprecated.d.ts.map +1 -1
  70. package/build/level/gltf/GLTFModel.d.ts +0 -81
  71. package/build/level/gltf/GLTFModel.d.ts.map +1 -1
  72. package/build/level/gltf/GLTFScene.d.ts +13 -44
  73. package/build/level/gltf/GLTFScene.d.ts.map +1 -1
  74. package/build/level/gltf/gltf_sampler.d.ts +1 -48
  75. package/build/level/gltf/gltf_sampler.d.ts.map +1 -1
  76. package/build/level/level.d.ts +195 -113
  77. package/build/level/level.d.ts.map +1 -1
  78. package/build/level/tiled/TMXGroup.d.ts +1 -65
  79. package/build/level/tiled/TMXGroup.d.ts.map +1 -1
  80. package/build/level/tiled/TMXLayer.d.ts +0 -44
  81. package/build/level/tiled/TMXLayer.d.ts.map +1 -1
  82. package/build/level/tiled/TMXObject.d.ts +1 -136
  83. package/build/level/tiled/TMXObject.d.ts.map +1 -1
  84. package/build/level/tiled/TMXObjectFactory.d.ts +1 -40
  85. package/build/level/tiled/TMXObjectFactory.d.ts.map +1 -1
  86. package/build/level/tiled/TMXTile.d.ts +1 -30
  87. package/build/level/tiled/TMXTile.d.ts.map +1 -1
  88. package/build/level/tiled/TMXTileMap.d.ts +0 -10
  89. package/build/level/tiled/TMXTileMap.d.ts.map +1 -1
  90. package/build/level/tiled/TMXTileset.d.ts +0 -113
  91. package/build/level/tiled/TMXTileset.d.ts.map +1 -1
  92. package/build/level/tiled/TMXTilesetGroup.d.ts +0 -1
  93. package/build/level/tiled/TMXTilesetGroup.d.ts.map +1 -1
  94. package/build/level/tiled/TMXUtils.d.ts +1 -43
  95. package/build/level/tiled/TMXUtils.d.ts.map +1 -1
  96. package/build/level/tiled/factories/shape.d.ts +1 -7
  97. package/build/level/tiled/factories/shape.d.ts.map +1 -1
  98. package/build/level/tiled/factories/text.d.ts +1 -7
  99. package/build/level/tiled/factories/text.d.ts.map +1 -1
  100. package/build/level/tiled/factories/tile.d.ts +1 -7
  101. package/build/level/tiled/factories/tile.d.ts.map +1 -1
  102. package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts +0 -60
  103. package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts.map +1 -1
  104. package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts +0 -42
  105. package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts.map +1 -1
  106. package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts +0 -5
  107. package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts.map +1 -1
  108. package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts +0 -31
  109. package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts.map +1 -1
  110. package/build/level/tiled/renderer/TMXRenderer.d.ts +2 -2
  111. package/build/level/tiled/renderer/TMXRenderer.d.ts.map +1 -1
  112. package/build/level/tiled/renderer/TMXStaggeredRenderer.d.ts.map +1 -1
  113. package/build/level/tiled/renderer/autodetect.d.ts +1 -6
  114. package/build/level/tiled/renderer/autodetect.d.ts.map +1 -1
  115. package/build/lighting/light2d.d.ts +0 -25
  116. package/build/lighting/light2d.d.ts.map +1 -1
  117. package/build/lighting/light3d.d.ts +0 -16
  118. package/build/lighting/light3d.d.ts.map +1 -1
  119. package/build/loader/loader.d.ts +46 -73
  120. package/build/loader/loader.d.ts.map +1 -1
  121. package/build/loader/loadingscreen.d.ts +0 -33
  122. package/build/loader/loadingscreen.d.ts.map +1 -1
  123. package/build/loader/parsers/aseprite.d.ts +0 -13
  124. package/build/loader/parsers/aseprite.d.ts.map +1 -1
  125. package/build/loader/parsers/audio.d.ts +2 -0
  126. package/build/loader/parsers/audio.d.ts.map +1 -0
  127. package/build/loader/parsers/binary.d.ts +1 -10
  128. package/build/loader/parsers/binary.d.ts.map +1 -1
  129. package/build/loader/parsers/compressed_textures/compressed_image.d.ts.map +1 -1
  130. package/build/loader/parsers/compressed_textures/parseDDS.d.ts +1 -7
  131. package/build/loader/parsers/compressed_textures/parseDDS.d.ts.map +1 -1
  132. package/build/loader/parsers/compressed_textures/parseKTX.d.ts +1 -7
  133. package/build/loader/parsers/compressed_textures/parseKTX.d.ts.map +1 -1
  134. package/build/loader/parsers/compressed_textures/parseKTX2.d.ts +1 -7
  135. package/build/loader/parsers/compressed_textures/parseKTX2.d.ts.map +1 -1
  136. package/build/loader/parsers/compressed_textures/parsePKM.d.ts +1 -7
  137. package/build/loader/parsers/compressed_textures/parsePKM.d.ts.map +1 -1
  138. package/build/loader/parsers/compressed_textures/parsePVR.d.ts +1 -7
  139. package/build/loader/parsers/compressed_textures/parsePVR.d.ts.map +1 -1
  140. package/build/loader/parsers/fontface.d.ts +1 -13
  141. package/build/loader/parsers/fontface.d.ts.map +1 -1
  142. package/build/loader/parsers/gltf.d.ts +1 -70
  143. package/build/loader/parsers/gltf.d.ts.map +1 -1
  144. package/build/loader/parsers/image.d.ts +1 -22
  145. package/build/loader/parsers/image.d.ts.map +1 -1
  146. package/build/loader/parsers/json.d.ts +1 -10
  147. package/build/loader/parsers/json.d.ts.map +1 -1
  148. package/build/loader/parsers/mtl.d.ts +1 -28
  149. package/build/loader/parsers/mtl.d.ts.map +1 -1
  150. package/build/loader/parsers/obj.d.ts +1 -59
  151. package/build/loader/parsers/obj.d.ts.map +1 -1
  152. package/build/loader/parsers/pbr.d.ts +1 -62
  153. package/build/loader/parsers/pbr.d.ts.map +1 -1
  154. package/build/loader/parsers/script.d.ts +1 -10
  155. package/build/loader/parsers/script.d.ts.map +1 -1
  156. package/build/loader/parsers/shader.d.ts +1 -52
  157. package/build/loader/parsers/shader.d.ts.map +1 -1
  158. package/build/loader/parsers/tmx.d.ts +1 -10
  159. package/build/loader/parsers/tmx.d.ts.map +1 -1
  160. package/build/loader/parsers/video.d.ts +1 -10
  161. package/build/loader/parsers/video.d.ts.map +1 -1
  162. package/build/math/color.d.ts.map +1 -1
  163. package/build/math/noise.d.ts +0 -40
  164. package/build/math/noise.d.ts.map +1 -1
  165. package/build/math/observableVector2d.d.ts +0 -3
  166. package/build/math/observableVector2d.d.ts.map +1 -1
  167. package/build/math/observableVector3d.d.ts +0 -3
  168. package/build/math/observableVector3d.d.ts.map +1 -1
  169. package/build/math/vector2d.d.ts +0 -6
  170. package/build/math/vector2d.d.ts.map +1 -1
  171. package/build/math/vertex.d.ts +25 -0
  172. package/build/math/vertex.d.ts.map +1 -1
  173. package/build/particles/emitter.d.ts +0 -65
  174. package/build/particles/emitter.d.ts.map +1 -1
  175. package/build/particles/particle.d.ts +0 -81
  176. package/build/particles/particle.d.ts.map +1 -1
  177. package/build/physics/adapter.d.ts +3 -3
  178. package/build/physics/bounds.d.ts +0 -1
  179. package/build/physics/bounds.d.ts.map +1 -1
  180. package/build/physics/broadphase/broadphase.d.ts +0 -7
  181. package/build/physics/broadphase/broadphase.d.ts.map +1 -1
  182. package/build/physics/broadphase/octree.d.ts +0 -91
  183. package/build/physics/broadphase/octree.d.ts.map +1 -1
  184. package/build/physics/broadphase/quadtree.d.ts +0 -47
  185. package/build/physics/broadphase/quadtree.d.ts.map +1 -1
  186. package/build/physics/builtin/body.d.ts +5 -69
  187. package/build/physics/builtin/body.d.ts.map +1 -1
  188. package/build/physics/builtin/detector.d.ts +0 -312
  189. package/build/physics/builtin/detector.d.ts.map +1 -1
  190. package/build/physics/builtin/sat.d.ts +1 -48
  191. package/build/physics/builtin/sat.d.ts.map +1 -1
  192. package/build/physics/builtin/sat3d.d.ts +1 -56
  193. package/build/physics/builtin/sat3d.d.ts.map +1 -1
  194. package/build/physics/collision.d.ts +0 -2
  195. package/build/physics/collision.d.ts.map +1 -1
  196. package/build/physics/response.d.ts +0 -1
  197. package/build/physics/response.d.ts.map +1 -1
  198. package/build/physics/world.d.ts.map +1 -1
  199. package/build/plugin/plugin.d.ts +9 -1
  200. package/build/plugin/plugin.d.ts.map +1 -1
  201. package/build/polyfill/index.d.ts +1 -4
  202. package/build/polyfill/index.d.ts.map +1 -1
  203. package/build/renderable/anchorPoint.d.ts +1 -73
  204. package/build/renderable/anchorPoint.d.ts.map +1 -1
  205. package/build/renderable/animation.d.ts +0 -7
  206. package/build/renderable/animation.d.ts.map +1 -1
  207. package/build/renderable/colorlayer.d.ts +0 -5
  208. package/build/renderable/colorlayer.d.ts.map +1 -1
  209. package/build/renderable/container.d.ts +0 -55
  210. package/build/renderable/container.d.ts.map +1 -1
  211. package/build/renderable/draggable.d.ts +0 -5
  212. package/build/renderable/draggable.d.ts.map +1 -1
  213. package/build/renderable/dragndrop.d.ts +1 -12
  214. package/build/renderable/dragndrop.d.ts.map +1 -1
  215. package/build/renderable/entity/entity.d.ts +0 -8
  216. package/build/renderable/entity/entity.d.ts.map +1 -1
  217. package/build/renderable/frameAnimation.d.ts +0 -41
  218. package/build/renderable/frameAnimation.d.ts.map +1 -1
  219. package/build/renderable/groundshadow.d.ts +1 -91
  220. package/build/renderable/groundshadow.d.ts.map +1 -1
  221. package/build/renderable/imagelayer.d.ts +0 -29
  222. package/build/renderable/imagelayer.d.ts.map +1 -1
  223. package/build/renderable/instanced_mesh.d.ts +26 -104
  224. package/build/renderable/instanced_mesh.d.ts.map +1 -1
  225. package/build/renderable/mesh.d.ts +145 -140
  226. package/build/renderable/mesh.d.ts.map +1 -1
  227. package/build/renderable/nineslicesprite.d.ts +0 -4
  228. package/build/renderable/nineslicesprite.d.ts.map +1 -1
  229. package/build/renderable/renderable.d.ts +17 -54
  230. package/build/renderable/renderable.d.ts.map +1 -1
  231. package/build/renderable/sprite.d.ts +7 -52
  232. package/build/renderable/sprite.d.ts.map +1 -1
  233. package/build/renderable/sprite3d.d.ts +0 -95
  234. package/build/renderable/sprite3d.d.ts.map +1 -1
  235. package/build/renderable/text/bitmaptext.d.ts +0 -14
  236. package/build/renderable/text/bitmaptext.d.ts.map +1 -1
  237. package/build/renderable/text/bitmaptextdata.d.ts +0 -22
  238. package/build/renderable/text/bitmaptextdata.d.ts.map +1 -1
  239. package/build/renderable/text/glyph.d.ts +1 -39
  240. package/build/renderable/text/glyph.d.ts.map +1 -1
  241. package/build/renderable/text/text.d.ts +0 -20
  242. package/build/renderable/text/text.d.ts.map +1 -1
  243. package/build/renderable/text/textstyle.d.ts +1 -5
  244. package/build/renderable/text/textstyle.d.ts.map +1 -1
  245. package/build/renderable/trail.d.ts +0 -29
  246. package/build/renderable/trail.d.ts.map +1 -1
  247. package/build/renderable/trigger.d.ts +0 -6
  248. package/build/renderable/trigger.d.ts.map +1 -1
  249. package/build/renderable/ui/uibaseelement.d.ts +0 -40
  250. package/build/renderable/ui/uibaseelement.d.ts.map +1 -1
  251. package/build/renderable/ui/uispriteelement.d.ts +0 -35
  252. package/build/renderable/ui/uispriteelement.d.ts.map +1 -1
  253. package/build/state/stage.d.ts +4 -68
  254. package/build/state/stage.d.ts.map +1 -1
  255. package/build/state/state.d.ts.map +1 -1
  256. package/build/system/device.d.ts +0 -12
  257. package/build/system/device.d.ts.map +1 -1
  258. package/build/system/dom.d.ts +1 -8
  259. package/build/system/dom.d.ts.map +1 -1
  260. package/build/system/event.d.ts +1 -1
  261. package/build/system/legacy_pool.d.ts +1 -6
  262. package/build/system/legacy_pool.d.ts.map +1 -1
  263. package/build/system/platform.d.ts +21 -2
  264. package/build/system/platform.d.ts.map +1 -1
  265. package/build/system/pool.d.ts +0 -9
  266. package/build/system/pool.d.ts.map +1 -1
  267. package/build/system/save.d.ts.map +1 -1
  268. package/build/system/timer.d.ts +0 -20
  269. package/build/system/timer.d.ts.map +1 -1
  270. package/build/tweens/tween.d.ts +0 -62
  271. package/build/tweens/tween.d.ts.map +1 -1
  272. package/build/utils/array-multimap.d.ts +1 -13
  273. package/build/utils/array-multimap.d.ts.map +1 -1
  274. package/build/utils/decode.d.ts.map +1 -1
  275. package/build/utils/fetchdata.d.ts +2 -0
  276. package/build/utils/fetchdata.d.ts.map +1 -0
  277. package/build/utils/utils.d.ts +0 -13
  278. package/build/utils/utils.d.ts.map +1 -1
  279. package/build/video/blendmodes.d.ts +1 -106
  280. package/build/video/blendmodes.d.ts.map +1 -1
  281. package/build/video/buffer/index.d.ts +1 -39
  282. package/build/video/buffer/index.d.ts.map +1 -1
  283. package/build/video/buffer/vertex.d.ts +1 -82
  284. package/build/video/buffer/vertex.d.ts.map +1 -1
  285. package/build/video/canvas/canvas_renderer.d.ts +7 -25
  286. package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
  287. package/build/video/canvas_factory.d.ts +1 -24
  288. package/build/video/canvas_factory.d.ts.map +1 -1
  289. package/build/video/effects/blendEffect.d.ts +0 -54
  290. package/build/video/effects/blendEffect.d.ts.map +1 -1
  291. package/build/video/effects/blur.d.ts +4 -4
  292. package/build/video/effects/blur.d.ts.map +1 -1
  293. package/build/video/effects/chromaticAberration.d.ts +5 -5
  294. package/build/video/effects/chromaticAberration.d.ts.map +1 -1
  295. package/build/video/effects/colorMatrix.d.ts +5 -15
  296. package/build/video/effects/colorMatrix.d.ts.map +1 -1
  297. package/build/video/effects/desaturate.d.ts +5 -5
  298. package/build/video/effects/desaturate.d.ts.map +1 -1
  299. package/build/video/effects/dissolve.d.ts +4 -4
  300. package/build/video/effects/dissolve.d.ts.map +1 -1
  301. package/build/video/effects/dropShadow.d.ts +5 -5
  302. package/build/video/effects/dropShadow.d.ts.map +1 -1
  303. package/build/video/effects/flash.d.ts +4 -4
  304. package/build/video/effects/flash.d.ts.map +1 -1
  305. package/build/video/effects/glow.d.ts +5 -5
  306. package/build/video/effects/glow.d.ts.map +1 -1
  307. package/build/video/effects/glsl_realization.d.ts +1 -17
  308. package/build/video/effects/glsl_realization.d.ts.map +1 -1
  309. package/build/video/effects/hologram.d.ts +4 -4
  310. package/build/video/effects/hologram.d.ts.map +1 -1
  311. package/build/video/effects/invert.d.ts +5 -5
  312. package/build/video/effects/invert.d.ts.map +1 -1
  313. package/build/video/effects/outline.d.ts +6 -6
  314. package/build/video/effects/outline.d.ts.map +1 -1
  315. package/build/video/effects/pixelate.d.ts +4 -4
  316. package/build/video/effects/pixelate.d.ts.map +1 -1
  317. package/build/video/effects/radialGradient.d.ts +2 -3
  318. package/build/video/effects/radialGradient.d.ts.map +1 -1
  319. package/build/video/effects/scanline.d.ts +6 -6
  320. package/build/video/effects/scanline.d.ts.map +1 -1
  321. package/build/video/effects/sepia.d.ts +5 -5
  322. package/build/video/effects/sepia.d.ts.map +1 -1
  323. package/build/video/effects/shadereffect.d.ts +12 -123
  324. package/build/video/effects/shadereffect.d.ts.map +1 -1
  325. package/build/video/effects/shine.d.ts +3 -3
  326. package/build/video/effects/shine.d.ts.map +1 -1
  327. package/build/video/effects/tintPulse.d.ts +4 -4
  328. package/build/video/effects/tintPulse.d.ts.map +1 -1
  329. package/build/video/effects/vignette.d.ts +6 -6
  330. package/build/video/effects/vignette.d.ts.map +1 -1
  331. package/build/video/effects/wave.d.ts +4 -4
  332. package/build/video/effects/wave.d.ts.map +1 -1
  333. package/build/video/effects/wgsl/layout.d.ts +1 -27
  334. package/build/video/effects/wgsl/layout.d.ts.map +1 -1
  335. package/build/video/effects/wgsl/parse.d.ts +1 -8
  336. package/build/video/effects/wgsl/parse.d.ts.map +1 -1
  337. package/build/video/effects/wgsl/scaffold.d.ts +1 -42
  338. package/build/video/effects/wgsl/scaffold.d.ts.map +1 -1
  339. package/build/video/effects/wgsl_realization.d.ts +1 -82
  340. package/build/video/effects/wgsl_realization.d.ts.map +1 -1
  341. package/build/video/gpu/batcher.d.ts +1 -13
  342. package/build/video/gpu/batcher.d.ts.map +1 -1
  343. package/build/video/gpu/instancerecord.d.ts +1 -163
  344. package/build/video/gpu/instancerecord.d.ts.map +1 -1
  345. package/build/video/gpu/meshchunk.d.ts +1 -48
  346. package/build/video/gpu/meshchunk.d.ts.map +1 -1
  347. package/build/video/gpu/meshvertex.d.ts +1 -53
  348. package/build/video/gpu/meshvertex.d.ts.map +1 -1
  349. package/build/video/gpu/primitives.d.ts +1 -59
  350. package/build/video/gpu/primitives.d.ts.map +1 -1
  351. package/build/video/gpu/quadcorners.d.ts +1 -10
  352. package/build/video/gpu/quadcorners.d.ts.map +1 -1
  353. package/build/video/gpu/textureslots.d.ts +1 -121
  354. package/build/video/gpu/textureslots.d.ts.map +1 -1
  355. package/build/video/gpu/texturestore.d.ts +1 -138
  356. package/build/video/gpu/texturestore.d.ts.map +1 -1
  357. package/build/video/gpu/topology.d.ts.map +1 -1
  358. package/build/video/gpu/vertexformat.d.ts +0 -28
  359. package/build/video/gpu/vertexformat.d.ts.map +1 -1
  360. package/build/video/gradient.d.ts +0 -81
  361. package/build/video/gradient.d.ts.map +1 -1
  362. package/build/video/renderer.d.ts +21 -102
  363. package/build/video/renderer.d.ts.map +1 -1
  364. package/build/video/renderstate.d.ts +0 -51
  365. package/build/video/renderstate.d.ts.map +1 -1
  366. package/build/video/rendertarget/canvasrendertarget.d.ts +0 -10
  367. package/build/video/rendertarget/canvasrendertarget.d.ts.map +1 -1
  368. package/build/video/rendertarget/render_target_pool.d.ts +1 -82
  369. package/build/video/rendertarget/render_target_pool.d.ts.map +1 -1
  370. package/build/video/rendertarget/webglrendertarget.d.ts +1 -64
  371. package/build/video/rendertarget/webglrendertarget.d.ts.map +1 -1
  372. package/build/video/rendertarget/webgpurendertarget.d.ts +0 -8
  373. package/build/video/rendertarget/webgpurendertarget.d.ts.map +1 -1
  374. package/build/video/texture/atlas.d.ts +2 -76
  375. package/build/video/texture/atlas.d.ts.map +1 -1
  376. package/build/video/texture/cache.d.ts +0 -136
  377. package/build/video/texture/cache.d.ts.map +1 -1
  378. package/build/video/texture/frametexture.d.ts +1 -71
  379. package/build/video/texture/frametexture.d.ts.map +1 -1
  380. package/build/video/texture/noise_texture2d.d.ts +0 -43
  381. package/build/video/texture/noise_texture2d.d.ts.map +1 -1
  382. package/build/video/texture/parser/aseprite.d.ts +1 -8
  383. package/build/video/texture/parser/aseprite.d.ts.map +1 -1
  384. package/build/video/texture/parser/spritesheet.d.ts +1 -8
  385. package/build/video/texture/parser/spritesheet.d.ts.map +1 -1
  386. package/build/video/texture/parser/texturepacker.d.ts +1 -8
  387. package/build/video/texture/parser/texturepacker.d.ts.map +1 -1
  388. package/build/video/texture/resource.d.ts +0 -9
  389. package/build/video/texture/resource.d.ts.map +1 -1
  390. package/build/video/texture/texture2d.d.ts +0 -11
  391. package/build/video/texture/texture2d.d.ts.map +1 -1
  392. package/build/video/utils/autodetect.d.ts +1 -5
  393. package/build/video/utils/autodetect.d.ts.map +1 -1
  394. package/build/video/webgl/batchers/batcher.d.ts +0 -55
  395. package/build/video/webgl/batchers/batcher.d.ts.map +1 -1
  396. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts +0 -14
  397. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts.map +1 -1
  398. package/build/video/webgl/batchers/lit_quad_batcher.d.ts +0 -72
  399. package/build/video/webgl/batchers/lit_quad_batcher.d.ts.map +1 -1
  400. package/build/video/webgl/batchers/material_batcher.d.ts +0 -89
  401. package/build/video/webgl/batchers/material_batcher.d.ts.map +1 -1
  402. package/build/video/webgl/batchers/mesh_batcher.d.ts +14 -343
  403. package/build/video/webgl/batchers/mesh_batcher.d.ts.map +1 -1
  404. package/build/video/webgl/batchers/primitive_batcher.d.ts +0 -10
  405. package/build/video/webgl/batchers/primitive_batcher.d.ts.map +1 -1
  406. package/build/video/webgl/batchers/quad_batcher.d.ts +0 -30
  407. package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -1
  408. package/build/video/webgl/buffer/index.d.ts +1 -36
  409. package/build/video/webgl/buffer/index.d.ts.map +1 -1
  410. package/build/video/webgl/buffer/instance_buffer.d.ts +1 -53
  411. package/build/video/webgl/buffer/instance_buffer.d.ts.map +1 -1
  412. package/build/video/webgl/buffer/retained_geometry.d.ts +1 -81
  413. package/build/video/webgl/buffer/retained_geometry.d.ts.map +1 -1
  414. package/build/video/webgl/buffer/uniformblock.d.ts +1 -80
  415. package/build/video/webgl/buffer/uniformblock.d.ts.map +1 -1
  416. package/build/video/webgl/buffer/vertexstate.d.ts +1 -100
  417. package/build/video/webgl/buffer/vertexstate.d.ts.map +1 -1
  418. package/build/video/webgl/glshader.d.ts +2 -51
  419. package/build/video/webgl/glshader.d.ts.map +1 -1
  420. package/build/video/webgl/lighting/pack3d.d.ts +1 -47
  421. package/build/video/webgl/lighting/pack3d.d.ts.map +1 -1
  422. package/build/video/webgl/lighting/std140.d.ts +1 -109
  423. package/build/video/webgl/lighting/std140.d.ts.map +1 -1
  424. package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts +1 -103
  425. package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
  426. package/build/video/webgl/shaders/multitexture-lit.d.ts +1 -26
  427. package/build/video/webgl/shaders/multitexture-lit.d.ts.map +1 -1
  428. package/build/video/webgl/shaders/multitexture.d.ts +1 -9
  429. package/build/video/webgl/shaders/multitexture.d.ts.map +1 -1
  430. package/build/video/webgl/texture/store.d.ts +1 -50
  431. package/build/video/webgl/texture/store.d.ts.map +1 -1
  432. package/build/video/webgl/utils/attributes.d.ts +1 -11
  433. package/build/video/webgl/utils/attributes.d.ts.map +1 -1
  434. package/build/video/webgl/utils/maxtextures.d.ts +1 -36
  435. package/build/video/webgl/utils/maxtextures.d.ts.map +1 -1
  436. package/build/video/webgl/utils/precision.d.ts +1 -14
  437. package/build/video/webgl/utils/precision.d.ts.map +1 -1
  438. package/build/video/webgl/utils/program.d.ts +1 -5
  439. package/build/video/webgl/utils/program.d.ts.map +1 -1
  440. package/build/video/webgl/utils/samplercache.d.ts +1 -68
  441. package/build/video/webgl/utils/samplercache.d.ts.map +1 -1
  442. package/build/video/webgl/utils/string.d.ts +1 -21
  443. package/build/video/webgl/utils/string.d.ts.map +1 -1
  444. package/build/video/webgl/utils/topology.d.ts +1 -23
  445. package/build/video/webgl/utils/topology.d.ts.map +1 -1
  446. package/build/video/webgl/utils/uniforms.d.ts +1 -25
  447. package/build/video/webgl/utils/uniforms.d.ts.map +1 -1
  448. package/build/video/webgl/utils/vertexformat.d.ts +1 -26
  449. package/build/video/webgl/utils/vertexformat.d.ts.map +1 -1
  450. package/build/video/webgl/webgl_renderer.d.ts +24 -286
  451. package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
  452. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts +0 -6
  453. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts.map +1 -1
  454. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts +0 -8
  455. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts.map +1 -1
  456. package/build/video/webgpu/batchers/mesh_batcher.d.ts +1 -230
  457. package/build/video/webgpu/batchers/mesh_batcher.d.ts.map +1 -1
  458. package/build/video/webgpu/batchers/primitive_batcher.d.ts.map +1 -1
  459. package/build/video/webgpu/batchers/quad_batcher.d.ts +0 -82
  460. package/build/video/webgpu/batchers/quad_batcher.d.ts.map +1 -1
  461. package/build/video/webgpu/buffer/arena.d.ts +1 -63
  462. package/build/video/webgpu/buffer/arena.d.ts.map +1 -1
  463. package/build/video/webgpu/buffer/instance_buffer.d.ts +1 -64
  464. package/build/video/webgpu/buffer/instance_buffer.d.ts.map +1 -1
  465. package/build/video/webgpu/buffer/retained_geometry.d.ts +1 -54
  466. package/build/video/webgpu/buffer/retained_geometry.d.ts.map +1 -1
  467. package/build/video/webgpu/buffer/uniformring.d.ts +1 -67
  468. package/build/video/webgpu/buffer/uniformring.d.ts.map +1 -1
  469. package/build/video/webgpu/effect_binding.d.ts +1 -16
  470. package/build/video/webgpu/effect_binding.d.ts.map +1 -1
  471. package/build/video/webgpu/pipeline/bindgroups.d.ts +1 -32
  472. package/build/video/webgpu/pipeline/bindgroups.d.ts.map +1 -1
  473. package/build/video/webgpu/pipeline/cache.d.ts +1 -163
  474. package/build/video/webgpu/pipeline/cache.d.ts.map +1 -1
  475. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts +1 -87
  476. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
  477. package/build/video/webgpu/shaders/mesh-instanced.d.ts +1 -43
  478. package/build/video/webgpu/shaders/mesh-instanced.d.ts.map +1 -1
  479. package/build/video/webgpu/texture/compressed.d.ts +1 -32
  480. package/build/video/webgpu/texture/compressed.d.ts.map +1 -1
  481. package/build/video/webgpu/texture/frametexture.d.ts +1 -62
  482. package/build/video/webgpu/texture/frametexture.d.ts.map +1 -1
  483. package/build/video/webgpu/texture/store.d.ts +1 -147
  484. package/build/video/webgpu/texture/store.d.ts.map +1 -1
  485. package/build/video/webgpu/webgpu_renderer.d.ts +2 -89
  486. package/build/video/webgpu/webgpu_renderer.d.ts.map +1 -1
  487. package/package.json +8 -11
  488. package/skills/AGENTS.md +67 -0
  489. package/skills/melonjs/SKILL.md +156 -0
  490. package/skills/melonjs-20-migration/SKILL.md +160 -0
  491. package/skills/melonjs-3d/SKILL.md +525 -0
  492. package/skills/melonjs-3d-assets/SKILL.md +258 -0
  493. package/skills/melonjs-audio/SKILL.md +236 -0
  494. package/skills/melonjs-camera-and-drawing/SKILL.md +175 -0
  495. package/skills/melonjs-deployment/SKILL.md +113 -0
  496. package/skills/melonjs-effects-and-shaders/SKILL.md +178 -0
  497. package/skills/melonjs-events/SKILL.md +159 -0
  498. package/skills/melonjs-getting-started/SKILL.md +183 -0
  499. package/skills/melonjs-input/SKILL.md +166 -0
  500. package/skills/melonjs-lighting/SKILL.md +139 -0
  501. package/skills/melonjs-loading-assets/SKILL.md +186 -0
  502. package/skills/melonjs-particles-and-trails/SKILL.md +136 -0
  503. package/skills/melonjs-performance/SKILL.md +183 -0
  504. package/skills/melonjs-physics/SKILL.md +321 -0
  505. package/skills/melonjs-plugins/SKILL.md +191 -0
  506. package/skills/melonjs-renderables/SKILL.md +214 -0
  507. package/skills/melonjs-renderer-backends/SKILL.md +173 -0
  508. package/skills/melonjs-scenes-and-state/SKILL.md +180 -0
  509. package/skills/melonjs-sprites-and-animation/SKILL.md +173 -0
  510. package/skills/melonjs-tilemaps/SKILL.md +213 -0
  511. package/skills/melonjs-ui-and-text/SKILL.md +65 -0
  512. package/build/audio/backend.d.ts +0 -140
  513. package/build/audio/backend.d.ts.map +0 -1
  514. package/build/loader/parsers/fetchdata.d.ts +0 -32
  515. package/build/loader/parsers/fetchdata.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TMXRenderer.d.ts","sourceRoot":"","sources":["../../../../src/level/tiled/renderer/TMXRenderer.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH;IACC;;;;;OAKG;IACH,kBALW,MAAM,QACN,MAAM,aACN,MAAM,cACN,MAAM,EAQhB;IALA,aAAgB;IAChB,aAAgB;IAChB,kBAA0B;IAC1B,mBAA4B;IAC5B,eAA0B;IAG3B;;;;OAIG;IACH,qBAHW,UAAU,GAAC,QAAQ,GACjB,OAAO,CAanB;IAED;;;;OAIG;IACH,kBAHW,QAAQ,GACN,MAAM,CAWlB;IAED;;;;;;OAMG;IACH,qBALW,MAAM,KACN,MAAM,MACN,QAAQ,GACN,QAAQ,CAIpB;IAED;;;;;;OAMG;IACH,uBALW,MAAM,OACN,MAAM,MACN,QAAQ,GACN,QAAQ,CAIpB;IAED;;;;OAIG;IACH,oBAFW,MAAM,QAShB;IAED;;;;;;OAMG;IACH,iBAAa;IAEb;;;;;OAKG;IACH,sBAAkB;CAClB;uBA5GkC,8BAA8B;qBAC5C,kBAAkB"}
1
+ {"version":3,"file":"TMXRenderer.d.ts","sourceRoot":"","sources":["../../../../src/level/tiled/renderer/TMXRenderer.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH;IACC;;;;;OAKG;IACH,kBALW,MAAM,QACN,MAAM,aACN,MAAM,cACN,MAAM,EAQhB;IALA,aAAgB;IAChB,aAAgB;IAChB,kBAA0B;IAC1B,mBAA4B;IAC5B,eAA0B;IAG3B;;;;OAIG;IACH,qBAHW,UAAU,GAAC,QAAQ,GACjB,OAAO,CAanB;IAED;;;;OAIG;IACH,kBAHW,QAAQ,GACN,MAAM,CAWlB;IAED;;;;;;OAMG;IACH,qBALW,MAAM,KACN,MAAM,MACN,QAAQ,GACN,QAAQ,CAIpB;IAED;;;;;;OAMG;IACH,uBALW,MAAM,OACN,MAAM,MACN,QAAQ,GACN,QAAQ,CAIpB;IAED;;;;OAIG;IACH,oBAFW,MAAM,QAShB;IAED;;;;;;OAMG;IAEH,mBANW,cAAc,GAAC,aAAa,KAC5B,MAAM,KACN,MAAM,QACN,IAAI,QAGkB;IAEjC;;;;;OAKG;IAEH,wBALW,cAAc,GAAC,aAAa,SAC5B,QAAQ,QACR,IAAI,QAGwB;CACvC;uBA9GkC,8BAA8B;qBAC5C,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"TMXStaggeredRenderer.d.ts","sourceRoot":"","sources":["../../../../src/level/tiled/renderer/TMXStaggeredRenderer.js"],"names":[],"mappings":"AAIA;;;GAGG;AACH;CAsGC;iCA5GgC,2BAA2B"}
1
+ {"version":3,"file":"TMXStaggeredRenderer.d.ts","sourceRoot":"","sources":["../../../../src/level/tiled/renderer/TMXStaggeredRenderer.js"],"names":[],"mappings":"AAIA;;;GAGG;AACH;CAwGC;iCA9GgC,2BAA2B"}
@@ -1,9 +1,4 @@
1
- /**
2
- * return a compatible renderer object for the given map
3
- * @param {TMXTileMap} map
4
- * @ignore
5
- */
6
- export function getNewTMXRenderer(map: TMXTileMap): TMXHexagonalRenderer | TMXIsometricRenderer | TMXOrthogonalRenderer | TMXObliqueRenderer;
1
+
7
2
  import TMXHexagonalRenderer from "./TMXHexagonalRenderer.js";
8
3
  import TMXIsometricRenderer from "./TMXIsometricRenderer.js";
9
4
  import TMXOrthogonalRenderer from "./TMXOrthogonalRenderer.js";
@@ -1 +1 @@
1
- {"version":3,"file":"autodetect.d.ts","sourceRoot":"","sources":["../../../../src/level/tiled/renderer/autodetect.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,uCAHW,UAAU,4FAwBpB;iCAhCgC,2BAA2B;iCAC3B,2BAA2B;kCAE1B,4BAA4B;+BAD/B,yBAAyB"}
1
+ {"version":3,"file":"autodetect.d.ts","sourceRoot":"","sources":["../../../../src/level/tiled/renderer/autodetect.js"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,uCAJW,UAAU,4FAyBpB;iCAjCgC,2BAA2B;iCAC3B,2BAA2B;kCAE1B,4BAA4B;+BAD/B,yBAAyB"}
@@ -40,12 +40,6 @@ export default class Light2d extends Renderable {
40
40
  * @default 0.7
41
41
  */
42
42
  intensity: number;
43
- /**
44
- * the world-space geometry of the light's visible area, rewritten each
45
- * frame by {@link Light2d#getVisibleArea} from transform-aware bounds.
46
- * @ignore
47
- */
48
- visibleArea: Ellipse;
49
43
  /**
50
44
  * When `true`, this light acts as a pure illumination source — the
51
45
  * gradient texture isn't drawn. The light still feeds the `Stage`
@@ -161,24 +155,5 @@ export default class Light2d extends Renderable {
161
155
  * @param renderer - a renderer instance
162
156
  */
163
157
  draw(renderer: CanvasRenderer | WebGLRenderer): void;
164
- /**
165
- * Auto-register this light with the active Stage's lighting set when
166
- * added to a container. The Stage uses that set to build the ambient
167
- * overlay cutouts; rendering the light itself is handled normally as
168
- * part of the world tree walk.
169
- * @ignore
170
- */
171
- onActivateEvent(): void;
172
- /**
173
- * Auto-deregister this light from the active Stage's lighting set when
174
- * removed from a container.
175
- * @ignore
176
- */
177
- onDeactivateEvent(): void;
178
- /**
179
- * Destroy function
180
- * @ignore
181
- */
182
- destroy(): void;
183
158
  }
184
159
  //# sourceMappingURL=light2d.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"light2d.d.ts","sourceRoot":"","sources":["../../src/lighting/light2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,KAAK,EAAa,MAAM,kBAAkB,CAAC;AACpD,OAAO,UAAU,MAAM,6BAA6B,CAAC;AAErD,OAAO,KAAK,cAAc,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,UAAU;IAC9C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAEhB,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;;;;;;;;OAUG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAE1B;;;;;;;;;;;;;;OAcG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB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IAEb,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAEhB,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAUlB;;;;;;;;;;OAUG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAE1B;;;;;;;;;;;;;;OAcG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;gBAEF,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,MAAgB,EACzB,KAAK,GAAE,KAAK,GAAG,MAAe,EAC9B,SAAS,GAAE,MAAY;IAyCxB;;;;;OAKG;IACH,IAAa,OAAO,IAAI,MAAM,CAE7B;IACD,IAAa,OAAO,CAAC,KAAK,EAAE,MAAM,EAIjC;IAED;;;OAGG;IACH,IAAa,OAAO,IAAI,MAAM,CAE7B;IACD,IAAa,OAAO,CAAC,KAAK,EAAE,MAAM,EAIjC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,MAAgB;IAMnD;;;;;OAKG;IACH,cAAc,IAAI,OAAO;IAOzB;;;OAGG;IACM,MAAM,IAAI,OAAO;IAI1B;;;OAGG;IACM,OAAO,CAAC,QAAQ,EAAE,cAAc,GAAG,aAAa;IAKzD;;;;;;;;OAQG;IACM,IAAI,CAAC,QAAQ,EAAE,cAAc,GAAG,aAAa;CAyCtD"}
@@ -114,21 +114,5 @@ export declare class Light3d extends Renderable {
114
114
  * @param [options] - see {@link Light3dOptions}
115
115
  */
116
116
  constructor(options?: Light3dOptions);
117
- /**
118
- * Register with the active stage's 3D-light set on activation (when added to
119
- * a rooted container), mirroring {@link Light2d}.
120
- * @ignore
121
- */
122
- onActivateEvent(): void;
123
- /**
124
- * Deregister from the active stage when removed from the world.
125
- * @ignore
126
- */
127
- onDeactivateEvent(): void;
128
- /**
129
- * A light has no visual representation.
130
- * @ignore
131
- */
132
- draw(): void;
133
117
  }
134
118
  //# sourceMappingURL=light3d.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"light3d.d.ts","sourceRoot":"","sources":["../../src/lighting/light3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,UAAU,MAAM,6BAA6B,CAAC;AAGrD;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IACpD;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,oDAAoD;IACpD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,qBAAa,OAAQ,SAAQ,UAAU;IACtC,2DAA2D;IAClD,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5D;;;OAGG;IACH,SAAS,EAAE,QAAQ,CAAC;IACpB,oDAAoD;IACpD,QAAQ,EAAE,QAAQ,CAAC;IACnB,uBAAuB;IACv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BAAa,OAAQ,SAAQ,UAAU;IACtC,2DAA2D;IAClD,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5D;;;OAGG;IACH,SAAS,EAAE,QAAQ,CAAC;IACpB,oDAAoD;IACpD,QAAQ,EAAE,QAAQ,CAAC;IACnB,uBAAuB;IACvB,KAAK,EAAE,KAAK,CAAC;IACb,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,cAAc,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;gBACS,OAAO,GAAE,cAAmB;CA4ExC"}
@@ -1,11 +1,6 @@
1
- /**
2
- * enable the nocache mechanism
3
- * @ignore
4
- */
5
- export function setNocache(enable?: boolean): void;
1
+
6
2
  /**
7
3
  * Sets the options for the loader.
8
- * @memberof loader
9
4
  * @param {Object} options - The options to set.
10
5
  * @param {string} [options.crossOrigin] - The crossOrigin attribute to configure the CORS requests for Image and Video data element.
11
6
  * @param {boolean} [options.nocache] - Enable or disable the nocache mechanism.
@@ -29,8 +24,6 @@ export function setOptions(options: {
29
24
  /**
30
25
  * change the default baseURL for the given asset type.<br>
31
26
  * (this will prepend the asset URL and must finish with a '/')
32
- * @name setBaseURL
33
- * @memberof loader
34
27
  * @public
35
28
  * @param {string} type - "*", "audio", "video", "binary", "image", "json", "js", "tmx", "tsx", "fontface", "aseprite", "shader", "obj", "mtl", "gltf", "glb"
36
29
  * @param {string} [url="./"] - default base URL
@@ -45,9 +38,8 @@ export function setBaseURL(type: string, url?: string): void;
45
38
  /**
46
39
  * an asset definition to be used with the loader
47
40
  * @typedef {object} Asset
48
- * @memberof loader
49
41
  * @property {string} name - name of the asset
50
- * @property {string} type - the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx"|"tmj"|"tsx"|"tsj"|"fontface"|"video"|"aseprite"|"shader"|"obj"|"mtl"|"gltf"|"glb")
42
+ * @property {string} type - the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx"|"tsx"|"fontface"|"video"|"aseprite"|"shader"|"obj"|"mtl"|"gltf"|"glb"). JSON-serialised Tiled maps and tilesets (`.tmj` / `.tsj`) load under `"tmx"` / `"tsx"` — those are file extensions, not asset types.
51
43
  * @property {string|string[]} [src] - path and/or file name of the resource (for audio assets only the path is required).
52
44
  * For image assets, an array of sources can be provided as a fallback chain (e.g. compressed texture formats by priority, with a PNG fallback).
53
45
  * The loader will try each source in order and use the first one that loads successfully.
@@ -99,7 +91,6 @@ export function setBaseURL(type: string, url?: string): void;
99
91
  */
100
92
  /**
101
93
  * specify a parser/preload function for the given asset type
102
- * @memberof loader
103
94
  * @param {string} type - asset type
104
95
  * @param {function} parserFn - parser function
105
96
  * @see {@link Asset.type}
@@ -122,7 +113,6 @@ export function setBaseURL(type: string, url?: string): void;
122
113
  export function setParser(type: string, parserFn: Function): void;
123
114
  /**
124
115
  * set all the specified game assets to be preloaded.
125
- * @memberof loader
126
116
  * @param {Asset[]} assets - list of assets to load
127
117
  * @param {Function} [onloadcb=loader.onload] - function to be called when all resources are loaded
128
118
  * @param {boolean} [switchToLoadState=true] - automatically switch to the loading screen
@@ -174,7 +164,6 @@ export function setParser(type: string, parserFn: Function): void;
174
164
  export function preload(assets: Asset[], onloadcb?: Function, switchToLoadState?: boolean): Promise<void>;
175
165
  /**
176
166
  * retry loading assets after a loading failure
177
- * @memberof loader
178
167
  * @param {string} src - src of asset to reload
179
168
  * @example
180
169
  * event.on(
@@ -191,7 +180,6 @@ export function preload(assets: Asset[], onloadcb?: Function, switchToLoadState?
191
180
  export function reload(src: string): void;
192
181
  /**
193
182
  * Load a single asset (to be used if you need to load additional asset(s) during the game)
194
- * @memberof loader
195
183
  * @param {Asset} asset
196
184
  * @param {Function} [onload] - function to be called when the asset is loaded
197
185
  * @param {Function} [onerror] - function to be called in case of error
@@ -227,7 +215,6 @@ export function reload(src: string): void;
227
215
  export function load(asset: Asset, onload?: Function, onerror?: Function): number | Promise<void>;
228
216
  /**
229
217
  * unload the specified asset to free memory
230
- * @memberof loader
231
218
  * @param {Asset} asset
232
219
  * @returns {boolean} true if unloaded
233
220
  * @example me.loader.unload({name: "avatar", type:"image"});
@@ -236,14 +223,12 @@ export function load(asset: Asset, onload?: Function, onerror?: Function): numbe
236
223
  export function unload(asset: Asset): boolean;
237
224
  /**
238
225
  * unload all resources to free memory
239
- * @memberof loader
240
226
  * @example me.loader.unloadAll();
241
227
  * @category Assets
242
228
  */
243
229
  export function unloadAll(): void;
244
230
  /**
245
231
  * return the specified TMX/TSX object
246
- * @memberof loader
247
232
  * @param {string} elt - name of the tmx/tsx element ("map1");
248
233
  * @returns {object} requested element or null if not found
249
234
  * @category Assets
@@ -251,7 +236,6 @@ export function unloadAll(): void;
251
236
  export function getTMX(elt: string): object;
252
237
  /**
253
238
  * return the specified Binary object
254
- * @memberof loader
255
239
  * @param {string} elt - name of the binary object ("ymTrack");
256
240
  * @returns {object} requested element or null if not found
257
241
  * @category Assets
@@ -259,7 +243,6 @@ export function getTMX(elt: string): object;
259
243
  export function getBinary(elt: string): object;
260
244
  /**
261
245
  * return the specified Image Object
262
- * @memberof loader
263
246
  * @param {string} image - name of the Image element ("tileset-platformer");
264
247
  * @returns {HTMLImageElement|CompressedImage|null} requested element or null if not found
265
248
  * @category Assets
@@ -267,7 +250,6 @@ export function getBinary(elt: string): object;
267
250
  export function getImage(image: string): HTMLImageElement | CompressedImage | null;
268
251
  /**
269
252
  * return the specified JSON Object
270
- * @memberof loader
271
253
  * @param {string} elt - name of the json file
272
254
  * @returns {JSON}
273
255
  * @category Assets
@@ -275,7 +257,6 @@ export function getImage(image: string): HTMLImageElement | CompressedImage | nu
275
257
  export function getJSON(elt: string): JSON;
276
258
  /**
277
259
  * return the specified OBJ model data
278
- * @memberof loader
279
260
  * @param {string} elt - name of the OBJ file (as specified in the preload list)
280
261
  * @returns {object} parsed OBJ data with `vertices` (Float32Array), `uvs` (Float32Array), `indices` (Uint16Array), and `vertexCount` (number), or null if not found
281
262
  * @category Assets
@@ -336,7 +317,6 @@ export function getOBJ(elt: string): object;
336
317
  * call via `me.level.load(name)` — exactly like a Tiled map. Reach for
337
318
  * `getGLTF` only when you want to inspect the raw descriptor (e.g. to frame
338
319
  * a `Camera3d` from the embedded camera).
339
- * @memberof loader
340
320
  * @param {string} elt - name of the glTF/GLB file (as specified in the preload list)
341
321
  * @returns {GLTFData|null} the parsed scene descriptor, or `null` if not found
342
322
  * @category Assets
@@ -387,7 +367,6 @@ export function getGLTF(elt: string): GLTFData | null;
387
367
  * built-in rendering. Note that shader assets require an initialized
388
368
  * Application (`await app.init()`) — an inherent precondition of the
389
369
  * preload flow, since the loading screen itself needs the renderer.
390
- * @memberof loader
391
370
  * @param {string} elt - name of the shader asset (as specified in the preload list)
392
371
  * @returns {ShaderEffect|GLShader|null} the shared, precompiled shader, or `null` if not found
393
372
  * @category Assets
@@ -410,17 +389,16 @@ export function getGLTF(elt: string): GLTFData | null;
410
389
  * } },
411
390
  * ], () => {
412
391
  * // one shared program — same uniform state for every user
413
- * mySprite.shader = me.loader.getShader("waterRipple");
392
+ * mySprite.addPostEffect(me.loader.getShader("waterRipple"));
414
393
  * // private copy with its own uniforms (caller-owned, shared = false)
415
- * boss.shader = me.loader.getShader("flash").clone();
394
+ * boss.addPostEffect(me.loader.getShader("flash").clone());
416
395
  * // a complete program hosts on a mesh, replacing the built-in shading
417
- * myMesh.shader = me.loader.getShader("toonMesh");
396
+ * myMesh.addPostEffect(me.loader.getShader("toonMesh"));
418
397
  * });
419
398
  */
420
399
  export function getShader(elt: string): ShaderEffect | GLShader | null;
421
400
  /**
422
401
  * return the specified MTL material data
423
- * @memberof loader
424
402
  * @param {string} elt - name of the MTL file (as specified in the preload list)
425
403
  * @returns {object} map of material names to properties (`Kd`, `d`, `map_Kd`), or null if not found
426
404
  * @category Assets
@@ -451,7 +429,6 @@ export function getShader(elt: string): ShaderEffect | GLShader | null;
451
429
  export function getMTL(elt: string): object;
452
430
  /**
453
431
  * return the specified Video Object
454
- * @memberof loader
455
432
  * @param {string} elt - name of the video file
456
433
  * @returns {HTMLVideoElement}
457
434
  * @category Assets
@@ -459,7 +436,6 @@ export function getMTL(elt: string): object;
459
436
  export function getVideo(elt: string): HTMLVideoElement;
460
437
  /**
461
438
  * return the specified FontFace Object
462
- * @memberof loader
463
439
  * @param {string} elt - name of the font file
464
440
  * @returns {FontFace}
465
441
  * @category Assets
@@ -482,14 +458,15 @@ export const baseURL: {
482
458
  * The "anonymous" keyword means that there will be no exchange of user credentials via cookies,
483
459
  * client-side SSL certificates or HTTP authentication as described in the Terminology section of the CORS specification.<br>
484
460
  * @type {string}
485
- * @name crossOrigin
486
- * @memberof loader
487
461
  * @default undefined
488
462
  * @see {@link setOptions}
489
463
  * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes}
464
+ * @deprecated since 20.4.0, read-only — set it with
465
+ * {@link setOptions}. This is a module binding, so assigning to it throws a
466
+ * `TypeError`; the example below never worked.
490
467
  * @example
491
468
  * // allow for cross-origin texture loading
492
- * me.loader.crossOrigin = "anonymous";
469
+ * me.loader.setOptions({ crossOrigin: "anonymous" });
493
470
  *
494
471
  * // set all resources to be loaded
495
472
  * me.loader.preload(game.resources, () => this.loaded());
@@ -500,59 +477,55 @@ export let crossOrigin: string;
500
477
  * authorization headers or TLS client certificates. Setting withCredentials has no effect on same-site requests.
501
478
  * @public
502
479
  * @type {boolean}
503
- * @name withCredentials
504
480
  * @see {@link setOptions}
505
481
  * @default false
506
- * @memberof loader
507
482
  * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials}
483
+ * @deprecated since 20.4.0, read-only — set it with
484
+ * {@link setOptions}. This is a module binding, so assigning to it throws a
485
+ * `TypeError`; the example below never worked.
508
486
  * @example
509
- * // enable withCredentials
510
- * me.loader.withCredentials = true;
487
+ * // enable withCredentials, for assets behind a session cookie or login
488
+ * me.loader.setOptions({ withCredentials: true });
511
489
  *
512
490
  * // set all resources to be loaded
513
491
  * me.loader.preload(game.resources, () => this.loaded());
514
492
  */
515
493
  export let withCredentials: boolean;
516
- /**
517
- * onload callback
518
- * @default undefined
519
- * @memberof loader
520
- * @type {function}
521
- * @deprecated since 18.2.0 - Use the {@link event.LOADER_COMPLETE} event or the `onloadcb` parameter of {@link loader.preload} instead.
522
- * @example
523
- * // use the LOADER_COMPLETE event instead
524
- * me.event.on(me.event.LOADER_COMPLETE, this.loaded.bind(this));
525
- */
526
- export let onload: Function;
527
- /**
528
- * onProgress callback<br>
529
- * each time a resource is loaded, the loader will fire the specified function,
530
- * giving the actual progress [0 ... 1], as argument, and an object describing the resource loaded
531
- * @default undefined
532
- * @memberof loader
533
- * @type {function}
534
- * @deprecated since 18.2.0 - Use the {@link event.LOADER_PROGRESS} event instead.
535
- * @example
536
- * // use the LOADER_PROGRESS event instead
537
- * me.event.on(me.event.LOADER_PROGRESS, (progress, resource) => this.updateProgress(progress, resource));
538
- */
539
- export let onProgress: Function;
540
- /**
541
- * onError callback<br>
542
- * each time a resource loading is failed, the loader will fire the specified function giving the actual asset as argument.
543
- * @default undefined
544
- * @memberof loader
545
- * @type {function}
546
- * @deprecated since 18.2.0 - Use the {@link event.LOADER_ERROR} event instead.
547
- * @example
548
- * // use the LOADER_ERROR event instead
549
- * me.event.on(me.event.LOADER_ERROR, (resource) => this.loaderError(resource));
550
- */
551
- export let onError: Function;
552
494
  /**
553
495
  * an asset definition to be used with the loader
554
496
  */
555
- export type Asset = object;
497
+ export type Asset = {
498
+ /**
499
+ * - name of the asset
500
+ */
501
+ name: string;
502
+ /**
503
+ * - the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx"|"tsx"|"fontface"|"video"|"aseprite"|"shader"|"obj"|"mtl"|"gltf"|"glb"). JSON-serialised Tiled maps and tilesets (`.tmj` / `.tsj`) load under `"tmx"` / `"tsx"` — those are file extensions, not asset types.
504
+ */
505
+ type: string;
506
+ /**
507
+ * - path and/or file name of the resource (for audio assets only the path is required).
508
+ * For image assets, an array of sources can be provided as a fallback chain (e.g. compressed texture formats by priority, with a PNG fallback).
509
+ * The loader will try each source in order and use the first one that loads successfully.
510
+ */
511
+ src?: string | string[];
512
+ /**
513
+ * - inline content if not provided through a src url: TMX data for "tmx" assets, GLSL source (the ShaderEffect fragment-body convention) for "shader" assets
514
+ */
515
+ data?: string;
516
+ /**
517
+ * - Set to true to not to wait for large audio or video file to be downloaded before playing.
518
+ */
519
+ stream?: boolean;
520
+ /**
521
+ * - Set to true to automatically start playing audio or video when loaded or added to a scene (using autoplay might require user iteraction to enable it)
522
+ */
523
+ autoplay?: boolean;
524
+ /**
525
+ * - Set to true to automatically loop the audio or video when playing
526
+ */
527
+ loop?: boolean;
528
+ };
556
529
  /**
557
530
  * a parsed glTF/GLB scene descriptor, as returned by {@link loader.getGLTF}
558
531
  */
@@ -1 +1 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/loader/loader.js"],"names":[],"mappings":"AAuFA;;;GAGG;AACH,mDAEC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,oCAdG;IAAyB,WAAW;IACV,OAAO;IACP,eAAe;CACzC,QAqBF;AAED;;;;;;;;;;;;;;GAcG;AACH,iCATW,MAAM,QACN,MAAM,QA6BhB;AAqID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,gCAnBW,MAAM,4BA6BhB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,gCAhDW,KAAK,EAAE,2CAEP,OAAO,GACL,OAAO,CAAC,IAAI,CAAC,CAoFzB;AAED;;;;;;;;;;;;;;;IAeI;AACJ,4BAbW,MAAM,QAqChB;AAED;;;;;;;;;;;;;;;;;;;;;;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AAM,EAAE;;;;aACR,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE;YAAC,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAC,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC;;;;YAClJ,MAAM,EAAE;;;;YACR;QAAC,GAAG,EAAE,MAAM,EAAE,CAAC;QAAC,GAAG,EAAE,MAAM,EAAE,CAAA;KAAC;;;;WAC9B,MAAM,EAAE;;;;gBACR,MAAM,EAAE"}
@@ -1,36 +1,3 @@
1
1
  export default DefaultLoadingScreen;
2
- /**
3
- * a default loading screen
4
- * @ignore
5
- */
6
- declare class DefaultLoadingScreen extends Stage {
7
- /**
8
- * Pin the loading screen to a Camera2d regardless of the
9
- * application's `cameraClass` setting. The loader must render
10
- * correctly even when the host app opts in to Camera3d globally
11
- * — a perspective camera applied to a 2D progress bar would
12
- * stretch / clip the bar based on its depth.
13
- */
14
- constructor();
15
- /**
16
- * @ignore
17
- */
18
- progressBar: null;
19
- /**
20
- * @ignore
21
- */
22
- logoSprite: null;
23
- /**
24
- * call when the loader is resetted
25
- * @ignore
26
- */
27
- onResetEvent(app: any): void;
28
- /**
29
- * Called by engine before deleting the object
30
- * @ignore
31
- */
32
- onDestroyEvent(): void;
33
- #private;
34
- }
35
2
  import Stage from "./../state/stage.ts";
36
3
  //# sourceMappingURL=loadingscreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadingscreen.d.ts","sourceRoot":"","sources":["../../src/loader/loadingscreen.js"],"names":[],"mappings":";AA6EA;;;GAGG;AACH;IAuBC;;;;;;OAMG;IACH,cAEC;IA/BD;;OAEG;IACH,kBAAmB;IAEnB;;OAEG;IACH,iBAAkB;IAyBlB;;;OAGG;IACH,6BAiCC;IAiCD;;;OAGG;IACH,uBAOC;;CACD;kBAlMiB,qBAAqB"}
1
+ {"version":3,"file":"loadingscreen.d.ts","sourceRoot":"","sources":["../../src/loader/loadingscreen.js"],"names":[],"mappings":";AAiFA;;;;GAIG;AACH;IA2BC;;;;;;OAMG;IACH,cAEC;IAnCD;;;OAGG;IACH,kBAAmB;IAEnB;;;OAGG;IACH,iBAAkB;IA2BlB;;;;OAIG;IACH,6BAiCC;IAkCD;;;;OAIG;IACH,uBAOC;;CACD;kBA9MiB,qBAAqB"}
@@ -21,17 +21,4 @@ export function parseAseprite(buffer: any, imageName?: string): Promise<{
21
21
  };
22
22
  };
23
23
  }>;
24
- /**
25
- * preload an .aseprite binary file: fetches the file, parses + composites it,
26
- * then stores the resulting bitmap in `imgList` and the JSON sidecar in
27
- * `jsonList` under the same asset name — so TextureAtlas, TMXTileset, etc.
28
- * can resolve it via the usual getImage() / getJSON() lookups.
29
- * @param {loader.Asset} data - asset descriptor
30
- * @param {Function} [onload]
31
- * @param {Function} [onerror]
32
- * @param {Object} [settings]
33
- * @returns {number}
34
- * @ignore
35
- */
36
- export function preloadAseprite(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
37
24
  //# sourceMappingURL=aseprite.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aseprite.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/aseprite.js"],"names":[],"mappings":"AA+gBA;;;;GAIG;AACH;;;;;;;;;;;;;;;;;GAMC;AAED;;;;;;;;;;;GAWG;AACH,sCAPW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAwBlB"}
1
+ {"version":3,"file":"aseprite.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/aseprite.js"],"names":[],"mappings":"AAqhBA;;;;GAIG;AACH;;;;;;;;;;;;;;;;;GAMC;AAED;;;;;;;;;;;;GAYG;AACH,sCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAyBlB"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=audio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/audio.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,mCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAMlB;AAED;;;;;;GAMG;AACH,kCALW,MAAM,GACJ,OAAO,CAMnB;AAED;;;;GAIG;AACH,uCAEC"}
@@ -1,11 +1,2 @@
1
- /**
2
- * parse/preload a Binary 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 preloadBinary(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
1
+
11
2
  //# sourceMappingURL=binary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/binary.js"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,oCAPW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAsBlB"}
1
+ {"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/binary.js"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,oCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAuBlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"compressed_image.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/compressed_image.js"],"names":[],"mappings":"AAmEA,yEAgDC;;;;;UA1Ga,UAAU;;;;WACV,MAAM;;;;YACN,MAAM;;;;;;;;;aAMN,sBAAsB,EAAE;;;;WACxB,MAAM;;;;YACN,MAAM;;;;YACN,MAAM;;;;gBACN,OAAO;;;;oBACP,OAAO"}
1
+ {"version":3,"file":"compressed_image.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/compressed_image.js"],"names":[],"mappings":"AAwEA,yEAgDC;;;;;UA/Ga,UAAU;;;;WACV,MAAM;;;;YACN,MAAM;;;;;;;;;aAMN,sBAAsB,EAAE;;;;WACxB,MAAM;;;;YACN,MAAM;;;;YACN,MAAM;;;;gBACN,OAAO;;;;oBACP,OAAO"}
@@ -1,8 +1,2 @@
1
- /**
2
- * Parse a DDS compressed texture file.
3
- * @param {ArrayBuffer} data - the DDS file data
4
- * @returns {CompressedImage} a compressed texture object with mipmaps, width, height, format
5
- * @ignore
6
- */
7
- export function parseDDS(data: ArrayBuffer): CompressedImage;
1
+
8
2
  //# sourceMappingURL=parseDDS.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseDDS.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseDDS.js"],"names":[],"mappings":"AAsCA;;;;;GAKG;AACH,+BAJW,WAAW,GACT,eAAe,CAoE3B"}
1
+ {"version":3,"file":"parseDDS.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseDDS.js"],"names":[],"mappings":"AAsCA;;;;;;GAMG;AACH,+BALW,WAAW,GACT,eAAe,CAqE3B"}
@@ -1,8 +1,2 @@
1
- /**
2
- * Parse a KTX v1 compressed texture file.
3
- * @param {ArrayBuffer} data - the KTX file data
4
- * @returns {CompressedImage} a compressed texture object with mipmaps, width, height, format
5
- * @ignore
6
- */
7
- export function parseKTX(data: ArrayBuffer): CompressedImage;
1
+
8
2
  //# sourceMappingURL=parseKTX.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseKTX.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseKTX.js"],"names":[],"mappings":"AAYA;;;;;GAKG;AACH,+BAJW,WAAW,GACT,eAAe,CA+E3B"}
1
+ {"version":3,"file":"parseKTX.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseKTX.js"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,+BALW,WAAW,GACT,eAAe,CAgF3B"}
@@ -1,8 +1,2 @@
1
- /**
2
- * Parse a KTX v2 compressed texture file.
3
- * @param {ArrayBuffer} data - the KTX2 file data
4
- * @returns {CompressedImage} a compressed texture object with mipmaps, width, height, format
5
- * @ignore
6
- */
7
- export function parseKTX2(data: ArrayBuffer): CompressedImage;
1
+
8
2
  //# sourceMappingURL=parseKTX2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseKTX2.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseKTX2.js"],"names":[],"mappings":"AAsEA;;;;;GAKG;AACH,gCAJW,WAAW,GACT,eAAe,CA0E3B"}
1
+ {"version":3,"file":"parseKTX2.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseKTX2.js"],"names":[],"mappings":"AAsEA;;;;;;GAMG;AACH,gCALW,WAAW,GACT,eAAe,CA2E3B"}
@@ -1,8 +1,2 @@
1
- /**
2
- * Parse a PKM compressed texture file.
3
- * @param {ArrayBuffer} data - the raw PKM file data
4
- * @returns {CompressedImage} a compressed texture object
5
- * @ignore
6
- */
7
- export function parsePKM(data: ArrayBuffer): CompressedImage;
1
+
8
2
  //# sourceMappingURL=parsePKM.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parsePKM.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parsePKM.js"],"names":[],"mappings":"AA0CA;;;;;GAKG;AACH,+BAJW,WAAW,GACT,eAAe,CAiD3B"}
1
+ {"version":3,"file":"parsePKM.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parsePKM.js"],"names":[],"mappings":"AA0CA;;;;;;GAMG;AACH,+BALW,WAAW,GACT,eAAe,CAkD3B"}
@@ -1,8 +1,2 @@
1
- /**
2
- * parse a PVR v3 compressed texture file
3
- * @param {ArrayBuffer} data - the PVR file data
4
- * @returns {CompressedImage} a compressed texture object with mipmaps, width, height, format
5
- * @ignore
6
- */
7
- export function parsePVR(data: ArrayBuffer): CompressedImage;
1
+
8
2
  //# sourceMappingURL=parsePVR.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parsePVR.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parsePVR.js"],"names":[],"mappings":"AAmEA;;;;;GAKG;AACH,+BAJW,WAAW,GACT,eAAe,CAqD3B"}
1
+ {"version":3,"file":"parsePVR.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parsePVR.js"],"names":[],"mappings":"AAmEA;;;;;;GAMG;AACH,+BALW,WAAW,GACT,eAAe,CAsD3B"}
@@ -1,14 +1,2 @@
1
- /**
2
- * parse/preload a font face
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
- * @returns {number} the amount of corresponding resource parsed/preloaded
7
- * @ignore
8
- * @example
9
- * preloadFontFace([
10
- * { name: "'kenpixel'", type: "fontface", src: "data/font/kenvector_future.woff2" }
11
- * ]);
12
- */
13
- export function preloadFontFace(data: loader.Asset, onload?: Function, onerror?: Function): number;
1
+
14
2
  //# sourceMappingURL=fontface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fontface.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/fontface.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,sCAVW,MAAM,CAAC,KAAK,0CAGV,MAAM,CA+DlB"}
1
+ {"version":3,"file":"fontface.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/fontface.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,sCAXW,MAAM,CAAC,KAAK,0CAGV,MAAM,CAgElB"}