fixed a few bugs discovered with integration testing. added some performance tweaks

This commit is contained in:
Eric Rowell
2012-07-21 21:09:02 -07:00
parent f1cb695e1f
commit 781a2ebe60
5 changed files with 50 additions and 48 deletions

View File

@@ -93,6 +93,14 @@ Kinetic.Layer = Kinetic.Container.extend({
getContext: function() {
return this.canvas.context;
},
/**
* clear canvas tied to the layer
* @name clear
* @methodOf Kinetic.Layer.prototype
*/
clear: function() {
this.getCanvas().clear();
},
/**
* Creates a composite data URL. If MIME type is not
* specified, then "image/png" will result. For "image/jpeg", specify a quality