diff --git a/frontend/components/tasks/toolbar/buttons/ButtonZoom.vue b/frontend/components/tasks/toolbar/buttons/ButtonZoom.vue new file mode 100644 index 00000000..93827c47 --- /dev/null +++ b/frontend/components/tasks/toolbar/buttons/ButtonZoom.vue @@ -0,0 +1,33 @@ + + + diff --git a/frontend/pages/projects/_id/object-detection/index.vue b/frontend/pages/projects/_id/object-detection/index.vue index 4b315934..046c944b 100644 --- a/frontend/pages/projects/_id/object-detection/index.vue +++ b/frontend/pages/projects/_id/object-detection/index.vue @@ -11,14 +11,7 @@ @click:clear-label="clear" @click:review="confirm" > - - - {{ mdiFormatListBulleted }} - - - {{ mdiText }} - - + @@ -89,10 +82,12 @@ import { useLabelList } from '@/composables/useLabelList' import AnnotationProgress from '@/components/tasks/sidebar/AnnotationProgress.vue' import VBoundingBox from '@/components/tasks/boundingBox/VBoundingBox.vue' import RegionList from '@/components/tasks/image/RegionList.vue' +import ButtonZoom from '@/components/tasks/toolbar/buttons/ButtonZoom.vue' export default { components: { AnnotationProgress, + ButtonZoom, LayoutText, ListMetadata, RegionList, @@ -123,7 +118,6 @@ export default { images: [], project: {}, enableAutoLabeling: false, - labelOption: 0, mdiText, mdiFormatListBulleted, progress: {}, @@ -308,6 +302,14 @@ export default { updateScale(scale) { this.scale = scale + }, + + zoomOut() { + this.scale -= 0.1 + }, + + zoomIn() { + this.scale += 0.1 } } } diff --git a/frontend/pages/projects/_id/segmentation/index.vue b/frontend/pages/projects/_id/segmentation/index.vue index c1ac88ba..bb1c7ab8 100644 --- a/frontend/pages/projects/_id/segmentation/index.vue +++ b/frontend/pages/projects/_id/segmentation/index.vue @@ -11,14 +11,7 @@ @click:clear-label="clear" @click:review="confirm" > - - - {{ mdiFormatListBulleted }} - - - {{ mdiText }} - - + @@ -89,10 +82,12 @@ import { useLabelList } from '@/composables/useLabelList' import AnnotationProgress from '@/components/tasks/sidebar/AnnotationProgress.vue' import VSegmentation from '@/components/tasks/segmentation/VSegmentation.vue' import RegionList from '@/components/tasks/image/RegionList.vue' +import ButtonZoom from '@/components/tasks/toolbar/buttons/ButtonZoom.vue' export default { components: { AnnotationProgress, + ButtonZoom, LayoutText, ListMetadata, RegionList, @@ -310,6 +305,14 @@ export default { updateScale(scale) { this.scale = scale + }, + + zoomOut() { + this.scale -= 0.1 + }, + + zoomIn() { + this.scale += 0.1 } } }