#103 attr changes

This commit is contained in:
Agriya Dev5
2021-05-22 18:44:18 +05:30
parent 7a3c2a0b58
commit 6e208f8285

View File

@@ -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');