atem-state
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.1.2"></a> | ||
## [0.1.2](https://github.com/nrk/tv-automation-atem-state/compare/0.1.1...0.1.2) (2018-06-14) | ||
### Bug Fixes | ||
* defaults should be based on capabilites ([434edff](https://github.com/nrk/tv-automation-atem-state/commit/434edff)) | ||
<a name="0.1.1"></a> | ||
@@ -7,0 +17,0 @@ ## [0.1.1](https://github.com/nrk/tv-automation-atem-state/compare/0.1.0...0.1.1) (2018-06-14) |
@@ -18,4 +18,5 @@ import { VideoState } from 'atem-connection'; | ||
function UpstreamKeyer(id: number): USK.UpstreamKeyer; | ||
function flyKeyframe(id: number): USK.UpstreamKeyerFlyKeyframe; | ||
const SuperSourceBox: VideoState.SuperSourceBox; | ||
} | ||
} |
@@ -158,61 +158,9 @@ "use strict"; | ||
size: 0, | ||
symmetry: 0, | ||
symmetry: 5000, | ||
softness: 0, | ||
positionX: 0, | ||
positionY: 0, | ||
positionX: 500, | ||
positionY: 500, | ||
invert: false | ||
}, | ||
// @todo should these be defined if the atem doesnt support it? | ||
flyKeyframes: [ | ||
{ | ||
keyFrameId: 0, | ||
sizeX: 0, | ||
sizeY: 0, | ||
positionX: 0, | ||
positionY: 0, | ||
rotation: 0, | ||
borderOuterWidth: 0, | ||
borderInnerWidth: 0, | ||
borderOuterSoftness: 0, | ||
borderInnerSoftness: 0, | ||
borderBevelSoftness: 0, | ||
borderBevelPosition: 0, | ||
borderOpacity: 0, | ||
borderHue: 0, | ||
borderSaturation: 0, | ||
borderLuma: 0, | ||
lightSourceDirection: 0, | ||
lightSourceAltitude: 0, | ||
maskEnabled: false, | ||
maskTop: 0, | ||
maskBottom: 0, | ||
maskLeft: 0, | ||
maskRight: 0 | ||
}, | ||
{ | ||
keyFrameId: 1, | ||
sizeX: 0, | ||
sizeY: 0, | ||
positionX: 0, | ||
positionY: 0, | ||
rotation: 0, | ||
borderOuterWidth: 0, | ||
borderInnerWidth: 0, | ||
borderOuterSoftness: 0, | ||
borderInnerSoftness: 0, | ||
borderBevelSoftness: 0, | ||
borderBevelPosition: 0, | ||
borderOpacity: 0, | ||
borderHue: 0, | ||
borderSaturation: 0, | ||
borderLuma: 0, | ||
lightSourceDirection: 0, | ||
lightSourceAltitude: 0, | ||
maskEnabled: false, | ||
maskTop: 0, | ||
maskBottom: 0, | ||
maskLeft: 0, | ||
maskRight: 0 | ||
} | ||
], | ||
flyKeyframes: [], | ||
flyProperties: { | ||
@@ -227,2 +175,30 @@ isASet: false, | ||
Video.UpstreamKeyer = UpstreamKeyer; | ||
function flyKeyframe(id) { | ||
return { | ||
keyFrameId: id, | ||
sizeX: 0, | ||
sizeY: 0, | ||
positionX: 0, | ||
positionY: 0, | ||
rotation: 0, | ||
borderOuterWidth: 0, | ||
borderInnerWidth: 0, | ||
borderOuterSoftness: 0, | ||
borderInnerSoftness: 0, | ||
borderBevelSoftness: 0, | ||
borderBevelPosition: 0, | ||
borderOpacity: 0, | ||
borderHue: 0, | ||
borderSaturation: 0, | ||
borderLuma: 0, | ||
lightSourceDirection: 0, | ||
lightSourceAltitude: 0, | ||
maskEnabled: false, | ||
maskTop: 0, | ||
maskBottom: 0, | ||
maskLeft: 0, | ||
maskRight: 0 | ||
}; | ||
} | ||
Video.flyKeyframe = flyKeyframe; | ||
Video.SuperSourceBox = { | ||
@@ -229,0 +205,0 @@ enabled: false, |
@@ -11,6 +11,6 @@ "use strict"; | ||
commands = commands.concat(resolveUpstreamKeyerMaskState(oldState, newState)); | ||
commands = commands.concat(dveKeyer_1.resolveDVEKeyerState(newState, oldState)); | ||
commands = commands.concat(chromaKeyer_1.resolveChromaKeyerState(newState, oldState)); | ||
commands = commands.concat(lumaKeyer_1.resolveLumaKeyerState(newState, oldState)); | ||
commands = commands.concat(patternKeyer_1.resolvePatternKeyerState(newState, oldState)); | ||
commands = commands.concat(dveKeyer_1.resolveDVEKeyerState(oldState, newState)); | ||
commands = commands.concat(chromaKeyer_1.resolveChromaKeyerState(oldState, newState)); | ||
commands = commands.concat(lumaKeyer_1.resolveLumaKeyerState(oldState, newState)); | ||
commands = commands.concat(patternKeyer_1.resolvePatternKeyerState(oldState, newState)); | ||
for (const mixEffectId in oldState.video.ME) { | ||
@@ -17,0 +17,0 @@ for (const upstreamKeyerId in oldState.video.ME[mixEffectId].upstreamKeyers) { |
{ | ||
"name": "atem-state", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Typescript Node.js library for comparing ATEM states", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
84827
963