Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
327e49da
Commit
327e49da
authored
Apr 08, 2023
by
EllangoK
Browse files
remove test render link file
parent
0d358b95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
72 deletions
+1
-72
web/extensions/core/colorPalette.js
web/extensions/core/colorPalette.js
+1
-1
web/scripts/test.js
web/scripts/test.js
+0
-71
No files found.
web/extensions/core/colorPalette.js
View file @
327e49da
...
@@ -462,4 +462,4 @@ function customizeRenderLink(colorPalette) {
...
@@ -462,4 +462,4 @@ function customizeRenderLink(colorPalette) {
num_sublines
num_sublines
);
);
};
};
}
}
\ No newline at end of file
web/scripts/test.js
deleted
100644 → 0
View file @
0d358b95
(
function
()
{
var
LGraphCanvas
=
LiteGraph
.
LGraphCanvas
;
var
LGraph
=
LiteGraph
.
LGraph
;
// Save the original renderLink function
var
originalRenderLink
=
LGraphCanvas
.
prototype
.
renderLink
;
// Save the original connect function
var
originalConnect
=
LGraph
.
prototype
.
connect
;
// Override the connect function
LGraph
.
prototype
.
connect
=
function
(
origin_slot
,
target_slot
,
options
)
{
var
origin_id
=
origin_slot
[
0
];
var
target_id
=
target_slot
[
0
];
var
origin_node
=
this
.
getNodeById
(
origin_id
);
var
target_node
=
this
.
getNodeById
(
target_id
);
if
(
origin_node
&&
target_node
)
{
var
output_slot
=
origin_slot
[
1
];
var
output_slot_info
=
origin_node
.
getOutputInfo
(
output_slot
);
console
.
log
(
output_slot_info
)
if
(
output_slot_info
)
{
options
=
options
||
{};
options
.
color
=
output_slot_info
.
label_color
||
null
;
}
}
return
originalConnect
.
call
(
this
,
origin_slot
,
target_slot
,
options
);
};
// Override the renderLink function
LGraphCanvas
.
prototype
.
renderLink
=
function
(
ctx
,
a
,
b
,
link
,
skip_border
,
flow
,
color
,
start_dir
,
end_dir
,
num_sublines
)
{
if
(
link
&&
link
.
color
)
{
color
=
link
.
color
;
}
// Call the original renderLink function with the new color
originalRenderLink
.
call
(
this
,
ctx
,
a
,
b
,
link
,
skip_border
,
flow
,
color
,
start_dir
,
end_dir
,
num_sublines
);
};
})();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment