Spaces:
Build error
Build error
Download ComfyUI/web/lib/litegraph.extensions.js from flatcherlee/ioatol1: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/spaces/flatcherlee/ioatol1/resolve/main/ComfyUI/web/lib/litegraph.extensions.js
- Command line
-
hf download hf://spaces/flatcherlee/ioatol1/ComfyUI/web/lib/litegraph.extensions.js
-
curl -L -o litegraph.extensions.js https://huggingface.co/spaces/flatcherlee/ioatol1/resolve/main/ComfyUI/web/lib/litegraph.extensions.js
545 Bytes
| /** | |
| * Changes the background color of the canvas. | |
| * | |
| * @method updateBackground | |
| * @param {image} String | |
| * @param {clearBackgroundColor} String | |
| * @ | |
| */ | |
| LGraphCanvas.prototype.updateBackground = function (image, clearBackgroundColor) { | |
| this._bg_img = new Image(); | |
| this._bg_img.name = image; | |
| this._bg_img.src = image; | |
| this._bg_img.onload = () => { | |
| this.draw(true, true); | |
| }; | |
| this.background_image = image; | |
| this.clear_background = true; | |
| this.clear_background_color = clearBackgroundColor; | |
| this._pattern = null | |
| } | |