From 2ef57a31cee0335fa495485795870fe65a7b75d3 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Mon, 24 May 2021 16:05:08 +0530 Subject: [PATCH] #104 jquery convert to javascript changes --- src/svgcanvas/utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svgcanvas/utilities.js b/src/svgcanvas/utilities.js index 41448556..ce81325a 100644 --- a/src/svgcanvas/utilities.js +++ b/src/svgcanvas/utilities.js @@ -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]) + ' ';