From 64cbfbeca42e4b516b46b107b0b3aedc77f9f8e4 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Wed, 28 Oct 2020 20:32:49 +0200 Subject: [PATCH] some code for further use --- .../file-preview-screen.component.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts index b47f13a5d..d986c9a05 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts @@ -187,7 +187,23 @@ export class FilePreviewScreenComponent implements OnInit { public openManualRedactionDialog($event: ManualRedactionEntry) { this.ngZone.run(() => { - this._dialogRef = this._dialogService.openManualRedactionDialog($event, () => {}); + this._dialogRef = this._dialogService.openManualRedactionDialog( + $event, + (annotation) => { + // const annotManager = this.activeViewer.annotManager; + // const rectangleAnnot = new this.activeViewer.Annotations.RectangleAnnotation(); + // rectangleAnnot.PageNumber = 1; + // // values are in page coordinates with (0, 0) in the top left + // rectangleAnnot.X = 100; + // rectangleAnnot.Y = 150; + // rectangleAnnot.Width = 200; + // rectangleAnnot.Height = 50; + // rectangleAnnot.Author = annotManager.getCurrentUser(); + // + // annotManager.addAnnotation(rectangleAnnot,true); + // annotManager.redrawAnnotation(rectangleAnnot); + } + ); }); }