mirror of
https://github.com/konvajs/konva.git
synced 2025-09-20 20:08:00 +08:00
you can now pass in custom drawFuncs and drawHitFuncs via shape constructors
This commit is contained in:
@@ -27,9 +27,10 @@ Kinetic.TextPath.prototype = {
|
||||
this.dataArray = [];
|
||||
var that = this;
|
||||
|
||||
config.drawFunc = this.drawFunc;
|
||||
// call super constructor
|
||||
Kinetic.Shape.call(this, config);
|
||||
this._setDrawFuncs();
|
||||
|
||||
this.dataArray = Kinetic.Path.parsePathData(this.attrs.data);
|
||||
this.on('dataChange', function() {
|
||||
that.dataArray = Kinetic.Path.parsePathData(this.attrs.data);
|
||||
|
Reference in New Issue
Block a user