mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Add default badge for subgraph nodes
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
type IContextMenuValue,
|
type IContextMenuValue,
|
||||||
|
LGraphBadge,
|
||||||
LGraphCanvas,
|
LGraphCanvas,
|
||||||
LGraphEventMode,
|
LGraphEventMode,
|
||||||
LGraphNode,
|
LGraphNode,
|
||||||
@@ -92,6 +93,13 @@ export const useLitegraphService = () => {
|
|||||||
this.#setInitialSize()
|
this.#setInitialSize()
|
||||||
this.serialize_widgets = true
|
this.serialize_widgets = true
|
||||||
void extensionService.invokeExtensionsAsync('nodeCreated', this)
|
void extensionService.invokeExtensionsAsync('nodeCreated', this)
|
||||||
|
this.badges.push(
|
||||||
|
new LGraphBadge({
|
||||||
|
text: '⇌',
|
||||||
|
fgColor: '#dad0de',
|
||||||
|
bgColor: '#b3b'
|
||||||
|
})
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user