Skip to content

Commit

Permalink
fix: add missing typings for atem dve
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Nov 24, 2023
1 parent aedb0c3 commit f4dd8fe
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exports[`index imports 1`] = `
"AtemMediaPoolType",
"AtemTransitionStyle",
"BlendMode",
"BorderBevel",
"CasparCGActions",
"ChannelFormat",
"Chroma",
Expand Down
65 changes: 64 additions & 1 deletion packages/timeline-state-resolver-types/src/atem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ export enum MediaSourceType { // Note: copied from atem-state
Still = 1,
Clip = 2,
}
export enum BorderBevel { // Note: copied from atem-state
None = 0,
InOut = 1,
In = 2,
Out = 3,
}

export type SuperSourceBox = {
enabled?: boolean
Expand Down Expand Up @@ -152,7 +158,64 @@ export interface TimelineContentAtemME extends TimelineContentAtemBase {
/** -16000 -> 16000 */
maskRight?: number

// dveSettings: UpstreamKeyerDVESettings;
dveSettings?: {
/** whether the DVE should have a border */
borderEnabled?: boolean
/** whether the DVE should have a shadow */
shadowEnabled?: boolean
/** what type of bevel the border has, defaults to none */
borderBevel?: BorderBevel
/** 1 - 250 */
rate?: number

/** 0 - 99990 */
sizeX?: number
/** 0 - 99990 */
sizeY?: number
/** -1000000 - 1000000 */
positionX?: number
/** -1000000 - 1000000 */
positionY?: number
/** -332230 - 332230 */
rotation?: number

/** 0 - 1600 */
borderOuterWidth?: number
/** 0 - 1600 */
borderInnerWidth?: number
/** 0 - 100 */
borderOuterSoftness?: number
/** 0 - 100 */
borderInnerSoftness?: number
/** 0 - 100 */
borderBevelSoftness?: number
/** 0 - 100 */
borderBevelPosition?: number

/** 0 - 100 */
borderOpacity?: number
/** 0 - 3599 */
borderHue?: number
/** 0 - 1000 */
borderSaturation?: number
/** 0 - 1000 */
borderLuma?: number

/** 0 - 3559 */
lightSourceDirection?: number
/** 0 - 100 */
lightSourceAltitude?: number

maskEnabled?: boolean
/** 0 - 38000 */
maskTop?: number
/** 0 - 38000 */
maskBottom?: number
/** 0 - 52000 */
maskLeft?: number
/** 0 - 52000 */
maskRight?: number
}
// chromaSettings: UpstreamKeyerChromaSettings;
// patternSettings: UpstreamKeyerPatternSettings;
// flyKeyframes: Array<UpstreamKeyerFlyKeyframe>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exports[`index imports 1`] = `
"AtemMediaPoolType",
"AtemTransitionStyle",
"BlendMode",
"BorderBevel",
"CasparCGActions",
"CasparCGDevice",
"ChannelFormat",
Expand Down

0 comments on commit f4dd8fe

Please sign in to comment.