Skip to content

Commit

Permalink
fix: missing typings for atem fly key
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Nov 28, 2023
1 parent f4dd8fe commit ba8d721
Showing 1 changed file with 85 additions and 60 deletions.
145 changes: 85 additions & 60 deletions packages/timeline-state-resolver-types/src/atem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,25 @@ export enum BorderBevel { // Note: copied from atem-state
In = 2,
Out = 3,
}
export enum FlyKeyKeyFrame {
None = 0,
A = 1,
B = 2,
Full = 3,
RunToInfinite = 4,
}
export enum FlyKeyDirection {
CentreOfKey = 0,
TopLeft = 1,
TopCentre = 2,
TopRight = 3,
MiddleLeft = 4,
MiddleCentre = 5,
MiddleRight = 6,
BottomLeft = 7,
BottomCentre = 8,
BottomRight = 9,
}

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

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
}
dveSettings?: AtemDVESettings
// chromaSettings: UpstreamKeyerChromaSettings;
// patternSettings: UpstreamKeyerPatternSettings;
// flyKeyframes: Array<UpstreamKeyerFlyKeyframe>;
// flyProperties: UpstreamKeyerFlySettings;
flyKeyframes?: [AtemFlyKeyframe | undefined, AtemFlyKeyframe | undefined]
flyProperties?: {
isAtKeyFrame?: FlyKeyKeyFrame
runToInfiniteIndex?: FlyKeyDirection
}
lumaSettings?: {
/** Premultiply key */
preMultiplied?: boolean
Expand Down Expand Up @@ -343,6 +308,66 @@ interface AtemSSrcPropsBorder {
/** Light source altitude for rendering the bevel, 10-100 */
borderLightSourceAltitude: number
}
interface AtemDVESettings extends AtemDVEBaseSettings {
/** 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
}
interface AtemDVEBaseSettings {
/** 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
}
type AtemFlyKeyframe = Omit<AtemDVEBaseSettings, 'maskEnabled'>

export interface TimelineContentAtemSsrcProps extends TimelineContentAtemBase {
type: TimelineContentTypeAtem.SSRCPROPS
Expand Down

0 comments on commit ba8d721

Please sign in to comment.