From ebf3dc52374159ebb64663a842f5704237934401 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sun, 11 Oct 2015 16:13:04 +0200 Subject: moved special handling of pattern/gradient transform to the corresponding class --- src/pattern.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pattern.js') diff --git a/src/pattern.js b/src/pattern.js index 2a5ead2..6bd3f1a 100644 --- a/src/pattern.js +++ b/src/pattern.js @@ -26,6 +26,12 @@ SVG.Pattern = SVG.invent({ , toString: function() { return this.fill() } + // custom attr to handle transform + , attr: function(a, b, c) { + if(a == 'transform') a = 'patternTransform' + return SVG.Container.prototype.attr.call(this, a, b, c) + } + } // Add parent method -- cgit v1.2.3