Cocoon 2.2 Update

We have pushed another Cocoon update to the cloud with some bugfixes and new features, check them out.

Canvas+ improvements

  • Added support for Cookies in Android XHR.
  • window.location.href = URL to work.
  • Made getAttribute to return null if the attribute is not found. Previously it returned an empty string.
  • Improved XHR related error messages.
  • Added postMessage support to window.
  • Support for the anchor tag/element.
  • Added “hasAttribute” and “classList” to every node.
  • Added search to location.
  • Added JSON support for XHR connections and fixed a bug that was passing “undefined” to user and password in XHR open commands (did break connections in Android with JQuery).
  • Added minor modifications to make Canvas+ more JQuery and Construct2 (non CocoonJS export) friendly.
  • Added srcElement to every event instance.
  • Added DOMParser, querySelector and querySelectorAll.
  • Added getElementsByClassName.

Canvas+ extensions

  • Added secure text option for the text dialog
  • When a canvas object is disposed from javascript, dispose the context too.
  • Added XHR Dispose.
  • Only allow input capture on canvas and image HTML Elements.

Canvas+ bug fixes

  • Store vertexAttribPointerData in the WebGL defender. These fixes some conflicts with canvas2d and wangle renderer (specially on Pixi V3).

1 Comment Cocoon 2.2 Update

  1. avatarStephan Fischer

    Hello,

    i have tried the new version 2.2 of CocoonJS. But i missing the scale setting in the settings menu.

    Before the update i could change the scale mode “aspect to fit” or “aspect to fill” for the games. Same settings are in the online project compiler. But now this feature is totally missing.

    Can you help me, how to scale now the games right?

    Best regards
    Stephan

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *