From 7c9ec3c9b08a2a66e5420c25add5cf97c8dd15d1 Mon Sep 17 00:00:00 2001 From: Corentin J Date: Thu, 11 May 2017 14:35:25 +0200 Subject: Add animatable width & height --- src/fx.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 -- cgit v1.2.3