add z top/bottom limit overrides in pocket and trace

This commit is contained in:
Stewart Allen 2025-02-08 18:59:33 -05:00
commit 38ae2a0f3a
5 changed files with 47 additions and 13 deletions

View file

@ -162,7 +162,9 @@ function inRange(value, min, max) {
function round(v, zeros) {
if (typeof v === 'object') {
for (let [key,val] of Object.entries(v)) {
v[key] = round(val);
if (typeof val === 'number') {
v[key] = round(val, zeros);
}
}
return v;
}