diff --git a/src/components/panels/ControlPanel.vue b/src/components/panels/ControlPanel.vue index 17d80f61..d2bd3b9a 100644 --- a/src/components/panels/ControlPanel.vue +++ b/src/components/panels/ControlPanel.vue @@ -22,39 +22,27 @@ - -100 - -10 - -1 + -{{ steps }} X - +1 - +10 - +100 + +{{ steps }} - -100 - -10 - -1 + -{{ steps }} Y - +1 - +10 - +100 + +{{ steps }} - -25 - -1 - -0.1 + -{{ steps }} Z - +0.1 - +1 - +25 + {{ steps }} @@ -88,11 +76,33 @@ printer_state: state => state.printer.print_stats.state, feedrateXY: state => state.gui.dashboard.control.feedrateXY, + stepsXY: state => state.gui.dashboard.control.stepsXY, feedrateZ: state => state.gui.dashboard.control.feedrateZ, + stepsZ: state => state.gui.dashboard.control.stepsZ, }), ...mapGetters([ 'printer/getMacros', - ]) + ]), + stepsXYsorted: { + get() { + return [...this.$store.state.gui.dashboard.control.stepsXY].sort(function(a, b) { return b-a }) + } + }, + stepsXYsortedReverse: { + get() { + return [...this.$store.state.gui.dashboard.control.stepsXY].sort(function(a, b) { return a-b }) + } + }, + stepsZsorted: { + get() { + return [...this.$store.state.gui.dashboard.control.stepsZ].sort(function(a, b) { return b-a }) + } + }, + stepsZsortedReverse: { + get() { + return [...this.$store.state.gui.dashboard.control.stepsZ].sort(function(a, b) { return a-b }) + } + } }, methods: { doHome() { @@ -141,6 +151,6 @@ this.$store.commit('socket/addLoading', { name: 'macro_'+gcode }); Vue.prototype.$socket.sendObj('printer.gcode.script', { script: gcode }, "socket/removeLoading", { name: 'macro_'+gcode }); }, - } + }, } \ No newline at end of file diff --git a/src/components/panels/ExtruderPanel.vue b/src/components/panels/ExtruderPanel.vue index 320adf61..640d7150 100644 --- a/src/components/panels/ExtruderPanel.vue +++ b/src/components/panels/ExtruderPanel.vue @@ -9,13 +9,13 @@ Feed amount in mm: - {{ amount }} + {{ amount }} Feedrate in mm/s: - {{ rate }} + {{ rate }} @@ -41,8 +41,6 @@ return { feedAmount: 25, feedrate: 5, - feedAmounts: [ 100, 25, 10, 5, 1 ], - feedrates: [ 60, 30, 15, 5, 1 ], } }, computed: { @@ -50,11 +48,24 @@ loadings: state => state.socket.loadings, printer_state: state => state.printer.print_stats.state, extruder: state => state.printer.extruder, - config: state => state.printer.configfile.config + config: state => state.printer.configfile.config, + + feedamounts: state => state.gui.dashboard.extruder.feedamounts, + feedrates: state => state.gui.dashboard.extruder.feedrates, }), ...mapGetters([ 'printer/getExtrudePossible', ]), + feedamountsSorted: { + get() { + return [...this.feedamounts].sort((a,b) => { return b-a }) + } + }, + feedratesSorted: { + get() { + return [...this.feedrates].sort((a,b) => { return b-a }) + } + } }, methods: { setFeedAmount(value) { diff --git a/src/components/panels/Settings/ControlPanel.vue b/src/components/panels/Settings/ControlPanel.vue index 8f8363f3..caa22eeb 100644 --- a/src/components/panels/Settings/ControlPanel.vue +++ b/src/components/panels/Settings/ControlPanel.vue @@ -5,27 +5,129 @@ - - - - mdi-tuneControl & Extruder - - - - - - - + + + + + mdi-tuneControl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + mdi-tuneExtruder + + + + + + + + + + + + + + + + + +