mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
fixed a few bugs discovered with integration testing. added some performance tweaks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user