summaryrefslogtreecommitdiffstats
path: root/src/gradient.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-06-09 11:37:26 +0100
committerwout <wout@impinc.co.uk>2013-06-09 11:37:26 +0100
commit8f03d84e43681ecca20ac028071e51a2e2bbc0c8 (patch)
treef5c11dc6c429e8459c20731ba775fa6ca794400f /src/gradient.js
parentec75128ec31aa055aca2ae7f95ad4f5cf38d12e0 (diff)
downloadsvg.js-8f03d84e43681ecca20ac028071e51a2e2bbc0c8.tar.gz
svg.js-8f03d84e43681ecca20ac028071e51a2e2bbc0c8.zip
Added deep traversing, reorganizd modules
Diffstat (limited to 'src/gradient.js')
-rw-r--r--src/gradient.js9
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'))