[Refactor] Abstract legacy link colour properties (#972)

Replaces colour context interface with a simple abstraction object /
interface.
This commit is contained in:
filtered
2025-04-27 06:31:43 +10:00
committed by GitHub
parent 0b46288d32
commit 8e414ab133
4 changed files with 27 additions and 34 deletions

View File

@@ -410,3 +410,8 @@ export interface ContextMenuDivElement<TValue = unknown> extends HTMLDivElement
}
export type INodeSlotContextItem = [string, ISlotType, Partial<INodeInputSlot & INodeOutputSlot>]
export interface DefaultConnectionColors {
getConnectedColor(type: ISlotType): CanvasColour
getDisconnectedColor(type: ISlotType): CanvasColour
}