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:
parent
213c82df81
commit
ebafd10582
2 changed files with 53 additions and 57 deletions
|
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue