melonjs 20.3.0 → 20.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. package/README.md +19 -19
  2. package/build/application/application.d.ts +0 -17
  3. package/build/application/application.d.ts.map +1 -1
  4. package/build/application/settings.d.ts +3 -0
  5. package/build/application/settings.d.ts.map +1 -1
  6. package/build/audio/audio.d.ts.map +1 -1
  7. package/build/audio/backend/engine.d.ts +0 -19
  8. package/build/audio/backend/engine.d.ts.map +1 -1
  9. package/build/audio/backend/sound.d.ts +1 -51
  10. package/build/audio/backend/sound.d.ts.map +1 -1
  11. package/build/audio/backend/spatial.d.ts.map +1 -1
  12. package/build/audio/backend/types.d.ts +11 -1
  13. package/build/audio/backend/types.d.ts.map +1 -1
  14. package/build/audio/backend/voice.d.ts +0 -25
  15. package/build/audio/backend/voice.d.ts.map +1 -1
  16. package/build/audio/playback.d.ts.map +1 -1
  17. package/build/audio/procedural.d.ts.map +1 -1
  18. package/build/audio/state.d.ts +6 -79
  19. package/build/audio/state.d.ts.map +1 -1
  20. package/build/camera/camera2d.d.ts +0 -68
  21. package/build/camera/camera2d.d.ts.map +1 -1
  22. package/build/camera/camera3d.d.ts +86 -79
  23. package/build/camera/camera3d.d.ts.map +1 -1
  24. package/build/camera/effects/fade_effect.d.ts +0 -5
  25. package/build/camera/effects/fade_effect.d.ts.map +1 -1
  26. package/build/camera/effects/mask_effect.d.ts +0 -5
  27. package/build/camera/effects/mask_effect.d.ts.map +1 -1
  28. package/build/camera/fog.d.ts +118 -0
  29. package/build/camera/fog.d.ts.map +1 -0
  30. package/build/geometries/box3d.d.ts +0 -28
  31. package/build/geometries/box3d.d.ts.map +1 -1
  32. package/build/geometries/ellipse.d.ts +0 -20
  33. package/build/geometries/ellipse.d.ts.map +1 -1
  34. package/build/geometries/observablePoint.d.ts +0 -3
  35. package/build/geometries/observablePoint.d.ts.map +1 -1
  36. package/build/geometries/path2d.d.ts +0 -19
  37. package/build/geometries/path2d.d.ts.map +1 -1
  38. package/build/geometries/polygon.d.ts +0 -12
  39. package/build/geometries/polygon.d.ts.map +1 -1
  40. package/build/geometries/roundrect.d.ts +0 -18
  41. package/build/geometries/roundrect.d.ts.map +1 -1
  42. package/build/geometries/sphere.d.ts +0 -9
  43. package/build/geometries/sphere.d.ts.map +1 -1
  44. package/build/geometries/toarccanvas.d.ts.map +1 -1
  45. package/build/index.d.ts +1 -0
  46. package/build/index.d.ts.map +1 -1
  47. package/build/index.js +2652 -413
  48. package/build/index.js.map +3 -3
  49. package/build/input/gamepad.d.ts.map +1 -1
  50. package/build/input/pointer.d.ts +0 -4
  51. package/build/input/pointer.d.ts.map +1 -1
  52. package/build/input/pointerevent.d.ts +0 -6
  53. package/build/input/pointerevent.d.ts.map +1 -1
  54. package/build/lang/deprecated.d.ts.map +1 -1
  55. package/build/level/gltf/GLTFModel.d.ts +0 -81
  56. package/build/level/gltf/GLTFModel.d.ts.map +1 -1
  57. package/build/level/gltf/GLTFScene.d.ts +1 -44
  58. package/build/level/gltf/GLTFScene.d.ts.map +1 -1
  59. package/build/level/gltf/gltf_sampler.d.ts +1 -48
  60. package/build/level/gltf/gltf_sampler.d.ts.map +1 -1
  61. package/build/level/level.d.ts +195 -113
  62. package/build/level/level.d.ts.map +1 -1
  63. package/build/level/tiled/TMXGroup.d.ts +1 -65
  64. package/build/level/tiled/TMXGroup.d.ts.map +1 -1
  65. package/build/level/tiled/TMXLayer.d.ts +0 -44
  66. package/build/level/tiled/TMXLayer.d.ts.map +1 -1
  67. package/build/level/tiled/TMXObject.d.ts +1 -136
  68. package/build/level/tiled/TMXObject.d.ts.map +1 -1
  69. package/build/level/tiled/TMXObjectFactory.d.ts +1 -40
  70. package/build/level/tiled/TMXObjectFactory.d.ts.map +1 -1
  71. package/build/level/tiled/TMXTile.d.ts +1 -30
  72. package/build/level/tiled/TMXTile.d.ts.map +1 -1
  73. package/build/level/tiled/TMXTileMap.d.ts +0 -10
  74. package/build/level/tiled/TMXTileMap.d.ts.map +1 -1
  75. package/build/level/tiled/TMXTileset.d.ts +0 -113
  76. package/build/level/tiled/TMXTileset.d.ts.map +1 -1
  77. package/build/level/tiled/TMXTilesetGroup.d.ts +0 -1
  78. package/build/level/tiled/TMXTilesetGroup.d.ts.map +1 -1
  79. package/build/level/tiled/TMXUtils.d.ts +1 -43
  80. package/build/level/tiled/TMXUtils.d.ts.map +1 -1
  81. package/build/level/tiled/factories/shape.d.ts +1 -7
  82. package/build/level/tiled/factories/shape.d.ts.map +1 -1
  83. package/build/level/tiled/factories/text.d.ts +1 -7
  84. package/build/level/tiled/factories/text.d.ts.map +1 -1
  85. package/build/level/tiled/factories/tile.d.ts +1 -7
  86. package/build/level/tiled/factories/tile.d.ts.map +1 -1
  87. package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts +0 -60
  88. package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts.map +1 -1
  89. package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts +0 -42
  90. package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts.map +1 -1
  91. package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts +0 -5
  92. package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts.map +1 -1
  93. package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts +0 -31
  94. package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts.map +1 -1
  95. package/build/level/tiled/renderer/TMXRenderer.d.ts +2 -2
  96. package/build/level/tiled/renderer/TMXRenderer.d.ts.map +1 -1
  97. package/build/level/tiled/renderer/TMXStaggeredRenderer.d.ts.map +1 -1
  98. package/build/level/tiled/renderer/autodetect.d.ts +1 -6
  99. package/build/level/tiled/renderer/autodetect.d.ts.map +1 -1
  100. package/build/lighting/light2d.d.ts +0 -25
  101. package/build/lighting/light2d.d.ts.map +1 -1
  102. package/build/lighting/light3d.d.ts +0 -16
  103. package/build/lighting/light3d.d.ts.map +1 -1
  104. package/build/loader/loader.d.ts +42 -33
  105. package/build/loader/loader.d.ts.map +1 -1
  106. package/build/loader/loadingscreen.d.ts +0 -33
  107. package/build/loader/loadingscreen.d.ts.map +1 -1
  108. package/build/loader/parsers/aseprite.d.ts +0 -13
  109. package/build/loader/parsers/aseprite.d.ts.map +1 -1
  110. package/build/loader/parsers/audio.d.ts +1 -30
  111. package/build/loader/parsers/audio.d.ts.map +1 -1
  112. package/build/loader/parsers/binary.d.ts +1 -10
  113. package/build/loader/parsers/binary.d.ts.map +1 -1
  114. package/build/loader/parsers/compressed_textures/compressed_image.d.ts.map +1 -1
  115. package/build/loader/parsers/compressed_textures/parseDDS.d.ts +1 -7
  116. package/build/loader/parsers/compressed_textures/parseDDS.d.ts.map +1 -1
  117. package/build/loader/parsers/compressed_textures/parseKTX.d.ts +1 -7
  118. package/build/loader/parsers/compressed_textures/parseKTX.d.ts.map +1 -1
  119. package/build/loader/parsers/compressed_textures/parseKTX2.d.ts +1 -7
  120. package/build/loader/parsers/compressed_textures/parseKTX2.d.ts.map +1 -1
  121. package/build/loader/parsers/compressed_textures/parsePKM.d.ts +1 -7
  122. package/build/loader/parsers/compressed_textures/parsePKM.d.ts.map +1 -1
  123. package/build/loader/parsers/compressed_textures/parsePVR.d.ts +1 -7
  124. package/build/loader/parsers/compressed_textures/parsePVR.d.ts.map +1 -1
  125. package/build/loader/parsers/fontface.d.ts +1 -13
  126. package/build/loader/parsers/fontface.d.ts.map +1 -1
  127. package/build/loader/parsers/gltf.d.ts +1 -70
  128. package/build/loader/parsers/gltf.d.ts.map +1 -1
  129. package/build/loader/parsers/image.d.ts +1 -22
  130. package/build/loader/parsers/image.d.ts.map +1 -1
  131. package/build/loader/parsers/json.d.ts +1 -10
  132. package/build/loader/parsers/json.d.ts.map +1 -1
  133. package/build/loader/parsers/mtl.d.ts +1 -28
  134. package/build/loader/parsers/mtl.d.ts.map +1 -1
  135. package/build/loader/parsers/obj.d.ts +1 -59
  136. package/build/loader/parsers/obj.d.ts.map +1 -1
  137. package/build/loader/parsers/pbr.d.ts +1 -62
  138. package/build/loader/parsers/pbr.d.ts.map +1 -1
  139. package/build/loader/parsers/script.d.ts +1 -10
  140. package/build/loader/parsers/script.d.ts.map +1 -1
  141. package/build/loader/parsers/shader.d.ts +1 -52
  142. package/build/loader/parsers/shader.d.ts.map +1 -1
  143. package/build/loader/parsers/tmx.d.ts +1 -10
  144. package/build/loader/parsers/tmx.d.ts.map +1 -1
  145. package/build/loader/parsers/video.d.ts +1 -10
  146. package/build/loader/parsers/video.d.ts.map +1 -1
  147. package/build/math/color.d.ts.map +1 -1
  148. package/build/math/noise.d.ts +0 -40
  149. package/build/math/noise.d.ts.map +1 -1
  150. package/build/math/observableVector2d.d.ts +0 -3
  151. package/build/math/observableVector2d.d.ts.map +1 -1
  152. package/build/math/observableVector3d.d.ts +0 -3
  153. package/build/math/observableVector3d.d.ts.map +1 -1
  154. package/build/math/vector2d.d.ts +0 -6
  155. package/build/math/vector2d.d.ts.map +1 -1
  156. package/build/math/vertex.d.ts +25 -0
  157. package/build/math/vertex.d.ts.map +1 -1
  158. package/build/particles/emitter.d.ts +0 -65
  159. package/build/particles/emitter.d.ts.map +1 -1
  160. package/build/particles/particle.d.ts +0 -81
  161. package/build/particles/particle.d.ts.map +1 -1
  162. package/build/physics/bounds.d.ts +0 -1
  163. package/build/physics/bounds.d.ts.map +1 -1
  164. package/build/physics/broadphase/broadphase.d.ts +0 -7
  165. package/build/physics/broadphase/broadphase.d.ts.map +1 -1
  166. package/build/physics/broadphase/octree.d.ts +0 -91
  167. package/build/physics/broadphase/octree.d.ts.map +1 -1
  168. package/build/physics/broadphase/quadtree.d.ts +0 -47
  169. package/build/physics/broadphase/quadtree.d.ts.map +1 -1
  170. package/build/physics/builtin/body.d.ts +2 -65
  171. package/build/physics/builtin/body.d.ts.map +1 -1
  172. package/build/physics/builtin/detector.d.ts +0 -312
  173. package/build/physics/builtin/detector.d.ts.map +1 -1
  174. package/build/physics/builtin/sat.d.ts +1 -48
  175. package/build/physics/builtin/sat.d.ts.map +1 -1
  176. package/build/physics/builtin/sat3d.d.ts +1 -56
  177. package/build/physics/builtin/sat3d.d.ts.map +1 -1
  178. package/build/physics/collision.d.ts +0 -2
  179. package/build/physics/collision.d.ts.map +1 -1
  180. package/build/physics/response.d.ts +0 -1
  181. package/build/physics/response.d.ts.map +1 -1
  182. package/build/physics/world.d.ts.map +1 -1
  183. package/build/renderable/anchorPoint.d.ts +1 -73
  184. package/build/renderable/anchorPoint.d.ts.map +1 -1
  185. package/build/renderable/animation.d.ts +0 -7
  186. package/build/renderable/animation.d.ts.map +1 -1
  187. package/build/renderable/colorlayer.d.ts +0 -5
  188. package/build/renderable/colorlayer.d.ts.map +1 -1
  189. package/build/renderable/container.d.ts +0 -55
  190. package/build/renderable/container.d.ts.map +1 -1
  191. package/build/renderable/draggable.d.ts +0 -5
  192. package/build/renderable/draggable.d.ts.map +1 -1
  193. package/build/renderable/dragndrop.d.ts +1 -12
  194. package/build/renderable/dragndrop.d.ts.map +1 -1
  195. package/build/renderable/entity/entity.d.ts +0 -8
  196. package/build/renderable/entity/entity.d.ts.map +1 -1
  197. package/build/renderable/frameAnimation.d.ts +0 -41
  198. package/build/renderable/frameAnimation.d.ts.map +1 -1
  199. package/build/renderable/groundshadow.d.ts +1 -91
  200. package/build/renderable/groundshadow.d.ts.map +1 -1
  201. package/build/renderable/imagelayer.d.ts +0 -29
  202. package/build/renderable/imagelayer.d.ts.map +1 -1
  203. package/build/renderable/instanced_mesh.d.ts +26 -104
  204. package/build/renderable/instanced_mesh.d.ts.map +1 -1
  205. package/build/renderable/mesh.d.ts +130 -141
  206. package/build/renderable/mesh.d.ts.map +1 -1
  207. package/build/renderable/nineslicesprite.d.ts +0 -4
  208. package/build/renderable/nineslicesprite.d.ts.map +1 -1
  209. package/build/renderable/renderable.d.ts +1 -44
  210. package/build/renderable/renderable.d.ts.map +1 -1
  211. package/build/renderable/sprite.d.ts +0 -45
  212. package/build/renderable/sprite.d.ts.map +1 -1
  213. package/build/renderable/sprite3d.d.ts +0 -95
  214. package/build/renderable/sprite3d.d.ts.map +1 -1
  215. package/build/renderable/text/bitmaptext.d.ts +0 -14
  216. package/build/renderable/text/bitmaptext.d.ts.map +1 -1
  217. package/build/renderable/text/bitmaptextdata.d.ts +0 -22
  218. package/build/renderable/text/bitmaptextdata.d.ts.map +1 -1
  219. package/build/renderable/text/glyph.d.ts +1 -39
  220. package/build/renderable/text/glyph.d.ts.map +1 -1
  221. package/build/renderable/text/text.d.ts +0 -20
  222. package/build/renderable/text/text.d.ts.map +1 -1
  223. package/build/renderable/text/textstyle.d.ts +1 -5
  224. package/build/renderable/text/textstyle.d.ts.map +1 -1
  225. package/build/renderable/trail.d.ts +0 -29
  226. package/build/renderable/trail.d.ts.map +1 -1
  227. package/build/renderable/trigger.d.ts +0 -6
  228. package/build/renderable/trigger.d.ts.map +1 -1
  229. package/build/renderable/ui/uibaseelement.d.ts +0 -40
  230. package/build/renderable/ui/uibaseelement.d.ts.map +1 -1
  231. package/build/renderable/ui/uispriteelement.d.ts +0 -35
  232. package/build/renderable/ui/uispriteelement.d.ts.map +1 -1
  233. package/build/state/stage.d.ts +0 -66
  234. package/build/state/stage.d.ts.map +1 -1
  235. package/build/state/state.d.ts.map +1 -1
  236. package/build/system/device.d.ts +0 -12
  237. package/build/system/device.d.ts.map +1 -1
  238. package/build/system/dom.d.ts +1 -8
  239. package/build/system/dom.d.ts.map +1 -1
  240. package/build/system/legacy_pool.d.ts +1 -6
  241. package/build/system/legacy_pool.d.ts.map +1 -1
  242. package/build/system/platform.d.ts +0 -1
  243. package/build/system/platform.d.ts.map +1 -1
  244. package/build/system/pool.d.ts +0 -9
  245. package/build/system/pool.d.ts.map +1 -1
  246. package/build/system/save.d.ts.map +1 -1
  247. package/build/system/timer.d.ts +0 -20
  248. package/build/system/timer.d.ts.map +1 -1
  249. package/build/tweens/tween.d.ts +0 -62
  250. package/build/tweens/tween.d.ts.map +1 -1
  251. package/build/utils/array-multimap.d.ts +1 -13
  252. package/build/utils/array-multimap.d.ts.map +1 -1
  253. package/build/utils/decode.d.ts.map +1 -1
  254. package/build/utils/fetchdata.d.ts +1 -31
  255. package/build/utils/fetchdata.d.ts.map +1 -1
  256. package/build/utils/utils.d.ts +0 -13
  257. package/build/utils/utils.d.ts.map +1 -1
  258. package/build/video/blendmodes.d.ts +1 -106
  259. package/build/video/blendmodes.d.ts.map +1 -1
  260. package/build/video/buffer/index.d.ts +1 -39
  261. package/build/video/buffer/index.d.ts.map +1 -1
  262. package/build/video/buffer/vertex.d.ts +1 -82
  263. package/build/video/buffer/vertex.d.ts.map +1 -1
  264. package/build/video/canvas/canvas_renderer.d.ts +2 -23
  265. package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
  266. package/build/video/canvas_factory.d.ts +1 -24
  267. package/build/video/canvas_factory.d.ts.map +1 -1
  268. package/build/video/effects/blendEffect.d.ts +0 -54
  269. package/build/video/effects/blendEffect.d.ts.map +1 -1
  270. package/build/video/effects/colorMatrix.d.ts +0 -10
  271. package/build/video/effects/colorMatrix.d.ts.map +1 -1
  272. package/build/video/effects/glsl_realization.d.ts +1 -17
  273. package/build/video/effects/glsl_realization.d.ts.map +1 -1
  274. package/build/video/effects/radialGradient.d.ts +0 -1
  275. package/build/video/effects/radialGradient.d.ts.map +1 -1
  276. package/build/video/effects/shadereffect.d.ts +0 -113
  277. package/build/video/effects/shadereffect.d.ts.map +1 -1
  278. package/build/video/effects/wgsl/layout.d.ts +1 -27
  279. package/build/video/effects/wgsl/layout.d.ts.map +1 -1
  280. package/build/video/effects/wgsl/parse.d.ts +1 -8
  281. package/build/video/effects/wgsl/parse.d.ts.map +1 -1
  282. package/build/video/effects/wgsl/scaffold.d.ts +1 -42
  283. package/build/video/effects/wgsl/scaffold.d.ts.map +1 -1
  284. package/build/video/effects/wgsl_realization.d.ts +1 -82
  285. package/build/video/effects/wgsl_realization.d.ts.map +1 -1
  286. package/build/video/gpu/batcher.d.ts +1 -13
  287. package/build/video/gpu/batcher.d.ts.map +1 -1
  288. package/build/video/gpu/instancerecord.d.ts +1 -163
  289. package/build/video/gpu/instancerecord.d.ts.map +1 -1
  290. package/build/video/gpu/meshchunk.d.ts +1 -48
  291. package/build/video/gpu/meshchunk.d.ts.map +1 -1
  292. package/build/video/gpu/meshvertex.d.ts +1 -53
  293. package/build/video/gpu/meshvertex.d.ts.map +1 -1
  294. package/build/video/gpu/primitives.d.ts +1 -59
  295. package/build/video/gpu/primitives.d.ts.map +1 -1
  296. package/build/video/gpu/quadcorners.d.ts +1 -10
  297. package/build/video/gpu/quadcorners.d.ts.map +1 -1
  298. package/build/video/gpu/textureslots.d.ts +1 -121
  299. package/build/video/gpu/textureslots.d.ts.map +1 -1
  300. package/build/video/gpu/texturestore.d.ts +1 -138
  301. package/build/video/gpu/texturestore.d.ts.map +1 -1
  302. package/build/video/gpu/topology.d.ts.map +1 -1
  303. package/build/video/gpu/vertexformat.d.ts +0 -28
  304. package/build/video/gpu/vertexformat.d.ts.map +1 -1
  305. package/build/video/gradient.d.ts +0 -81
  306. package/build/video/gradient.d.ts.map +1 -1
  307. package/build/video/renderer.d.ts +21 -102
  308. package/build/video/renderer.d.ts.map +1 -1
  309. package/build/video/renderstate.d.ts +0 -51
  310. package/build/video/renderstate.d.ts.map +1 -1
  311. package/build/video/rendertarget/canvasrendertarget.d.ts +0 -10
  312. package/build/video/rendertarget/canvasrendertarget.d.ts.map +1 -1
  313. package/build/video/rendertarget/render_target_pool.d.ts +1 -82
  314. package/build/video/rendertarget/render_target_pool.d.ts.map +1 -1
  315. package/build/video/rendertarget/webglrendertarget.d.ts +1 -64
  316. package/build/video/rendertarget/webglrendertarget.d.ts.map +1 -1
  317. package/build/video/rendertarget/webgpurendertarget.d.ts +0 -8
  318. package/build/video/rendertarget/webgpurendertarget.d.ts.map +1 -1
  319. package/build/video/texture/atlas.d.ts +1 -75
  320. package/build/video/texture/atlas.d.ts.map +1 -1
  321. package/build/video/texture/cache.d.ts +0 -136
  322. package/build/video/texture/cache.d.ts.map +1 -1
  323. package/build/video/texture/frametexture.d.ts +1 -71
  324. package/build/video/texture/frametexture.d.ts.map +1 -1
  325. package/build/video/texture/noise_texture2d.d.ts +0 -43
  326. package/build/video/texture/noise_texture2d.d.ts.map +1 -1
  327. package/build/video/texture/parser/aseprite.d.ts +1 -8
  328. package/build/video/texture/parser/aseprite.d.ts.map +1 -1
  329. package/build/video/texture/parser/spritesheet.d.ts +1 -8
  330. package/build/video/texture/parser/spritesheet.d.ts.map +1 -1
  331. package/build/video/texture/parser/texturepacker.d.ts +1 -8
  332. package/build/video/texture/parser/texturepacker.d.ts.map +1 -1
  333. package/build/video/texture/resource.d.ts +0 -9
  334. package/build/video/texture/resource.d.ts.map +1 -1
  335. package/build/video/texture/texture2d.d.ts +0 -11
  336. package/build/video/texture/texture2d.d.ts.map +1 -1
  337. package/build/video/utils/autodetect.d.ts +1 -5
  338. package/build/video/utils/autodetect.d.ts.map +1 -1
  339. package/build/video/webgl/batchers/batcher.d.ts +0 -55
  340. package/build/video/webgl/batchers/batcher.d.ts.map +1 -1
  341. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts +0 -14
  342. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts.map +1 -1
  343. package/build/video/webgl/batchers/lit_quad_batcher.d.ts +0 -72
  344. package/build/video/webgl/batchers/lit_quad_batcher.d.ts.map +1 -1
  345. package/build/video/webgl/batchers/material_batcher.d.ts +0 -89
  346. package/build/video/webgl/batchers/material_batcher.d.ts.map +1 -1
  347. package/build/video/webgl/batchers/mesh_batcher.d.ts +14 -343
  348. package/build/video/webgl/batchers/mesh_batcher.d.ts.map +1 -1
  349. package/build/video/webgl/batchers/primitive_batcher.d.ts +0 -10
  350. package/build/video/webgl/batchers/primitive_batcher.d.ts.map +1 -1
  351. package/build/video/webgl/batchers/quad_batcher.d.ts +0 -30
  352. package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -1
  353. package/build/video/webgl/buffer/index.d.ts +1 -36
  354. package/build/video/webgl/buffer/index.d.ts.map +1 -1
  355. package/build/video/webgl/buffer/instance_buffer.d.ts +1 -53
  356. package/build/video/webgl/buffer/instance_buffer.d.ts.map +1 -1
  357. package/build/video/webgl/buffer/retained_geometry.d.ts +1 -81
  358. package/build/video/webgl/buffer/retained_geometry.d.ts.map +1 -1
  359. package/build/video/webgl/buffer/uniformblock.d.ts +1 -80
  360. package/build/video/webgl/buffer/uniformblock.d.ts.map +1 -1
  361. package/build/video/webgl/buffer/vertexstate.d.ts +1 -100
  362. package/build/video/webgl/buffer/vertexstate.d.ts.map +1 -1
  363. package/build/video/webgl/glshader.d.ts +0 -49
  364. package/build/video/webgl/glshader.d.ts.map +1 -1
  365. package/build/video/webgl/lighting/pack3d.d.ts +1 -47
  366. package/build/video/webgl/lighting/pack3d.d.ts.map +1 -1
  367. package/build/video/webgl/lighting/std140.d.ts +1 -109
  368. package/build/video/webgl/lighting/std140.d.ts.map +1 -1
  369. package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts +1 -103
  370. package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
  371. package/build/video/webgl/shaders/multitexture-lit.d.ts +1 -26
  372. package/build/video/webgl/shaders/multitexture-lit.d.ts.map +1 -1
  373. package/build/video/webgl/shaders/multitexture.d.ts +1 -9
  374. package/build/video/webgl/shaders/multitexture.d.ts.map +1 -1
  375. package/build/video/webgl/texture/store.d.ts +1 -50
  376. package/build/video/webgl/texture/store.d.ts.map +1 -1
  377. package/build/video/webgl/utils/attributes.d.ts +1 -11
  378. package/build/video/webgl/utils/attributes.d.ts.map +1 -1
  379. package/build/video/webgl/utils/maxtextures.d.ts +1 -36
  380. package/build/video/webgl/utils/maxtextures.d.ts.map +1 -1
  381. package/build/video/webgl/utils/precision.d.ts +1 -14
  382. package/build/video/webgl/utils/precision.d.ts.map +1 -1
  383. package/build/video/webgl/utils/program.d.ts +1 -5
  384. package/build/video/webgl/utils/program.d.ts.map +1 -1
  385. package/build/video/webgl/utils/samplercache.d.ts +1 -68
  386. package/build/video/webgl/utils/samplercache.d.ts.map +1 -1
  387. package/build/video/webgl/utils/string.d.ts +1 -21
  388. package/build/video/webgl/utils/string.d.ts.map +1 -1
  389. package/build/video/webgl/utils/topology.d.ts +1 -23
  390. package/build/video/webgl/utils/topology.d.ts.map +1 -1
  391. package/build/video/webgl/utils/uniforms.d.ts +1 -25
  392. package/build/video/webgl/utils/uniforms.d.ts.map +1 -1
  393. package/build/video/webgl/utils/vertexformat.d.ts +1 -26
  394. package/build/video/webgl/utils/vertexformat.d.ts.map +1 -1
  395. package/build/video/webgl/webgl_renderer.d.ts +22 -285
  396. package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
  397. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts +0 -6
  398. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts.map +1 -1
  399. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts +0 -8
  400. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts.map +1 -1
  401. package/build/video/webgpu/batchers/mesh_batcher.d.ts +1 -230
  402. package/build/video/webgpu/batchers/mesh_batcher.d.ts.map +1 -1
  403. package/build/video/webgpu/batchers/primitive_batcher.d.ts.map +1 -1
  404. package/build/video/webgpu/batchers/quad_batcher.d.ts +0 -82
  405. package/build/video/webgpu/batchers/quad_batcher.d.ts.map +1 -1
  406. package/build/video/webgpu/buffer/arena.d.ts +1 -63
  407. package/build/video/webgpu/buffer/arena.d.ts.map +1 -1
  408. package/build/video/webgpu/buffer/instance_buffer.d.ts +1 -64
  409. package/build/video/webgpu/buffer/instance_buffer.d.ts.map +1 -1
  410. package/build/video/webgpu/buffer/retained_geometry.d.ts +1 -54
  411. package/build/video/webgpu/buffer/retained_geometry.d.ts.map +1 -1
  412. package/build/video/webgpu/buffer/uniformring.d.ts +1 -67
  413. package/build/video/webgpu/buffer/uniformring.d.ts.map +1 -1
  414. package/build/video/webgpu/effect_binding.d.ts +1 -16
  415. package/build/video/webgpu/effect_binding.d.ts.map +1 -1
  416. package/build/video/webgpu/pipeline/bindgroups.d.ts +1 -32
  417. package/build/video/webgpu/pipeline/bindgroups.d.ts.map +1 -1
  418. package/build/video/webgpu/pipeline/cache.d.ts +1 -163
  419. package/build/video/webgpu/pipeline/cache.d.ts.map +1 -1
  420. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts +1 -87
  421. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
  422. package/build/video/webgpu/shaders/mesh-instanced.d.ts +1 -43
  423. package/build/video/webgpu/shaders/mesh-instanced.d.ts.map +1 -1
  424. package/build/video/webgpu/texture/compressed.d.ts +1 -32
  425. package/build/video/webgpu/texture/compressed.d.ts.map +1 -1
  426. package/build/video/webgpu/texture/frametexture.d.ts +1 -62
  427. package/build/video/webgpu/texture/frametexture.d.ts.map +1 -1
  428. package/build/video/webgpu/texture/store.d.ts +1 -147
  429. package/build/video/webgpu/texture/store.d.ts.map +1 -1
  430. package/build/video/webgpu/webgpu_renderer.d.ts +0 -88
  431. package/build/video/webgpu/webgpu_renderer.d.ts.map +1 -1
  432. package/package.json +5 -4
  433. package/skills/melonjs/SKILL.md +1 -1
  434. package/skills/melonjs-3d/SKILL.md +301 -2
  435. package/skills/melonjs-3d-assets/SKILL.md +25 -6
  436. package/skills/melonjs-audio/SKILL.md +21 -0
  437. package/skills/melonjs-camera-and-drawing/SKILL.md +4 -0
  438. package/skills/melonjs-effects-and-shaders/SKILL.md +2 -1
  439. package/skills/melonjs-loading-assets/SKILL.md +30 -1
  440. package/skills/melonjs-performance/SKILL.md +5 -0
  441. package/skills/melonjs-tilemaps/SKILL.md +31 -11
  442. package/skills/melonjs-ui-and-text/SKILL.md +17 -127
@@ -1 +1 @@
1
- {"version":3,"file":"camera2d.d.ts","sourceRoot":"","sources":["../../src/camera/camera2d.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,KAAK,EA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AAC,EAAE,MAAM,IAAI,GACrB,IAAI;IAWP;;;;;;;;;OASG;IACH,MAAM,CACL,KAAK,EAAE,KAAK,GAAG,MAAM,EACrB,QAAQ,GAAE,MAAa,EACvB,UAAU,CAAC,EAAE,MAAM,IAAI,GACrB,IAAI;IAWP;;;;;;OAMG;IACH,eAAe,CAAC,CAAC,SAAS,YAAY,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC;IAKrD;;;;;;OAMG;IACH,eAAe,CAAC,CAAC,SAAS,YAAY,EACrC,WAAW,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GACpC,CAAC,GAAG,SAAS;IAMhB;;;;;;OAMG;IACH,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;IAQ9C;;;OAGG;IACH,OAAO,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAQjC;;;;;OAKG;IACH,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,QAAQ,GAAE,OAAsB,GAAG,OAAO;IA0BrE;;;;;;OAMG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ;IAS1D;;;;;;OAMG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ;CAmR1D"}
@@ -1,11 +1,11 @@
1
1
  import type { ObservableVector3d } from "../math/observableVector3d.ts";
2
2
  import { Vector2d } from "../math/vector2d.ts";
3
3
  import { Vector3d } from "../math/vector3d.ts";
4
- import type Container from "./../renderable/container.js";
5
4
  import type Renderable from "./../renderable/renderable.js";
6
- import type Renderer from "./../video/renderer.js";
7
5
  import Camera2d from "./camera2d.ts";
6
+ import type { FogOptions } from "./fog.ts";
8
7
  import Frustum, { type FrustumOptions } from "./frustum.ts";
8
+ export type { Fog3dState, FogMode, FogOptions } from "./fog.ts";
9
9
  /**
10
10
  * A perspective camera that extends {@link Camera2d} with a view
11
11
  * {@link Frustum} (fov / aspect / near / far) and orientation
@@ -158,6 +158,90 @@ export default class Camera3d extends Camera2d {
158
158
  * @returns this camera (chainable)
159
159
  */
160
160
  setClipPlanes(near: number, far: number): this;
161
+ /**
162
+ * Enable, reconfigure, or switch off distance fog for this camera.
163
+ *
164
+ * Fog fades mesh geometry toward a colour with distance, which is what
165
+ * stops a 3D scene reading as flat cut-outs and lets props appear at the
166
+ * far plane without a visible edge. It is **off until you call this**, and
167
+ * a scene that never does renders exactly as it did before.
168
+ *
169
+ * Two curves, chosen with `mode`:
170
+ *
171
+ * | mode | parameters | character |
172
+ * | --- | --- | --- |
173
+ * | `"linear"` (default) | `near`, `far` | you name the two distances |
174
+ * | `"exp2"` | `density` | clear up close, closes fast at range |
175
+ *
176
+ * Every parameter is optional, and an omitted one is **resolved live each
177
+ * frame** rather than captured here: distances track the camera's own clip
178
+ * planes and the colour tracks `renderer.backgroundColor`. That is
179
+ * deliberate — fog distances that silently disagreed with the clip planes
180
+ * after a later {@link Camera3d#setClipPlanes} call would clip geometry
181
+ * before it finished fading, and a fog colour that did not follow a
182
+ * day/night background fade would leave a band at the horizon.
183
+ *
184
+ * Fog is per camera, so a split-screen or minimap view fogs independently
185
+ * — and a `Camera2d` never fogs at all.
186
+ *
187
+ * `heightFalloff` adds a second falloff with altitude, so mist pools in low
188
+ * ground instead of hanging at every height equally. It defaults to 0,
189
+ * which is uniform fog — not a special case, the same integral with the
190
+ * dial at zero.
191
+ * @param options - fog settings, or `null` to switch fog off
192
+ * @returns this camera (chainable)
193
+ * @throws {Error} on an unknown `mode`, a non-finite or negative distance,
194
+ * `far` at or below `near`, or a density at or below zero
195
+ * @example
196
+ * // A typical outdoor scene: set the sky, size the frustum to the level,
197
+ * // then let fog take its distances and its colour from both.
198
+ * class GameStage extends Stage {
199
+ * onResetEvent(app) {
200
+ * app.renderer.backgroundColor.parseCSS("#cfe6f7");
201
+ *
202
+ * const camera = app.viewport; // a Camera3d
203
+ * camera.setClipPlanes(1, 9000);
204
+ * // no colour passed: it tracks `backgroundColor`, so the terrain
205
+ * // dissolves into the sky and props arrive without a hard edge
206
+ * camera.setFog({ near: 1200, far: 7000 });
207
+ * }
208
+ * }
209
+ * @example
210
+ * // A single density instead of two distances. Omit it and it resolves to
211
+ * // `2 / far`, which reads the same at any world scale.
212
+ * camera.setFog({ mode: "exp2", density: 0.0004 });
213
+ * @example
214
+ * // Fog that is deliberately NOT the sky — a green murk under a blue sky.
215
+ * // Passing a `Color` keeps it by reference, so this fog can be animated
216
+ * // by mutating the colour, without calling `setFog` again.
217
+ * const murk = new Color(90, 120, 80);
218
+ * camera.setFog({ far: 5000, color: murk });
219
+ * murk.setColor(60, 90, 55); // thickens over the next frame
220
+ * @example
221
+ * // Mist pooling in a valley: dense along the floor, thinning up the
222
+ * // walls so the tree line stays crisp. Render space is Y-down, so
223
+ * // `fogHeight` is the floor and density rises BELOW it.
224
+ * camera.setFog({
225
+ * near: 1200,
226
+ * far: 7000,
227
+ * fogHeight: 0,
228
+ * heightFalloff: 0.0015,
229
+ * });
230
+ * @example
231
+ * // Everything is optional: with nothing at all, fog spans the camera's
232
+ * // own clip planes in the backdrop's colour.
233
+ * camera.setFog({});
234
+ * camera.setFog(null); // and off again
235
+ * @see Camera3d#setClipPlanes
236
+ * @see Mesh#fog
237
+ */
238
+ setFog(options: FogOptions | null): this;
239
+ /**
240
+ * The fog settings as given to {@link Camera3d#setFog}, or `null` when fog
241
+ * is off. The omitted fields are not filled in here — they are resolved
242
+ * per frame against the clip planes and the renderer's background colour.
243
+ */
244
+ get fog(): FogOptions | null;
161
245
  /**
162
246
  * Write the camera's world-space orientation basis into the given vectors:
163
247
  * `right` (camera local +X), `up` (+Y), and `forward` (+Z — the direction the
@@ -189,27 +273,6 @@ export default class Camera3d extends Camera2d {
189
273
  * @returns `out`
190
274
  */
191
275
  getForward(out: Vector3d): Vector3d;
192
- /**
193
- * Rebuild the projection matrix from the frustum. Called by the
194
- * base `Camera2d` constructor and by `resize()`. Camera3d's
195
- * version replaces the ortho matrix with the frustum's perspective.
196
- * @ignore
197
- */
198
- _updateProjectionMatrix(): void;
199
- /**
200
- * Override Camera2d's non-default projection setup so that a Camera3d
201
- * used in split-screen / picture-in-picture still renders the world
202
- * with perspective instead of falling back to a 2D ortho. The
203
- * camera's perspective `projectionMatrix` is mirrored into
204
- * `worldProjection`; the surrounding `clipRect` set by the base
205
- * `draw()` handles confining the draw region to the camera's
206
- * sub-screen rect, and the frustum's `aspect` is already in sync
207
- * with the camera's width/height. `screenProjection` is left alone
208
- * because it was already set up correctly in
209
- * {@link Camera3d#_updateProjectionMatrix}.
210
- * @ignore
211
- */
212
- _setupNonDefaultProjection(renderer: Renderer): void;
213
276
  /**
214
277
  * Resize the camera viewport and recompute aspect ratio.
215
278
  * @param w - new width
@@ -217,23 +280,6 @@ export default class Camera3d extends Camera2d {
217
280
  * @returns this camera
218
281
  */
219
282
  resize(w: number, h: number): this;
220
- /**
221
- * Apply the camera's full 3D view transform to the world container.
222
- * Order: rotate first (pitch, yaw), then translate by `-camera.pos`.
223
- * Post-multiplication semantics give us
224
- * `currentTransform = R⁻¹ ∘ T(-pos)` — applied to a world point,
225
- * this subtracts the camera position then rotates by the camera's
226
- * inverse orientation, which is the standard view transform.
227
- * @ignore
228
- */
229
- _applyContainerViewTransform(container: Container, translateX: number, translateY: number): void;
230
- /**
231
- * Revert {@link Camera3d#_applyContainerViewTransform} in reverse
232
- * order to restore the container's `currentTransform` to its
233
- * pre-camera state.
234
- * @ignore
235
- */
236
- _revertContainerViewTransform(container: Container, translateX: number, translateY: number): void;
237
283
  /**
238
284
  * Point the camera at a world-space target by deriving pitch and
239
285
  * yaw from the direction (target − camera.pos). Roll is unaffected.
@@ -275,27 +321,6 @@ export default class Camera3d extends Camera2d {
275
321
  * @returns this camera
276
322
  */
277
323
  setFollowOffset(x: number, y: number, z: number): this;
278
- /**
279
- * Override Camera2d's 2D follow logic to additionally resolve
280
- * `followOffset` against the target's z. When `target` is set, the
281
- * camera's world position becomes `target.pos + followOffset`.
282
- *
283
- * **Semantic change vs Camera2d.follow:** this override **does not
284
- * honor `follow_axis`, `deadzone`, or `smoothFollow` / `damping`**.
285
- * Camera3d tracks its target exactly each frame because the typical
286
- * 3D use case (behind-the-plane follow-cam, third-person orbit) wants
287
- * 1:1 tracking with no scroll-deadzone. If you need damped or
288
- * axis-constrained follow under perspective, set `target = null` and
289
- * lerp `camera.pos` toward the target manually in your `update()`.
290
- *
291
- * **PR B scope:** `followOffset` is treated as **world-space**.
292
- * Target-rotation-aware follow (where the offset rotates with the
293
- * target's orientation, spring-arm style) lands when a
294
- * showcase (AfterBurner's banking jet) demands it.
295
- * @param dt - delta time in milliseconds (ignored — no damping)
296
- * @ignore
297
- */
298
- updateTarget(dt?: number): void;
299
324
  /**
300
325
  * Visibility check used by `Container.update` (in turn driving
301
326
  * `Container.draw`) to skip rendering off-screen children.
@@ -347,16 +372,6 @@ export default class Camera3d extends Camera2d {
347
372
  broadphase: unknown;
348
373
  sortOn: string;
349
374
  }, out?: Renderable[]): Renderable[];
350
- /**
351
- * Per-frame update — extends Camera2d's behavior (target follow,
352
- * camera effects) with rebuilding the frustum's six bounding
353
- * planes so {@link Camera3d#isVisible} returns accurate results
354
- * for the current camera state.
355
- * @param dt - delta time in milliseconds
356
- * @returns true if the camera's state changed
357
- * @ignore
358
- */
359
- update(dt?: number): boolean;
360
375
  /**
361
376
  * Project a world-space point to 2D screen (canvas pixel) coordinates
362
377
  * through this camera's view + perspective projection (perspective divide
@@ -374,13 +389,5 @@ export default class Camera3d extends Camera2d {
374
389
  * @returns the screen-space pixel coordinates, or `null` if behind the camera
375
390
  */
376
391
  worldToScreen(world: Vector3d, out?: Vector2d): Vector2d | null;
377
- /**
378
- * Recompute the frustum's six bounding planes from the current
379
- * `projectionMatrix × viewMatrix` (the world → clip matrix).
380
- * Called from {@link Camera3d#update} each frame; `isVisible`
381
- * then tests against the cached planes.
382
- * @ignore
383
- */
384
- _rebuildFrustumPlanes(): void;
385
392
  }
386
393
  //# sourceMappingURL=camera3d.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"camera3d.d.ts","sourceRoot":"","sources":["../../src/camera/camera3d.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,OAAO,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAoB5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,QAAQ;IAC7C;;;;;;;OAOG;IACH,OAAgB,aAAa,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,OAAO,CAAW;IAEnE;;;;;;OAMG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;;;;;;;OAWG;IACH,YAAY,EAAE,QAAQ,CAAC;IAEvB;;;;;;;;OAQG;IACH,SAAS,EAAE,QAAQ,CAAC;IAEpB;;;;;;OAMG;gBAEF,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,cAAc;IAkCtB;;;OAGG;IACH,IAAI,G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AAA;KAAE,EAC9C,GAAG,CAAC,EAAE,UAAU,EAAE,GAChB,UAAU,EAAE;IAkCf;;;;;;;;;;;;;;;OAeG;IACH,aAAa,CACZ,KAAK,EAAE,QAAQ,EACf,GAAG,GAAE,QAAyB,GAC5B,QAAQ,GAAG,IAAI;CAmElB"}
@@ -34,11 +34,6 @@ export default class FadeEffect extends CameraEffect {
34
34
  * fade direction: "in" fades to the color, "out" fades from the color back to transparent
35
35
  */
36
36
  direction: "in" | "out";
37
- /**
38
- * target alpha value for completion check
39
- * @ignore
40
- */
41
- _targetAlpha: number;
42
37
  /**
43
38
  * @param camera - the camera to apply the fade to
44
39
  * @param options - fade parameters
@@ -1 +1 @@
1
- {"version":3,"file":"fade_effect.d.ts","sourceRoot":"","sources":["../../../src/camera/effects/fade_effect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAC;AAE/C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAC3C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IACnD;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,IAAI,GAAG,KAAK,CAAC;IAExB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;gBAEF,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE;QACR,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,SAAS,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,SAAS,CAAC;QACrC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default class MaskEffect extends CameraEffect {
59
59
  * optional callback when transition completes
60
60
  */
61
61
  onComplete: (() => void) | undefined;
62
- /**
63
- * pooled shape used for rendering (avoids per-frame allocation)
64
- * @ignore
65
- */
66
- _maskShape: MaskShape;
67
62
  /**
68
63
  * @param camera - the camera to apply the transition to
69
64
  * @param options - transition parameters
@@ -1 +1 @@
1
- {"version":3,"file":"mask_effect.d.ts","sourceRoot":"","sources":["../../../src/camera/effects/mask_effect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,OAAO,EAAe,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAC;AAE/C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAC3C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IACnD;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAE5B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAErC;;;OAGG;IACH,UAAU,EAAE,SAAS,CAAC;IAEtB;;;;;;;;OAQG;gBAEF,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE;QACR,KAAK,E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;OAEG;IACH,UAAU,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IASrC;;;;;;;;OAQG;gBAEF,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE;QACR,KAAK,EAAE,SAAS,CAAC;QACjB,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;QAC1C,UAAU,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;KACtC;IA+BO,MAAM,IAAI,IAAI;IAmCd,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAwB7D,OAAO,IAAI,IAAI;CAqBxB"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Distance-fog types, in their own module so `Camera2d` can declare the
3
+ * resolver hook that `Camera3d` overrides without the two importing each
4
+ * other.
5
+ */
6
+ import type { Color } from "../math/color.ts";
7
+ /**
8
+ * Which curve maps distance to fog density.
9
+ *
10
+ * `"linear"` is parameterised by two distances and `"exp2"` by a single
11
+ * density — the two parameterisations inherited from fixed-function graphics
12
+ * pipelines, and still what stylised scenes want.
13
+ */
14
+ export type FogMode = "linear" | "exp2";
15
+ /**
16
+ * {@link Camera3d#setFog} options. Every field is optional: the defaults are
17
+ * resolved live each frame, so fog stays consistent with the camera and the
18
+ * backdrop instead of drifting out of step with them.
19
+ *
20
+ * The values you DO pass are read once, at the call. Mutating this object
21
+ * afterwards has no effect — and would have skipped `setFog`'s validation if it
22
+ * did. The one live handle is a {@link Color} passed as `color`, which is kept
23
+ * by reference so it can be animated; see that field.
24
+ */
25
+ export interface FogOptions {
26
+ /**
27
+ * the curve mapping distance to density.
28
+ * @default "linear"
29
+ */
30
+ mode?: FogMode;
31
+ /**
32
+ * linear only — distance at which fog starts. Omit and it tracks the
33
+ * camera's own `near` clip plane.
34
+ */
35
+ near?: number;
36
+ /**
37
+ * linear only — distance at which fog fully hides the scene. Omit and it
38
+ * tracks the camera's own `far` clip plane, which is what keeps geometry
39
+ * from clipping before it has finished fading.
40
+ */
41
+ far?: number;
42
+ /**
43
+ * exp2 only — how fast the scene colour is lost with distance. Omit and it
44
+ * resolves to `2 / far`, leaving a few percent of the scene colour at the
45
+ * far plane whatever the world scale.
46
+ */
47
+ density?: number;
48
+ /**
49
+ * fog colour. Omit and it tracks `renderer.backgroundColor` live, so
50
+ * geometry dissolves into the backdrop with no extra work — including
51
+ * through a day/night fade. A {@link Color} is kept **by reference**, so
52
+ * mutating it animates the fog; a CSS string or `[r, g, b]` in 0..1 is
53
+ * parsed into a colour this camera owns.
54
+ */
55
+ color?: Color | string | [number, number, number];
56
+ /**
57
+ * World Y at which the fog is at its reference density. Only meaningful
58
+ * alongside a non-zero {@link FogOptions.heightFalloff}.
59
+ * @default 0
60
+ */
61
+ fogHeight?: number;
62
+ /**
63
+ * How fast fog density drops with altitude, so mist pools in low ground
64
+ * instead of filling the sky as readily as the valley floor.
65
+ *
66
+ * **Zero — the default — is uniform fog**, which is the fog that shipped
67
+ * without this: `exp(0)` is 1, density is the same at every altitude, and
68
+ * the maths collapses exactly. Raise it and density falls off above
69
+ * `fogHeight`, leaving ridges and sky clear while the hollows stay thick.
70
+ *
71
+ * Render space is **Y-down**, so density rises as `y` INCREASES — the
72
+ * opposite sign to every published height-fog formula, which assume Y-up.
73
+ * @default 0
74
+ */
75
+ heightFalloff?: number;
76
+ }
77
+ /**
78
+ * The resolved per-frame fog values handed to the renderer. Distances are
79
+ * pre-baked into the form the shaders want so neither backend divides.
80
+ * Hidden from the docs but deliberately kept in the emitted `.d.ts`:
81
+ * `camera3d.d.ts` imports this type, so removing it would leave a dangling
82
+ * import in the published types.
83
+ * @ignore
84
+ */
85
+ export interface Fog3dState {
86
+ /** 1 = linear, 2 = exp2 (0 never reaches the renderer — null does) */
87
+ mode: number;
88
+ /** linear: distance at which fog starts */
89
+ near: number;
90
+ /** linear: 1 / (far - near) */
91
+ invRange: number;
92
+ /** exp2: density */
93
+ density: number;
94
+ /** straight (unpremultiplied) fog colour, 3 components in 0..1 */
95
+ color: Float32Array;
96
+ /**
97
+ * The height falloff folded into the world-up axis, expressed in VIEW
98
+ * space — 3 components. The shaders need the fragment's height above the
99
+ * camera, and the matrix they have is not the camera's view alone:
100
+ * `Container.draw` folds every ancestor into it, so the position the
101
+ * vertex stage computes is the mesh's parent space rather than the world.
102
+ * Dotting this against the view-space position recovers the world height
103
+ * difference whatever those ancestors do — scale, rotation or both — and
104
+ * carries the falloff with it, so the shader's exponent is one dot
105
+ * product. All zero when the falloff is 0, which is what makes uniform
106
+ * fog fall out of the same expression rather than needing a branch.
107
+ */
108
+ heightAxis: Float32Array;
109
+ /**
110
+ * The altitude term of the height integral, `exp(k * (cameraY -
111
+ * fogHeight))`, evaluated once per frame here rather than per vertex in
112
+ * the shader — both operands are camera-global. Clamped before the
113
+ * exponential: a camera far below the reference height would otherwise
114
+ * overflow it and whiten the frame. Exactly 1 when the falloff is 0.
115
+ */
116
+ heightBase: number;
117
+ }
118
+ //# sourceMappingURL=fog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fog.d.ts","sourceRoot":"","sources":["../../src/camera/fog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAExC;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IAC1B,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,kEAAkE;IAClE,KAAK,EAAE,YAAY,CAAC;IACpB;;;;;;;;;;;OAWG;IACH,UAAU,EAAE,YAAY,CAAC;IACzB;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAC;CACnB"}
@@ -1,7 +1,6 @@
1
1
  import { Vector3d } from "../math/vector3d.ts";
2
2
  import { Bounds } from "../physics/bounds.ts";
3
3
  import { AABB3d } from "../physics/broadphase/aabb3d.ts";
4
- import { Polygon } from "./polygon.ts";
5
4
  /**
6
5
  * An axis-aligned 3D box, usable as a {@link Body} collision shape.
7
6
  *
@@ -54,22 +53,6 @@ export declare class Box3d {
54
53
  * @default "Box3d"
55
54
  */
56
55
  type: string;
57
- /**
58
- * 2D XY footprint, kept in sync by {@link Box3d#setShape}. This is what
59
- * {@link Box3d#getBounds} hands back, so every legacy 2D consumer
60
- * ({@link Body#bounds}, the broadphase pre-gate, debug draw) sees a
61
- * plain rectangle and needs no 3D awareness.
62
- * @ignore
63
- */
64
- _bounds: Bounds;
65
- /**
66
- * XY footprint as a {@link Polygon}, kept in sync by
67
- * {@link Box3d#setShape}. The degraded `Box3d` × planar-shape tests
68
- * hand this to the existing polygon SAT, so no polygon is allocated
69
- * per collision test.
70
- * @ignore
71
- */
72
- _footprint: Polygon;
73
56
  /**
74
57
  * @param x - center of the box on the horizontal axis
75
58
  * @param y - center of the box on the vertical axis
@@ -90,17 +73,6 @@ export declare class Box3d {
90
73
  * @returns this box, for chaining
91
74
  */
92
75
  setShape(x: number, y: number, z: number, width: number, height: number, depth: number): this;
93
- /**
94
- * Rebuild the cached XY footprint (both the {@link Bounds} and the
95
- * {@link Polygon}) from the current center and half-extents.
96
- *
97
- * The footprint polygon's `pos` is the **min corner**, not the center,
98
- * because the SAT narrowphase resolves a shape's absolute position as
99
- * `renderable.pos + ancestor.getAbsolutePosition() + shape.pos` and
100
- * then treats `points` as offsets from it.
101
- * @ignore
102
- */
103
- _syncFootprint(): void;
104
76
  /**
105
77
  * width of the box
106
78
  */
@@ -1 +1 @@
1
- {"version":3,"file":"box3d.d.ts","sourceRoot":"","sources":["../../src/geometries/box3d.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AASvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,qBAAa,KAAK;IACjB;;OAEG;IACH,GAAG,EAAE,QAAQ,CAAC;IAEd;;;;OAIG;IACH,WAAW,EAAE,QAAQ,CAAC;IAEtB;;;OAGG;IACH,IAAI,SAAW;IAEf;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;;;;OAOG;gBACS,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,KAAK,SAAI,EAAE,MAAM,SAAI,EAAE,KAAK,SAAI;IAcjE;;;;;;;;;OASG;IACH,QAAQ,CACP,CAAC,EAAE,MAAM,EACT,C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AAC;IAEtB;;;OAGG;IACH,IAAI,SAAW;IAsBf;;;;;;;OAOG;gBACS,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,KAAK,SAAI,EAAE,MAAM,SAAI,EAAE,KAAK,SAAI;IAcjE;;;;;;;;;OASG;IACH,QAAQ,CACP,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM;IAiDd;;OAEG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAGtB;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAGvB;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAGtB;IAED;;;;;;OAMG;IACH,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI;IAUxC;;;;;;;OAOG;IACH,SAAS,IAAI,MAAM;IAInB;;;;OAIG;IACH,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM;IAgBjC;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,GAAG,OAAO;IAYrD;;;OAGG;IACH,KAAK,IAAI,KAAK;CAUd;AAED,eAAO,MAAM,SAAS,gIAmBpB,CAAC"}
@@ -11,10 +11,6 @@ export declare class Ellipse {
11
11
  * the center coordinates of the ellipse
12
12
  */
13
13
  pos: Vector2d;
14
- /**
15
- * The bounding rectangle for this shape
16
- */
17
- _bounds: Bounds;
18
14
  /**
19
15
  * Maximum radius of the ellipse
20
16
  */
@@ -31,22 +27,6 @@ export declare class Ellipse {
31
27
  * x/y scaling ratio for ellipse
32
28
  */
33
29
  ratio: Vector2d;
34
- /**
35
- * the internal rotation angle of the ellipse in radians
36
- */
37
- private _angle;
38
- /**
39
- * cached cosine of the current angle
40
- */
41
- private _cos;
42
- /**
43
- * cached sine of the current angle
44
- */
45
- private _sin;
46
- /**
47
- * cached polygon approximation, invalidated when shape changes
48
- */
49
- private _polygon;
50
30
  /**
51
31
  * the rotation angle of the ellipse in radians
52
32
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ellipse.d.ts","sourceRoot":"","sources":["../../src/geometries/ellipse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAgB,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAc,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC;;;GAGG;AACH,qBAAa,OAAO;IACnB;;OAEG;IACH,GAAG,EAAE,QAAQ,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,QAAQ,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAW;IAE3B;;OAEG;IACH,KAAK,EAAE,QAAQ,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAS;IAEvB;;OAEG;IACH,OAAO,CAAC,IAAI,CAAS;IAErB;;OAEG;IACH,OAAO,CAAC,IAAI,CAAS;IAErB;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAwB;IAExC;;OAEG;IACH,IAAI,KAAK,WAER;IACD,IAAI,KAAK,CAAC,KAAK,QAAA,EAMd;IAED;;OAEG;IACH,IAAI,SAAa;IAEjB;;;;;OAKG;gBACS,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE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,CAAC,QAAQ,SAAK;IA2BvB;;;OAGG;IACH,KAAK;CAaL;AAED,eAAO,MAAM,WAAW,kGAYtB,CAAC"}
@@ -5,9 +5,6 @@
5
5
  * Represents an observable point in 2D space.
6
6
  */
7
7
  export declare class ObservablePoint {
8
- private _callback;
9
- private _point;
10
- private _revoke;
11
8
  private callBackEnabled;
12
9
  type: "ObservablePoint";
13
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"observablePoint.d.ts","sourceRoot":"","sources":["../../src/geometries/observablePoint.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH;;GAEG;AACH,qBAAa,eAAe;IAC3B,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,OAAO,CAAa;IAE5B,OAAO,CAAC,eAAe,CAAiB;IAExC,IAAI,EAAE,iBAAiB,CAAC;IAExB;;;;;OAKG;gBACS,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI;IAuB/D;;;;;OAKG;IACH,GAAG,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI;IAShB;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI;IAQrB;;OAEG;IACH,IAAI,CAAC,IAQQ,MAAM,CANlB;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAElB;IAED;;OAEG;IACH,IAAI,CAAC,IAQQ,MAAM,CANlB;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAElB;IAED;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,IAAI;IAIhC;;;;;OAKG;IACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IACrC,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO;IAKvC;;;OAGG;IACH,KAAK;IAIL;;OAEG;IACH,MAAM;CAGN"}
1
+ {"version":3,"file":"observablePoint.d.ts","sourceRoot":"","sources":["../../src/geometries/observablePoint.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH;;GAEG;AACH,qBAAa,eAAe;IAiB3B,OAAO,CAAC,eAAe,CAAiB;IAExC,IAAI,EAAE,iBAAiB,CAAC;IAExB;;;;;OAKG;gBACS,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI;IAuB/D;;;;;OAKG;IACH,GAAG,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI;IAShB;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI;IAQrB;;OAEG;IACH,IAAI,CAAC,IAQQ,MAAM,CANlB;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAElB;IAED;;OAEG;IACH,IAAI,CAAC,IAQQ,MAAM,CANlB;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAElB;IAED;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,IAAI;IAIhC;;;;;OAKG;IACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IACrC,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO;IAKvC;;;OAGG;IACH,KAAK;IAIL;;OAEG;IACH,MAAM;CAGN"}
@@ -53,15 +53,6 @@ declare class Path2D {
53
53
  * when the Canvas renderer replays the path.
54
54
  */
55
55
  subPaths: number[];
56
- /**
57
- * whether the pen has been explicitly placed (via {@link moveTo}) since
58
- * the last {@link beginPath} — distinguishes "virgin path" from "pen
59
- * parked at (0, 0)" so {@link arc}/{@link ellipse}/{@link arcTo} know
60
- * whether to start fresh or connect from the current point (the native
61
- * Path2D behavior).
62
- * @ignore
63
- */
64
- private penMoved;
65
56
  /**
66
57
  * space between interpolated points for quadratic and bezier curve approx. in pixels.
67
58
  * @default 2
@@ -149,16 +140,6 @@ declare class Path2D {
149
140
  * path.lineTo(80, 20);
150
141
  */
151
142
  moveTo(x: number, y: number): void;
152
- /**
153
- * Start the outline of an arc/ellipse at (x, y): per the native Path2D
154
- * spec, when the path already has content the arc is CONNECTED to the
155
- * current point with a straight line — only a virgin path (no points, no
156
- * explicit moveTo) starts fresh. An unconditional moveTo here would
157
- * silently start a new sub-path, which fill() treats as a HOLE cut out
158
- * of the shape.
159
- * @ignore
160
- */
161
- private connectTo;
162
143
  /**
163
144
  * connects the last point in the current sub-path to the (x, y) coordinates with a straight line.
164
145
  * @param x - the x-axis coordinate of the line's end point.
@@ -1 +1 @@
1
- {"version":3,"file":"path2d.d.ts","sourceRoot":"","sources":["../../src/geometries/path2d.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAa,MAAM,YAAY,CAAC;AAGnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,cAAM,MAAM;IACX;;OAEG;IACH,MAAM,EAAE,KAAK,EAAE,CAAM;IAErB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAM;IAExB;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ,CAAS;IAEzB;;;OAGG;IACH,aAAa,SAAK;IAGlB,QAAQ,EAAE,KAAK,EAAE,CAAM;IAGvB,UAAU,EAAE,KAAK,CAAmB;IAGpC,OAAO,UAAS;gBAEJ,OAAO,CAAC,EAAE,MAAM;IAM5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,YAAY,CAAC,OAAO,EAAE,MAAM;IA0J5B;;;;;;;OAOG;IACH,SAAS;IAYT;;;;;;;;;;OAUG;IACH,SAAS;IA0BT;;;;;;;;;OASG;IACH,eAAe;IAsCf;;;;;;;;OAQG;IACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAM3B;;;;;;;;OAQG;IAC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;;;;;;;;;OAgBG;IACH,OAAO,CACN,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,aAAa,UAAQ;IAoEtB;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IA8B/D;;;;;;;;;;;;OAYG;IACH,aAAa,CACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM;IA2CV;;;;;;;;;;OAUG;IACH,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAUxD;;;;;;;;;;;OAWG;IACH,SAAS,CACR,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM;CAiBf;AAED,eAAe,MAAM,CAAC"}
@@ -33,18 +33,6 @@ export declare class Polygon {
33
33
  * a list of indices for all vertices composing this polygon
34
34
  */
35
35
  indices: number[];
36
- /**
37
- * The normals here are the direction of the normal for the `n`th edge of the polygon, relative
38
- * to the position of the `n`th point. If you want to draw an edge normal, you must first
39
- * translate to the position of the starting point.
40
- * @ignore
41
- */
42
- normals: Vector2d[];
43
- /**
44
- * The bounding rectangle for this shape
45
- * @ignore
46
- */
47
- private _bounds;
48
36
  /**
49
37
  * the shape type (used internally)
50
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../src/geometries/polygon.ts"],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,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,QAAQ,GAAG,OAAO;IA6B5C;;;;;OAKG;IACH,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,SAAI;IAWtB;;;;OAIG;IACH,MAAM,CAAC,CAAC,EAAE,QAAQ;IAIlB;;;;OAIG;IACH,MAAM;IAsDN;;;OAGG;IACH,UAAU;IAcV;;;OAGG;IACH,QAAQ;IAoCR;;;;;;;;;OASG;IACH,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IACxC,SAAS,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO;IAoBpC;;;;;;;;OAQG;IACH,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IACjC,KAAK,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI;IAgB7B;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IACvC,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO;IAmCnC;;;OAGG;IACH,SAAS;IAIT;;;OAGG;IACH,YAAY;IASZ;;;OAGG;IACH,KAAK;CAYL;AAED,eAAO,MAAM,WAAW,8FAYtB,CAAC"}
@@ -5,18 +5,6 @@ import { Polygon } from "./polygon.ts";
5
5
  * @category Geometry
6
6
  */
7
7
  export declare class RoundRect extends Polygon {
8
- /**
9
- * Corner radius.
10
- */
11
- _radius: number;
12
- /**
13
- * stored width
14
- */
15
- _width: number;
16
- /**
17
- * stored height
18
- */
19
- _height: number;
20
8
  /**
21
9
  * the shape type (used internally)
22
10
  */
@@ -69,12 +57,6 @@ export declare class RoundRect extends Polygon {
69
57
  */
70
58
  get radius(): number;
71
59
  set radius(value: number);
72
- /**
73
- * Rebuild polygon vertices to approximate the rounded corners.
74
- * Reuses existing Vector2d instances when the vertex count matches.
75
- * @ignore
76
- */
77
- _updateVertices(): void;
78
60
  /**
79
61
  * Set new dimensions for the rounded rectangle.
80
62
  * @param width - The new width.