added shadow support. changed fillStroke method to shadowFillStroke

This commit is contained in:
Eric Rowell
2012-05-08 23:06:13 -07:00
parent 622278a510
commit a27741ce03
14 changed files with 306 additions and 83 deletions

View File

@@ -643,9 +643,10 @@ Kinetic.Node.prototype = {
* @param {Number} x
* @param {Number} y
*/
setCenterOffset: function(x, y) {
this.attrs.centerOffset.x = x;
this.attrs.centerOffset.y = y;
setCenterOffset: function() {
var pos = Kinetic.GlobalObject._getPoint(arguments);
this.attrs.centerOffset.x = pos.x;
this.attrs.centerOffset.y = pos.y;
},
/**
* get center offset