gSkinner - Home

EaselJS v0.3 Released!

Posted on February 8, 2011 by Grant Skinner

I’m very happy to announce that version 0.3 of EaselJS has been released. Even better, it’s now on GitHub, so you can fork it to your hearts content.

This version makes it even easier to build compelling content using the HTML5 canvas element and javascript. It has a rewritten rendering engine with support for skewing, an improved and optimized interaction model (5-10x faster), and a slew of other new features and fixes. Here’s the whole list, in no particular order:

  • renamed Tick to Ticker
  • adding a listener to Ticker twice will now move it to the end of the listener list
  • added Ticker.getMeasuredFPS()
  • added Ticker.setFPS()
  • renamed Stage.tick to Stage.update and made Stage.tick point to Stage.update
  • made the pauseable param “true” by default on Ticker.addListener()
  • added Stage.toDataURL(backgroundColor, mimeType)
  • renamed Rectangle.w/h to width/height
  • improvements to commenting and documentation
  • formalized inheritance model to make code more readable
  • changed color to null instead of 0 in Shadow.IDENTITY
  • fixed an error with simple sprite sheets that weren’t set to loop
  • implemented “tiny” instructions for Graphics. (ex. myGraphics.f(“#0FF”).c(x,y,r) )
  • fixed problems with Graphics.clone()
  • fixed bug with passing instructions to a Graphics object constructor
  • complete rewrite of the render engine to be cleaner and more flexible
  • added .decompose() method to Matrix2D
  • added .skew() method to Matrix2D
  • added .skewX/Y on DisplayObject
  • added SpriteSheetUtils.extractFrame(spriteSheet,frame) method
  • added basic multi-line support for Text
  • added DisplayObject.suppressCrossDomainErrors property
  • complete rewrite of the hit testing system to be cleaner and run 5-10x faster
  • improved the interaction model:
    • added .onPress, .onClick callbacks on DisplayObject
    • removed .mouseChildren from Container
    • made .mouseEnabled true by default
    • added .onMouseDown, .onMouseUp, and .onMouseMove callbacks on Stage
    • added MouseEvent
  • Stage.getObjectsUnderPoint() has been moved to Container
  • added Container.contains(child) method
  • added DisplayObject.compositeOperation
  • added appendProperties() and prependProperties methods to Matrix2D
  • added DisplayObject.hitTest() method
  • added stage.snapToPixelEnabled and displayObject.snapToPixel
  • added DisplayObject.updateCache()
  • renamed minified file from easeljs.js to easel.js
  • Re-factored directory layout



Check out EaselJS.com for more info or to grab the latest build.

Follow @gskinner on Twitter for more news and views on interactive media.
8 Comments

[...] Export SWF Animation as … EaselJS v0.3 Released! Update on EaselJS v0.3 EaselJS v0.2 Released for HTML… Pirates Love Daisies HTML5 Gam… Easel JS [...]

Posted by: gskinner.com: gBlog: Zoë… on Feb 8, 2011 10:09am URL: http://gskinner.com/blog/archives/2011/02/zoe…

[...] This post was mentioned on Twitter by Grant Skinner, Mike Chambers, 深津 貴之, Fabian Nöthe, Przemyslaw Pluta and others. Przemyslaw Pluta said: EaselJS v0.3 Released - http://j.mp/gphR03 [...]

Posted by: Tweets that mention gskin… on Feb 8, 2011 10:48am URL: http://topsy.com/gskinner.com/blog/archives/2…

very cool. I work on an online american football simulation, and we don't have a game viewer yet. It's all text.

Looks very promising as a potential game viewer. I'll start reading the docs.

Posted by: notque on Feb 8, 2011 1:33pm URL: http://deeproute.com

[...] Read more here Posted in Uncategorized , interesting, science, tech | No Comments » [...]

Posted by: EaselJS v0.3 Released &la… on Feb 8, 2011 2:01pm URL: http://interesting.rk.net.nz/?p=21156

[...] HTML5 Canvas to IE via Flash) Ace 0.1.5 – now comes with “Coffeescript Mode” EaselJS 0.3 jsgamebench [...]

Posted by: JavaScript Magazine Blog … on Feb 11, 2011 3:15am URL: http://jsmag.com/blog/2011/02/isotope-hash-ba…

Hi Grant,

i see now the LIB is much slower.
I don't understand why deprecate mouseChildren. It was good to take control only on children and not on parent. This is slowing much the API.
Anyway good work on txt multiline.

Greetings,
Gekko

Posted by: Gekko on Feb 14, 2011 10:25am URL: http://www.gekkotech.net

Hi Grant

i think there is a bug on the shadow, that get all much slower.
It don't set to 0 or null the next object initialized, and all objects got the shadow of the only object with it.

Proud to help,
Gekko.

Posted by: Gekko on Feb 14, 2011 11:08am URL: http://www.gekkotech.net

[...] the release of EaselJS v0.3 we’re also releasing the first version of Zoë, a free Adobe AIR application for exporting [...]

Posted by: Zoë: Export SWF Animatio… on Jun 7, 2011 12:52am URL: http://www.publicclass.net/2011/06/07/zoe-exp…

Leave a Reply

Your email is never published nor shared.




You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">