Update litegraph 0.8.72 (#2470)

This commit is contained in:
Chenlei Hu
2025-02-08 17:51:37 -05:00
committed by GitHub
parent 9e37738dc8
commit 88a969df07
5 changed files with 18 additions and 12 deletions

View File

@@ -1,6 +1,10 @@
// @ts-strict-ignore
import type { LGraphNode } from '@comfyorg/litegraph'
import type { IWidget } from '@comfyorg/litegraph'
import type {
IComboWidget,
IStringWidget
} from '@comfyorg/litegraph/dist/types/widgets'
import { Editor as TiptapEditor } from '@tiptap/core'
import TiptapLink from '@tiptap/extension-link'
import TiptapTable from '@tiptap/extension-table'
@@ -568,7 +572,7 @@ export const ComfyWidgets: Record<string, ComfyWidgetConstructor> = {
const res = {
widget: node.addWidget('combo', inputName, defaultValue, () => {}, {
values: options ?? inputData[0]
})
}) as IComboWidget
}
if (type === 'remote') {
@@ -617,7 +621,7 @@ export const ComfyWidgets: Record<string, ComfyWidgetConstructor> = {
// TODO make image upload handle a custom node type?
const imageWidget = node.widgets.find(
(w) => w.name === (inputData[1]?.widget ?? 'image')
)
) as IStringWidget
let uploadWidget
function showImage(name) {