diff --git a/src/litegraph.ts b/src/litegraph.ts index 91608a32a..36176191f 100644 --- a/src/litegraph.ts +++ b/src/litegraph.ts @@ -89,6 +89,7 @@ export interface LGraphNodeConstructor { // End backwards compat export { InputIndicators } from "./canvas/InputIndicators" +export { LinkConnector } from "./canvas/LinkConnector" export { isOverNodeInput, isOverNodeOutput } from "./canvas/measureSlots" export { CanvasPointer } from "./CanvasPointer" export * as Constants from "./constants" diff --git a/test/LinkConnector.integration.test.ts b/test/LinkConnector.integration.test.ts index ecd9d481c..ddfdd4cb5 100644 --- a/test/LinkConnector.integration.test.ts +++ b/test/LinkConnector.integration.test.ts @@ -2,8 +2,8 @@ import type { CanvasPointerEvent } from "@/types/events" import { afterEach, describe, expect, vi } from "vitest" -import { LinkConnector } from "@/canvas/LinkConnector" import { LGraph, LGraphNode, LLink, Reroute, type RerouteId } from "@/litegraph" +import { LinkConnector } from "@/litegraph" import { test as baseTest } from "./testExtensions" diff --git a/test/canvas/LinkConnector.test.ts b/test/canvas/LinkConnector.test.ts index 48cfe88c0..0cb8d835f 100644 --- a/test/canvas/LinkConnector.test.ts +++ b/test/canvas/LinkConnector.test.ts @@ -3,7 +3,7 @@ import type { INodeInputSlot, LGraphNode } from "@/litegraph" import { beforeEach, describe, expect, test, vi } from "vitest" // We don't strictly need RenderLink interface import for the mock -import { LinkConnector } from "@/canvas/LinkConnector" +import { LinkConnector } from "@/litegraph" // Mocks const mockSetConnectingLinks = vi.fn()