This is the ExtJS Shape Class :
Ext.define('Ext.chart.Shape', {
singleton: true,
circle: function (surface, opts) {
return surface.add(Ext.apply({
type: 'circle',
x: opts.x,
y: opts.y,
stroke: null,
radius: opts.radius
}, opts));
},
...
});
I want to add a method to this class. For instance:
myCircle: function (surface, opts) {
return ...
},
How can i do this?
source
share