mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-25 01:04:06 +00:00
Split LGraphCanvas out to TS file
Fixes circular dependency
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// @ts-nocheck
|
||||
import { LiteGraph, LGraphCanvas } from "./litegraph";
|
||||
import { LiteGraph } from "./litegraph";
|
||||
import { LGraphCanvas } from "./LGraphCanvas";
|
||||
import { LGraphGroup } from "./LGraphGroup";
|
||||
import { LGraphNode } from "./LGraphNode";
|
||||
import { LLink } from "./LLink";
|
||||
|
||||
8108
src/LGraphCanvas.ts
Normal file
8108
src/LGraphCanvas.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
// @ts-nocheck
|
||||
import { LiteGraph, LGraphCanvas } from "./litegraph";
|
||||
import { LiteGraph } from "./litegraph";
|
||||
import { LGraphCanvas } from "./LGraphCanvas";
|
||||
import { overlapBounding } from "./LiteGraphGlobal";
|
||||
|
||||
|
||||
|
||||
@@ -50,6 +50,8 @@ export class LiteGraphGlobal {
|
||||
WIDGET_SECONDARY_TEXT_COLOR = "#999";
|
||||
|
||||
LINK_COLOR = "#9A9";
|
||||
// TODO: This is a workaround until LGraphCanvas.link_type_colors is no longer static.
|
||||
static DEFAULT_EVENT_LINK_COLOR = "#A86";
|
||||
EVENT_LINK_COLOR = "#A86";
|
||||
CONNECTING_LINK_COLOR = "#AFA";
|
||||
|
||||
|
||||
8066
src/litegraph.js
8066
src/litegraph.js
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user