diff --git a/public/litegraph.d.ts b/public/litegraph.d.ts index d8bf1205e..20371d9d6 100644 --- a/public/litegraph.d.ts +++ b/public/litegraph.d.ts @@ -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; diff --git a/src/LiteGraphGlobal.ts b/src/LiteGraphGlobal.ts index d8174437c..dd33780c7 100644 --- a/src/LiteGraphGlobal.ts +++ b/src/LiteGraphGlobal.ts @@ -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;