How to add gradient defs to SVG element? Pls help!
I'm a newer to ExtJs, now I perform a task to add SVG graphics to web using ExtJs. I use Ext.draw.Sprite to present SVG item ,and it works fine.
Now I need to draw a sprite with gradient, and i noticed Ext.draw.surface has an interface named addGradient, unfortunately i found it is a empty function. although I also noticed that Ext.draw.engine.Svg has an same interface and fully implemented, but i don't know how to call it directly, or is there any other ways to add gradient defs to web? Please help, any effort is appreciate!