Add hidden link enum (#190)

This commit is contained in:
Chenlei Hu
2024-10-02 14:45:21 -04:00
committed by GitHub
parent 955dec36f2
commit 8ffb29d1a5
2 changed files with 5 additions and 1 deletions

View File

@@ -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;

View File

@@ -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;