Canvas+ Plugin 2.2 Update

We have updated the Canvas+plugin version (for both iOS and Android)  with some bugfixes and new features.

To get this new features you just need to compile with the latest Cocoon version in the cloud.

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).

Cordova related

  • Added support for Cordova online/offline events.

Hope you enjoy this new Canvas+ version!

3 Comments Canvas+ Plugin 2.2 Update

  1. Roman

    I use Construct2, will the cocoonjs plugin work with this canvas?
    What version of Cordova will the compiler support? Hope to see your new web soon.

    Reply

Leave a Reply

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