RED-6240 - changed 'redactionColor' with 'appliedRedactionColor'
This commit is contained in:
parent
c05634c7ae
commit
c266a39385
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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());
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user