Finer grain for tolerance
This commit is contained in:
parent
db04f293a9
commit
c0f7beb8cb
@ -27,6 +27,6 @@ export class Checkbox extends Field {
|
|||||||
|
|
||||||
export class ToleranceRange extends Range {
|
export class ToleranceRange extends Range {
|
||||||
constructor(name = 'Tolerance', id = 'tol') {
|
constructor(name = 'Tolerance', id = 'tol') {
|
||||||
super(name, id, 0.01, 1, 0.01, 0.2)
|
super(name, id, 0.001, 1, 0.001, 0.2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ export class RangeInput extends React.Component {
|
|||||||
for (min; min <= max; min += step) {
|
for (min; min <= max; min += step) {
|
||||||
arr.push(min)
|
arr.push(min)
|
||||||
}
|
}
|
||||||
return arr.map(val => Math.round(val * 1000) / 1000)
|
return arr.map(val => Math.round(val * 10000) / 10000)
|
||||||
}
|
}
|
||||||
|
|
||||||
get length() {
|
get length() {
|
||||||
|
Loading…
Reference in New Issue
Block a user