mirror of
https://github.com/konvajs/konva.git
synced 2025-10-08 00:14:23 +08:00
added setDrawFunc() method to Shape so that you can dynamically change the drawing function. added new unit test
This commit is contained in:
7
dist/kinetic-core.js
vendored
7
dist/kinetic-core.js
vendored
@@ -1971,6 +1971,13 @@ Kinetic.Shape.prototype = {
|
||||
getStrokeWidth: function() {
|
||||
return this.strokeWidth;
|
||||
},
|
||||
/**
|
||||
* set draw function
|
||||
* @param {Function} func drawing function
|
||||
*/
|
||||
setDrawFunc: function(func) {
|
||||
this.drawFunc = func;
|
||||
},
|
||||
/**
|
||||
* draw shape
|
||||
* @param {Layer} layer Layer that the shape will be drawn on
|
||||
|
2
dist/kinetic-core.min.js
vendored
2
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user