Download custom_nodes/rgthree-comfy/src_web/comfyui/fast_groups_bypasser.ts from fotographerai/Zen-Style-Shape: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/spaces/fotographerai/Zen-Style-Shape/resolve/1e1fbeb6135765d0be77b04237eb90cd6ba0d1a0/custom_nodes/rgthree-comfy/src_web/comfyui/fast_groups_bypasser.ts
- Command line
-
hf download hf://spaces/fotographerai/Zen-Style-Shape@1e1fbeb6135765d0be77b04237eb90cd6ba0d1a0/custom_nodes/rgthree-comfy/src_web/comfyui/fast_groups_bypasser.ts
-
curl -L -o fast_groups_bypasser.ts https://huggingface.co/spaces/fotographerai/Zen-Style-Shape/resolve/1e1fbeb6135765d0be77b04237eb90cd6ba0d1a0/custom_nodes/rgthree-comfy/src_web/comfyui/fast_groups_bypasser.ts
1.26 kB
| import { RgthreeBaseVirtualNodeConstructor } from "typings/rgthree.js"; | |
| import { app } from "scripts/app.js"; | |
| import { NodeTypesString } from "./constants.js"; | |
| import { BaseFastGroupsModeChanger } from "./fast_groups_muter.js"; | |
| /** | |
| * Fast Bypasser implementation that looks for groups in the workflow and adds toggles to mute them. | |
| */ | |
| export class FastGroupsBypasser extends BaseFastGroupsModeChanger { | |
| static override type = NodeTypesString.FAST_GROUPS_BYPASSER; | |
| static override title = NodeTypesString.FAST_GROUPS_BYPASSER; | |
| override comfyClass = NodeTypesString.FAST_GROUPS_BYPASSER; | |
| static override exposedActions = ["Bypass all", "Enable all", "Toggle all"]; | |
| protected override helpActions = "bypass and enable"; | |
| override readonly modeOn = LiteGraph.ALWAYS; | |
| override readonly modeOff = 4; // Used by Comfy for "bypass" | |
| constructor(title = FastGroupsBypasser.title) { | |
| super(title); | |
| this.onConstructed(); | |
| } | |
| } | |
| app.registerExtension({ | |
| name: "rgthree.FastGroupsBypasser", | |
| registerCustomNodes() { | |
| FastGroupsBypasser.setUp(); | |
| }, | |
| loadedGraphNode(node: FastGroupsBypasser) { | |
| if (node.type == FastGroupsBypasser.title) { | |
| node.tempSize = [...node.size]; | |
| } | |
| }, | |
| }); | |