RED-6240 - changed 'redactionColor' with 'appliedRedactionColor'

This commit is contained in:
Valentin Mihai 2023-04-04 17:16:27 +03:00
parent c05634c7ae
commit c266a39385
2 changed files with 4 additions and 1 deletions

View File

@ -169,6 +169,9 @@ export class AnnotationDrawService {
annotation.setCustomData('redactionColor', String(redactionColor));
annotation.setCustomData('annotationColor', String(annotationWrapper.color));
const appliedRedactionColor = this._defaultColorsService.getColor(dossierTemplateId, 'appliedRedactionColor');
annotation.setCustomData('appliedRedactionColor', String(appliedRedactionColor));
return annotation;
}

View File

@ -63,7 +63,7 @@ export class ReadableRedactionsService {
(ctx: CanvasRenderingContext2D, pageMatrix, rotation, options) => {
const annotation = options.annotation;
ctx.globalCompositeOperation = 'source-over';
ctx.fillStyle = annotation.getCustomData('redactionColor');
ctx.fillStyle = annotation.getCustomData('appliedRedactionColor');
ctx.fillRect(annotation.getX(), annotation.getY(), annotation.getWidth(), annotation.getHeight());
},
{