|
@@ -61,9 +61,33 @@
|
|
|
|
|
|
<div class="spacer"/>
|
|
|
|
|
|
+ <div ref="zoom_annotation"
|
|
|
+ class="image"
|
|
|
+ title="zoom bounding box (X)"
|
|
|
+ :class="{active: interaction === 'zoom-box' || zoomBox}"
|
|
|
+ @click="$emit(zoomBox ? 'unzoom' : 'interaction', 'zoom-box')">
|
|
|
+ <img alt="zoom bounding box" src="@/assets/icons/codescan.svg">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div ref="zoom_prev_annotation"
|
|
|
+ class="image"
|
|
|
+ title="zoom previous bounding box (C)"
|
|
|
+ @click="$emit('prevzoom', true)">
|
|
|
+ <img alt="zoom previous bounding box" src="@/assets/icons/chevron-left.svg">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div ref="zoom_next_annotation"
|
|
|
+ class="image"
|
|
|
+ title="zoom next bounding box (V)"
|
|
|
+ @click="$emit('nextzoom', true)">
|
|
|
+ <img alt="zoom next bounding box" src="@/assets/icons/chevron-right.svg">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="spacer"/>
|
|
|
+
|
|
|
<div ref="show_user_annotations"
|
|
|
class="image"
|
|
|
- title="show user annotations (X)"
|
|
|
+ title="show user annotations"
|
|
|
:class="{active: filter && filter.includes('user')}"
|
|
|
@click="invertFilter('user')">
|
|
|
<img alt="show user annotations" src="@/assets/icons/smiley.svg">
|
|
@@ -71,7 +95,7 @@
|
|
|
|
|
|
<div ref="show_pipeline_annotations"
|
|
|
class="image"
|
|
|
- title="show pipeline annotations (C)"
|
|
|
+ title="show pipeline annotations"
|
|
|
:class="{active: filter && filter.includes('pipeline')}"
|
|
|
@click="invertFilter('pipeline')">
|
|
|
<img alt="show pipeline annotations" src="@/assets/icons/cpu.svg">
|
|
@@ -95,7 +119,7 @@ import LabelSelector from "@/components/media/label-selector";
|
|
|
export default {
|
|
|
name: "options-bar",
|
|
|
components: {LabelSelector},
|
|
|
- props: ['file', 'interaction', 'filter', 'label', 'labels'],
|
|
|
+ props: ['file', 'interaction', 'filter', 'label', 'labels', 'zoomBox'],
|
|
|
created: function () {
|
|
|
// get data
|
|
|
this.getJobs();
|
|
@@ -179,14 +203,17 @@ export default {
|
|
|
case 'g':
|
|
|
this.$refs.confirm_box.click();
|
|
|
break;
|
|
|
+ case 'b':
|
|
|
+ this.$refs.create_predictions.click();
|
|
|
+ break;
|
|
|
case 'x':
|
|
|
- this.$refs.show_user_annotations.click();
|
|
|
+ this.$refs.zoom_annotation.click();
|
|
|
break;
|
|
|
case 'c':
|
|
|
- this.$refs.show_pipeline_annotations.click();
|
|
|
+ this.$refs.zoom_prev_annotation.click();
|
|
|
break;
|
|
|
case 'v':
|
|
|
- this.$refs.create_predictions.click();
|
|
|
+ this.$refs.zoom_next_annotation.click();
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
@@ -227,7 +254,9 @@ export default {
|
|
|
|
|
|
<style scoped>
|
|
|
.options-bar {
|
|
|
- background-color: rgba(0, 0, 0, 0.25);
|
|
|
+ /* background-color: rgba(0, 0, 0, 0.25); */
|
|
|
+ background-color: #858585;
|
|
|
+ z-index: 1;
|
|
|
}
|
|
|
|
|
|
.spacer {
|