Search code examples
konvajs

What's the difference between `drawFunc` and `sceneFunc` in konvajs


I checked the Shape and the Line. They both have scensFunc, but Shape has a drawFunc parameter in constructor.

Is there difference between drawFunc and sceneFunc? Why Shape has a draw function object in constructor?


Solution

  • drawFunc is deprecated and renamed to sceneFunc. So just use sceneFunc.