#104 jquery convert to javascript changes

This commit is contained in:
Agriya Dev5
2021-05-24 16:05:08 +05:30
parent 8de1746b58
commit 2ef57a31ce

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]) + ' ';