MCPcopy Create free account
hub / github.com/Nynxz/ComfyUI-IdeogramHelper / toggleEnabled

Function toggleEnabled

web/main.js:8054–8060  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

8052 store.setSelection(copyIds);
8053 },
8054 toggleEnabled(id) {
8055 const el = store.getElement(id);
8056 if (!el) return;
8057 const value = el.enabled === false;
8058 const members = el.groupId ? store.state.elements.filter((e) => e.groupId === el.groupId) : [el];
8059 for (const m of members) m.enabled = value;
8060 },
8061 flipAll(axis) {
8062 for (const el of store.state.elements) if (el.bbox) _flipBbox(el, axis);
8063 },

Callers

nothing calls this directly

Calls 1

getElementMethod · 0.80

Tested by

no test coverage detected