melonjs 20.3.0 → 20.5.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 (454) hide show
  1. package/README.md +19 -19
  2. package/build/application/application.d.ts +0 -17
  3. package/build/application/application.d.ts.map +1 -1
  4. package/build/application/settings.d.ts +3 -0
  5. package/build/application/settings.d.ts.map +1 -1
  6. package/build/audio/audio.d.ts.map +1 -1
  7. package/build/audio/backend/engine.d.ts +0 -19
  8. package/build/audio/backend/engine.d.ts.map +1 -1
  9. package/build/audio/backend/sound.d.ts +1 -51
  10. package/build/audio/backend/sound.d.ts.map +1 -1
  11. package/build/audio/backend/spatial.d.ts.map +1 -1
  12. package/build/audio/backend/types.d.ts +11 -1
  13. package/build/audio/backend/types.d.ts.map +1 -1
  14. package/build/audio/backend/voice.d.ts +0 -25
  15. package/build/audio/backend/voice.d.ts.map +1 -1
  16. package/build/audio/playback.d.ts.map +1 -1
  17. package/build/audio/procedural.d.ts +7 -2
  18. package/build/audio/procedural.d.ts.map +1 -1
  19. package/build/audio/state.d.ts +6 -79
  20. package/build/audio/state.d.ts.map +1 -1
  21. package/build/audio/types.d.ts +22 -0
  22. package/build/audio/types.d.ts.map +1 -1
  23. package/build/camera/camera2d.d.ts +28 -68
  24. package/build/camera/camera2d.d.ts.map +1 -1
  25. package/build/camera/camera3d.d.ts +110 -82
  26. package/build/camera/camera3d.d.ts.map +1 -1
  27. package/build/camera/effects/fade_effect.d.ts +0 -5
  28. package/build/camera/effects/fade_effect.d.ts.map +1 -1
  29. package/build/camera/effects/mask_effect.d.ts +0 -5
  30. package/build/camera/effects/mask_effect.d.ts.map +1 -1
  31. package/build/camera/fog.d.ts +118 -0
  32. package/build/camera/fog.d.ts.map +1 -0
  33. package/build/geometries/box3d.d.ts +0 -28
  34. package/build/geometries/box3d.d.ts.map +1 -1
  35. package/build/geometries/ellipse.d.ts +0 -20
  36. package/build/geometries/ellipse.d.ts.map +1 -1
  37. package/build/geometries/observablePoint.d.ts +0 -3
  38. package/build/geometries/observablePoint.d.ts.map +1 -1
  39. package/build/geometries/path2d.d.ts +0 -19
  40. package/build/geometries/path2d.d.ts.map +1 -1
  41. package/build/geometries/polygon.d.ts +7 -13
  42. package/build/geometries/polygon.d.ts.map +1 -1
  43. package/build/geometries/roundrect.d.ts +0 -18
  44. package/build/geometries/roundrect.d.ts.map +1 -1
  45. package/build/geometries/sphere.d.ts +0 -9
  46. package/build/geometries/sphere.d.ts.map +1 -1
  47. package/build/geometries/toarccanvas.d.ts.map +1 -1
  48. package/build/index.d.ts +5 -0
  49. package/build/index.d.ts.map +1 -1
  50. package/build/index.js +3697 -563
  51. package/build/index.js.map +4 -4
  52. package/build/input/gamepad.d.ts.map +1 -1
  53. package/build/input/pointer.d.ts +0 -4
  54. package/build/input/pointer.d.ts.map +1 -1
  55. package/build/input/pointerevent.d.ts +0 -6
  56. package/build/input/pointerevent.d.ts.map +1 -1
  57. package/build/lang/deprecated.d.ts.map +1 -1
  58. package/build/level/gltf/GLTFModel.d.ts +44 -82
  59. package/build/level/gltf/GLTFModel.d.ts.map +1 -1
  60. package/build/level/gltf/GLTFScene.d.ts +1 -44
  61. package/build/level/gltf/GLTFScene.d.ts.map +1 -1
  62. package/build/level/gltf/gltf_sampler.d.ts +1 -48
  63. package/build/level/gltf/gltf_sampler.d.ts.map +1 -1
  64. package/build/level/level.d.ts +195 -113
  65. package/build/level/level.d.ts.map +1 -1
  66. package/build/level/tiled/TMXGroup.d.ts +1 -65
  67. package/build/level/tiled/TMXGroup.d.ts.map +1 -1
  68. package/build/level/tiled/TMXLayer.d.ts +0 -44
  69. package/build/level/tiled/TMXLayer.d.ts.map +1 -1
  70. package/build/level/tiled/TMXObject.d.ts +1 -136
  71. package/build/level/tiled/TMXObject.d.ts.map +1 -1
  72. package/build/level/tiled/TMXObjectFactory.d.ts +1 -40
  73. package/build/level/tiled/TMXObjectFactory.d.ts.map +1 -1
  74. package/build/level/tiled/TMXTile.d.ts +1 -30
  75. package/build/level/tiled/TMXTile.d.ts.map +1 -1
  76. package/build/level/tiled/TMXTileMap.d.ts +0 -10
  77. package/build/level/tiled/TMXTileMap.d.ts.map +1 -1
  78. package/build/level/tiled/TMXTileset.d.ts +0 -113
  79. package/build/level/tiled/TMXTileset.d.ts.map +1 -1
  80. package/build/level/tiled/TMXTilesetGroup.d.ts +0 -1
  81. package/build/level/tiled/TMXTilesetGroup.d.ts.map +1 -1
  82. package/build/level/tiled/TMXUtils.d.ts +1 -43
  83. package/build/level/tiled/TMXUtils.d.ts.map +1 -1
  84. package/build/level/tiled/factories/shape.d.ts +1 -7
  85. package/build/level/tiled/factories/shape.d.ts.map +1 -1
  86. package/build/level/tiled/factories/text.d.ts +1 -7
  87. package/build/level/tiled/factories/text.d.ts.map +1 -1
  88. package/build/level/tiled/factories/tile.d.ts +1 -7
  89. package/build/level/tiled/factories/tile.d.ts.map +1 -1
  90. package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts +0 -60
  91. package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts.map +1 -1
  92. package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts +0 -42
  93. package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts.map +1 -1
  94. package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts +0 -5
  95. package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts.map +1 -1
  96. package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts +0 -31
  97. package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts.map +1 -1
  98. package/build/level/tiled/renderer/TMXRenderer.d.ts +2 -2
  99. package/build/level/tiled/renderer/TMXRenderer.d.ts.map +1 -1
  100. package/build/level/tiled/renderer/TMXStaggeredRenderer.d.ts.map +1 -1
  101. package/build/level/tiled/renderer/autodetect.d.ts +1 -6
  102. package/build/level/tiled/renderer/autodetect.d.ts.map +1 -1
  103. package/build/lighting/light2d.d.ts +0 -25
  104. package/build/lighting/light2d.d.ts.map +1 -1
  105. package/build/lighting/light3d.d.ts +20 -63
  106. package/build/lighting/light3d.d.ts.map +1 -1
  107. package/build/loader/loader.d.ts +146 -37
  108. package/build/loader/loader.d.ts.map +1 -1
  109. package/build/loader/loadingscreen.d.ts +0 -33
  110. package/build/loader/loadingscreen.d.ts.map +1 -1
  111. package/build/loader/parsers/aseprite.d.ts +0 -13
  112. package/build/loader/parsers/aseprite.d.ts.map +1 -1
  113. package/build/loader/parsers/audio.d.ts +1 -30
  114. package/build/loader/parsers/audio.d.ts.map +1 -1
  115. package/build/loader/parsers/binary.d.ts +1 -10
  116. package/build/loader/parsers/binary.d.ts.map +1 -1
  117. package/build/loader/parsers/compressed_textures/compressed_image.d.ts.map +1 -1
  118. package/build/loader/parsers/compressed_textures/parseDDS.d.ts +1 -7
  119. package/build/loader/parsers/compressed_textures/parseDDS.d.ts.map +1 -1
  120. package/build/loader/parsers/compressed_textures/parseKTX.d.ts +1 -7
  121. package/build/loader/parsers/compressed_textures/parseKTX.d.ts.map +1 -1
  122. package/build/loader/parsers/compressed_textures/parseKTX2.d.ts +1 -7
  123. package/build/loader/parsers/compressed_textures/parseKTX2.d.ts.map +1 -1
  124. package/build/loader/parsers/compressed_textures/parsePKM.d.ts +1 -7
  125. package/build/loader/parsers/compressed_textures/parsePKM.d.ts.map +1 -1
  126. package/build/loader/parsers/compressed_textures/parsePVR.d.ts +1 -7
  127. package/build/loader/parsers/compressed_textures/parsePVR.d.ts.map +1 -1
  128. package/build/loader/parsers/fontface.d.ts +1 -13
  129. package/build/loader/parsers/fontface.d.ts.map +1 -1
  130. package/build/loader/parsers/gltf.d.ts +1 -70
  131. package/build/loader/parsers/gltf.d.ts.map +1 -1
  132. package/build/loader/parsers/image.d.ts +1 -22
  133. package/build/loader/parsers/image.d.ts.map +1 -1
  134. package/build/loader/parsers/json.d.ts +1 -10
  135. package/build/loader/parsers/json.d.ts.map +1 -1
  136. package/build/loader/parsers/mtl.d.ts +1 -28
  137. package/build/loader/parsers/mtl.d.ts.map +1 -1
  138. package/build/loader/parsers/obj.d.ts +1 -59
  139. package/build/loader/parsers/obj.d.ts.map +1 -1
  140. package/build/loader/parsers/pbr.d.ts +1 -62
  141. package/build/loader/parsers/pbr.d.ts.map +1 -1
  142. package/build/loader/parsers/script.d.ts +1 -10
  143. package/build/loader/parsers/script.d.ts.map +1 -1
  144. package/build/loader/parsers/shader.d.ts +1 -52
  145. package/build/loader/parsers/shader.d.ts.map +1 -1
  146. package/build/loader/parsers/tmx.d.ts +1 -10
  147. package/build/loader/parsers/tmx.d.ts.map +1 -1
  148. package/build/loader/parsers/video.d.ts +1 -10
  149. package/build/loader/parsers/video.d.ts.map +1 -1
  150. package/build/math/color.d.ts.map +1 -1
  151. package/build/math/noise.d.ts +0 -40
  152. package/build/math/noise.d.ts.map +1 -1
  153. package/build/math/observableVector2d.d.ts +0 -3
  154. package/build/math/observableVector2d.d.ts.map +1 -1
  155. package/build/math/observableVector3d.d.ts +0 -3
  156. package/build/math/observableVector3d.d.ts.map +1 -1
  157. package/build/math/vector2d.d.ts +0 -6
  158. package/build/math/vector2d.d.ts.map +1 -1
  159. package/build/math/vertex.d.ts +25 -0
  160. package/build/math/vertex.d.ts.map +1 -1
  161. package/build/particles/emitter.d.ts +0 -65
  162. package/build/particles/emitter.d.ts.map +1 -1
  163. package/build/particles/particle.d.ts +0 -81
  164. package/build/particles/particle.d.ts.map +1 -1
  165. package/build/physics/bounds.d.ts +0 -1
  166. package/build/physics/bounds.d.ts.map +1 -1
  167. package/build/physics/broadphase/broadphase.d.ts +0 -7
  168. package/build/physics/broadphase/broadphase.d.ts.map +1 -1
  169. package/build/physics/broadphase/octree.d.ts +0 -91
  170. package/build/physics/broadphase/octree.d.ts.map +1 -1
  171. package/build/physics/broadphase/quadtree.d.ts +0 -47
  172. package/build/physics/broadphase/quadtree.d.ts.map +1 -1
  173. package/build/physics/builtin/body.d.ts +2 -65
  174. package/build/physics/builtin/body.d.ts.map +1 -1
  175. package/build/physics/builtin/detector.d.ts +0 -312
  176. package/build/physics/builtin/detector.d.ts.map +1 -1
  177. package/build/physics/builtin/sat.d.ts +1 -48
  178. package/build/physics/builtin/sat.d.ts.map +1 -1
  179. package/build/physics/builtin/sat3d.d.ts +1 -56
  180. package/build/physics/builtin/sat3d.d.ts.map +1 -1
  181. package/build/physics/collision.d.ts +0 -2
  182. package/build/physics/collision.d.ts.map +1 -1
  183. package/build/physics/response.d.ts +0 -1
  184. package/build/physics/response.d.ts.map +1 -1
  185. package/build/physics/world.d.ts.map +1 -1
  186. package/build/renderable/anchorPoint.d.ts +1 -73
  187. package/build/renderable/anchorPoint.d.ts.map +1 -1
  188. package/build/renderable/animation.d.ts +21 -13
  189. package/build/renderable/animation.d.ts.map +1 -1
  190. package/build/renderable/colorlayer.d.ts +0 -5
  191. package/build/renderable/colorlayer.d.ts.map +1 -1
  192. package/build/renderable/container.d.ts +27 -60
  193. package/build/renderable/container.d.ts.map +1 -1
  194. package/build/renderable/draggable.d.ts +0 -5
  195. package/build/renderable/draggable.d.ts.map +1 -1
  196. package/build/renderable/dragndrop.d.ts +1 -12
  197. package/build/renderable/dragndrop.d.ts.map +1 -1
  198. package/build/renderable/entity/entity.d.ts +0 -8
  199. package/build/renderable/entity/entity.d.ts.map +1 -1
  200. package/build/renderable/frameAnimation.d.ts +0 -41
  201. package/build/renderable/frameAnimation.d.ts.map +1 -1
  202. package/build/renderable/groundshadow.d.ts +1 -91
  203. package/build/renderable/groundshadow.d.ts.map +1 -1
  204. package/build/renderable/imagelayer.d.ts +0 -29
  205. package/build/renderable/imagelayer.d.ts.map +1 -1
  206. package/build/renderable/instanced_mesh.d.ts +55 -108
  207. package/build/renderable/instanced_mesh.d.ts.map +1 -1
  208. package/build/renderable/mesh.d.ts +257 -231
  209. package/build/renderable/mesh.d.ts.map +1 -1
  210. package/build/renderable/nineslicesprite.d.ts +0 -4
  211. package/build/renderable/nineslicesprite.d.ts.map +1 -1
  212. package/build/renderable/renderable.d.ts +18 -44
  213. package/build/renderable/renderable.d.ts.map +1 -1
  214. package/build/renderable/sprite.d.ts +0 -45
  215. package/build/renderable/sprite.d.ts.map +1 -1
  216. package/build/renderable/sprite3d.d.ts +12 -97
  217. package/build/renderable/sprite3d.d.ts.map +1 -1
  218. package/build/renderable/text/bitmaptext.d.ts +32 -21
  219. package/build/renderable/text/bitmaptext.d.ts.map +1 -1
  220. package/build/renderable/text/bitmaptextdata.d.ts +0 -22
  221. package/build/renderable/text/bitmaptextdata.d.ts.map +1 -1
  222. package/build/renderable/text/glyph.d.ts +1 -39
  223. package/build/renderable/text/glyph.d.ts.map +1 -1
  224. package/build/renderable/text/text.d.ts +75 -20
  225. package/build/renderable/text/text.d.ts.map +1 -1
  226. package/build/renderable/text/textmetrics.d.ts +2 -0
  227. package/build/renderable/text/textmetrics.d.ts.map +1 -1
  228. package/build/renderable/text/textstyle.d.ts +1 -5
  229. package/build/renderable/text/textstyle.d.ts.map +1 -1
  230. package/build/renderable/trail.d.ts +0 -29
  231. package/build/renderable/trail.d.ts.map +1 -1
  232. package/build/renderable/trigger.d.ts +0 -6
  233. package/build/renderable/trigger.d.ts.map +1 -1
  234. package/build/renderable/ui/uibaseelement.d.ts +0 -40
  235. package/build/renderable/ui/uibaseelement.d.ts.map +1 -1
  236. package/build/renderable/ui/uispriteelement.d.ts +0 -35
  237. package/build/renderable/ui/uispriteelement.d.ts.map +1 -1
  238. package/build/state/stage.d.ts +5 -50
  239. package/build/state/stage.d.ts.map +1 -1
  240. package/build/state/state.d.ts.map +1 -1
  241. package/build/system/device.d.ts +1 -13
  242. package/build/system/device.d.ts.map +1 -1
  243. package/build/system/dom.d.ts +1 -8
  244. package/build/system/dom.d.ts.map +1 -1
  245. package/build/system/legacy_pool.d.ts +1 -6
  246. package/build/system/legacy_pool.d.ts.map +1 -1
  247. package/build/system/platform.d.ts +0 -1
  248. package/build/system/platform.d.ts.map +1 -1
  249. package/build/system/pool.d.ts +0 -9
  250. package/build/system/pool.d.ts.map +1 -1
  251. package/build/system/save.d.ts +44 -1
  252. package/build/system/save.d.ts.map +1 -1
  253. package/build/system/timer.d.ts +0 -20
  254. package/build/system/timer.d.ts.map +1 -1
  255. package/build/tweens/tween.d.ts +0 -62
  256. package/build/tweens/tween.d.ts.map +1 -1
  257. package/build/utils/array-multimap.d.ts +1 -13
  258. package/build/utils/array-multimap.d.ts.map +1 -1
  259. package/build/utils/decode.d.ts.map +1 -1
  260. package/build/utils/fetchdata.d.ts +1 -31
  261. package/build/utils/fetchdata.d.ts.map +1 -1
  262. package/build/utils/utils.d.ts +0 -13
  263. package/build/utils/utils.d.ts.map +1 -1
  264. package/build/video/blendmodes.d.ts +1 -106
  265. package/build/video/blendmodes.d.ts.map +1 -1
  266. package/build/video/buffer/index.d.ts +1 -39
  267. package/build/video/buffer/index.d.ts.map +1 -1
  268. package/build/video/buffer/vertex.d.ts +1 -82
  269. package/build/video/buffer/vertex.d.ts.map +1 -1
  270. package/build/video/canvas/canvas_renderer.d.ts +2 -23
  271. package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
  272. package/build/video/canvas_factory.d.ts +1 -24
  273. package/build/video/canvas_factory.d.ts.map +1 -1
  274. package/build/video/effects/blendEffect.d.ts +0 -54
  275. package/build/video/effects/blendEffect.d.ts.map +1 -1
  276. package/build/video/effects/colorMatrix.d.ts +0 -10
  277. package/build/video/effects/colorMatrix.d.ts.map +1 -1
  278. package/build/video/effects/glsl_realization.d.ts +1 -17
  279. package/build/video/effects/glsl_realization.d.ts.map +1 -1
  280. package/build/video/effects/mesh_splice.d.ts +2 -0
  281. package/build/video/effects/mesh_splice.d.ts.map +1 -0
  282. package/build/video/effects/radialGradient.d.ts +0 -1
  283. package/build/video/effects/radialGradient.d.ts.map +1 -1
  284. package/build/video/effects/shadereffect.d.ts +12 -241
  285. package/build/video/effects/shadereffect.d.ts.map +1 -1
  286. package/build/video/effects/wgsl/layout.d.ts +1 -27
  287. package/build/video/effects/wgsl/layout.d.ts.map +1 -1
  288. package/build/video/effects/wgsl/parse.d.ts +1 -8
  289. package/build/video/effects/wgsl/parse.d.ts.map +1 -1
  290. package/build/video/effects/wgsl/scaffold.d.ts +1 -42
  291. package/build/video/effects/wgsl/scaffold.d.ts.map +1 -1
  292. package/build/video/effects/wgsl_realization.d.ts +1 -82
  293. package/build/video/effects/wgsl_realization.d.ts.map +1 -1
  294. package/build/video/gpu/batcher.d.ts +1 -13
  295. package/build/video/gpu/batcher.d.ts.map +1 -1
  296. package/build/video/gpu/instancerecord.d.ts +1 -163
  297. package/build/video/gpu/instancerecord.d.ts.map +1 -1
  298. package/build/video/gpu/meshchunk.d.ts +1 -48
  299. package/build/video/gpu/meshchunk.d.ts.map +1 -1
  300. package/build/video/gpu/meshvertex.d.ts +1 -53
  301. package/build/video/gpu/meshvertex.d.ts.map +1 -1
  302. package/build/video/gpu/primitives.d.ts +1 -59
  303. package/build/video/gpu/primitives.d.ts.map +1 -1
  304. package/build/video/gpu/quadcorners.d.ts +1 -10
  305. package/build/video/gpu/quadcorners.d.ts.map +1 -1
  306. package/build/video/gpu/textureslots.d.ts +1 -121
  307. package/build/video/gpu/textureslots.d.ts.map +1 -1
  308. package/build/video/gpu/texturestore.d.ts +1 -138
  309. package/build/video/gpu/texturestore.d.ts.map +1 -1
  310. package/build/video/gpu/topology.d.ts.map +1 -1
  311. package/build/video/gpu/vertexformat.d.ts +0 -28
  312. package/build/video/gpu/vertexformat.d.ts.map +1 -1
  313. package/build/video/gradient.d.ts +15 -77
  314. package/build/video/gradient.d.ts.map +1 -1
  315. package/build/video/renderer.d.ts +21 -102
  316. package/build/video/renderer.d.ts.map +1 -1
  317. package/build/video/renderstate.d.ts +0 -51
  318. package/build/video/renderstate.d.ts.map +1 -1
  319. package/build/video/rendertarget/canvasrendertarget.d.ts +0 -10
  320. package/build/video/rendertarget/canvasrendertarget.d.ts.map +1 -1
  321. package/build/video/rendertarget/render_target_pool.d.ts +1 -82
  322. package/build/video/rendertarget/render_target_pool.d.ts.map +1 -1
  323. package/build/video/rendertarget/webglrendertarget.d.ts +1 -64
  324. package/build/video/rendertarget/webglrendertarget.d.ts.map +1 -1
  325. package/build/video/rendertarget/webgpurendertarget.d.ts +0 -8
  326. package/build/video/rendertarget/webgpurendertarget.d.ts.map +1 -1
  327. package/build/video/texture/atlas.d.ts +1 -75
  328. package/build/video/texture/atlas.d.ts.map +1 -1
  329. package/build/video/texture/cache.d.ts +0 -136
  330. package/build/video/texture/cache.d.ts.map +1 -1
  331. package/build/video/texture/frametexture.d.ts +1 -71
  332. package/build/video/texture/frametexture.d.ts.map +1 -1
  333. package/build/video/texture/noise_texture2d.d.ts +101 -77
  334. package/build/video/texture/noise_texture2d.d.ts.map +1 -1
  335. package/build/video/texture/parser/aseprite.d.ts +1 -8
  336. package/build/video/texture/parser/aseprite.d.ts.map +1 -1
  337. package/build/video/texture/parser/spritesheet.d.ts +1 -8
  338. package/build/video/texture/parser/spritesheet.d.ts.map +1 -1
  339. package/build/video/texture/parser/texturepacker.d.ts +1 -8
  340. package/build/video/texture/parser/texturepacker.d.ts.map +1 -1
  341. package/build/video/texture/resource.d.ts +0 -9
  342. package/build/video/texture/resource.d.ts.map +1 -1
  343. package/build/video/texture/texture2d.d.ts +0 -11
  344. package/build/video/texture/texture2d.d.ts.map +1 -1
  345. package/build/video/utils/autodetect.d.ts +1 -5
  346. package/build/video/utils/autodetect.d.ts.map +1 -1
  347. package/build/video/webgl/batchers/batcher.d.ts +0 -55
  348. package/build/video/webgl/batchers/batcher.d.ts.map +1 -1
  349. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts +0 -14
  350. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts.map +1 -1
  351. package/build/video/webgl/batchers/lit_quad_batcher.d.ts +0 -72
  352. package/build/video/webgl/batchers/lit_quad_batcher.d.ts.map +1 -1
  353. package/build/video/webgl/batchers/material_batcher.d.ts +0 -89
  354. package/build/video/webgl/batchers/material_batcher.d.ts.map +1 -1
  355. package/build/video/webgl/batchers/mesh_batcher.d.ts +14 -343
  356. package/build/video/webgl/batchers/mesh_batcher.d.ts.map +1 -1
  357. package/build/video/webgl/batchers/primitive_batcher.d.ts +0 -10
  358. package/build/video/webgl/batchers/primitive_batcher.d.ts.map +1 -1
  359. package/build/video/webgl/batchers/quad_batcher.d.ts +0 -30
  360. package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -1
  361. package/build/video/webgl/buffer/index.d.ts +1 -36
  362. package/build/video/webgl/buffer/index.d.ts.map +1 -1
  363. package/build/video/webgl/buffer/instance_buffer.d.ts +1 -53
  364. package/build/video/webgl/buffer/instance_buffer.d.ts.map +1 -1
  365. package/build/video/webgl/buffer/retained_geometry.d.ts +1 -81
  366. package/build/video/webgl/buffer/retained_geometry.d.ts.map +1 -1
  367. package/build/video/webgl/buffer/uniformblock.d.ts +1 -80
  368. package/build/video/webgl/buffer/uniformblock.d.ts.map +1 -1
  369. package/build/video/webgl/buffer/vertexstate.d.ts +1 -100
  370. package/build/video/webgl/buffer/vertexstate.d.ts.map +1 -1
  371. package/build/video/webgl/glshader.d.ts +7 -51
  372. package/build/video/webgl/glshader.d.ts.map +1 -1
  373. package/build/video/webgl/lighting/pack3d.d.ts +1 -47
  374. package/build/video/webgl/lighting/pack3d.d.ts.map +1 -1
  375. package/build/video/webgl/lighting/std140.d.ts +1 -109
  376. package/build/video/webgl/lighting/std140.d.ts.map +1 -1
  377. package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts +1 -103
  378. package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
  379. package/build/video/webgl/shaders/multitexture-lit.d.ts +1 -26
  380. package/build/video/webgl/shaders/multitexture-lit.d.ts.map +1 -1
  381. package/build/video/webgl/shaders/multitexture.d.ts +1 -9
  382. package/build/video/webgl/shaders/multitexture.d.ts.map +1 -1
  383. package/build/video/webgl/texture/store.d.ts +1 -50
  384. package/build/video/webgl/texture/store.d.ts.map +1 -1
  385. package/build/video/webgl/utils/attributes.d.ts +1 -11
  386. package/build/video/webgl/utils/attributes.d.ts.map +1 -1
  387. package/build/video/webgl/utils/maxtextures.d.ts +1 -36
  388. package/build/video/webgl/utils/maxtextures.d.ts.map +1 -1
  389. package/build/video/webgl/utils/precision.d.ts +1 -14
  390. package/build/video/webgl/utils/precision.d.ts.map +1 -1
  391. package/build/video/webgl/utils/program.d.ts +1 -5
  392. package/build/video/webgl/utils/program.d.ts.map +1 -1
  393. package/build/video/webgl/utils/samplercache.d.ts +1 -68
  394. package/build/video/webgl/utils/samplercache.d.ts.map +1 -1
  395. package/build/video/webgl/utils/string.d.ts +1 -21
  396. package/build/video/webgl/utils/string.d.ts.map +1 -1
  397. package/build/video/webgl/utils/topology.d.ts +1 -23
  398. package/build/video/webgl/utils/topology.d.ts.map +1 -1
  399. package/build/video/webgl/utils/uniforms.d.ts +1 -25
  400. package/build/video/webgl/utils/uniforms.d.ts.map +1 -1
  401. package/build/video/webgl/utils/vertexformat.d.ts +1 -26
  402. package/build/video/webgl/utils/vertexformat.d.ts.map +1 -1
  403. package/build/video/webgl/webgl_renderer.d.ts +22 -285
  404. package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
  405. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts +0 -6
  406. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts.map +1 -1
  407. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts +0 -8
  408. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts.map +1 -1
  409. package/build/video/webgpu/batchers/mesh_batcher.d.ts +7 -231
  410. package/build/video/webgpu/batchers/mesh_batcher.d.ts.map +1 -1
  411. package/build/video/webgpu/batchers/primitive_batcher.d.ts.map +1 -1
  412. package/build/video/webgpu/batchers/quad_batcher.d.ts +0 -82
  413. package/build/video/webgpu/batchers/quad_batcher.d.ts.map +1 -1
  414. package/build/video/webgpu/buffer/arena.d.ts +1 -63
  415. package/build/video/webgpu/buffer/arena.d.ts.map +1 -1
  416. package/build/video/webgpu/buffer/instance_buffer.d.ts +1 -64
  417. package/build/video/webgpu/buffer/instance_buffer.d.ts.map +1 -1
  418. package/build/video/webgpu/buffer/retained_geometry.d.ts +1 -54
  419. package/build/video/webgpu/buffer/retained_geometry.d.ts.map +1 -1
  420. package/build/video/webgpu/buffer/uniformring.d.ts +1 -67
  421. package/build/video/webgpu/buffer/uniformring.d.ts.map +1 -1
  422. package/build/video/webgpu/effect_binding.d.ts +1 -16
  423. package/build/video/webgpu/effect_binding.d.ts.map +1 -1
  424. package/build/video/webgpu/pipeline/bindgroups.d.ts +1 -32
  425. package/build/video/webgpu/pipeline/bindgroups.d.ts.map +1 -1
  426. package/build/video/webgpu/pipeline/cache.d.ts +1 -163
  427. package/build/video/webgpu/pipeline/cache.d.ts.map +1 -1
  428. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts +1 -87
  429. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
  430. package/build/video/webgpu/shaders/mesh-instanced.d.ts +1 -43
  431. package/build/video/webgpu/shaders/mesh-instanced.d.ts.map +1 -1
  432. package/build/video/webgpu/texture/compressed.d.ts +1 -32
  433. package/build/video/webgpu/texture/compressed.d.ts.map +1 -1
  434. package/build/video/webgpu/texture/frametexture.d.ts +1 -62
  435. package/build/video/webgpu/texture/frametexture.d.ts.map +1 -1
  436. package/build/video/webgpu/texture/store.d.ts +1 -147
  437. package/build/video/webgpu/texture/store.d.ts.map +1 -1
  438. package/build/video/webgpu/webgpu_renderer.d.ts +1 -88
  439. package/build/video/webgpu/webgpu_renderer.d.ts.map +1 -1
  440. package/package.json +5 -4
  441. package/skills/melonjs/SKILL.md +1 -1
  442. package/skills/melonjs-3d/SKILL.md +453 -5
  443. package/skills/melonjs-3d-assets/SKILL.md +164 -6
  444. package/skills/melonjs-audio/SKILL.md +38 -0
  445. package/skills/melonjs-camera-and-drawing/SKILL.md +49 -0
  446. package/skills/melonjs-effects-and-shaders/SKILL.md +95 -2
  447. package/skills/melonjs-loading-assets/SKILL.md +127 -2
  448. package/skills/melonjs-performance/SKILL.md +60 -1
  449. package/skills/melonjs-physics/SKILL.md +78 -0
  450. package/skills/melonjs-renderables/SKILL.md +63 -1
  451. package/skills/melonjs-renderer-backends/SKILL.md +19 -0
  452. package/skills/melonjs-scenes-and-state/SKILL.md +56 -0
  453. package/skills/melonjs-tilemaps/SKILL.md +31 -11
  454. package/skills/melonjs-ui-and-text/SKILL.md +131 -117
@@ -1 +1 @@
1
- {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/system/platform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,eAAO,MAAM,EAAE,QAGT,CAAC;AA0DP,eAAO,MAAM,GAAG,SAAsD,CAAC;AACvE;;;;;GAKG;AACH,eAAO,MAAM,WAAW,SAAyB,CAAC;AAClD,eAAO,MAAM,OAAO,SAAsB,CAAC;AAC3C;;GAEG;AACH,eAAO,MAAM,QAAQ,SAAwB,CAAC;AAC9C,eAAO,MAAM,KAAK,SAAoB,CAAC;AACvC,eAAO,MAAM,QAAQ,SAAkB,CAAC;AACxC;;GAEG;AACH,eAAO,MAAM,EAAE,SAA4B,CAAC;AAC5C;;GAEG;AACH,eAAO,MAAM,UAAU,SAAyB,CAAC;AACjD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,MAAM,SAA4B,CAAC;AAChD,eAAO,MAAM,MAAM,SAAyB,CAAC;AAC7C,eAAO,MAAM,QAAQ,SAA6B,CAAC;AAOnD,eAAO,MAAM,MAAM,SAGW,CAAC;AAO/B,eAAO,MAAM,QAAQ,SAAqC,CAAC;AAC3D,eAAO,MAAM,MAAM,SAK2C,CAAC"}
1
+ {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/system/platform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,EAAE,QAGT,CAAC;AA0DP,eAAO,MAAM,GAAG,SAAsD,CAAC;AACvE;;;;;GAKG;AACH,eAAO,MAAM,WAAW,SAAyB,CAAC;AAClD,eAAO,MAAM,OAAO,SAAsB,CAAC;AAC3C;;GAEG;AACH,eAAO,MAAM,QAAQ,SAAwB,CAAC;AAC9C,eAAO,MAAM,KAAK,SAAoB,CAAC;AACvC,eAAO,MAAM,QAAQ,SAAkB,CAAC;AACxC;;GAEG;AACH,eAAO,MAAM,EAAE,SAA4B,CAAC;AAC5C;;GAEG;AACH,eAAO,MAAM,UAAU,SAAyB,CAAC;AACjD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,MAAM,SAA4B,CAAC;AAChD,eAAO,MAAM,MAAM,SAAyB,CAAC;AAC7C,eAAO,MAAM,QAAQ,SAA6B,CAAC;AAOnD,eAAO,MAAM,MAAM,SAGW,CAAC;AAO/B,eAAO,MAAM,QAAQ,SAAqC,CAAC;AAC3D,eAAO,MAAM,MAAM,SAK2C,CAAC"}
@@ -12,15 +12,6 @@ export interface CreatePoolOptions<T, A extends unknown[]> {
12
12
  reset?: Reset<A>;
13
13
  release?: Release;
14
14
  }
15
- /**
16
- * Register a pool instance to the pool registry.
17
- * @ignore
18
- */
19
- export declare const registerPool: (key: string, pool: Pool<any, any[]>) => void;
20
- /**
21
- * @ignore
22
- */
23
- export declare const getRegisteredPools: () => Record<string, Pool<any, any[]>>;
24
15
  export declare const createPool: <T, A extends unknown[]>(options: (...args: A) => CreatePoolOptions<T, A>) => Pool<T, A>;
25
16
  export {};
26
17
  //# sourceMappingURL=pool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../src/system/pool.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE;IAC3C,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IACzB,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,MAAM,CAAC;IACf,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KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;AACrE,KAAK,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;AAExC,MAAM,WAAW,iBAAiB,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE;IACxD,QAAQ,EAAE,CAAC,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAoBD,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE,EAChD,SAAS,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,KAC9C,IAAI,CAAC,CAAC,EAAE,CAAC,CA2DX,CAAC"}
@@ -1,3 +1,46 @@
1
- declare const save: Record<string, unknown>;
1
+ import { Jsonifiable } from "type-fest";
2
+ /**
3
+ * The shape of the {@link save} namespace.
4
+ *
5
+ * Declared rather than left as a bare index signature: typed as
6
+ * `Record<string, unknown>` every member was swallowed by the index, so
7
+ * `save.add` came out as `unknown` and could not be CALLED at all under
8
+ * `strict` — the namespace's own documented example did not typecheck — while
9
+ * every registered key read back as `unknown` and needed a cast to compare or
10
+ * assign.
11
+ *
12
+ * The index signature stays, so anything registered elsewhere is still
13
+ * reachable; declared members simply take precedence over it.
14
+ */
15
+ export interface SaveAPI {
16
+ /**
17
+ * Add new keys to localStorage and set them to the given default values if
18
+ * they do not exist.
19
+ * @param props - key and corresponding values
20
+ * @returns this namespace, typed with the keys just registered, so they can
21
+ * be read back without a cast
22
+ * @example
23
+ * // Initialize "score" and "lives" with default values
24
+ * me.save.add({ score : 0, lives : 3 });
25
+ * // get or set the value through me.save
26
+ * me.save.score = 1000;
27
+ * @example
28
+ * // or keep the returned view, and read the keys with their real types
29
+ * const store = me.save.add({ score : 0, lives : 3 });
30
+ * store.lives -= 1;
31
+ */
32
+ add<T extends Record<string, Jsonifiable>>(props: T): this & T;
33
+ /**
34
+ * Remove a key from localStorage
35
+ * @param key - key to be removed
36
+ * @example
37
+ * // Remove the "score" key from localStorage
38
+ * me.save.remove("score");
39
+ */
40
+ remove(key: string): void;
41
+ /** keys registered through {@link SaveAPI.add} */
42
+ [key: string]: unknown;
43
+ }
44
+ declare const save: SaveAPI;
2
45
  export default save;
3
46
  //# sourceMappingURL=save.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"save.d.ts","sourceRoot":"","sources":["../../src/system/save.ts"],"names":[],"mappings":"AAoFA,QAAA,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAgEjC,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"save.d.ts","sourceRoot":"","sources":["../../src/system/save.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAqFxC;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,OAAO;IACvB;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;IAE/D;;;;;;OAMG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,kDAAkD;IAClD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACvB;AAED,QAAA,MAAM,IAAI,EAAE,OAqEX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -25,11 +25,6 @@ declare class Timer {
25
25
  }[];
26
26
  timerId: number;
27
27
  constructor();
28
- /**
29
- * reset time (e.g. usefull in case of pause)
30
- * @ignore
31
- */
32
- reset(): void;
33
28
  /**
34
29
  * Calls a function once after a specified delay. See me.timer.setInterval to repeativly call a function.
35
30
  * @param fn - the function you want to execute after delay milliseconds.
@@ -79,21 +74,6 @@ declare class Timer {
79
74
  * @returns elapsed time
80
75
  */
81
76
  getDelta(): number;
82
- /**
83
- * update
84
- * @ignore
85
- */
86
- update(time: number): void;
87
- /**
88
- * clear Timers
89
- * @ignore
90
- */
91
- clearTimer(timerId: number): void;
92
- /**
93
- * update timers
94
- * @ignore
95
- */
96
- updateTimers(): void;
97
77
  }
98
78
  declare const timer: Timer;
99
79
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../src/system/timer.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,cAAM,KAAK;IACV,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE;QACP,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;QAC5B,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,OAAO,CAAC;QACnB,IAAI,EAAE,GAAG,EAAE,CAAC;KACZ,EAAE,CAAC;IACJ,OAAO,EAAE,MAAM,CAAC;;IAsEhB;;;OAGG;IACH,KAAK;IAWL;;;;;;;;;;;;OAYG;IACH,UAAU,CACT,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC3B,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,OAAO,EACnB,GAAG,IAAI,EAAE,GAAG,EAAE;IAcf;;;;;;;;;;;;OAYG;IACH,WAAW,CAC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KACZ,EAAE,CAAC;IACJ,OAAO,EAAE,MAAM,CAAC;;IAsFhB;;;;;;;;;;;;OAYG;IACH,UAAU,CACT,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC3B,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,OAAO,EACnB,GAAG,IAAI,EAAE,GAAG,EAAE;IAcf;;;;;;;;;;;;OAYG;IACH,WAAW,CACV,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC3B,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,OAAO,EACnB,GAAG,IAAI,EAAE,GAAG,EAAE;IAcf;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM;IAQ9B;;;OAGG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM;IAQhC;;;;OAIG;IACH,OAAO;IAIP;;;OAGG;IACH,QAAQ;CA0FR;AAED,QAAA,MAAM,KAAK,OAAc,CAAC;AAE1B;;;;;;;;;;;;GAYG;AACH,eAAe,KAAK,CAAC"}
@@ -1,11 +1,5 @@
1
1
  import { EasingFunction } from "./easing.js";
2
2
  import { InterpolationFunction } from "./interpolation.js";
3
- /** @ignore */
4
- type OnStartCallback<T> = (this: T) => void;
5
- /** @ignore */
6
- type OnUpdateCallback<T> = (this: T, value: number) => void;
7
- /** @ignore */
8
- type OnCompleteCallback<T> = (this: T) => void;
9
3
  /**
10
4
  * A tweening engine for smoothly interpolating object properties over time.
11
5
  * Based on <a href="https://github.com/sole/Tween.js">tween.js</a> with
@@ -34,29 +28,6 @@ type OnCompleteCallback<T> = (this: T) => void;
34
28
  * @category Tweens
35
29
  */
36
30
  export default class Tween {
37
- _object: object;
38
- _valuesStart: Record<string, unknown>;
39
- _valuesEnd: Record<string, unknown>;
40
- _valuesStartRepeat: Record<string, unknown>;
41
- _duration: number;
42
- _repeat: number;
43
- _yoyo: boolean;
44
- _reversed: boolean;
45
- _delayTime: number;
46
- _repeatDelayTime: number | undefined;
47
- _startTime: number | null;
48
- _easingFunction: EasingFunction;
49
- _interpolationFunction: InterpolationFunction;
50
- _chainedTweens: Array<Tween>;
51
- _onStartCallback: OnStartCallback<object> | null;
52
- _onStartCallbackFired: boolean;
53
- _onUpdateCallback: OnUpdateCallback<object> | null;
54
- _onCompleteCallback: OnCompleteCallback<object> | null;
55
- _tweenTimeTracker: number;
56
- _lastUpdate: number;
57
- _isRunning: boolean;
58
- _isPaused: boolean;
59
- _lastTick: number;
60
31
  /**
61
32
  * whether the tween should persist across state changes (not auto-stopped on game reset)
62
33
  * @default false
@@ -71,36 +42,6 @@ export default class Tween {
71
42
  * @param object - the object whose properties will be tweened
72
43
  */
73
44
  constructor(object: object);
74
- /**
75
- * @ignore
76
- */
77
- onResetEvent(object: object): void;
78
- /**
79
- * @ignore
80
- */
81
- setProperties(object: object): void;
82
- /**
83
- * @ignore
84
- */
85
- _resumeCallback(elapsed: number): void;
86
- /** @ignore */
87
- _onAfterUpdate(lastUpdate: number): void;
88
- /** @ignore */
89
- _onTick(timestamp: number): void;
90
- /** @ignore */
91
- _onPause(): void;
92
- /** @ignore */
93
- _onReset(): void;
94
- /**
95
- * Subscribe to the game loop events
96
- * @ignore
97
- */
98
- _subscribe(): void;
99
- /**
100
- * Unsubscribe from the game loop events
101
- * @ignore
102
- */
103
- _unsubscribe(): void;
104
45
  /**
105
46
  * Define the target property values and tween options.
106
47
  * @param properties - target property values to tween to (e.g. `{ x: 200, y: 100 }`)
@@ -197,8 +138,6 @@ export default class Tween {
197
138
  * @returns this instance for object chaining
198
139
  */
199
140
  onComplete(onCompleteCallback: OnCompleteCallback<object>): this;
200
- /** @ignore */
201
- update(dt: number): boolean;
202
141
  /**
203
142
  * Available easing functions, accessed via `Tween.Easing`.
204
143
  * Each family provides `In`, `Out`, and `InOut` variants.
@@ -278,5 +217,4 @@ export default class Tween {
278
217
  };
279
218
  }
280
219
  export declare const tweenPool: import("../system/pool.ts").Pool<Tween, [obj: object]>;
281
- export {};
282
220
  //# sourceMappingURL=tween.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tween.d.ts","sourceRoot":"","sources":["../../src/tweens/tween.ts"],"names":[],"mappings":"AAWA,OAAO,EAAU,cAAc,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAiB,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAO1E,cAAc;AACd,KAAK,eAAe,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;AAC5C,cAAc;AACd,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAC5D,cAAc;AACd,KAAK,kBAAkB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,OAAO,OAAO,KAAK;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,cAAc,CAAC;IAChC,sBAAsB,EAAE,qBAAqB,CAAC;IAC9C,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7B,gBAAgB,EAAE,eAAe,CAAC,MAAM,CAA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OAIG;IACH,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,MAAM,CAAC;IAKnD;;;;OAIG;IACH,UAAU,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,MAAM,CAAC;IA0HzD;;;;;;;;OAQG;IACH,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEhB;IAED;;;;;;;OAOG;IACH,MAAM,KAAK,aAAa;;;;MAEvB;CACD;AAED,eAAO,MAAM,SAAS,wDASpB,CAAC"}
@@ -1,14 +1,2 @@
1
- /**
2
- * A simple multimap that stores multiple values per key using arrays.
3
- * @ignore
4
- */
5
- export class ArrayMultimap {
6
- _map: Map<any, any>;
7
- put(key: any, value: any): void;
8
- get(key: any): any;
9
- has(key: any): boolean;
10
- delete(key: any): void;
11
- forEach(callback: any): void;
12
- clear(): void;
13
- }
1
+
14
2
  //# sourceMappingURL=array-multimap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"array-multimap.d.ts","sourceRoot":"","sources":["../../src/utils/array-multimap.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH;IAEE,oBAAqB;IAEtB,gCAOC;IACD,mBAEC;IACD,uBAEC;IACD,uBAEC;IACD,6BAMC;IACD,cAEC;CACD"}
1
+ {"version":3,"file":"array-multimap.d.ts","sourceRoot":"","sources":["../../src/utils/array-multimap.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;IAEE;;;OAGG;IACH,oBAAqB;IAEtB,gCAOC;IACD,mBAEC;IACD,uBAEC;IACD,uBAEC;IACD,6BAMC;IACD,cAEC;CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../src/utils/decode.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,wBAAgB,kBAAkB,CACjC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,WAAW,CAAC,GAAG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AAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACb,gBAAgB,CAWlB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CACrB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,QAAQ,CAAC,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MAAM,GAClB,MAAM,EAAE,GAAG,WAAW,CAwBxB"}
@@ -1,32 +1,2 @@
1
- /**
2
- * Whether `url` must be loaded over the `file:` scheme — either an absolute
3
- * `file://` URL, or a relative URL resolved against a `file:` document (the
4
- * case for a Cordova/Capacitor build packaged into an APK, where the app runs
5
- * from `file://`). `fetch()` cannot load such URLs in several WebView contexts
6
- * (it rejects with an opaque network error), whereas `XMLHttpRequest` can. The
7
- * document `protocol` is injectable so the relative-URL branch is unit-testable
8
- * (`location` is non-configurable in a real browser).
9
- * @param {string} url
10
- * @param {string} [protocol] - the hosting document's protocol
11
- * @returns {boolean}
12
- * @ignore
13
- */
14
- export function isFileProtocol(url: string, protocol?: string): boolean;
15
- /**
16
- * Fetches data from the specified URL.
17
- * @param {string} url - The URL to fetch the data from.
18
- * @param {string} responseType - The type of response expected ('json', 'text', 'blob', 'arrayBuffer').
19
- * @param {Object} [settings] - custom settings to apply to the request (@link https://developer.mozilla.org/en-US/docs/Web/API/fetch#options)
20
- * @returns {Promise} A promise that resolves with the fetched data or rejects with an error.
21
- * @ignore
22
- * @example
23
- * fetchData('https://api.example.com/data', 'json')
24
- * .then(data => {
25
- * // Handle the fetched JSON data
26
- * })
27
- * .catch(error => {
28
- * // Handle the error
29
- * });
30
- */
31
- export function fetchData(url: string, responseType: string, settings?: Object): Promise<any>;
1
+
32
2
  //# sourceMappingURL=fetchdata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchdata.d.ts","sourceRoot":"","sources":["../../src/utils/fetchdata.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,oCALW,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;AA2DD;;;;;;;;;;;;;;;GAeG;AACH,+BAdW,MAAM,gBACN,MAAM,aACN,MAAM,gBAkDhB"}
1
+ {"version":3,"file":"fetchdata.d.ts","sourceRoot":"","sources":["../../src/utils/fetchdata.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,oCANW,MAAM,aACN,MAAM,GACJ,OAAO,CAMnB;AA4DD;;;;;;;;;;;;;;;;GAgBG;AACH,+BAfW,MAAM,gBACN,MAAM,aACN,MAAM,gBAmDhB"}
@@ -34,18 +34,5 @@ export declare function checkVersion(v1: string, v2: string): 0 | 1 | -1;
34
34
  * console.log(UriFragment["mytag"]); //> "value"
35
35
  */
36
36
  export declare function getUriFragment(url?: string): Record<string, string | boolean>;
37
- /**
38
- * reset the GUID Base Name
39
- * the idea here being to have a unique ID
40
- * per level / object
41
- * @ignore
42
- */
43
- export declare function resetGUID(base: string, index?: number): void;
44
- /**
45
- * create and return a very simple GUID
46
- * Game Unique ID
47
- * @ignore
48
- */
49
- export declare function createGUID(index?: number): string;
50
37
  export declare const isStringArray: (value: unknown) => value is string[];
51
38
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAWtC;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,cAalD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,oCA2C1C;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,SAAI,QAIhD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,UAuBxC;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAAM,EAO7D,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAWtC;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,cAalD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,oCA2C1C;AA8CD,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAAM,EAO7D,CAAC"}
@@ -1,107 +1,2 @@
1
- /**
2
- * Whether a blend mode needs the shader path rather than fixed-function state.
3
- * @param {string} mode - the blend mode to test
4
- * @returns {boolean} true when the mode needs the shader path
5
- * @ignore
6
- */
7
- export function isAdvancedBlendMode(mode: string): boolean;
8
- /**
9
- * The `uBlendMode` uniform value for an advanced blend mode.
10
- * @param {string} mode - the blend mode
11
- * @returns {number} the shader's mode index, or -1 when not an advanced mode
12
- * @ignore
13
- */
14
- export function advancedBlendModeIndex(mode: string): number;
15
- /**
16
- * Normalize a user-facing blend-mode string to its canonical token: `add` and
17
- * `lighter` are spellings of `additive`, and anything unrecognized collapses
18
- * to `normal`.
19
- *
20
- * The advanced modes normalize to `"normal"` on purpose — that is their
21
- * PIPELINE state, since the geometry really does rasterize under ordinary
22
- * source-over before the shader composites it. Use {@link isAdvancedBlendMode}
23
- * to ask the other question, and {@link reportedBlendMode} for what
24
- * `setBlendMode` should tell the caller.
25
- * @param {string} mode - blend mode as set through `setBlendMode`
26
- * @returns {string} the canonical token
27
- * @ignore
28
- */
29
- export function normalizeBlendMode(mode: string): string;
30
- /**
31
- * Whether the engine can honour this blend mode at all, by either route.
32
- * @param {string} mode - the blend mode to test
33
- * @returns {boolean} false only for a mode no backend implements
34
- * @ignore
35
- */
36
- export function isSupportedBlendMode(mode: string): boolean;
37
- /**
38
- * What `setBlendMode` reports back as applied.
39
- *
40
- * The return value is a capability probe: callers compare it against their
41
- * request, and a mismatch means the renderer could not honour the mode. So a
42
- * mode that WAS honoured must report itself verbatim — including an alias
43
- * like `add`, which shares a pipeline with `additive` but must not come back
44
- * under that name — while anything unimplemented reports `"normal"`.
45
- * @param {string} mode - the requested blend mode
46
- * @returns {string} the mode actually applied
47
- * @ignore
48
- */
49
- export function reportedBlendMode(mode: string): string;
50
- /**
51
- * The blend state for a mode, in WebGPU's vocabulary — the neutral form each
52
- * backend translates from.
53
- *
54
- * `srcFactor` depends on whether sources carry premultiplied alpha: a
55
- * premultiplied source has already been scaled, so it takes `one` where a
56
- * straight one takes `src-alpha`.
57
- *
58
- * Every mode here is EXACT for a translucent source as well as an opaque one
59
- * — `multiply`, `screen` and `exclusion` were long commented as
60
- * "approximate", but the algebra works out and measurement agrees. The two
61
- * that genuinely could not be expressed this way, `darken` and `lighten`,
62
- * moved to the shader path instead of staying approximate.
63
- * @param {string} mode - a canonical mode from {@link normalizeBlendMode}
64
- * @param {boolean} premultipliedAlpha - whether sources are premultiplied
65
- * @returns {{operation: string, srcFactor: string, dstFactor: string}|undefined} the
66
- * blend state, or `undefined` for `"none"`, which means replace (no blending)
67
- * @ignore
68
- */
69
- export function blendStateFor(mode: string, premultipliedAlpha: boolean): {
70
- operation: string;
71
- srcFactor: string;
72
- dstFactor: string;
73
- } | undefined;
74
- /**
75
- * The engine's blend-mode registry — one definition of every mode, shared by
76
- * all three renderers.
77
- *
78
- * Blending is described here in **backend-neutral** terms and translated by
79
- * each backend: WebGPU consumes these tokens directly (they are its own
80
- * vocabulary), WebGL maps them onto `gl.*` enums, and Canvas ignores them
81
- * entirely in favour of `globalCompositeOperation`.
82
- *
83
- * Keeping the table in one place is not tidiness. The two GPU backends
84
- * previously each carried their own copy — a `switch` of `blendEquation` /
85
- * `blendFunc` calls on one side and a `GPUBlendState` table on the other —
86
- * which meant a mode added, removed or corrected on one backend could
87
- * silently disagree with the other, and `video.AUTO` would then render the
88
- * same scene differently depending on which backend it happened to pick.
89
- */
90
- /**
91
- * The CSS blend modes that cannot be expressed as `src * sfactor + dst * dfactor`.
92
- *
93
- * Fixed-function blending computes one multiply-add per channel, which covers
94
- * `multiply`, `screen`, `additive` and `exclusion` — exactly, translucent
95
- * sources included. The modes below cannot be reached that way: most need a
96
- * per-pixel branch, a division or a `sqrt` on the DESTINATION, and `darken` /
97
- * `lighten` need a term the `min` / `max` operations leave no room for.
98
- * Neither GPU backend can read the destination in a fragment shader, so all of
99
- * them are implemented by capturing the destination to a texture and
100
- * compositing in `BlendEffect`.
101
- *
102
- * The array ORDER is the wire format: the index is the `uBlendMode` uniform
103
- * value the shader branches on, so reordering it silently remaps every mode.
104
- * @ignore
105
- */
106
- export const ADVANCED_BLEND_MODES: string[];
1
+
107
2
  //# sourceMappingURL=blendmodes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blendmodes.d.ts","sourceRoot":"","sources":["../../src/video/blendmodes.js"],"names":[],"mappings":"AAkDA;;;;;GAKG;AACH,0CAJW,MAAM,GACJ,OAAO,CAKnB;AAED;;;;;GAKG;AACH,6CAJW,MAAM,GACJ,MAAM,CAKlB;AAED;;;;;;;;;;;;;GAaG;AACH,yCAJW,MAAM,GACJ,MAAM,CAkBlB;AAED;;;;;GAKG;AACH,2CAJW,MAAM,GACJ,OAAO,CASnB;AAED;;;;;;;;;;;GAWG;AACH,wCAJW,MAAM,GACJ,MAAM,CAKlB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,oCANW,MAAM,sBACN,OAAO,GACL;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CAwC/E;AA1LD;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,4CAeE"}
1
+ {"version":3,"file":"blendmodes.d.ts","sourceRoot":"","sources":["../../src/video/blendmodes.js"],"names":[],"mappings":"AAmDA;;;;;;GAMG;AACH,0CALW,MAAM,GACJ,OAAO,CAMnB;AAED;;;;;;GAMG;AACH,6CALW,MAAM,GACJ,MAAM,CAMlB;AAED;;;;;;;;;;;;;;GAcG;AACH,yCALW,MAAM,GACJ,MAAM,CAmBlB;AAED;;;;;;GAMG;AACH,2CALW,MAAM,GACJ,OAAO,CAUnB;AAED;;;;;;;;;;;;GAYG;AACH,wCALW,MAAM,GACJ,MAAM,CAMlB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,oCAPW,MAAM,sBACN,OAAO,GACL;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CAyC/E;AAjMD;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,4CAeE"}
@@ -1,40 +1,2 @@
1
- /**
2
- * A renderer-agnostic index buffer.
3
- * Manages a typed array of vertex indices for indexed drawing.
4
- * {@link WebGLIndexBuffer} extends this with GL-specific bind/upload operations.
5
- * @ignore
6
- */
7
- export default class IndexBuffer {
8
- /**
9
- * @param {number} maxIndices - maximum number of indices this buffer can hold
10
- * @param {boolean} [useUint32=false] - use Uint32 indices instead of Uint16
11
- */
12
- constructor(maxIndices: number, useUint32?: boolean);
13
- data: Uint16Array<ArrayBuffer> | Uint32Array<ArrayBuffer>;
14
- /**
15
- * the current number of indices in the buffer
16
- * @type {number}
17
- */
18
- length: number;
19
- /**
20
- * Fill the buffer with a repeating quad index pattern [0,1,2, 2,1,3, 4,5,6, ...]
21
- * @param {number} maxQuads - number of quads to generate indices for
22
- */
23
- fillQuadPattern(maxQuads: number): void;
24
- /**
25
- * Reset the index count
26
- */
27
- clear(): void;
28
- /**
29
- * Add indices to the buffer, rebased by the given vertex offset
30
- * @param {number[]} indices - source indices to add
31
- * @param {number} vertexOffset - value to add to each index
32
- */
33
- add(indices: number[], vertexOffset: number): void;
34
- /**
35
- * Add pre-computed absolute indices to the buffer (no rebasing)
36
- * @param {number[]} indices - absolute index values to add
37
- */
38
- addRaw(indices: number[]): void;
39
- }
1
+
40
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/video/buffer/index.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;IACC;;;OAGG;IACH,wBAHW,MAAM,cACN,OAAO,EAYjB;IATA,0DAE8B;IAE9B;;;OAGG;IACH,QAFU,MAAM,CAED;IAGhB;;;OAGG;IACH,0BAFW,MAAM,QAYhB;IAED;;OAEG;IACH,cAEC;IAED;;;;OAIG;IACH,aAHW,MAAM,EAAE,gBACR,MAAM,QAOhB;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAOlB;CACD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/video/buffer/index.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;IACC;;;OAGG;IACH,wBAHW,MAAM,cACN,OAAO,EAYjB;IATA,0DAE8B;IAE9B;;;OAGG;IACH,QAFU,MAAM,CAED;IAGhB;;;OAGG;IACH,0BAFW,MAAM,QAYhB;IAED;;OAEG;IACH,cAEC;IAED;;;;OAIG;IACH,aAHW,MAAM,EAAE,gBACR,MAAM,QAOhB;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAOlB;CACD"}
@@ -1,83 +1,2 @@
1
- /**
2
- * A fixed-size vertex array buffer for batching vertex data.
3
- * Renderer-agnostic — stores vertex data in typed arrays (Float32/Uint32).
4
- * Batchers must check isFull() and flush before the buffer overflows.
5
- * @ignore
6
- */
7
- export default class VertexArrayBuffer {
8
- constructor(vertexSize: any, maxVertex: any);
9
- vertexSize: any;
10
- maxVertex: any;
11
- vertexCount: number;
12
- buffer: ArrayBuffer;
13
- bufferF32: Float32Array<ArrayBuffer>;
14
- bufferU32: Uint32Array<ArrayBuffer>;
15
- bufferU8: Uint8Array<ArrayBuffer>;
16
- /**
17
- * clear the vertex array buffer
18
- * @ignore
19
- */
20
- clear(): void;
21
- /**
22
- * return true if full
23
- * @ignore
24
- */
25
- isFull(vertex: any): boolean;
26
- /**
27
- * push a new vertex to the buffer
28
- * @param {number} x - x position
29
- * @param {number} y - y position
30
- * @param {number} z - z position (per-renderable depth; 0 under ortho)
31
- * @param {number} u - texture U coordinate (or aNormal.x for primitives)
32
- * @param {number} v - texture V coordinate (or aNormal.y for primitives)
33
- * @param {number} tint - tint color in UINT32 (argb) format
34
- * @param {number} [textureId] - texture unit index for multi-texture batching
35
- * @param {number} [normalTextureId] - paired normal-map texture unit index, or `-1` for unlit quads
36
- * @ignore
37
- */
38
- push(x: number, y: number, z: number, u: number, v: number, tint: number, textureId?: number, normalTextureId?: number): this;
39
- /**
40
- * push a new vertex with all-float data to the buffer
41
- * @param {ArrayLike<number>} data - float values for one vertex
42
- * @param {number} srcOffset - start index in the source data
43
- * @param {number} count - number of floats to copy (should equal vertexSize)
44
- * @ignore
45
- */
46
- pushFloats(data: ArrayLike<number>, srcOffset: number, count: number): this;
47
- /**
48
- * push a new vertex to the buffer (mesh format: x, y, z, u, v, tint).
49
- * Color is unpacked from the ARGB Uint32 input into 4 normalized
50
- * `[0, 1]` floats — the mesh batcher's `aColor` attribute is
51
- * `FLOAT × 4` rather than `UNSIGNED_BYTE × 4` to avoid NaN-pattern
52
- * bit values getting canonicalized on Metal-backed WebGL drivers.
53
- * See `mesh_batcher.init` for the rationale.
54
- * @ignore
55
- */
56
- pushMesh(x: any, y: any, z: any, u: any, v: any, tint: any): this;
57
- /**
58
- * push a new lit-mesh vertex (mesh format + a world-space normal):
59
- * x, y, z, u, v, tint, nx, ny, nz. Used by the lit mesh batcher, whose
60
- * vertex layout is 12 floats (the 9 of {@link pushMesh} plus `aNormal`).
61
- * @ignore
62
- */
63
- pushMeshLit(x: any, y: any, z: any, u: any, v: any, tint: any, nx: any, ny: any, nz: any): this;
64
- /**
65
- * return a reference to the data in Float32 format
66
- * @ignore
67
- */
68
- toFloat32(begin: any, end: any): Float32Array<ArrayBuffer>;
69
- /**
70
- * return a reference to the data in Uint32 format
71
- * @ignore
72
- */
73
- toUint32(begin: any, end: any): Uint32Array<ArrayBuffer>;
74
- /**
75
- * return a byte-view reference to the data — use this for `gl.bufferData`
76
- * uploads to avoid the NaN-canonicalization that some drivers perform
77
- * on Float32 uploads of the same backing buffer (see the constructor's
78
- * `bufferU8` comment).
79
- * @ignore
80
- */
81
- toUint8(byteBegin: any, byteEnd: any): Uint8Array<ArrayBuffer>;
82
- }
1
+
83
2
  //# sourceMappingURL=vertex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vertex.d.ts","sourceRoot":"","sources":["../../../src/video/buffer/vertex.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;IACC,6CAyBC;IAvBA,gBAA4B;IAE5B,eAA0B;IAE1B,oBAAoB;IAGpB,oBAEC;IAED,qCAA8C;IAC9C,oCAA6C;IAU7C,kCAA2C;IAG5C;;;OAGG;IACH,cAEC;IAED;;;OAGG;IACH,6BAEC;IAED;;;;;;;;;;;OAWG;IACH,QAVW,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,QACN,MAAM,cACN,MAAM,oBACN,MAAM,QA6BhB;IAED;;;;;;OAMG;IACH,iBALW,SAAS,CAAC,MAAM,CAAC,aACjB,MAAM,SACN,MAAM,QAahB;IAED;;;;;;;;OAQG;IACH,kEAgBC;IAED;;;;;OAKG;IACH,gGAoBC;IAED;;;OAGG;IACH,2DAMC;IAED;;;OAGG;IACH,yDAMC;IAED;;;;;;OAMG;IACH,+DAMC;CACD"}
1
+ {"version":3,"file":"vertex.d.ts","sourceRoot":"","sources":["../../../src/video/buffer/vertex.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;IACC,6CAyBC;IAvBA,gBAA4B;IAE5B,eAA0B;IAE1B,oBAAoB;IAGpB,oBAEC;IAED,qCAA8C;IAC9C,oCAA6C;IAU7C,kCAA2C;IAG5C;;;;OAIG;IACH,cAEC;IAED;;;;OAIG;IACH,6BAEC;IAED;;;;;;;;;;;;OAYG;IACH,QAXW,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,QACN,MAAM,cACN,MAAM,oBACN,MAAM,QA8BhB;IAED;;;;;;;OAOG;IACH,iBANW,SAAS,CAAC,MAAM,CAAC,aACjB,MAAM,SACN,MAAM,QAchB;IAED;;;;;;;;;OASG;IACH,kEAgBC;IAED;;;;;;OAMG;IACH,gGAoBC;IAED;;;;OAIG;IACH,2DAMC;IAED;;;;OAIG;IACH,yDAMC;IAED;;;;;;;OAOG;IACH,+DAMC;CACD"}
@@ -16,8 +16,6 @@
16
16
  export default class CanvasRenderer extends Renderer {
17
17
  cache: TextureCache;
18
18
  onGameReset: () => void;
19
- _lightCache: WeakMap<object, any> | undefined;
20
- _frameTexture: any;
21
19
  /**
22
20
  * set/change the current projection matrix.
23
21
  * In Canvas mode, this applies the ortho projection as a canvas 2D transform
@@ -126,9 +124,6 @@ export default class CanvasRenderer extends Renderer {
126
124
  * @param {Mesh} mesh - a Mesh renderable or compatible object
127
125
  */
128
126
  drawMesh(mesh: Mesh): void;
129
- _meshColorCanvas: HTMLCanvasElement | OffscreenCanvas | undefined;
130
- _meshColorCtx: RenderingContext | OffscreenCanvasRenderingContext2D | null | undefined;
131
- _meshSortBuf: Float64Array<ArrayBuffer> | undefined;
132
127
  /**
133
128
  * starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path
134
129
  * @example
@@ -197,9 +192,9 @@ export default class CanvasRenderer extends Renderer {
197
192
  * @param {number} y - The y axis of the coordinate for the rectangle starting point.
198
193
  * @param {number} width - The rectangle's width.
199
194
  * @param {number} height - The rectangle's height.
200
- * @param {number} radius - The corner radius.
195
+ * @param {number} radii - The corner radius.
201
196
  */
202
- roundRect(x: number, y: number, width: number, height: number, radii: any): void;
197
+ roundRect(x: number, y: number, width: number, height: number, radii: number): void;
203
198
  /**
204
199
  * stroke the given shape or the current defined path
205
200
  * @param {Rect|RoundRect|Polygon|Line|Ellipse|Bounds} [shape] - a shape object to stroke
@@ -284,8 +279,6 @@ export default class CanvasRenderer extends Renderer {
284
279
  * Draw a point at the specified coordinates
285
280
  * @param {number} x
286
281
  * @param {number} y
287
- * @param {number} width
288
- * @param {number} height
289
282
  */
290
283
  fillPoint(x: number, y: number): void;
291
284
  /**
@@ -293,10 +286,6 @@ export default class CanvasRenderer extends Renderer {
293
286
  * @returns {number} global alpha value
294
287
  */
295
288
  getGlobalAlpha(): number;
296
- /**
297
- * @ignore
298
- */
299
- set lineJoin(value: string);
300
289
  /**
301
290
  * sets or returns the shape used to join two line segments where they meet.
302
291
  * There are three possible values for this property: "round", "bevel", and "miter"
@@ -326,16 +315,6 @@ export default class CanvasRenderer extends Renderer {
326
315
  * @param {number} [f] - the f component to multiply the current matrix by; omitted when `a` is a matrix
327
316
  */
328
317
  transform(a: Matrix2d | Matrix3d | number, b?: number, c?: number, d?: number, e?: number, f?: number): void;
329
- /**
330
- * A mask limits rendering elements to the shape and position of the given mask object.
331
- * If the drawing or rendering area is larger than the mask, only the intersecting part of the renderable will be visible.
332
- * (Note Mask are not preserved through renderer context save and restore and need so be manually cleared)
333
- * @see CanvasRenderer#clearMask
334
- * @param {Rect|RoundRect|Polygon|Line|Ellipse} [mask] - the shape defining the mask to be applied
335
- * @param {boolean} [invert=false] - either the given shape should define what is visible (default) or the opposite
336
- */
337
- setMask(mask?: Rect | RoundRect | Polygon | Line | Ellipse, invert?: boolean): void;
338
- _maskInvertOuterAdded: boolean | undefined;
339
318
  }
340
319
  import Renderer from "./../renderer.js";
341
320
  import TextureCache from "./../texture/cache.js";