Skip to content

Releases: melonjs/melonJS

v15.3.0

23 May 07:27
Compare
Choose a tag to compare

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 Color copy 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

14 May 02:39
Compare
Choose a tag to compare

Fixed

  • TMX: fix a regression with the inflate patch entry point

v15.2.0

12 May 08:31
Compare
Choose a tag to compare

Changed

  • Plugin: the Base plugin class is now deprecated and replaced by BasePlugin (Base is just an alias now)

Fixed

  • Typescript: fix typing for the utils and plugin API
  • Utils: fix "namespace" es6 declaration and export

v15.1.6

10 May 01:01
Compare
Choose a tag to compare
  • TypeScript: fix typings for methods taking a renderable as argument, by enumerating all different class types

v15.1.5

05 May 08:20
Compare
Choose a tag to compare
  • 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

26 Apr 10:46
Compare
Choose a tag to compare

Fixed

  • Core: fix a regression with OffscreenCanvas support detection
  • Doc: fix broken hyperlinks in the audio documentation
  • TypeScript: fix documentation and typings for the loader API (thanks @edmundg)

v15.1.3

24 Apr 04:30
Compare
Choose a tag to compare
  • WebGL: fix a crash when creating/uploading a texture on browser(s) not supporting OffscreenCanvas

v15.1.2

24 Apr 04:22
Compare
Choose a tag to compare
  • Core: fix detection of OffscreenCanvas support by browser (fix a crash with Waterfront, thanks @Fr0st for reporting it)

v15.1.1

10 Apr 03:33
Compare
Choose a tag to compare

Fixed

  • Container: fix a regression when creating a container with physic bodies, before adding it to the main world container, would throw an exception

v15.1.0

07 Apr 00:11
Compare
Choose a tag to compare

Added

  • Container: new getRootAncestor() method that returns the root container's parent (aka World Container)
  • Renderer: new toBlob(), toDataURL() and toImageBitmap() methods added to CanvasTexture
  • Renderer: new toBlob(), toDataURL() and toImageBitmap() 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 instance sortOn 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