Upstream widgets layout to litegraph (#2557)

This commit is contained in:
Chenlei Hu
2025-02-14 19:40:31 -05:00
committed by GitHub
parent 5dc4a1b9cd
commit 0e2ce5e1ca
6 changed files with 5 additions and 221 deletions

View File

@@ -24,25 +24,6 @@ declare module '@comfyorg/litegraph/dist/types/widgets' {
* See extensions/core/dynamicPrompts.ts
*/
dynamicPrompts?: boolean
/**
* The computed height of the widget. Used by customized node resize logic.
* See scripts/domWidget.ts for more details.
*/
computedHeight?: number
/**
* Compute the layout size of the widget. Overrides {@link IBaseWidget.computeSize}.
*/
computeLayoutSize?: (
this: IBaseWidget,
node: LGraphNode
) => {
minHeight: number
maxHeight?: number
minWidth: number
maxWidth?: number
}
}
}
@@ -126,8 +107,6 @@ declare module '@comfyorg/litegraph' {
/** @deprecated Unused */
imageOffset?: number
/** Set by DOM widgets */
freeWidgetSpace?: number
/** Callback for pasting an image file into the node */
pasteFile?(file: File): void
}