You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
521 B
16 lines
521 B
|
4 months ago
|
export function fixArc(pathArray, allPathCommands, i) {
|
||
|
|
if (pathArray[i].length > 7) {
|
||
|
|
pathArray[i].shift();
|
||
|
|
var pi = pathArray[i];
|
||
|
|
// const ni = i + 1;
|
||
|
|
var ni = i;
|
||
|
|
while (pi.length) {
|
||
|
|
// if created multiple C:s, their original seg is saved
|
||
|
|
allPathCommands[i] = 'A';
|
||
|
|
// @ts-ignore
|
||
|
|
pathArray.splice((ni += 1), 0, ['C'].concat(pi.splice(0, 6)));
|
||
|
|
}
|
||
|
|
pathArray.splice(i, 1);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
//# sourceMappingURL=fix-arc.js.map
|