Add getter of nodes on LGraphGroup (#145)

This commit is contained in:
Chenlei Hu
2024-09-15 11:00:32 +09:00
committed by GitHub
parent c6b7716211
commit 3a626f4596
2 changed files with 5 additions and 0 deletions

View File

@@ -1156,6 +1156,7 @@ export declare class LGraphGroup {
font_size: number;
flags: Record<string, boolean>;
get nodes(): LGraphNode[];
get titleHeight(): number;
get selected(): boolean;

View File

@@ -4901,6 +4901,10 @@ const globalExport = {};
});
}
get nodes() {
return this._nodes;
}
get titleHeight() {
return this.font_size * 1.4;
}