new Canvas class to decouple layer and canvas, providing more flexibility. drawing operations now require a canvas object rather than an optional layer which contained a canvas. fixed some transformation issues introduced with a pull request that I pulled in last week

This commit is contained in:
Eric Rowell
2012-07-18 23:28:45 -07:00
parent 20adf7e036
commit d8bbbf6353
24 changed files with 548 additions and 555 deletions

View File

@@ -14,8 +14,7 @@ Kinetic.Path = Kinetic.Shape.extend({
this.dataArray = [];
var that = this;
config.drawFunc = function() {
var context = this.getContext();
config.drawFunc = function(context) {
var ca = this.dataArray;
// context position
context.beginPath();
@@ -56,8 +55,8 @@ Kinetic.Path = Kinetic.Shape.extend({
break;
}
}
this.fill();
this.stroke();
this.fill(context);
this.stroke(context);
};
// call super constructor
this._super(config);