aboutsummaryrefslogtreecommitdiffstats
path: root/src/container.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-01-06 16:03:33 +0100
committerwout <wout@impinc.co.uk>2013-01-06 16:03:33 +0100
commit50e1e48708d86ac0392348190f36d6c0c557a1d6 (patch)
treee848b79ff78fe34cb27075591beaf33cc7ae0fc6 /src/container.js
parent5ff480264d9a62a77dde9568c8a5576b23b0298e (diff)
downloadsvg.js-50e1e48708d86ac0392348190f36d6c0c557a1d6.tar.gz
svg.js-50e1e48708d86ac0392348190f36d6c0c557a1d6.zip
Added patterns
Diffstat (limited to 'src/container.js')
-rw-r--r--src/container.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/container.js b/src/container.js
index 14ad570..a43ce75 100644
--- a/src/container.js
+++ b/src/container.js
@@ -101,10 +101,14 @@ SVG.Container = {
nested: function() {
return this.put(new SVG.Nested());
},
- // create element in defs
+ // Create gradient element in defs
gradient: function(type, block) {
return this.defs().gradient(type, block);
},
+ // Create pattern element in defs
+ pattern: function(width, height, block) {
+ return this.defs().pattern(width, height, block);
+ },
// Create masking element
mask: function() {
return this.defs().put(new SVG.Mask());