From bbb170fe2b5f0299d73ce024d6ce62926035023e Mon Sep 17 00:00:00 2001 From: Rasmus Date: Thu, 19 Sep 2024 15:52:15 +0200 Subject: [PATCH] fix: Opacity values for dve locators were set to 100 even though the CasparCG value has to be between 0 and 1 --- .../caspar/__tests__/htmlPilotGraphicGenerator.spec.ts | 4 ++-- .../helpers/graphics/caspar/htmlPilotGraphicGenerator.ts | 2 +- src/tv2-common/helpers/graphics/caspar/util.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tv2-common/helpers/graphics/caspar/__tests__/htmlPilotGraphicGenerator.spec.ts b/src/tv2-common/helpers/graphics/caspar/__tests__/htmlPilotGraphicGenerator.spec.ts index 52753145..8df2542b 100644 --- a/src/tv2-common/helpers/graphics/caspar/__tests__/htmlPilotGraphicGenerator.spec.ts +++ b/src/tv2-common/helpers/graphics/caspar/__tests__/htmlPilotGraphicGenerator.spec.ts @@ -88,7 +88,7 @@ describe('HtmlPilotGraphicGenerator', () => { }, useStopCommand: false, mixer: { - opacity: 100 + opacity: 1 } }) ) @@ -158,7 +158,7 @@ describe('HtmlPilotGraphicGenerator', () => { }, useStopCommand: false, mixer: { - opacity: 100 + opacity: 1 } }) ) diff --git a/src/tv2-common/helpers/graphics/caspar/htmlPilotGraphicGenerator.ts b/src/tv2-common/helpers/graphics/caspar/htmlPilotGraphicGenerator.ts index 2d2b46b7..a71c9675 100644 --- a/src/tv2-common/helpers/graphics/caspar/htmlPilotGraphicGenerator.ts +++ b/src/tv2-common/helpers/graphics/caspar/htmlPilotGraphicGenerator.ts @@ -78,7 +78,7 @@ export class HtmlPilotGraphicGenerator extends PilotGraphicGenerator { data: templateData, useStopCommand: false, mixer: { - opacity: 100 + opacity: 1 } } }), diff --git a/src/tv2-common/helpers/graphics/caspar/util.ts b/src/tv2-common/helpers/graphics/caspar/util.ts index 29e64662..dbce0a0a 100644 --- a/src/tv2-common/helpers/graphics/caspar/util.ts +++ b/src/tv2-common/helpers/graphics/caspar/util.ts @@ -27,7 +27,7 @@ export function CreateHTMLRendererContent( }, useStopCommand: false, mixer: { - opacity: 100 + opacity: 1 } } }