Loading src/components/controlComponents/paneCapture.vue +24 −9 Original line number Diff line number Diff line Loading @@ -283,9 +283,9 @@ export default { scanDeltaZ: "Medium", scanStyle: "Raster", scanStepSize: { x: parseInt(0.8 * this.$store.state.apiConfig.fov[0]), y: parseInt(0.8 * this.$store.state.apiConfig.fov[1]), z: 50 x: 0, y: 0, z: 0 }, scanSteps: { x: 3, Loading @@ -308,14 +308,13 @@ export default { }; }, captureActionUri: function() { return `http://${this.$store.state.host}:${ this.$store.state.port }/api/v2/actions/camera/capture`; return `${this.$store.getters.baseUri}/api/v2/actions/camera/capture`; }, pluginsUri: function() { return `http://${this.$store.state.host}:${ this.$store.state.port }/api/v2/plugins`; return `${this.$store.getters.baseUri}/api/v2/plugins`; }, settingsFovUri: function() { return `${this.$store.getters.baseUri}/api/v2/settings/fov`; }, basePayload: function() { var payload = {}; Loading Loading @@ -380,6 +379,7 @@ export default { mounted() { this.updateScanUri(); this.updateScanStepSize(); }, methods: { Loading Loading @@ -420,6 +420,21 @@ export default { }); }, updateScanStepSize: function() { axios .get(this.settingsFovUri) // Get a list of plugins .then(response => { this.scanStepSize = { x: parseInt(0.5 * response.data[0]), y: parseInt(0.5 * response.data[1]), z: 50 }; }) .catch(error => { this.modalError(error); // Let mixin handle error }); }, onScanSubmit: function() {}, onScanResponse: function(responseData) { Loading Loading
src/components/controlComponents/paneCapture.vue +24 −9 Original line number Diff line number Diff line Loading @@ -283,9 +283,9 @@ export default { scanDeltaZ: "Medium", scanStyle: "Raster", scanStepSize: { x: parseInt(0.8 * this.$store.state.apiConfig.fov[0]), y: parseInt(0.8 * this.$store.state.apiConfig.fov[1]), z: 50 x: 0, y: 0, z: 0 }, scanSteps: { x: 3, Loading @@ -308,14 +308,13 @@ export default { }; }, captureActionUri: function() { return `http://${this.$store.state.host}:${ this.$store.state.port }/api/v2/actions/camera/capture`; return `${this.$store.getters.baseUri}/api/v2/actions/camera/capture`; }, pluginsUri: function() { return `http://${this.$store.state.host}:${ this.$store.state.port }/api/v2/plugins`; return `${this.$store.getters.baseUri}/api/v2/plugins`; }, settingsFovUri: function() { return `${this.$store.getters.baseUri}/api/v2/settings/fov`; }, basePayload: function() { var payload = {}; Loading Loading @@ -380,6 +379,7 @@ export default { mounted() { this.updateScanUri(); this.updateScanStepSize(); }, methods: { Loading Loading @@ -420,6 +420,21 @@ export default { }); }, updateScanStepSize: function() { axios .get(this.settingsFovUri) // Get a list of plugins .then(response => { this.scanStepSize = { x: parseInt(0.5 * response.data[0]), y: parseInt(0.5 * response.data[1]), z: 50 }; }) .catch(error => { this.modalError(error); // Let mixin handle error }); }, onScanSubmit: function() {}, onScanResponse: function(responseData) { Loading