Add support for LiteGraph to convert to classes (#334)

* Add support for LiteGraph to convert to classes

* Fix large context menu search regression

* Remove debug code

* Fix regression from rename & prototype change

* Fix super() calls to match LGraphNode
This commit is contained in:
filtered
2024-08-11 23:46:54 +10:00
committed by GitHub
parent 0f3b58b610
commit e2141a81e2
7 changed files with 49 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 = {}
}