Relands "Add support for LiteGraph to convert to classes" (#667)

* Revert "Revert "Add support for LiteGraph to convert to classes (#334)" (#386)"

This reverts commit d607f6c7f7.

* Format
This commit is contained in:
Chenlei Hu
2024-08-28 15:35:05 -04:00
committed by GitHub
parent 4e8acf6c77
commit 6f9d2bfa17
7 changed files with 48 additions and 37 deletions

View File

@@ -11,11 +11,12 @@ app.registerExtension({
__outputType?: string
}
class RerouteNode {
class RerouteNode extends LGraphNode {
static category: string | undefined
static defaultVisibility = false
constructor() {
constructor(title?: string) {
super(title)
if (!this.properties) {
this.properties = {}
}