Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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