From 6e208f828500a9edede710598c02db4c9a665ba0 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Sat, 22 May 2021 18:44:18 +0530 Subject: [PATCH] #103 attr changes --- src/svgcanvas/selected-elem.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/svgcanvas/selected-elem.js b/src/svgcanvas/selected-elem.js index 93dd9742..39b3f472 100644 --- a/src/svgcanvas/selected-elem.js +++ b/src/svgcanvas/selected-elem.js @@ -735,8 +735,11 @@ export const convertToGroup = function (elem) { } else if (dataStorage.has($elem, 'symbol')) { elem = dataStorage.get($elem, 'symbol'); - ts = $elem.attr('transform'); - const pos = $elem.attr([ 'x', 'y' ]); + ts = $elem.getAttribute('transform'); + const pos = { + x: $elem.getAttribute('x'), + y: $elem.getAttribute('y') + }; const vb = elem.getAttribute('viewBox');