add z top/bottom limit overrides in pocket and trace
This commit is contained in:
parent
b5ebddebf4
commit
38ae2a0f3a
5 changed files with 47 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue