mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-06 13:40:25 +00:00
Remove static circular dependency workaround (#734)
Workaround originally implemented when converting to ES modules, but is now redundant. `DEFAULT_EVENT_LINK_COLOR` confirmed unused in code search (litegraph events).
This commit is contained in:
@@ -216,8 +216,15 @@ export class LGraphCanvas implements ConnectionColorContext {
|
||||
|
||||
static DEFAULT_BACKGROUND_IMAGE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQBJREFUeNrs1rEKwjAUhlETUkj3vP9rdmr1Ysammk2w5wdxuLgcMHyptfawuZX4pJSWZTnfnu/lnIe/jNNxHHGNn//HNbbv+4dr6V+11uF527arU7+u63qfa/bnmh8sWLBgwYJlqRf8MEptXPBXJXa37BSl3ixYsGDBMliwFLyCV/DeLIMFCxYsWLBMwSt4Be/NggXLYMGCBUvBK3iNruC9WbBgwYJlsGApeAWv4L1ZBgsWLFiwYJmCV/AK3psFC5bBggULloJX8BpdwXuzYMGCBctgwVLwCl7Be7MMFixYsGDBsu8FH1FaSmExVfAxBa/gvVmwYMGCZbBg/W4vAQYA5tRF9QYlv/QAAAAASUVORK5CYII="
|
||||
|
||||
/** Initialised from LiteGraphGlobal static block to avoid circular dependency. */
|
||||
static link_type_colors: Record<string, string>
|
||||
static DEFAULT_EVENT_LINK_COLOR = "#A86"
|
||||
|
||||
/** Link type to colour dictionary. */
|
||||
static link_type_colors: Dictionary<string> = {
|
||||
"-1": LGraphCanvas.DEFAULT_EVENT_LINK_COLOR,
|
||||
"number": "#AAA",
|
||||
"node": "#DCA",
|
||||
}
|
||||
|
||||
static gradients: Record<string, CanvasGradient> = {}
|
||||
|
||||
static search_limit = -1
|
||||
|
||||
Reference in New Issue
Block a user