fix slicing increment bug (looked like a union bug but wasn't) that caused slice on flat. inline outline code

This commit is contained in:
Stewart Allen 2020-11-04 15:15:58 -05:00
commit ebafd10582
2 changed files with 53 additions and 57 deletions

View file

@ -181,7 +181,7 @@
}
let znorm = z.toFixed(5),
flatoff = opt.flatoff || 0.007,
flatoff = opt.flatoff || 0.01,
onflat = this.zFlat[znorm],
phash = {},
lines = [],
@ -282,7 +282,7 @@
array.push(opt.down ? zmax : zmin);
}
return array;
return array.map(v => parseFloat(v.toFixed(2)));
}
}