aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin J <corentinjule@gmail.com>2017-05-11 14:35:25 +0200
committerGitHub <noreply@github.com>2017-05-11 14:35:25 +0200
commit7c9ec3c9b08a2a66e5420c25add5cf97c8dd15d1 (patch)
tree5b2b3dd3e4a609dfac1c47ebf7180baee4e5fb1c
parent5f22d28f669d5697ce73d20b40fcf0a7179db86e (diff)
downloadsvg.js-7c9ec3c9b08a2a66e5420c25add5cf97c8dd15d1.tar.gz
svg.js-7c9ec3c9b08a2a66e5420c25add5cf97c8dd15d1.zip
Add animatable width & height
-rw-r--r--src/fx.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fx.js b/src/fx.js
index 365273e..64bc030 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -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