File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
<script >
2
2
import PowerToggle from ' ../../core/components/powerToggle' ;
3
3
import Settings from ' ../stores/settings' ;
4
+ import Keyboard from ' ../../core/keyboard' ;
4
5
5
6
export default {
6
7
components: {
@@ -87,6 +88,13 @@ export default {
87
88
handleUnmuteVideo () {
88
89
this .muteVideo = false ;
89
90
},
91
+ toggleAnnotationOpacity () {
92
+ if (this .annotationOpacity > 0 ) {
93
+ this .annotationOpacity = 0 ;
94
+ } else {
95
+ this .annotationOpacity = 1 ;
96
+ }
97
+ },
90
98
},
91
99
watch: {
92
100
annotationOpacity (value ) {
@@ -145,6 +153,8 @@ export default {
145
153
this .restoreKeys .forEach ((key ) => {
146
154
this [key] = Settings .get (key);
147
155
});
156
+
157
+ Keyboard .on (' o' , this .toggleAnnotationOpacity );
148
158
},
149
159
};
150
160
</script >
Original file line number Diff line number Diff line change @@ -175,6 +175,9 @@ export default {
175
175
},
176
176
reachedTrackedAnnotationLimit () {
177
177
return this .disableJobTracking ;
178
+ },
179
+ annotationsAreHidden () {
180
+ return this .settings .annotationOpacity === 0 ;
178
181
}
179
182
},
180
183
methods: {
Original file line number Diff line number Diff line change 95
95
<td ><kbd >l</kbd ></td >
96
96
<td >Select tool to attach labels to existing annotations</td >
97
97
</tr >
98
+ <tr >
99
+ <td ><kbd >o</kbd ></td >
100
+ <td >Toggle the annotation opactiy between 0.0 and 1.0</td >
101
+ </tr >
98
102
<tr >
99
103
<td ><kbd >Shift</kbd >+<kbd >l</kbd ></td >
100
104
<td >Select tool to swap labels of existing annotations</td >
Original file line number Diff line number Diff line change 1
- <sidebar-tab name =" settings" icon =" cog" title =" Settings" >
1
+ <sidebar-tab name =" settings" icon =" cog" title =" Settings" :highlight = " annotationsAreHidden " >
2
2
<settings-tab inline-template
3
3
v-on:update =" handleUpdatedSettings"
4
4
:supports-jump-by-frame =" supportsJumpByFrame"
You can’t perform that action at this time.
0 commit comments