From 86e75b9fc540dde01590257d786fb65ee7af2c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kilchenmann?= Date: Wed, 26 May 2021 10:11:08 +0200 Subject: [PATCH] feat(resource): display region annotations in still images (DSP-1585) (#445) * feat(resource): show region's metadata * feat(resource): get regions in compound objects * style(resource): clean up osd viewer * fix(resource): do not zoom on click in osd --- src/app/material-module.ts | 8 +- .../still-image/still-image.component.html | 10 +-- .../still-image/still-image.component.scss | 16 ++-- .../still-image/still-image.component.ts | 6 +- .../resource/resource.component.html | 41 +++++++-- .../resource/resource.component.scss | 6 ++ .../workspace/resource/resource.component.ts | 85 ++++++++++++++----- 7 files changed, 126 insertions(+), 46 deletions(-) diff --git a/src/app/material-module.ts b/src/app/material-module.ts index cfa42c6bad..5f0e758612 100644 --- a/src/app/material-module.ts +++ b/src/app/material-module.ts @@ -3,6 +3,7 @@ import { DragDropModule } from '@angular/cdk/drag-drop'; import { NgModule } from '@angular/core'; // material modules import { MatAutocompleteModule } from '@angular/material/autocomplete'; +import { MatBadgeModule } from '@angular/material/badge'; import { MatButtonModule } from '@angular/material/button'; import { MatButtonToggleModule } from '@angular/material/button-toggle'; import { MatCardModule } from '@angular/material/card'; @@ -23,8 +24,8 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; import { MatRadioModule } from '@angular/material/radio'; import { MatSelectModule } from '@angular/material/select'; import { MatSidenavModule } from '@angular/material/sidenav'; -import { MatSlideToggleModule } from '@angular/material/slide-toggle'; import { MatSliderModule } from '@angular/material/slider'; +import { MatSlideToggleModule } from '@angular/material/slide-toggle'; import { MatSnackBarModule } from '@angular/material/snack-bar'; import { MatSortModule } from '@angular/material/sort'; import { MatTableModule } from '@angular/material/table'; @@ -36,6 +37,7 @@ import { MatTreeModule } from '@angular/material/tree'; const matModules = [ DragDropModule, MatAutocompleteModule, + MatBadgeModule, MatButtonModule, MatButtonToggleModule, MatCardModule, @@ -68,9 +70,9 @@ const matModules = [ ]; @NgModule({ - imports: [ matModules ], + imports: [matModules], - exports: [ matModules ] + exports: [matModules] }) export class MaterialModule { } diff --git a/src/app/workspace/resource/representation/still-image/still-image.component.html b/src/app/workspace/resource/representation/still-image/still-image.component.html index 984dd15947..4d626158b1 100644 --- a/src/app/workspace/resource/representation/still-image/still-image.component.html +++ b/src/app/workspace/resource/representation/still-image/still-image.component.html @@ -5,13 +5,13 @@
-
+
- {{imageCaption}} + {{imageCaption}} - + @@ -44,8 +44,8 @@
-