[Bug] Register dom widget when only node is added to graph (#3732)

This commit is contained in:
Chenlei Hu
2025-05-02 12:49:19 -04:00
committed by GitHub
parent b618ebe36d
commit 197f33ffcd
3 changed files with 31 additions and 2 deletions

View File

@@ -924,6 +924,12 @@ export class ComfyPage {
return window['app'].canvas.ds.convertOffsetToCanvas(pos)
}, pos)
}
/** Get number of DOM widgets on the canvas. */
async getDOMWidgetCount() {
return await this.page.locator('.dom-widget').count()
}
async getNodeRefById(id: NodeId) {
return new NodeReference(id, this)
}