diff --git a/public/litegraph.d.ts b/public/litegraph.d.ts index 356233fc52..16ef84b626 100644 --- a/public/litegraph.d.ts +++ b/public/litegraph.d.ts @@ -1156,6 +1156,7 @@ export declare class LGraphGroup { font_size: number; flags: Record; + get nodes(): LGraphNode[]; get titleHeight(): number; get selected(): boolean; diff --git a/src/litegraph.js b/src/litegraph.js index dd45060b0a..0e2ac26625 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -4901,6 +4901,10 @@ const globalExport = {}; }); } + get nodes() { + return this._nodes; + } + get titleHeight() { return this.font_size * 1.4; }