RED-3617: resize imported redactions as rectangles

This commit is contained in:
Dan Percic 2022-04-19 17:44:51 +03:00
parent 139482701a
commit ce81779fdf
3 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ export class AnnotationActionsComponent implements OnChanges {
} }
resize($event: MouseEvent) { resize($event: MouseEvent) {
this.annotationActionsService.resize($event, this.annotations[0]); return this.annotationActionsService.resize($event, this.annotations[0]);
} }
acceptResize($event: MouseEvent) { acceptResize($event: MouseEvent) {

View File

@ -392,7 +392,7 @@ export class AnnotationActionsService {
annotationWrapper.resizing = true; annotationWrapper.resizing = true;
const viewerAnnotation = this._pdf.annotationManager.getAnnotationById(annotationWrapper.id); const viewerAnnotation = this._pdf.annotationManager.getAnnotationById(annotationWrapper.id);
if (annotationWrapper.rectangle) { if (annotationWrapper.rectangle || annotationWrapper.imported) {
this._pdf.deleteAnnotations([annotationWrapper.id]); this._pdf.deleteAnnotations([annotationWrapper.id]);
const rectangleAnnotation = this.#generateRectangle(annotationWrapper); const rectangleAnnotation = this.#generateRectangle(annotationWrapper);
this._pdf.annotationManager.addAnnotation(rectangleAnnotation, { imported: true }); this._pdf.annotationManager.addAnnotation(rectangleAnnotation, { imported: true });

@ -1 +1 @@
Subproject commit 6a0e22e68441a1dbbaaa38cfebed1aa8e8bb91be Subproject commit d8c2a342baa6acb330132c44000562bdd823f620