Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a07b2fdf91 | ||
|
|
e1b1729c88 | ||
|
|
b67e161b43 | ||
|
|
0951891cd8 | ||
|
|
18e74b627c |
@@ -1,3 +1,12 @@
|
||||
# [1.7.0](https://github.com/failfa-st/failfast-comfyui-extensions/compare/v1.6.1...v1.7.0) (2023-08-26)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add hidden to global LinkRenderModes ([#11](https://github.com/failfa-st/failfast-comfyui-extensions/issues/11)) ([18e74b6](https://github.com/failfa-st/failfast-comfyui-extensions/commit/18e74b627caeb5bafa0fbeb4264e2c092c73f59a))
|
||||
|
||||
|
||||
|
||||
## [1.6.1](https://github.com/failfa-st/failfast-comfyui-extensions/compare/v1.6.0...v1.6.1) (2023-08-10)
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# ComfyUI Extensions by Failfa.st
|
||||
# ComfyUI Extensions by Blibla
|
||||
|
||||

|
||||
|
||||
[](https://discord.com/invite/m3TBB9XEkb)
|
||||
|
||||
ComfyUI Extensions by Failfa.st is a robust suite of enhancements, designed to optimize your ComfyUI experience. It
|
||||
ComfyUI Extensions by Blibla is a robust suite of enhancements, designed to optimize your ComfyUI experience. It
|
||||
provides a range of features, including customizable render modes, dynamic node coloring, and versatile management
|
||||
tools. Whether for individual use or team collaboration, our extensions aim to enhance productivity, readability, and
|
||||
personalization in your ComfyUI environment.
|
||||
|
||||
+23
-27
@@ -184,45 +184,40 @@ function colorPositiveNegative(app) {
|
||||
* Colors
|
||||
*/
|
||||
let afterChange;
|
||||
let colorModeValue;
|
||||
function invokeAfterChange() {
|
||||
switch (colorModeValue) {
|
||||
case 1:
|
||||
uncolor(app);
|
||||
break;
|
||||
case 2:
|
||||
rainbowify(app);
|
||||
break;
|
||||
case 3:
|
||||
colorByType(app);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (getPosNegValue()) {
|
||||
colorPositiveNegative(app);
|
||||
}
|
||||
return afterChange?.apply(this, arguments);
|
||||
}
|
||||
|
||||
function setColorMode(value, app) {
|
||||
colorModeValue = value;
|
||||
switch (value) {
|
||||
case 1:
|
||||
app.graph.afterChange = function () {
|
||||
uncolor(app);
|
||||
if (getPosNegValue()) {
|
||||
colorPositiveNegative(app);
|
||||
}
|
||||
return afterChange?.apply(this, arguments);
|
||||
};
|
||||
uncolor(app);
|
||||
break;
|
||||
case 2:
|
||||
app.graph.afterChange = function () {
|
||||
rainbowify(app);
|
||||
if (getPosNegValue()) {
|
||||
colorPositiveNegative(app);
|
||||
}
|
||||
return afterChange?.apply(this, arguments);
|
||||
};
|
||||
rainbowify(app);
|
||||
break;
|
||||
case 3:
|
||||
app.graph.afterChange = function () {
|
||||
colorByType(app);
|
||||
if (getPosNegValue()) {
|
||||
colorPositiveNegative(app);
|
||||
}
|
||||
return afterChange?.apply(this, arguments);
|
||||
};
|
||||
colorByType(app);
|
||||
break;
|
||||
default:
|
||||
app.graph.afterChange = function () {
|
||||
if (getPosNegValue()) {
|
||||
colorPositiveNegative(app);
|
||||
}
|
||||
return afterChange?.apply(this, arguments);
|
||||
};
|
||||
app.graph._nodes.forEach((node) => {
|
||||
node.bgcolor = node._bgcolor ?? node.bgcolor;
|
||||
node.color = node._color ?? node.color;
|
||||
@@ -275,6 +270,7 @@ app.registerExtension({
|
||||
},
|
||||
async init(app) {
|
||||
afterChange = app.graph.afterChange;
|
||||
app.graph.afterChange = invokeAfterChange;
|
||||
const onMenuNodeColors = LGraphCanvas.onMenuNodeColors;
|
||||
LGraphCanvas.onMenuNodeColors = function (value, options, e, menu, node) {
|
||||
const response = onMenuNodeColors.apply(this, arguments);
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Coded with love by Failfa.st
|
||||
* LICENSE: AGPL 3.0
|
||||
* https://github.com/failfa-st/failfast-comfyui-extensions/blob/main/LICENSE
|
||||
*
|
||||
* Visit https://github.com/failfa-st/failfast-comfyui-extensions for more info
|
||||
*
|
||||
* Homepage: https://failfa.st
|
||||
* GitHub: https://github.com/failfa-st
|
||||
* Discord: https://discord.com/invite/m3TBB9XEkb
|
||||
*/
|
||||
import { app } from "/scripts/app.js";
|
||||
|
||||
/**
|
||||
* Render Shadow
|
||||
*/
|
||||
|
||||
const linkRenderModesName = "Failfast.linkRenderModes";
|
||||
|
||||
app.registerExtension({
|
||||
name: linkRenderModesName,
|
||||
async init() {
|
||||
if (LiteGraph?.LINK_RENDER_MODES) {
|
||||
LiteGraph.LINK_RENDER_MODES[3] = "Hidden";
|
||||
}
|
||||
},
|
||||
});
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "failfast-comfyui-extensions",
|
||||
"version": "1.6.1",
|
||||
"version": "1.7.0",
|
||||
"scripts": {
|
||||
"changelog": "npx conventional-changelog-cli -p angular -i CHANGELOG.md -s",
|
||||
"toc": "npx markdown-toc README.md -i "
|
||||
|
||||
Reference in New Issue
Block a user