diff options
author | wout <wout@impinc.co.uk> | 2012-12-22 12:53:11 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-22 12:53:11 +0100 |
commit | 41c12fb60b9ba2afbdaca5a445a7af59d2bccd5a (patch) | |
tree | 5bf794377901410fa0a061a99038a865974fffea /src/container.js | |
parent | 740392ee6c756b1d794fa60cb991e70ca4bbb558 (diff) | |
download | svg.js-41c12fb60b9ba2afbdaca5a445a7af59d2bccd5a.tar.gz svg.js-41c12fb60b9ba2afbdaca5a445a7af59d2bccd5a.zip |
Added gradient
Diffstat (limited to 'src/container.js')
-rw-r--r-- | src/container.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/container.js b/src/container.js index 9107fbd..35d80a4 100644 --- a/src/container.js +++ b/src/container.js @@ -105,10 +105,15 @@ SVG.Container = { return this.place(new SVG.Text(), v); }, + gradient: function(t, b) { + return this.defs().gradient(t, b); + }, + place: function(e, v) { if (v != null) { e.move(v.x || 0, v.y || 0); + if (v.width != null && v.height != null) e.size(v.width, v.height); |