From bd7b2c8d08289aea3119e3ecb735783ea46408e6 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Wed, 2 Aug 2023 17:40:33 +0300 Subject: [PATCH] change color if experimental --- .../pdf-viewer/services/annotation-draw.service.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts b/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts index 6435330a3..a7665e733 100644 --- a/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts +++ b/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts @@ -72,11 +72,19 @@ export class AnnotationDrawService { async drawTables(tables: Table[], page: number, dossierTemplateId: string) { const sections: Core.Annotations.RectangleAnnotation[] = []; tables.forEach(table => { - sections.push(this._computeSection(page, getSectionRectangle(table.boundingBox), dossierTemplateId)); + const section = this._computeSection(page, getSectionRectangle(table.boundingBox), dossierTemplateId); + if (table.experimental) { + section.StrokeColor = this.convertColor('#800080'); + } + sections.push(section); table.cellsPerRow .flatMap(row => row) .forEach(row => { - sections.push(this._computeSection(page, getSectionRectangle(row.boundingBox), dossierTemplateId)); + const cellSection = this._computeSection(page, getSectionRectangle(row.boundingBox), dossierTemplateId); + if (table.experimental) { + cellSection.StrokeColor = this.convertColor('#800080'); + } + sections.push(cellSection); }); });