mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 02:37:59 +08:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user