Skip to content

Commit

Permalink
Add getter of nodes on LGraphGroup (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Sep 15, 2024
1 parent c6b7716 commit 3a626f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/litegraph.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,7 @@ export declare class LGraphGroup {
font_size: number;
flags: Record<string, boolean>;

get nodes(): LGraphNode[];
get titleHeight(): number;
get selected(): boolean;

Expand Down
4 changes: 4 additions & 0 deletions src/litegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -4901,6 +4901,10 @@ const globalExport = {};
});
}

get nodes() {
return this._nodes;
}

get titleHeight() {
return this.font_size * 1.4;
}
Expand Down

0 comments on commit 3a626f4

Please sign in to comment.