Add default badge for subgraph nodes

This commit is contained in:
filtered
2025-06-20 16:43:14 -07:00
parent 9f0b22a5d8
commit ee93e36ee2

View File

@@ -1,5 +1,6 @@
import {
type IContextMenuValue,
LGraphBadge,
LGraphCanvas,
LGraphEventMode,
LGraphNode,
@@ -92,6 +93,13 @@ export const useLitegraphService = () => {
this.#setInitialSize()
this.serialize_widgets = true
void extensionService.invokeExtensionsAsync('nodeCreated', this)
this.badges.push(
new LGraphBadge({
text: '⇌',
fgColor: '#dad0de',
bgColor: '#b3b'
})
)
}
/**