From 08a1c6b418db4cc1b0f8c3f4072e3c7775da874f Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Sun, 1 Mar 2015 19:21:10 +0100 Subject: [PATCH] Fix path group toSvg method. now respect current originX and originY --- src/shapes/path_group.class.js | 3 ++- test/unit/path_group.js | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/shapes/path_group.class.js b/src/shapes/path_group.class.js index 1b3781ea..f5dabad3 100644 --- a/src/shapes/path_group.class.js +++ b/src/shapes/path_group.class.js @@ -149,7 +149,8 @@ */ toSVG: function(reviver) { var objects = this.getObjects(), - translatePart = 'translate(' + this.left + ' ' + this.top + ')', + p = this.getPointByOrigin('left', 'top'), + translatePart = 'translate(' + p.x + ' ' + p.y + ')', markup = [ //jscs:disable validateIndentation '