Releases: melonjs/melonJS
Releases · melonjs/melonJS
v15.3.0
Added
- Renderer: new
scaleTarget
that 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
TICK
event - Application: further "decoupling" of Application, Stage and State (see #1091)
- Renderable : faster implementation of the
tint
getter/setter, and Colorcopy
method
Fixed
- doc: fix the @name value of
state.DEFAULT
(thanks @johnhyde) - doc: fix documentation for the
TMXUtils
namespace - 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
enableChildBoundsUpdate
is enabled - Renderable: fix floating coordinates mismatch by forcing a child
floating
property to false when added to a floating container - Renderable: fix the
isFloating
getter 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
sortOn
property is now a proper getter/setter for the App World instancesortOn
property - Plugin: the 2nd parameter of the
register
method is now optional and will use the given plugin class name by default
Fixed
- Renderer: add missing export for the
CanvasTexture
class - 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