minor fixes

This commit is contained in:
itten
2026-07-09 01:46:28 +03:00
parent 55a6d6f88e
commit f431ede8da
+18 -7
View File
@@ -1,8 +1,8 @@
import type { NodeTypeDef, ParamDef } from './types'
export const RESOLUTION_OPTIONS = [
{ label: '1920×1080', value: '1920x1080' },
{ label: '1280×720', value: '1280x720' },
{ label: '1920×1080', value: '1920x1080' },
{ label: '3840×2160', value: '3840x2160' },
]
@@ -18,10 +18,17 @@ export const FPS_OPTIONS = [
]
export const DEVICE_OPTIONS = [
{ label: 'Port 1', value: 0 },
{ label: 'Port 2', value: 1 },
{ label: 'Port 3', value: 2 },
{ label: 'Port 4', value: 3 },
{ label: 'DeckLink SDI (1)', value: 0 },
{ label: 'DeckLink SDI (2)', value: 1 },
{ label: 'DeckLink SDI (3)', value: 2 },
{ label: 'DeckLink SDI (4)', value: 3 },
]
export const PATTERN_OPTIONS = [
{ label: 'SMPTE bars 75%', value: 'bars' },
{ label: 'IRE bars', value: 'ire' },
{ label: 'Black solid', value: 'black' },
{ label: 'White solid', value: 'white' },
]
// Format params shown on source nodes; values go into edge format (not node params)
@@ -38,7 +45,11 @@ export const NODE_TYPES: Record<string, NodeTypeDef> = {
{ id: 'video-out', kind: 'video', direction: 'out' },
{ id: 'audio-out', kind: 'audio', direction: 'out' },
],
params: [...FORMAT_PARAMS],
params: [
...FORMAT_PARAMS,
{ key: 'pattern', 'label': 'Pattern', type: 'select', options: PATTERN_OPTIONS, default: 'bars' },
{ key: 'channels', label: 'Channels', type: 'number', default: 0, min: 0, max: 16 }
],
},
ndiin: {
type: 'ndiin',
@@ -100,7 +111,7 @@ export const NODE_TYPES: Record<string, NodeTypeDef> = {
{ id: 'audio-out', kind: 'audio', direction: 'out' },
],
params: [
{ key: 'file', label: 'File', type: 'input', default: 0, min: 0, max: 15 }
{ key: 'file', label: 'File', type: 'input', default: '0.ts' }
],
},
}