RED-3617: resize imported redactions as rectangles
This commit is contained in:
parent
139482701a
commit
ce81779fdf
@ -119,7 +119,7 @@ export class AnnotationActionsComponent implements OnChanges {
|
||||
}
|
||||
|
||||
resize($event: MouseEvent) {
|
||||
this.annotationActionsService.resize($event, this.annotations[0]);
|
||||
return this.annotationActionsService.resize($event, this.annotations[0]);
|
||||
}
|
||||
|
||||
acceptResize($event: MouseEvent) {
|
||||
|
||||
@ -392,7 +392,7 @@ export class AnnotationActionsService {
|
||||
annotationWrapper.resizing = true;
|
||||
|
||||
const viewerAnnotation = this._pdf.annotationManager.getAnnotationById(annotationWrapper.id);
|
||||
if (annotationWrapper.rectangle) {
|
||||
if (annotationWrapper.rectangle || annotationWrapper.imported) {
|
||||
this._pdf.deleteAnnotations([annotationWrapper.id]);
|
||||
const rectangleAnnotation = this.#generateRectangle(annotationWrapper);
|
||||
this._pdf.annotationManager.addAnnotation(rectangleAnnotation, { imported: true });
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 6a0e22e68441a1dbbaaa38cfebed1aa8e8bb91be
|
||||
Subproject commit d8c2a342baa6acb330132c44000562bdd823f620
|
||||
Loading…
x
Reference in New Issue
Block a user