Releases: melonjs/melonJS
Releases Β· melonjs/melonJS
v17.4.0
Added
- Renderer: new
lineJoin
property to set the line join style (only support "round" for now in WebGL mode) - Renderer: add support for line thickness for
strokePolygon
andstrokeRect
operations in WebGL
Changed
- Chore: Update to TypeScript 5.5
Fixed
- Renderer: fix
fillEllipse()
method in WebGL mode (that was stroking the ellipse instead) - TypeScript: fix most (if not all) missing declarations
v17.3.0
Added
- Renderer: add support for line thickness when using
strokeLine()
in WebGL
Changed
- Renderer: the
setLineWidth()
method is now deprecated and replaced by alineWidth
class property
Fixed
- Renderer: fix animation when using multi-texture atlas in WebGL mode
- TMX: fix tsx file type import when using a React / Vue build step (thanks @customautosys)
- Typedef: fix missing definition for
video.init()
settings parameter, andApplication
constructor parameter
v17.2.0
Added
- Audio: add missing optional id parameter to 3D / Spatial audio methods
- Core: add platform detection if running as a standalone web app
- Loader: add missing
unload
implementation for font assets
Fixed
- Loader: properly return an error when attempting to load FontFace assets on non-browser platforms
- Renderer: fix a regression when a global canvas is available (e.g. webapp adapter for wechat)
- Renderer: fix a regression when forcing WebGL1 rendering mode (leading to an exception)
- Renderer: fix a regression when using the canvas rendering mode where antialias setting was not being applied on cached tinted elements
v17.1.0
Added
- Audio: added/exposed 3D Spatial Audio method (
stereo()
,position()
,orientation()
andpanner()
) - Loader: image resources can now take an array of
src
urls with different format (preparing for later usage) - Math: added a
isPowerOfFour()
method - Renderer: new
renderTarget
property specifying the defaultCanvasRenderTarget
to use when rendering
Changed
- Renderer:
CanvasTexture
is now deprecated and replaced by a newCanvasRenderTarget
class
Fixed
- Core: prevent multiple temporary canvas creation when calling
isWebGLSupported
multiple times
v17.0.0
Added
- Sprite: add support for aseprite texture atlas (including animation)
- Atlas:
createSpritefromAnim
parameter is now optional, and if not defined will use all defined index in the corresponding atlas - Loader: new
setOptions
method that allows specifying custom settings to be applied to fetch requests (crossOrigin, withCredentials, etc..)
Changed
- Loader: loader settings such as
crossOrigin
andwithCredentials
are now deprecated and have to be set through thesetOptions
method
Fixed
- Doc: fix hyperlinks to source code within documentation (thanks @Waltibaba)
- Loader: fix settings for the fetch request not being applied in ES6 builds (thanks @B0sh)
v16.1.3
v16.1.2
v16.1.1
v16.1.0
Added
- Loader: add support for loading/preloading of HTMLVideoElement
- Loader: add optional
autoplay
andloop
parameters when[pre]loading
audio and video assets (false
by default) - Sprite: HTMLVideoElement can now be passed as a source when creating Sprite object
16.0.0
Added
- Path2d: preliminary SVG path parsing for the Path2D class (WIP)
Changed
- Chore: update to npm 10, Node.js 20 and friends
- loader: replaced XHR by Fetch for assets preloading (thanks @Edwardscb)
- Renderer: fix
toBlob
,toDataURL
andtoImageBitmap
method signature to better match with the W3C API