mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 21:20:12 +00:00
Add previewMediaType flag for simpler node preview rendering (#2694)
Co-authored-by: huchenlei <huchenlei@proton.me>
This commit is contained in:
4
src/types/litegraph-augmentation.d.ts
vendored
4
src/types/litegraph-augmentation.d.ts
vendored
@@ -129,6 +129,8 @@ declare module '@comfyorg/litegraph' {
|
||||
videoContainer?: HTMLElement
|
||||
/** Whether the node's preview media is loading */
|
||||
isLoading?: boolean
|
||||
/** The content type of the node's preview media */
|
||||
previewMediaType?: 'image' | 'video' | 'audio' | 'model'
|
||||
|
||||
preview: string[]
|
||||
/** Index of the currently selected image on a multi-image node such as Preview Image */
|
||||
@@ -141,7 +143,7 @@ declare module '@comfyorg/litegraph' {
|
||||
/** @deprecated Unused */
|
||||
inputHeight?: unknown
|
||||
|
||||
/** @deprecated Unused */
|
||||
/** The y offset of the image preview to the top of the node body. */
|
||||
imageOffset?: number
|
||||
/** Callback for pasting an image file into the node */
|
||||
pasteFile?(file: File): void
|
||||
|
||||
Reference in New Issue
Block a user