mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-14 01:20:03 +00:00
Export Reroute class the same as other similar classes (#378)
* Export Reroute class the same as other similar classes * Update test expectations
This commit is contained in:
@@ -17,6 +17,7 @@ import { LGraphNode } from "./LGraphNode"
|
|||||||
import { SlotShape, SlotDirection, SlotType, LabelPosition } from "./draw"
|
import { SlotShape, SlotDirection, SlotType, LabelPosition } from "./draw"
|
||||||
import type { Dictionary, ISlotType, Rect } from "./interfaces"
|
import type { Dictionary, ISlotType, Rect } from "./interfaces"
|
||||||
import { distance, isInsideRectangle, overlapBounding } from "./measure"
|
import { distance, isInsideRectangle, overlapBounding } from "./measure"
|
||||||
|
import { Reroute } from "./Reroute"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Global Scope. It contains all the registered node classes.
|
* The Global Scope. It contains all the registered node classes.
|
||||||
@@ -265,6 +266,7 @@ export class LiteGraphGlobal {
|
|||||||
LGraphCanvas = LGraphCanvas
|
LGraphCanvas = LGraphCanvas
|
||||||
ContextMenu = ContextMenu
|
ContextMenu = ContextMenu
|
||||||
CurveEditor = CurveEditor
|
CurveEditor = CurveEditor
|
||||||
|
Reroute = Reroute
|
||||||
|
|
||||||
onNodeTypeRegistered?(type: string, base_class: typeof LGraphNode): void
|
onNodeTypeRegistered?(type: string, base_class: typeof LGraphNode): void
|
||||||
onNodeTypeReplaced?(type: string, base_class: typeof LGraphNode, prev: unknown): void
|
onNodeTypeReplaced?(type: string, base_class: typeof LGraphNode, prev: unknown): void
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ export type {
|
|||||||
ISerialisedGraph,
|
ISerialisedGraph,
|
||||||
} from "./types/serialisation"
|
} from "./types/serialisation"
|
||||||
export { CanvasPointer } from "./CanvasPointer"
|
export { CanvasPointer } from "./CanvasPointer"
|
||||||
|
export { Reroute } from "./Reroute"
|
||||||
export { createBounds } from "./measure"
|
export { createBounds } from "./measure"
|
||||||
|
|
||||||
export function clamp(v: number, a: number, b: number): number {
|
export function clamp(v: number, a: number, b: number): number {
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ LiteGraphGlobal {
|
|||||||
"OUTPUT": 2,
|
"OUTPUT": 2,
|
||||||
"RIGHT": 4,
|
"RIGHT": 4,
|
||||||
"ROUND_SHAPE": 2,
|
"ROUND_SHAPE": 2,
|
||||||
|
"Reroute": [Function],
|
||||||
"SPLINE_LINK": 2,
|
"SPLINE_LINK": 2,
|
||||||
"STRAIGHT_LINK": 0,
|
"STRAIGHT_LINK": 0,
|
||||||
"SlotDirection": {
|
"SlotDirection": {
|
||||||
|
|||||||
Reference in New Issue
Block a user