Skip to content

Commit

Permalink
fix: use an object when appriopriate
Browse files Browse the repository at this point in the history
  • Loading branch information
Balte de Wit committed Aug 6, 2018
1 parent 41a29ff commit 7d13bd3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/state/video/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface IMixEffect {
numberOfKeyers: number
transitionProperties: TransitionProperties
transitionSettings: TransitionSettings,
upstreamKeyers: Array<USK.UpstreamKeyer>
upstreamKeyers: { [index: number]: USK.UpstreamKeyer }
}

export class MixEffect implements IMixEffect {
Expand All @@ -95,7 +95,7 @@ export class MixEffect implements IMixEffect {
numberOfKeyers: number
transitionProperties: TransitionProperties = {} as TransitionProperties
transitionSettings: TransitionSettings = {} as TransitionSettings
upstreamKeyers: Array<USK.UpstreamKeyer> = []
upstreamKeyers: { [index: number]: USK.UpstreamKeyer } = []

constructor (index: number) {
this.index = index
Expand All @@ -108,7 +108,7 @@ export class MixEffect implements IMixEffect {
chromaSettings: {} as USK.UpstreamKeyerChromaSettings,
lumaSettings: {} as USK.UpstreamKeyerLumaSettings,
patternSettings: {} as USK.UpstreamKeyerPatternSettings,
flyKeyframes: [] as Array<USK.UpstreamKeyerFlyKeyframe>,
flyKeyframes: [] as { [index: number]: USK.UpstreamKeyerFlyKeyframe },
flyProperties: {} as USK.UpstreamKeyerFlySettings
} as USK.UpstreamKeyer
}
Expand All @@ -131,10 +131,10 @@ export interface SuperSourceBox {
}

export class AtemVideoState {
ME: Array<MixEffect> = []
downstreamKeyers: Array<DownstreamKeyer> = []
auxilliaries: Array<number> = []
superSourceBoxes: Array<SuperSourceBox> = []
ME: { [index: string]: MixEffect } = {}
downstreamKeyers: { [index: string]: DownstreamKeyer } = {}
auxilliaries: { [index: string]: number } = {}
superSourceBoxes: { [index: string]: SuperSourceBox } = {}

getMe (index: number) {
if (!this.ME[index]) {
Expand Down

0 comments on commit 7d13bd3

Please sign in to comment.