#104 jquery convert to javascript changes
parent
8de1746b58
commit
2ef57a31ce
|
@ -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]) + ' ';
|
||||
|
|
Loading…
Reference in New Issue