Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.10, [self-hosted Linux], stable) (push) Has been cancelled
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.11, [self-hosted Linux], stable) (push) Has been cancelled
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.12, [self-hosted Linux], stable) (push) Has been cancelled
Full Comfy CI Workflow Runs / test-unix-nightly (12.1, , linux, 3.11, [self-hosted Linux], nightly) (push) Has been cancelled
Execution Tests / test (macos-latest) (push) Has been cancelled
Execution Tests / test (ubuntu-latest) (push) Has been cancelled
Execution Tests / test (windows-latest) (push) Has been cancelled
Test server launches without errors / test (push) Has been cancelled
Unit Tests / test (macos-latest) (push) Has been cancelled
Unit Tests / test (ubuntu-latest) (push) Has been cancelled
Unit Tests / test (windows-2022) (push) Has been cancelled
Includes 30 custom nodes committed directly, 7 Civitai-exclusive loras stored via Git LFS, and a setup script that installs all dependencies and downloads HuggingFace-hosted models on vast.ai. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
76 lines
2.0 KiB
TypeScript
76 lines
2.0 KiB
TypeScript
/**
|
|
* Typings specific to rgthree-comfy.
|
|
*/
|
|
import type { LGraphNode, Vector2 } from "@comfyorg/frontend";
|
|
import type { CanvasMouseEvent } from "@comfyorg/litegraph/dist/types/events.js";
|
|
import type { RgthreeBaseNode, RgthreeBaseVirtualNode } from '../comfyui/base_node.js'
|
|
|
|
export type AdjustedMouseCustomEvent = CustomEvent<{ originalEvent: CanvasMouseEvent }>;
|
|
|
|
export type Constructor<T> = new(...args: any[]) => T;
|
|
|
|
export interface RgthreeBaseNodeConstructor extends Constructor<RgthreeBaseNode> {
|
|
static type: string;
|
|
static category: string;
|
|
static comfyClass: string;
|
|
static exposedActions: string[];
|
|
}
|
|
|
|
export interface RgthreeBaseVirtualNodeConstructor extends Constructor<RgthreeBaseVirtualNode> {
|
|
static type: string;
|
|
static category: string;
|
|
static _category: string;
|
|
}
|
|
|
|
export interface RgthreeBaseServerNodeConstructor extends Constructor<RgthreeBaseServerNode> {
|
|
static nodeType: ComfyNodeConstructor;
|
|
static nodeData: ComfyObjectInfo;
|
|
static __registeredForOverride__: boolean;
|
|
onRegisteredForOverride(comfyClass: any, rgthreeClass: any) : void;
|
|
}
|
|
|
|
export type RgthreeModelInfoDetails = {
|
|
file?: string;
|
|
path?: string;
|
|
hasInfoFile?: boolean;
|
|
image?: string;
|
|
}
|
|
|
|
export type RgthreeModelInfo = RgthreeModelInfoDetails & {
|
|
name?: string;
|
|
type?: string;
|
|
baseModel?: string;
|
|
baseModelFile?: string;
|
|
links?: string[];
|
|
strengthMin?: number;
|
|
strengthMax?: number;
|
|
triggerWords?: string[];
|
|
trainedWords?: {
|
|
word: string;
|
|
count?: number;
|
|
civitai?: boolean
|
|
user?: boolean
|
|
}[];
|
|
description?: string;
|
|
sha256?: string;
|
|
path?: string;
|
|
images?: {
|
|
url: string;
|
|
civitaiUrl?: string;
|
|
steps?: string|number;
|
|
cfg?: string|number;
|
|
type?: 'image'|'video';
|
|
sampler?: string;
|
|
model?: string;
|
|
seed?: string;
|
|
negative?: string;
|
|
positive?: string;
|
|
resources?: {name?: string, type?: string, weight?: string|number}[];
|
|
}[]
|
|
userTags?: string[];
|
|
userNote?: string;
|
|
raw?: any;
|
|
// This one is just on the client.
|
|
filterDir?: string;
|
|
}
|