Fixed RED-3351 and deployment issue for help
This commit is contained in:
parent
e399a0b28d
commit
9a41df9b59
@ -21,6 +21,10 @@ export class ResizeAnnotationDialogComponent extends BaseDialogComponent impleme
|
||||
super(_injector, _dialogRef);
|
||||
}
|
||||
|
||||
get disabled(): boolean {
|
||||
return !this.valid;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
super.ngOnInit();
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user