#104 jquery convert to javascript changes
This commit is contained in:
@@ -719,7 +719,7 @@ export const getBBox = function (elem) {
|
|||||||
export const getPathDFromSegments = function (pathSegments) {
|
export const getPathDFromSegments = function (pathSegments) {
|
||||||
let d = '';
|
let d = '';
|
||||||
|
|
||||||
$.each(pathSegments, function (j, [ singleChar, pts ]) {
|
pathSegments.forEach(function([ singleChar, pts ], _j){
|
||||||
d += singleChar;
|
d += singleChar;
|
||||||
for (let i = 0; i < pts.length; i += 2) {
|
for (let i = 0; i < pts.length; i += 2) {
|
||||||
d += (pts[i] + ',' + pts[i + 1]) + ' ';
|
d += (pts[i] + ',' + pts[i + 1]) + ' ';
|
||||||
|
|||||||
Reference in New Issue
Block a user