#103 attr changes

master
Agriya Dev5 2021-05-22 18:44:18 +05:30
parent 7a3c2a0b58
commit 6e208f8285
1 changed files with 5 additions and 2 deletions

View File

@ -735,8 +735,11 @@ export const convertToGroup = function (elem) {
} else if (dataStorage.has($elem, 'symbol')) { } else if (dataStorage.has($elem, 'symbol')) {
elem = dataStorage.get($elem, 'symbol'); elem = dataStorage.get($elem, 'symbol');
ts = $elem.attr('transform'); ts = $elem.getAttribute('transform');
const pos = $elem.attr([ 'x', 'y' ]); const pos = {
x: $elem.getAttribute('x'),
y: $elem.getAttribute('y')
};
const vb = elem.getAttribute('viewBox'); const vb = elem.getAttribute('viewBox');