Skip to content

Commit

Permalink
chaining fix
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdadams committed Aug 21, 2024
1 parent af77976 commit a29f9db
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bmd-teranex",
"version": "2.3.1",
"version": "2.3.2",
"main": "index.js",
"scripts": {
"format": "prettier -w .",
Expand Down
44 changes: 22 additions & 22 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,19 +251,19 @@ module.exports = {
}

if (data['Enabled'] !== undefined) {
self.data.noiseReduction?.enabled = data['Enabled'] == 'ON' ? true : false
self.data.noiseReduction.enabled = data['Enabled'] == 'ON' ? true : false
}

if (data['Bias'] !== undefined) {
self.data.noiseReduction?.bias = parseFloat(data['Bias'])
self.data.noiseReduction.bias = parseFloat(data['Bias'])
}

if (data['Split screen'] !== undefined) {
self.data.noiseReduction?.splitScreen = data['Split screen'] == 'ON' ? true : false
self.data.noiseReduction.splitScreen = data['Split screen'] == 'ON' ? true : false
}

if (data['Red overlay'] !== undefined) {
self.data.noiseReduction?.redOverlay = data['Red overlay'] == 'ON' ? true : false
self.data.noiseReduction.redOverlay = data['Red overlay'] == 'ON' ? true : false
}
}

Expand All @@ -273,23 +273,23 @@ module.exports = {
}

if (data['Clean cadence'] !== undefined) {
self.data.videoAdvanced?.cleanCadence = data['Clean cadence'] == 'ON' ? true : false
self.data.videoAdvanced.cleanCadence = data['Clean cadence'] == 'ON' ? true : false
}

if (data['Scenecut detect'] !== undefined) {
self.data.videoAdvanced?.sceneCutDetect = data['Scenecut detect'] == 'ON' ? true : false
self.data.videoAdvanced.sceneCutDetect = data['Scenecut detect'] == 'ON' ? true : false
}

if (data['Source type'] !== undefined) {
self.data.videoAdvanced?.sourceType = data['Source type']
self.data.videoAdvanced.sourceType = data['Source type']
}

if (data['FRC aperture'] !== undefined) {
self.data.videoAdvanced?.frcAperture = parseInt(data['FRC aperture'])
self.data.videoAdvanced.frcAperture = parseInt(data['FRC aperture'])
}

if (data['Processing'] !== undefined) {
self.data.videoAdvanced?.processing = data['Processing']
self.data.videoAdvanced.processing = data['Processing']
}
}

Expand All @@ -299,55 +299,55 @@ module.exports = {
}

if (data['Variable Aspect Ratio size X left'] !== undefined) {
self.data.variableAspectRatio?.sizeXLeft = parseInt(data['Variable Aspect Ratio size X left'])
self.data.variableAspectRatio.sizeXLeft = parseInt(data['Variable Aspect Ratio size X left'])
}

if (data['Variable Aspect Ratio size X right'] !== undefined) {
self.data.variableAspectRatio?.sizeXRight = parseInt(data['Variable Aspect Ratio size X right'])
self.data.variableAspectRatio.sizeXRight = parseInt(data['Variable Aspect Ratio size X right'])
}

if (data['Variable Aspect Ratio size Y left'] !== undefined) {
self.data.variableAspectRatio?.sizeYLeft = parseInt(data['Variable Aspect Ratio size Y left'])
self.data.variableAspectRatio.sizeYLeft = parseInt(data['Variable Aspect Ratio size Y left'])
}

if (data['Variable Aspect Ratio size Y right'] !== undefined) {
self.data.variableAspectRatio?.sizeYRight = parseInt(data['Variable Aspect Ratio size Y right'])
self.data.variableAspectRatio.sizeYRight = parseInt(data['Variable Aspect Ratio size Y right'])
}

if (data['Variable Aspect Ratio pos X left'] !== undefined) {
self.data.variableAspectRatio?.posXLeft = parseInt(data['Variable Aspect Ratio pos X left'])
self.data.variableAspectRatio.posXLeft = parseInt(data['Variable Aspect Ratio pos X left'])
}

if (data['Variable Aspect Ratio pos X right'] !== undefined) {
self.data.variableAspectRatio?.posXRight = parseInt(data['Variable Aspect Ratio pos X right'])
self.data.variableAspectRatio.posXRight = parseInt(data['Variable Aspect Ratio pos X right'])
}

if (data['Variable Aspect Ratio pos Y left'] !== undefined) {
self.data.variableAspectRatio?.posYLeft = parseInt(data['Variable Aspect Ratio pos Y left'])
self.data.variableAspectRatio.posYLeft = parseInt(data['Variable Aspect Ratio pos Y left'])
}

if (data['Variable Aspect Ratio pos Y right'] !== undefined) {
self.data.variableAspectRatio?.posYRight = parseInt(data['Variable Aspect Ratio pos Y right'])
self.data.variableAspectRatio.posYRight = parseInt(data['Variable Aspect Ratio pos Y right'])
}

if (data['Variable Aspect Ratio trim X left'] !== undefined) {
self.data.variableAspectRatio?.trimXLeft = parseInt(data['Variable Aspect Ratio trim X left'])
self.data.variableAspectRatio.trimXLeft = parseInt(data['Variable Aspect Ratio trim X left'])
}

if (data['Variable Aspect Ratio trim X right'] !== undefined) {
self.data.variableAspectRatio?.trimXRight = parseInt(data['Variable Aspect Ratio trim X right'])
self.data.variableAspectRatio.trimXRight = parseInt(data['Variable Aspect Ratio trim X right'])
}

if (data['Variable Aspect Ratio trim Y left'] !== undefined) {
self.data.variableAspectRatio?.trimYLeft = parseInt(data['Variable Aspect Ratio trim Y left'])
self.data.variableAspectRatio.trimYLeft = parseInt(data['Variable Aspect Ratio trim Y left'])
}

if (data['Variable Aspect Ratio trim Y right'] !== undefined) {
self.data.variableAspectRatio?.trimYRight = parseInt(data['Variable Aspect Ratio trim Y right'])
self.data.variableAspectRatio.trimYRight = parseInt(data['Variable Aspect Ratio trim Y right'])
}

if (data['Variable Aspect Ratio zoom/crop'] !== undefined) {
self.data.variableAspectRatio?.zoomCrop = parseInt(data['Variable Aspect Ratio zoom/crop'])
self.data.variableAspectRatio.zoomCrop = parseInt(data['Variable Aspect Ratio zoom/crop'])
}
}

Expand Down

0 comments on commit a29f9db

Please sign in to comment.