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,15 +1,3 @@
1
- /**
2
- * @import RenderTargetPool from "./rendertarget/render_target_pool.js";
3
- */
4
- /**
5
- * @import {Rect} from "./../geometries/rectangle.ts";
6
- * @import {RoundRect} from "./../geometries/roundrect.ts";
7
- * @import {Polygon} from "../geometries/polygon.ts";
8
- * @import {Line} from "./../geometries/line.ts";
9
- * @import {Ellipse} from "./../geometries/ellipse.ts";
10
- * @import {Bounds} from "./../physics/bounds.ts";
11
- * @import {default as Texture2d} from "./texture/texture2d.ts";
12
- */
13
1
  /**
14
2
  * a base renderer object
15
3
  * @category Rendering
@@ -49,7 +37,6 @@ declare class Renderer {
49
37
  constructor(options?: ApplicationSettings);
50
38
  /**
51
39
  * The renderer renderTarget
52
- * @name renderTarget
53
40
  * @type {CanvasRenderTarget}
54
41
  */
55
42
  renderTarget: CanvasRenderTarget;
@@ -83,21 +70,6 @@ declare class Renderer {
83
70
  * @type {string|undefined}
84
71
  */
85
72
  GPURenderer: string | undefined;
86
- /**
87
- * an optional custom shader to use instead of the default one.
88
- * Set by a renderable's preDraw when a shader is assigned.
89
- * (GPU renderers only; ignored by Canvas renderer)
90
- * @type {GLShader|ShaderEffect|undefined}
91
- * @ignore
92
- */
93
- customShader: GLShader | ShaderEffect | undefined;
94
- /**
95
- * The render target pool for post-effect processing (ping-pong FBOs).
96
- * Initialized by GPU renderers (WebGL, WebGPU). Null on Canvas renderer.
97
- * @type {RenderTargetPool|null}
98
- * @ignore
99
- */
100
- _renderTargetPool: RenderTargetPool | null;
101
73
  /**
102
74
  * The Path2D instance used by the renderer to draw primitives
103
75
  * @type {Path2D}
@@ -200,10 +172,6 @@ declare class Renderer {
200
172
  * @default 1
201
173
  */
202
174
  lineWidth: number;
203
- /**
204
- * @ignore
205
- */
206
- maskLevel: number;
207
175
  projectionMatrix: Matrix3d;
208
176
  uvOffset: number;
209
177
  /**
@@ -273,41 +241,31 @@ declare class Renderer {
273
241
  */
274
242
  flush(): void;
275
243
  /**
276
- * Hold one ground shadow ({@link Mesh#castGroundShadow}) back until the end
277
- * of the mesh pass (#1515).
244
+ * Run the transparent pass: draw everything the CURRENT render target has
245
+ * queued since its last drain, back-to-front, then empty that queue.
278
246
  *
279
- * A blob shadow deliberately writes no depth, so that two overlapping at
280
- * one ground height blend instead of fighting. The price of that choice is
281
- * that it leaves nothing in the depth buffer to defend itself with: any
282
- * opaque mesh drawn afterwards simply paints over it. The ground plane is
283
- * exactly that mesh whenever it sorts after the props standing on it — the
284
- * common case, because a large plane's single sort key says nothing useful
285
- * about where it sits relative to what stands on it.
247
+ * Called at the three points where the world draw is genuinely finished —
248
+ * `Container.draw` just before a floating child, `Camera2d.draw` once the
249
+ * container is down, and `Application.draw` at end of frame. Deliberately
250
+ * NOT on a batcher transition: anything non-mesh sorting mid-scene raises
251
+ * one, and every mesh still to come would then paint over what was just
252
+ * replayed.
286
253
  *
287
- * So shadows are collected here and drawn once the opaque meshes are down.
288
- * Depth *testing* stays on throughout, so a shadow is still correctly
289
- * hidden behind geometry genuinely in front of it: deferring changes only
290
- * who paints over whom among draws that write no depth.
291
- * @param {object} quad - the shared shadow quad
292
- * @param {Matrix3d} modelMatrix - where the blob sits (copied, not retained)
293
- * @param {number} tint - packed ARGB tint for the draw
294
- * @param {object} [instanced] - the `InstancedMesh` whose instance buffer
295
- * supplies one blob per instance, for the instanced tier
296
- * @ignore
297
- */
298
- queueGroundShadow(quad: object, modelMatrix: Matrix3d, tint: number, instanced?: object): void;
299
- _shadowCount: any;
300
- /**
301
- * Draw every ground shadow queued since the last drain, then empty the
302
- * queue (#1515). Called when the renderer leaves mesh mode, and once more
303
- * at end of frame for a scene made only of meshes, which never switches
304
- * away from mesh mode on its own.
254
+ * Only the current target's queue is touched — see
255
+ * {@link Renderer#transparentQueue}. A post effect binds an offscreen
256
+ * target part-way through a scene, and a drain fired in there must not
257
+ * reach the world's queued geometry; each pass drains its own on the way
258
+ * out.
305
259
  *
306
260
  * Inert on a backend that never queues — the Canvas renderer has no depth
307
- * buffer and so no ground shadows at all.
261
+ * buffer, and composites through the 2D context instead.
262
+ */
263
+ flushTransparent(): void;
264
+ /**
265
+ * Run the transparent pass.
266
+ * @deprecated since 20.4.0, use {@link Renderer#flushTransparent}
308
267
  */
309
268
  flushGroundShadows(): void;
310
- _shadowFlushing: boolean | undefined;
311
269
  /**
312
270
  * Draw a textured triangle mesh.
313
271
  * The mesh object must provide: `vertices` (Float32Array, x/y/z triplets),
@@ -374,23 +332,6 @@ declare class Renderer {
374
332
  * @returns {boolean}
375
333
  */
376
334
  hasSupportedCompressedFormats(format: number): boolean;
377
- /**
378
- * Begin capturing rendering to an offscreen buffer for post-effect processing.
379
- * Call endPostEffect() after rendering to blit the result to the screen.
380
- * No-op on Canvas renderer.
381
- * @param {Renderable} renderable - the renderable with postEffects to apply
382
- * @returns {boolean} false (Canvas renderer does not support post-effect processing)
383
- * @ignore
384
- */
385
- beginPostEffect(renderable: Renderable): boolean;
386
- /**
387
- * End post-effect capture and blit the offscreen buffer to the screen
388
- * through the renderable's post-effects.
389
- * No-op on Canvas renderer.
390
- * @param {Renderable} renderable - the renderable with postEffects to apply
391
- * @ignore
392
- */
393
- endPostEffect(renderable: Renderable): void;
394
335
  /**
395
336
  * Blit a texture to the screen through a shader effect.
396
337
  * Draws a screen-aligned quad using the given texture as source
@@ -450,31 +391,9 @@ declare class Renderer {
450
391
  * set the current blend mode. Every renderer supports the same set —
451
392
  * see {@link CanvasRenderer#setBlendMode} for the list and what each does.
452
393
  * @param {string} [mode="normal"] - blend mode
453
- * @param {boolean} [premultipliedAlpha=true] - whether textures use premultiplied alpha
454
394
  */
455
395
  setBlendMode(mode?: string): void;
456
- /**
457
- * Upload the active scene lights to the lit sprite pipeline.
458
- *
459
- * Called once per camera per frame by `Camera2d.draw()` (after the
460
- * FBO is bound, before the world tree walk fires `Sprite.draw` for
461
- * any normal-mapped sprite). GPU renderers (WebGL today, WebGPU once
462
- * it lands) override this to pack the lights into the lit shader's
463
- * uniform buffers; the Canvas renderer cannot do per-pixel normal-map
464
- * lighting and silently ignores the call. The first time a non-empty
465
- * light list is passed in Canvas mode, a one-shot console warning is
466
- * emitted.
467
- *
468
- * Stage stays renderer-agnostic by passing the raw scene data —
469
- * lights iterable and ambient color — and letting the renderer
470
- * decide how to encode them.
471
- * @param {Iterable<object>} [lights] - active `Light2d` instances; falsy/empty no-ops
472
- * @param {object} [ambient] - ambient lighting color (0..255 RGB)
473
- * @param {number} [translateX=0] - world-to-screen X translate (matches `Camera2d.draw()`)
474
- * @param {number} [translateY=0] - world-to-screen Y translate
475
- */
476
- setLightUniforms(lights?: Iterable<object>, ambient?: object, translateX?: number, translateY?: number): void;
477
- _litPipelineWarned: boolean | undefined;
396
+ setLightUniforms(lights: any, ambient: any, translateX: any, translateY: any): void;
478
397
  /**
479
398
  * Render a `Light2d` instance.
480
399
  *
@@ -748,7 +667,7 @@ declare class Renderer {
748
667
  * @param {Rect|RoundRect|Polygon|Line|Ellipse} [mask] - the shape defining the mask to be applied
749
668
  * @param {boolean} [invert=false] - either the given shape should define what is visible (default) or the opposite
750
669
  */
751
- setMask(): void;
670
+ setMask(mask?: Rect | RoundRect | Polygon | Line | Ellipse, invert?: boolean): void;
752
671
  /**
753
672
  * disable (remove) the rendering mask set through setMask.
754
673
  * @see Renderer#setMask
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../src/video/renderer.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH;;;;;;;;GAQG;AAEH;;;GAGG;AACH;IA2dC;;;;;;;;;;;;OAYG;IACH,2BANW,MAAM,UACN,MAAM,0BACN,OAAO,GAEL,iBAAiB,GAAC,eAAe,CAI7C;IAED;;;;;;;;;;;;OAYG;IACH,wBAFa,iBAAiB,GAAC,eAAe,CAgB7C;IAtgBD;;OAEG;IACH,sBAFW,mBAAmB,EA4N7B;IAzNA;;;;OAIG;IACH,cAFU,kBAAkB,CAS3B;IAED;;;;OAIG;IACH,iBAFU,MAAM,CAEO;IAEvB;;;;OAIG;IACH,oBAFU,MAAM,CAE6C;IAE7D;;;;OAIG;IACH,YAHU,QAAQ,CAGsD;IAExE;;;;OAIG;IACH,gBAFU,OAAO,CAES;IAE1B;;;;OAIG;IACH,aAFU,MAAM,GAAC,SAAS,CAEE;IAE5B;;;;;;OAMG;IACH,cAHU,QAAQ,GAAC,YAAY,GAAC,SAAS,CAGZ;IAE7B;;;;;OAKG;IACH,mBAHU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}
@@ -60,60 +60,11 @@ export default class RenderState {
60
60
  * @type {number}
61
61
  */
62
62
  currentDepth: number;
63
- /**
64
- * @ignore
65
- */
66
- _stackCapacity: number;
67
- /**
68
- * current stack depth
69
- * @ignore
70
- */
71
- _stackDepth: number;
72
- /** @ignore */
73
- _colorStack: Color[];
74
- /** @ignore */
75
- _tintStack: Color[];
76
- /** @ignore */
77
- _matrixStack: Matrix3d[];
78
- /** @ignore */
79
- _scissorStack: Int32Array<ArrayBuffer>[];
80
- /** @ignore */
81
- _lineDashStack: any[];
82
- /** @ignore */
83
- _scissorActive: Uint8Array<ArrayBuffer>;
84
- /** @ignore */
85
- _gradientStack: any[];
86
- /** @ignore */
87
- _blendStack: any[];
88
- /** @ignore */
89
- _shaderStack: any[];
90
- /** @ignore */
91
- _depthStack: Float32Array<ArrayBuffer>;
92
63
  /**
93
64
  * Save the current state onto the stack (zero allocations).
94
65
  * @param {boolean} [scissorTestActive=false] - whether scissor/clip is currently enabled
95
66
  */
96
67
  save(scissorTestActive?: boolean): void;
97
- /**
98
- * Inspect the scissor box that the next `restore()` would install,
99
- * without mutating any state. Lets renderers detect whether a
100
- * pending `restore()` will actually change the scissor (and
101
- * decide, e.g., whether to flush GPU work first).
102
- *
103
- * Returns:
104
- * - `Int32Array` (length 4) — `[x, y, width, height]` of the
105
- * saved scissor when scissor was active at the matching `save()`
106
- * call.
107
- * - `null` — when the saved state had scissor disabled, or the
108
- * stack is empty. Treat this as "next scissor will be inactive".
109
- *
110
- * The returned array is a **live reference into the internal
111
- * stack** — zero allocation on a hot path. Callers MUST treat it
112
- * as read-only; mutating it corrupts subsequent `restore()` calls.
113
- * @ignore
114
- * @returns {Int32Array | null}
115
- */
116
- peekScissor(): Int32Array | null;
117
68
  /**
118
69
  * Restore state from the stack.
119
70
  * Color, tint, transform, and scissor are restored in place.
@@ -133,8 +84,6 @@ export default class RenderState {
133
84
  * @param {number} height - canvas height
134
85
  */
135
86
  reset(width: number, height: number): void;
136
- /** @private — doubles stack capacity when exceeded */
137
- private _growStacks;
138
87
  }
139
88
  import { Color } from "./../math/color.ts";
140
89
  import { Matrix3d } from "../math/matrix3d.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"renderstate.d.ts","sourceRoot":"","sources":["../../src/video/renderstate.js"],"names":[],"mappings":"AAGA;;GAEG;AAEH;;;;;;;GAOG;AACH;IAEE;;;OAGG;IACH,cAFU,KAAK,CAE4B;IAE3C;;;OAGG;IACH,aAFU,KAAK,CAEiC;IAEhD;;;OAGG;IACH,kBAFU,QAAQ,CAEoB;IAEtC;;;OAGG;IACH,gBAFU,UAAU,CAEmB;IAEvC;;;OAGG;IACH,iBAFU,QAAQ,GAAC,IAAI,CAEI;IAE3B;;;OAGG;IACH,UAFU,MAAM,EAAE,CAEA;IAElB;;;OAGG;IACH,kBAFU,MAAM,CAEc;IAE9B;;;OAGG;IACH,eAFU,YAAY,GAAC,SAAS,CAEF;IAE9B;;;;;;;;OAQG;IACH,cAFU,MAAM,CAEK;IAIrB;;OAEG;IACH,uBAAwB;IAExB;;;OAGG;IACH,oBAAoB;IAEpB,cAAc;IACd,qBAEE;IAEF,cAAc;IACd,oBAEE;IAEF,cAAc;IACd,yBAEE;IAEF,cAAc;IACd,yCAEE;IAEF,cAAc;IACd,sBAAoD;IAEpD,cAAc;IACd,wCAAyD;IAEzD,cAAc;IACd,sBAAoD;IAEpD,cAAc;IACd,mBAAiD;IAEjD,cAAc;IACd,oBAAkD;IAElD,cAAc;IACd,uCAAwD;IAGzD;;;OAGG;IACH,yBAFW,OAAO,QA0BjB;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,eAFa,UAAU,GAAG,IAAI,CAQ7B;IAED;;;;;;;;OAQG;IACH,qBAJW,MAAM,gBACN,MAAM,GACJ;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CA0BhE;IAED;;;;OAIG;IACH,aAHW,MAAM,UACN,MAAM,QAWhB;IAED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OAIG;IACH,oBAoBC;CACD;sBAvSqB,oBAAoB;yBACjB,qBAAqB;8BAGnB,eAAe"}
@@ -50,10 +50,6 @@ declare class CanvasRenderTarget extends RenderTarget {
50
50
  * @deprecated since 20.0.0 — the WebGL renderer is WebGL 2 only, this is always `2`
51
51
  */
52
52
  WebGLVersion: number;
53
- /**
54
- * @ignore
55
- */
56
- onResetEvent(width: any, height: any): void;
57
53
  /**
58
54
  * enable/disable image smoothing (scaling interpolation)
59
55
  * @param {boolean} [enable=false] - whether to enable or not image smoothing (scaling interpolation)
@@ -76,12 +72,6 @@ declare class CanvasRenderTarget extends RenderTarget {
76
72
  */
77
73
  invalidate(renderer: CanvasRenderer | WebGLRenderer): void;
78
74
  glTextureUnit: any;
79
- /**
80
- * Destroy this canvas render target and release associated GPU resources.
81
- * @param {CanvasRenderer|WebGLRenderer} [renderer] - the renderer to clean up WebGL resources from
82
- * @ignore
83
- */
84
- destroy(renderer?: CanvasRenderer | WebGLRenderer): void;
85
75
  #private;
86
76
  }
87
77
  import RenderTarget from "./rendertarget.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"canvasrendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/canvasrendertarget.js"],"names":[],"mappings":";AA6EA;;;;;;GAMG;AACH;IACC;;;;;;;;;OASG;IACH,mBATW,MAAM,UACN,MAAM,eAEd;QAA4B,OAAO;QACN,WAAW;QACX,eAAe;QACf,kBAAkB;QAClB,SAAS;KACxC,EAoCA;IAhCA;;;;;;;;;;;;;;;;;MAAkE;IASjE,YAA+B;IAUhC,aAA0D;IAGzD;;;;OAIG;IACH,cAHU,MAAM,CAGK;IAOvB;;OAEG;IACH,4CAGC;IAUD;;;OAGG;IACH,sBAFW,OAAO,QAwBjB;IAYD;;;;;;;;OAQG;IACH,gBANW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,GACJ,SAAS,CAUrB;IAoDD;;;;OAIG;IACH,qBAFW,cAAc,GAAC,aAAa,QAsBtC;IAWC,mBAEC;IAeH;;;;OAIG;IACH,mBAHW,cAAc,GAAC,aAAa,QAyCtC;;CA2BD;yBAvXwB,mBAAmB;gCAIb,gCAAgC;+BACjC,8BAA8B"}
1
+ {"version":3,"file":"canvasrendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/canvasrendertarget.js"],"names":[],"mappings":";AA6EA;;;;;;GAMG;AACH;IACC;;;;;;;;;OASG;IACH,mBATW,MAAM,UACN,MAAM,eAEd;QAA4B,OAAO;QACN,WAAW;QACX,eAAe;QACf,kBAAkB;QAClB,SAAS;KACxC,EAoCA;IAhCA;;;;;;;;;;;;;;;;;MAAkE;IASjE,YAA+B;IAUhC,aAA0D;IAGzD;;;;OAIG;IACH,cAHU,MAAM,CAGK;IAOvB;;;OAGG;IACH,4CAGC;IAUD;;;OAGG;IACH,sBAFW,OAAO,QAwBjB;IAYD;;;;;;;;OAQG;IACH,gBANW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,GACJ,SAAS,CAUrB;IAoDD;;;;OAIG;IACH,qBAFW,cAAc,GAAC,aAAa,QAsBtC;IAcC,mBAEC;IAeH;;;;;OAKG;IACH,mBAJW,cAAc,GAAC,aAAa,QA0CtC;;CA2BD;yBA5XwB,mBAAmB;gCAIb,gCAAgC;+BACjC,8BAA8B"}
@@ -1,84 +1,3 @@
1
- /**
2
- * @import RenderTarget from "./rendertarget.ts";
3
- */
4
- /**
5
- * Manages a pool of {@link RenderTarget} instances for post-effect processing.
6
- * Renderer-agnostic — the actual RenderTarget creation is delegated to a
7
- * factory function provided by the renderer (WebGL, WebGPU, etc.).
8
- *
9
- * Camera effects use pool indices 0 and 1 (capture + ping-pong); sprite
10
- * effects use indices 2 and 3, and each NESTED sprite pass (a multi-effect
11
- * renderable drawn inside another multi-effect renderable) gets its own pair
12
- * above that (4/5, 6/7, …), tracked by a stack of active bases so begin/end
13
- * pairs compose like save/restore.
14
- * Render targets are lazily created and resized to match the required dimensions.
15
- * @ignore
16
- */
17
- export default class RenderTargetPool {
18
- /**
19
- * @param {function(number, number, boolean=): RenderTarget} factory - creates a RenderTarget with the given width and height; the third argument is `true` for CAPTURE slots (scene rasterization — may be multisampled) and `false` for ping-pong intermediates
20
- */
21
- constructor(factory: (arg0: number, arg1: number, arg2: boolean | undefined) => RenderTarget);
22
- /** @type {function(number, number): RenderTarget} */
23
- _factory: (arg0: number, arg1: number) => RenderTarget;
24
- /** @type {RenderTarget[]} */
25
- _pool: RenderTarget[];
26
- /**
27
- * active pass bases, innermost last — a STACK, so nested begin/end
28
- * pairs unwind correctly (two scalars silently corrupted the pool on
29
- * nested passes: the inner end() popped the outer pass's slot)
30
- * @type {number[]}
31
- */
32
- _baseStack: number[];
33
- /**
34
- * The base index of the innermost active pass, or -1 when none.
35
- * @returns {number}
36
- */
37
- get activeBase(): number;
38
- /**
39
- * Get or create a render target at the given pool index, resized to the given dimensions.
40
- * @param {number} index - pool index
41
- * @param {number} width - desired width in pixels
42
- * @param {number} height - desired height in pixels
43
- * @returns {RenderTarget} the render target
44
- */
45
- get(index: number, width: number, height: number): RenderTarget;
46
- /**
47
- * Prepare render targets for a post-effect pass.
48
- * Allocates/resizes the capture target and optionally the ping-pong target.
49
- * @param {boolean} isCamera - true for camera effects (indices 0+1), false for sprite (indices 2+3)
50
- * @param {number} effectCount - number of enabled effects
51
- * @param {number} width - target width in pixels
52
- * @param {number} height - target height in pixels
53
- * @returns {RenderTarget} the capture target (ready to bind)
54
- */
55
- begin(isCamera: boolean, effectCount: number, width: number, height: number): RenderTarget;
56
- /**
57
- * Get the capture render target for the current active pass.
58
- * @returns {RenderTarget|undefined} the capture target, or undefined if no active pass
59
- */
60
- getCaptureTarget(): RenderTarget | undefined;
61
- /**
62
- * Get the ping-pong render target for the current active pass.
63
- * @returns {RenderTarget|undefined} the ping-pong target, or undefined if no active pass
64
- */
65
- getPingPongTarget(): RenderTarget | undefined;
66
- /**
67
- * End the current pass and restore the previous active base.
68
- * Returns the parent render target to rebind (or null for screen).
69
- * @returns {RenderTarget|null} the parent target, or null if returning to screen
70
- */
71
- end(): RenderTarget | null;
72
- /**
73
- * Resize all existing render targets in the pool to the given dimensions.
74
- * @param {number} width - new width in pixels
75
- * @param {number} height - new height in pixels
76
- */
77
- resizeAll(width: number, height: number): void;
78
- /**
79
- * Destroy all render targets and clear the pool.
80
- */
81
- destroy(): void;
82
- }
1
+
83
2
  import type RenderTarget from "./rendertarget.ts";
84
3
  //# sourceMappingURL=render_target_pool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render_target_pool.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/render_target_pool.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;GAYG;AACH;IACC;;OAEG;IACH,qBAFW,CAAS,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAQ,EAAR,OAAO,YAAC,KAAG,YAAY,EAc1D;IAXA,qDAAqD;IACrD,UADW,CAAS,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,KAAG,YAAY,CAC1B;IACvB,6BAA6B;IAC7B,OADW,YAAY,EAAE,CACV;IACf;;;;;OAKG;IACH,YAFU,MAAM,EAAE,CAEE;IAGrB;;;OAGG;IACH,kBAFa,MAAM,CAMlB;IAED;;;;;;OAMG;IACH,WALW,MAAM,SACN,MAAM,UACN,MAAM,GACJ,YAAY,CAaxB;IAED;;;;;;;;OAQG;IACH,gBANW,OAAO,eACP,MAAM,SACN,MAAM,UACN,MAAM,GACJ,YAAY,CAuBxB;IAED;;;OAGG;IACH,oBAFa,YAAY,GAAC,SAAS,CAQlC;IAED;;;OAGG;IACH,qBAFa,YAAY,GAAC,SAAS,CAQlC;IAED;;;;OAIG;IACH,OAFa,YAAY,GAAC,IAAI,CAS7B;IAED;;;;OAIG;IACH,iBAHW,MAAM,UACN,MAAM,QAQhB;IAED;;OAEG;IACH,gBAQC;CACD;8BA/J4B,mBAAmB"}
1
+ {"version":3,"file":"render_target_pool.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/render_target_pool.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;GAaG;AACH;IACC;;OAEG;IACH,qBAFW,CAAS,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAQ,EAAR,OAAO,YAAC,KAAG,YAAY,EAwB1D;IArBA;;;;OAIG;IACH,UAJU,CAAS,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,KAAG,YAAY,CAIzB;IACvB;;;;OAIG;IACH,OAJU,YAAY,EAAE,CAIT;IACf;;;;;;;OAOG;IACH,YAJU,MAAM,EAAE,CAIE;IAGrB;;;OAGG;IACH,kBAFa,MAAM,CAMlB;IAED;;;;;;OAMG;IACH,WALW,MAAM,SACN,MAAM,UACN,MAAM,GACJ,YAAY,CAaxB;IAED;;;;;;;;OAQG;IACH,gBANW,OAAO,eACP,MAAM,SACN,MAAM,UACN,MAAM,GACJ,YAAY,CAuBxB;IAED;;;OAGG;IACH,oBAFa,YAAY,GAAC,SAAS,CAQlC;IAED;;;OAGG;IACH,qBAFa,YAAY,GAAC,SAAS,CAQlC;IAED;;;;OAIG;IACH,OAFa,YAAY,GAAC,IAAI,CAS7B;IAED;;;;OAIG;IACH,iBAHW,MAAM,UACN,MAAM,QAQhB;IAED;;OAEG;IACH,gBAQC;CACD;8BA1K4B,mBAAmB"}
@@ -1,66 +1,3 @@
1
- /**
2
- * A WebGL Framebuffer Object (FBO) render target for offscreen rendering.
3
- * Used by the post-processing pipeline to render a camera's output to a texture,
4
- * which can then be drawn to the screen through a post-process shader.
5
- * @augments RenderTarget
6
- * @ignore
7
- */
8
- export default class WebGLRenderTarget extends RenderTarget {
9
- /**
10
- * @param {WebGLRenderingContext|WebGL2RenderingContext} gl - the WebGL context
11
- * @param {number} width - initial width in pixels
12
- * @param {number} height - initial height in pixels
13
- */
14
- /**
15
- * @param {WebGLRenderingContext|WebGL2RenderingContext} gl - the WebGL context
16
- * @param {number} width - initial width in pixels
17
- * @param {number} height - initial height in pixels
18
- * @param {object} [options] - target options
19
- * @param {number} [options.samples=0] - MSAA sample count for the scene
20
- * rasterization. When > 0 the target keeps a multisampled render FBO
21
- * (color + depth-stencil renderbuffers) that draws rasterize into, and
22
- * resolves it into the sampleable texture via `blitFramebuffer` on
23
- * {@link WebGLRenderTarget#resolve} (called automatically by `unbind`).
24
- */
25
- constructor(gl: WebGLRenderingContext | WebGL2RenderingContext, width: number, height: number, options?: {
26
- samples?: number | undefined;
27
- });
28
- gl: WebGLRenderingContext | WebGL2RenderingContext;
29
- /**
30
- * MSAA sample count of the render half (0 = single-sampled)
31
- * @type {number}
32
- */
33
- samples: number;
34
- _needsResolve: boolean;
35
- framebuffer: WebGLFramebuffer;
36
- depthStencilBuffer: WebGLRenderbuffer;
37
- renderFramebuffer: WebGLFramebuffer | null;
38
- colorRenderbuffer: WebGLRenderbuffer | null;
39
- /**
40
- * (Re)create the sampleable color texture with immutable storage
41
- * (`texStorage2D` — the driver skips completeness validation and the
42
- * layout is explicit) and attach it to the resolve framebuffer.
43
- * Immutable storage can never be respecified, so a resize replaces the
44
- * texture object. Caller manages ACTIVE_TEXTURE save/restore.
45
- * @ignore
46
- */
47
- _allocateColorTexture(width: any, height: any): void;
48
- texture: WebGLTexture | null | undefined;
49
- /**
50
- * (Re)attach the depth/stencil renderbuffer at the given size and
51
- * update `_hasStencil` based on the resulting framebuffer status.
52
- * Falls back to depth-only when packed depth+stencil fails; warns
53
- * once if even depth-only is incomplete.
54
- * @ignore
55
- */
56
- _applyDepthStencil(width: any, height: any): void;
57
- _hasStencil: boolean | undefined;
58
- /**
59
- * Resolve the multisampled render half into the sampleable texture
60
- * (no-op when single-sampled or already resolved). Leaves no
61
- * framebuffer bound — callers rebind what they need.
62
- */
63
- resolve(): void;
64
- }
1
+
65
2
  import RenderTarget from "./rendertarget.ts";
66
3
  //# sourceMappingURL=webglrendertarget.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webglrendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/webglrendertarget.js"],"names":[],"mappings":"AA2EA;;;;;;GAMG;AACH;IACC;;;;OAIG;IACH;;;;;;;;;;OAUG;IACH,gBAVW,qBAAqB,GAAC,sBAAsB,SAC5C,MAAM,UACN,MAAM,YAEd;QAAyB,OAAO;KAKlC,EAgEA;IA7DA,mDAAY;IAIZ;;;OAGG;IACH,SAFU,MAAM,CAEmB;IAGnC,uBAA0B;IAI1B,8BAAyC;IAWzC,sCAAiD;IAKhD,2CAA+C;IAC/C,4CAAgD;IA+BlD;;;;;;;OAOG;IACH,qDAqBC;IAhBA,yCAAiC;IAkBlC;;;;;;OAMG;IACH,kDAmBC;IAVA,iCAAoC;IA0BrC;;;;OAIG;IACH,gBAqBC;CAuID;yBA9YwB,mBAAmB"}
1
+ {"version":3,"file":"webglrendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/webglrendertarget.js"],"names":[],"mappings":"AA4EA;;;;;;;GAOG;AACH;IACC;;;;OAIG;IACH;;;;;;;;;;OAUG;IACH,gBAVW,qBAAqB,GAAC,sBAAsB,SAC5C,MAAM,UACN,MAAM,YAEd;QAAyB,OAAO;KAKlC,EAoEA;IAjEA,mDAAY;IAIZ;;;OAGG;IACH,SAFU,MAAM,CAEmB;IAGnC;;;OAGG;IACH,uBAA0B;IAI1B,8BAAyC;IAWzC,sCAAiD;IAKhD,2CAA+C;IAC/C,4CAAgD;IA+BlD;;;;;;;;OAQG;IACH,qDAqBC;IAhBA,yCAAiC;IAkBlC;;;;;;;OAOG;IACH,kDAuBC;IAdA;;;OAGG;IACH,iCAAoC;IA0BrC;;;;OAIG;IACH,gBAqBC;CAuID;yBA1ZwB,mBAAmB"}
@@ -54,14 +54,6 @@ export default class WebGPURenderTarget extends RenderTarget {
54
54
  materialBindGroup: GPUBindGroup | null;
55
55
  materialBindGroupGeneration: number;
56
56
  pendingClear: boolean;
57
- /**
58
- * The group-1 (material) bind group sampling this target with a linear
59
- * clamp sampler — what the effect blit binds as its source. Rebuilt
60
- * lazily when the backing texture was reallocated.
61
- * @returns {GPUBindGroup} the bind group
62
- * @ignore
63
- */
64
- getMaterialBindGroup(): GPUBindGroup;
65
57
  /**
66
58
  * Synchronous readback is impossible under WebGPU — use
67
59
  * {@link WebGPURenderTarget#readPixels}.
@@ -1 +1 @@
1
- {"version":3,"file":"webgpurendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/webgpurendertarget.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH;IACC;;;;OAIG;IACH,sBAJW,OAAO,8BAA8B,EAAE,OAAO,SAC9C,MAAM,UACN,MAAM,gBAsChB;IAlCA,yDAAwB;IAGxB;;;;;;;OAOG;IACH,aAFU,MAAM,CAE2B;IAC3C,8BAA8B;IAC9B,SADW,UAAU,GAAC,IAAI,CACP;IACnB,kCAAkC;IAClC,WADW,cAAc,GAAC,IAAI,CACT;IACrB,iFAAiF;IACjF,aAD8D,UAAU,GAAC,IAAI,CACtD;IACvB,kCAAkC;IAClC,UADW,cAAc,GAAC,IAAI,CACV;IACpB;;;;OAIG;IACH,YAFU,MAAM,CAEG;IAGnB,uCAA6B;IAC7B,oCAAqC;IAErC,sBAAyB;IA+E1B;;;;;;OAMG;IACH,wBAHa,YAAY,CAuBxB;IAED;;;;;OAKG;IACH,8BAIC;IAED;;;;;;;OAOG;IACH,eANW,MAAM,MACN,MAAM,UACN,MAAM,WACN,MAAM,GACJ,OAAO,CAAC,SAAS,CAAC,CAyD9B;CAqBD;yBA3QwB,mBAAmB"}
1
+ {"version":3,"file":"webgpurendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/webgpurendertarget.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH;IACC;;;;OAIG;IACH,sBAJW,OAAO,8BAA8B,EAAE,OAAO,SAC9C,MAAM,UACN,MAAM,gBAsChB;IAlCA,yDAAwB;IAGxB;;;;;;;OAOG;IACH,aAFU,MAAM,CAE2B;IAC3C,8BAA8B;IAC9B,SADW,UAAU,GAAC,IAAI,CACP;IACnB,kCAAkC;IAClC,WADW,cAAc,GAAC,IAAI,CACT;IACrB,iFAAiF;IACjF,aAD8D,UAAU,GAAC,IAAI,CACtD;IACvB,kCAAkC;IAClC,UADW,cAAc,GAAC,IAAI,CACV;IACpB;;;;OAIG;IACH,YAFU,MAAM,CAEG;IAGnB,uCAA6B;IAC7B,oCAAqC;IAErC,sBAAyB;IA+E1B;;;;;;;OAOG;IACH,wBAJa,YAAY,CAwBxB;IAED;;;;;OAKG;IACH,8BAIC;IAED;;;;;;;OAOG;IACH,eANW,MAAM,MACN,MAAM,UACN,MAAM,WACN,MAAM,GACJ,OAAO,CAAC,SAAS,CAAC,CAyD9B;CAqBD;yBA5QwB,mBAAmB"}
@@ -1,36 +1,4 @@
1
- /**
2
- * additional import for TypeScript
3
- * @import NineSliceSprite from "./../../renderable/nineslicesprite.js";
4
- */
5
- /**
6
- * create a simple 1 frame texture atlas based on the given parameters
7
- * @ignore
8
- */
9
- export function createAtlas(width: any, height: any, name?: string, repeat?: string): {
10
- meta: {
11
- app: string;
12
- size: {
13
- w: any;
14
- h: any;
15
- };
16
- repeat: string;
17
- image: string;
18
- };
19
- frames: {
20
- filename: string;
21
- frame: {
22
- x: number;
23
- y: number;
24
- w: any;
25
- h: any;
26
- };
27
- }[];
28
- };
29
- /**
30
- * return a string that identifies the texture atlas type
31
- * @ignore
32
- */
33
- export function identifyFormat(app: any): "melonJS" | "texturepacker" | "shoebox" | "aseprite";
1
+
34
2
  /**
35
3
  * A Texture atlas class, currently supports : <br>
36
4
  * - [TexturePacker]{@link http://www.codeandweb.com/texturepacker/} : through JSON export (standard and multipack texture atlas) <br>
@@ -78,48 +46,6 @@ export class TextureAtlas extends Texture2d {
78
46
  * );
79
47
  */
80
48
  constructor(atlases: object | object[], src?: HTMLImageElement | HTMLCanvasElement | OffscreenCanvas | CompressedImage | string | OffscreenCanvas[] | HTMLImageElement[] | HTMLCanvasElement[] | string[], options?: boolean | object);
81
- /**
82
- * to identify the atlas format (e.g. texture packer)
83
- * @ignore
84
- */
85
- format: string | null;
86
- /**
87
- * the texture source(s) itself
88
- * @type {Map}
89
- * @ignore
90
- */
91
- sources: Map<any, any>;
92
- /**
93
- * paired normal-map source(s), keyed identically to `sources`.
94
- * Populated from the constructor's `options.normalMap`. Used by
95
- * the WebGL renderer's lit pipeline for per-pixel lighting.
96
- * @type {Map}
97
- * @ignore
98
- */
99
- normalSources: Map<any, any>;
100
- /**
101
- * the atlas dictionnaries
102
- * @type {Map}
103
- * @ignore
104
- */
105
- atlases: Map<any, any>;
106
- /**
107
- * the default "active" atlas (used for multiAtlas)
108
- * @type {Map}
109
- * @ignore
110
- */
111
- activeAtlas: Map<any, any>;
112
- /**
113
- * UV lookup cache to avoid per-frame string allocation in drawImage
114
- * @ignore
115
- */
116
- _uvCache: {
117
- sx: number;
118
- sy: number;
119
- sw: number;
120
- sh: number;
121
- uvs: null;
122
- };
123
49
  repeat: any;
124
50
  /**
125
51
  * return the default or specified atlas dictionnary
@@ -129,7 +55,7 @@ export class TextureAtlas extends Texture2d {
129
55
  getAtlas(name?: string): object;
130
56
  /**
131
57
  * return the format of the atlas dictionnary
132
- * @returns {string} will return "texturepacker", or "ShoeBox", or "melonJS", or "Spritesheet (fixed cell size)"
58
+ * @returns {string} will return "texturepacker", "shoebox", "aseprite", "melonJS", or "Spritesheet (fixed cell size)"
133
59
  */
134
60
  getFormat(): string;
135
61
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"atlas.d.ts","sourceRoot":"","sources":["../../../src/video/texture/atlas.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;;GAGG;AACH;;;;;;;;;;;;;;;;;;;EAoBC;AAED;;;GAGG;AACH,+FAYC;AAED;;;;;;;;;;GAUG;AACH;IACC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,qBAj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