diff options
author | Corentin J <corentinjule@gmail.com> | 2017-05-11 14:35:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-11 14:35:25 +0200 |
commit | 7c9ec3c9b08a2a66e5420c25add5cf97c8dd15d1 (patch) | |
tree | 5b2b3dd3e4a609dfac1c47ebf7180baee4e5fb1c | |
parent | 5f22d28f669d5697ce73d20b40fcf0a7179db86e (diff) | |
download | svg.js-7c9ec3c9b08a2a66e5420c25add5cf97c8dd15d1.tar.gz svg.js-7c9ec3c9b08a2a66e5420c25add5cf97c8dd15d1.zip |
Add animatable width & height
-rw-r--r-- | src/fx.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -858,6 +858,14 @@ SVG.extend(SVG.FX, { return this } + // Add animatable width +, width: function(width) { + return this.add('width', new SVG.Number(width)) + } + // Add animatable height +, height: function(height) { + return this.add('height', new SVG.Number(height)) + } // Add animatable plot , plot: function(a, b, c, d) { // Lines can be plotted with 4 arguments |