Skip to content
Snippets Groups Projects
Commit 3f622f6c authored by Alexander Rose's avatar Alexander Rose
Browse files

Merge branch 'master' of https://github.com/molstar/molstar

parents 0d9a6637 dacc6a9c
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,7 @@ export namespace ArrayEncoding { ...@@ -172,7 +172,7 @@ export namespace ArrayEncoding {
for (let i = 0, n = data.length; i < n; i++) { for (let i = 0, n = data.length; i < n; i++) {
const v = data[i]; const v = data[i];
if (v <= min) output[i] = 0; if (v <= min) output[i] = 0;
else if (v >= max) output[i] = numSteps; else if (v >= max) output[i] = numSteps - 1;
else output[i] = (Math.round((v - min) / delta)) | 0; else output[i] = (Math.round((v - min) / delta)) | 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment