#104 jquery convert to javascript changes

master
Agriya Dev5 2021-05-24 16:05:08 +05:30
parent 8de1746b58
commit 2ef57a31ce
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ export const getBBox = function (elem) {
export const getPathDFromSegments = function (pathSegments) {
let d = '';
$.each(pathSegments, function (j, [ singleChar, pts ]) {
pathSegments.forEach(function([ singleChar, pts ], _j){
d += singleChar;
for (let i = 0; i < pts.length; i += 2) {
d += (pts[i] + ',' + pts[i + 1]) + ' ';