Releases: melonjs/melonJS
Releases · melonjs/melonJS
v15.3.0
Added
- Renderer: new
scaleTargetthat allows to specify which HTML element to be used as reference when scaling the canvas (thanks @johnhyde)
Changed
- Application: world steps and rendering update are now done through a new global
TICKevent - Application: further "decoupling" of Application, Stage and State (see #1091)
- Renderable : faster implementation of the
tintgetter/setter, and Colorcopymethod
Fixed
- doc: fix the @name value of
state.DEFAULT(thanks @johnhyde) - doc: fix documentation for the
TMXUtilsnamespace - Renderer: fix potential memory leak in WebGL, where the renderer was not clearing the save/restore stack upon reset
- TypeScript : fix optional arguments typings for all renderers and Application constructor
v15.2.1
v15.2.0
v15.1.6
v15.1.5
- Container: fix child bounds not being recalculated when a child is added through the
addChildAt()method - Container: fix container not recursively updating child bounds when
enableChildBoundsUpdateis enabled - Renderable: fix floating coordinates mismatch by forcing a child
floatingproperty to false when added to a floating container - Renderable: fix the
isFloatinggetter to also return true when a renderable is added to nested floating containers - UI: fix initial UIBaseElement bound calculation when using nested UI containers
- UI: fix UIBaseElement container not propagating events to child objects by default
v15.1.4
v15.1.3
v15.1.2
v15.1.1
v15.1.0
Added
- Container: new
getRootAncestor()method that returns the root container's parent (aka World Container) - Renderer: new
toBlob(),toDataURL()andtoImageBitmap()methods added toCanvasTexture - Renderer: new
toBlob(),toDataURL()andtoImageBitmap()methods added to all Renderers - TMX: add a "patcheable" entry point to allow for a tiled inflate (zlib/gzip/zstd) plugin
- UI: new draggable feature for UIBaseElement (can be toggled on/off using
isDraggable)
Changed
- Application: the
sortOnproperty is now a proper getter/setter for the App World instancesortOnproperty - Plugin: the 2nd parameter of the
registermethod is now optional and will use the given plugin class name by default
Fixed
- Renderer: add missing export for the
CanvasTextureclass - UI: fix internal holdTimeout type to integer and properly reset value to -1 when a timer is cleared
- UI: UITextButton now properly use the given alpha value of the given background and hover color
- UI: cleaned-up the UITextButton implementation, and added proper documentation for UITextButton specific properties
- WebGL: fix a Type Error exception with the latest version of Safari when using OffscreenCanvas element as a texture source