fix supports on belt. code styling

This commit is contained in:
Stewart Allen 2022-02-19 20:01:10 -05:00
commit 2af7b4cef0
5 changed files with 40 additions and 49 deletions

View file

@ -141,7 +141,7 @@ async function slice(points, options = {}) {
let bucketCount = options.bucket !== false ?
Math.min(bucketMax, Math.max(1, Math.floor(zSpan / zSpanAvg))) : 1;
zScale = 1 / (zSpan / bucketCount);
zScale = 1 / (zMax / bucketCount);
if (debug) {
console.log({
@ -191,7 +191,6 @@ async function slice(points, options = {}) {
// fallback if we can't partition point space
if (bucketCount === 1) {
buckets = [{ points, slices: [] }];
console.log({fallback: buckets});
}
// create buckets data structure