mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-24 08:44:06 +00:00
feat: add webcam widget with camera control and dynamic visibility for related properties.
This commit is contained in:
@@ -143,6 +143,7 @@
|
||||
"control_before_generate": "control before generate",
|
||||
"choose_file_to_upload": "choose file to upload",
|
||||
"capture": "capture",
|
||||
"turnOnCamera": "Turn on Camera",
|
||||
"nodes": "Nodes",
|
||||
"community": "Community",
|
||||
"all": "All",
|
||||
|
||||
@@ -51,6 +51,9 @@ const AudioPreviewPlayer = defineAsyncComponent(
|
||||
const WidgetAudioUI = defineAsyncComponent(
|
||||
() => import('../components/WidgetAudioUI.vue')
|
||||
)
|
||||
const WidgetWebcam = defineAsyncComponent(
|
||||
() => import('../components/WidgetWebcam.vue')
|
||||
)
|
||||
const Load3D = defineAsyncComponent(
|
||||
() => import('@/components/load3d/Load3D.vue')
|
||||
)
|
||||
@@ -153,6 +156,14 @@ const coreWidgetDefinitions: Array<[string, WidgetDefinition]> = [
|
||||
essential: false
|
||||
}
|
||||
],
|
||||
[
|
||||
'webcam',
|
||||
{
|
||||
component: WidgetWebcam,
|
||||
aliases: ['WEBCAM'],
|
||||
essential: false
|
||||
}
|
||||
],
|
||||
['load3D', { component: Load3D, aliases: ['LOAD_3D'], essential: false }]
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user