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

Function emptyState

web/main.js:7681–7692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7679 return { id: newId(), type, bbox, desc: "", text: "", color_palette: [], boxColor: nextBoxColor(), linkId: null, groupId: null, enabled: true };
7680}
7681function emptyState() {
7682 return {
7683 high_level_description: "",
7684 width: 1024,
7685 height: 1024,
7686 style: emptyStyle(),
7687 background: "",
7688 elements: [],
7689 overlay: emptyOverlay(),
7690 ui: emptyUi()
7691 };
7692}
7693const HEX_RE = /^#[0-9A-F]{6}$/;
7694function normalizeHex(raw) {
7695 let h2 = (raw || "").trim().toUpperCase();

Callers 4

createStudioStoreFunction · 0.70
_restoreFunction · 0.70
loadFunction · 0.70
resetAllFunction · 0.70

Calls 3

emptyStyleFunction · 0.70
emptyOverlayFunction · 0.70
emptyUiFunction · 0.70

Tested by

no test coverage detected