mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-21 07:14:11 +00:00
[Refactor] Abstract legacy link colour properties (#972)
Replaces colour context interface with a simple abstraction object / interface.
This commit is contained in:
@@ -2,6 +2,7 @@ import type { DragAndScale } from "./DragAndScale"
|
||||
import type { IDrawBoundingOptions } from "./draw"
|
||||
import type {
|
||||
ColorOption,
|
||||
DefaultConnectionColors,
|
||||
Dictionary,
|
||||
IColorable,
|
||||
IContextMenuValue,
|
||||
@@ -20,7 +21,6 @@ import type {
|
||||
Size,
|
||||
} from "./interfaces"
|
||||
import type { LGraph } from "./LGraph"
|
||||
import type { ConnectionColorContext } from "./node/NodeSlot"
|
||||
import type { Reroute, RerouteId } from "./Reroute"
|
||||
import type { CanvasMouseEvent } from "./types/events"
|
||||
import type { ISerialisedNode } from "./types/serialisation"
|
||||
@@ -92,7 +92,7 @@ export interface FindFreeSlotOptions {
|
||||
|
||||
interface DrawSlotsOptions {
|
||||
fromSlot?: INodeInputSlot | INodeOutputSlot
|
||||
colorContext: ConnectionColorContext
|
||||
colorContext: DefaultConnectionColors
|
||||
editorAlpha: number
|
||||
lowQuality: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user