Skip to content

Commit

Permalink
feat: allow for more decimal places in move-to-input (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
dw-0 authored Jul 26, 2022
1 parent 8ab59b6 commit 6f68709
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/inputs/MoveToInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:label="`[ ${label} ]`"
:suffix="suffix"
:disabled="disabled"
:step="step"
:readonly="readonly"
:error="!validate"
hide-details="auto"
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/components/panels/ToolheadControls/MoveToControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 6f68709

Please sign in to comment.