feat: allow for more decimal places in move-to-input (#976)

This commit is contained in:
th33xitus 2022-07-26 18:20:42 +02:00 committed by GitHub
parent 8ab59b642a
commit 6f68709f21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,7 @@
:label="`[ ${label} ]`"
:suffix="suffix"
:disabled="disabled"
:step="step"
:readonly="readonly"
:error="!validate"
hide-details="auto"
@ -56,6 +57,9 @@ export default class MoveToInput extends Mixins(BaseMixin) {
@Prop({ type: Number, required: true })
declare readonly positionMin: number
@Prop({ type: Number, required: false, default: 1 })
declare readonly step: number
@Prop({ type: Boolean, required: false })
declare readonly disabled: boolean

View File

@ -21,6 +21,7 @@
:suffix="'X'"
:position-max="stepperXmax"
:position-min="stepperXmin"
:step="0.01"
:current-pos="gcodePositions.x"
:readonly="['printing'].includes(printer_state)"
:disabled="!xAxisHomed"
@ -34,6 +35,7 @@
:suffix="'Y'"
:position-max="stepperYmax"
:position-min="stepperYmin"
:step="0.01"
:current-pos="gcodePositions.y"
:readonly="['printing'].includes(printer_state)"
:disabled="!yAxisHomed"
@ -47,6 +49,7 @@
:suffix="'Z'"
:position-max="stepperZmax"
:position-min="stepperZmin"
:step="0.001"
:current-pos="gcodePositions.z"
:readonly="['printing'].includes(printer_state)"
:disabled="!zAxisHomed"