Fixed RED-3351 and deployment issue for help

This commit is contained in:
Timo Bejan 2022-02-09 11:11:19 +02:00
parent e399a0b28d
commit 9a41df9b59
4 changed files with 13 additions and 3 deletions

View File

@ -21,6 +21,10 @@ export class ResizeAnnotationDialogComponent extends BaseDialogComponent impleme
super(_injector, _dialogRef);
}
get disabled(): boolean {
return !this.valid;
}
ngOnInit() {
super.ngOnInit();

View File

@ -39,6 +39,7 @@ export class AnnotationsListComponent implements OnChanges {
}
async annotationClicked(annotation: AnnotationWrapper, $event: MouseEvent): Promise<void> {
console.log(annotation);
if (($event?.target as IqserEventTarget)?.localName === 'input') {
return;
}

View File

@ -555,11 +555,16 @@ export class AnnotationActionsService {
this._translateQuads(viewer, viewerAnnotation.getPageNumber(), quad),
);
rectangles.push(rect);
// TODO: this is an educated guess for lines that are close together
// TODO: so that we do not extract text from line above/line below
const fivePercentHeightOffset = rect.height / 20;
const pdfNetRect = new viewer.Core.PDFNet.Rect(
rect.topLeft.x,
rect.topLeft.y,
rect.topLeft.y + fivePercentHeightOffset,
rect.topLeft.x + rect.width,
rect.topLeft.y + rect.height,
rect.topLeft.y + rect.height - fivePercentHeightOffset,
);
const quadWords = await this._extractTextFromRect(viewer, page, pdfNetRect);
words.push(...quadWords);

View File

@ -47,7 +47,7 @@ echo '{
"OAUTH_IDP_HINT":"'"$OAUTH_IDP_HINT"'",
"OAUTH_URL":"'"$OAUTH_URL"'",
"RECENT_PERIOD_IN_HOURS":'"$RECENT_PERIOD_IN_HOURS"',
"SELECTION_MODE":"'"$SELECTION_MODE"'"
"SELECTION_MODE":"'"$SELECTION_MODE"'",
"MANUAL_BASE_URL":"'"$MANUAL_BASE_URL"'"
}' > /usr/share/nginx/html/ui/assets/config/config.json