mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 08:00:05 +00:00
Add hidden link enum (#190)
This commit is contained in:
5
public/litegraph.d.ts
vendored
5
public/litegraph.d.ts
vendored
@@ -252,6 +252,7 @@ export const LiteGraph: {
|
||||
RIGHT: 4;
|
||||
CENTER: 5;
|
||||
|
||||
HIDDEN_LINK: -1;
|
||||
STRAIGHT_LINK: 0;
|
||||
LINEAR_LINK: 1;
|
||||
SPLINE_LINK: 2;
|
||||
@@ -1317,7 +1318,9 @@ export declare class LGraphCanvas {
|
||||
links_render_mode:
|
||||
| typeof LiteGraph.STRAIGHT_LINK
|
||||
| typeof LiteGraph.LINEAR_LINK
|
||||
| typeof LiteGraph.SPLINE_LINK;
|
||||
| typeof LiteGraph.SPLINE_LINK
|
||||
| typeof LiteGraph.HIDDEN_LINK
|
||||
| number; // Custom render mode
|
||||
live_mode: boolean;
|
||||
node_capturing_input: LGraphNode | null;
|
||||
node_dragged: LGraphNode | null;
|
||||
|
||||
@@ -91,6 +91,7 @@ export class LiteGraphGlobal {
|
||||
CENTER = 5;
|
||||
|
||||
LINK_RENDER_MODES = ["Straight", "Linear", "Spline"]; // helper
|
||||
HIDDEN_LINK = -1;
|
||||
STRAIGHT_LINK = 0;
|
||||
LINEAR_LINK = 1;
|
||||
SPLINE_LINK = 2;
|
||||
|
||||
Reference in New Issue
Block a user