Canvas Components, Controls and more!
ZIM 2.5 adds a zim.Ticker static class so that all ZIM updates are done in one createjs.Ticker. The ZIM classes and functions add to the zim.Ticker.list queue. If there are functions in the queue, zim will run them and then a single update after all functions have run. You can add your functions to the queue too with the zim.Ticker.add() static method. Setting zim.OPTIMIZE = false will cause the queue not to update the stage unless zim.Ticker.update is set to true. You can also force the Ticker to run an update regardless of whether a function is in the queue or optimize is true by calling zim.Ticker.always().
A cool addition to zim.move() and zim.animate() is that these now can sequence animations. You pass in an array of objects as the target rather than just one object. Then you set the sequence parameter to a time in ms. This will sequence the animations with an interval of the ms you set.
zim.drag() has been updated to include sliding the drag object after your release it (along with a dragDamp parameter). You can now set a surround parameter to make sure that the item being dragged stays outside the bound rect rather than inside the bound rect. You can also set the snap so it snaps back into bounds. A reg parameter has been added too so your drag can snap the registration of the object to your cursor location.
There are also the following miscellaneous updates:
ZIM is found at http://zimjs.com – go to the CDN section for links to code.