ui_migration bugfix(component) fix ministream add prop id and visibility stream add and remove
This commit is contained in:
parent
8aaddf6fb1
commit
22444af143
10 changed files with 94 additions and 15 deletions
|
|
@ -34,6 +34,7 @@ import axios from "axios";
|
|||
import ActionButton from "../../labThingsComponents/actionButton.vue";
|
||||
import positionControl from "./positionControl.vue";
|
||||
import autofocusControl from "./autofocusControl.vue";
|
||||
import { eventBus } from "../../../eventBus.js";
|
||||
|
||||
export default {
|
||||
name: "PaneControl",
|
||||
|
|
@ -61,8 +62,12 @@ export default {
|
|||
this.modalError("No image URI returned from capture task.");
|
||||
return;
|
||||
}
|
||||
// Emit flash capture stream animation
|
||||
eventBus.emit("globalFlashStream");
|
||||
|
||||
// To save the returned data, we make a virtual link and click it
|
||||
let imageResponse = await axios.get(imageUri, { responseType: "blob" });
|
||||
|
||||
const url = window.URL.createObjectURL(new Blob([imageResponse.data]));
|
||||
const link = document.createElement("a");
|
||||
link.href = url;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ export default {
|
|||
|
||||
data() {
|
||||
return {
|
||||
// This adds the parent name as value for prop streamId
|
||||
setStreamId: this.$options.name,
|
||||
};
|
||||
},
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
<CSMCalibrationSettings />
|
||||
</div>
|
||||
<div id="mini-stream">
|
||||
<miniStreamDisplay />
|
||||
<miniStreamDisplay :stream-id="setStreamId" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -28,6 +28,13 @@ export default {
|
|||
CSMCalibrationSettings,
|
||||
miniStreamDisplay,
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
// This adds the parent name as value for prop streamId
|
||||
setStreamId: this.$options.name,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
</div>
|
||||
|
||||
<div id="mini-stream">
|
||||
<miniStreamDisplay />
|
||||
<miniStreamDisplay :stream-id="setStreamId" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -41,6 +41,8 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
manualCameraSettings: [],
|
||||
// This adds the parent name as value for prop streamId
|
||||
setStreamId: this.$options.name,
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,8 @@ export default {
|
|||
lastStitchedImage: null,
|
||||
scanComplete: false,
|
||||
scan_name: "",
|
||||
setStreamId: "slideScan",
|
||||
// This adds the parent name as value for prop streamId
|
||||
setStreamId: this.$options.name,
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,6 @@ export default {
|
|||
|
||||
handleDoneResize: function () {
|
||||
// Recalculate size
|
||||
|
||||
this.recalculateSize();
|
||||
// Handle closed stream
|
||||
if (this.displaySize[0] == 0 && this.displaySize[1] == 0) {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@ export default {
|
|||
|
||||
data() {
|
||||
return {
|
||||
setStreamId: "view",
|
||||
// This adds the parent name as value for prop streamId
|
||||
setStreamId: this.$options.name,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue