Skip to content

Commit 32c2fa2

Browse files
committed
methods
1 parent a353426 commit 32c2fa2

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

src/atem.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ import {
4242
FairlightAudioMonitorSolo,
4343
} from './state/fairlight'
4444
import { FairlightDynamicsResetProps } from './commands/Fairlight/common'
45-
import { MultiViewerPropertiesState } from './state/settings'
45+
import {
46+
MultiViewerPropertiesState,
47+
MultiViewerBorderColorState,
48+
MultiViewerWindowOverlayPropertiesState,
49+
} from './state/settings'
4650
import {
4751
calculateGenerateMultiviewerLabelProps,
4852
generateMultiviewerLabel,
@@ -569,6 +573,27 @@ export class Atem extends BasicAtem {
569573
command.updateProps(props)
570574
return this.sendCommand(command)
571575
}
576+
public async setMultiViewerBorderColor(color: MultiViewerBorderColorState, mv = 0): Promise<void> {
577+
const command = new Commands.MultiViewerBorderColorCommand(mv, color)
578+
return this.sendCommand(command)
579+
}
580+
public async setMultiViewerWindowOverlayProperties(
581+
props: Partial<MultiViewerWindowOverlayPropertiesState>,
582+
mv = 0,
583+
window = 0
584+
): Promise<void> {
585+
const command = new Commands.MultiViewerWindowOverlayPropertiesCommand(mv, window)
586+
command.updateProps(props)
587+
return this.sendCommand(command)
588+
}
589+
public async setMultiViewerWindowSafeAreaPattern(
590+
safeTitlePattern: Enums.SafeTitlePattern[],
591+
mv = 0,
592+
window = 0
593+
): Promise<void> {
594+
const command = new Commands.MultiViewerWindowOverlaySafeAreaPatternCommand(mv, window, safeTitlePattern)
595+
return this.sendCommand(command)
596+
}
572597

573598
public async setColorGeneratorColour(newProps: Partial<ColorGeneratorState>, index = 0): Promise<void> {
574599
const command = new Commands.ColorGeneratorCommand(index)

0 commit comments

Comments
 (0)