From 8ffb29d1a5695ea1264f889aa26e9eb30326f799 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Wed, 2 Oct 2024 14:45:21 -0400 Subject: [PATCH] Add hidden link enum (#190) --- public/litegraph.d.ts | 5 ++++- src/LiteGraphGlobal.ts | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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;