MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / clear

Function clear

ui/media/js/image-modal.js:127–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 }
126
127 const clear = () => {
128 imageContainer.innerHTML = ""
129
130 Object.entries(initialState()).forEach(([key, value]) => state[key] = value)
131
132 stopGrabbing()
133 }
134
135 const close = () => {
136 clear()

Callers 2

closeFunction · 0.85
initFunction · 0.85

Calls 2

initialStateFunction · 0.85
stopGrabbingFunction · 0.85

Tested by

no test coverage detected