diff options
Diffstat (limited to 'src/gradient.js')
-rw-r--r-- | src/gradient.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gradient.js b/src/gradient.js index 6a2155e..f98a0b0 100644 --- a/src/gradient.js +++ b/src/gradient.js @@ -64,6 +64,15 @@ SVG.extend(SVG.Defs, { }) +// +SVG.extend(SVG.Container, { + // Create gradient element in defs + gradient: function(type, block) { + return this.defs().gradient(type, block) + } + +}) + SVG.Stop = function(stop) { this.constructor.call(this, SVG.create('stop')) |