Files
ComfyUI_frontend/tests-ui/utils/litegraph.ts
Chenlei Hu 4640eaf0ac Use npm to manage litegraph dependency (#45)
* Add comfyui-litegraph dep

* remove static copy

* Remove litegraph impl

* Fix various issues

* LiteGraph import

* Fix test ref issue

* Change to stable version of litegraph

* update README
2024-06-19 23:08:43 -04:00

31 lines
471 B
TypeScript

import fs from "fs";
import path from "path";
import { nop } from "../utils/nopProxy";
function forEachKey(cb) {
for (const k of [
"LiteGraph",
"LGraph",
"LLink",
"LGraphNode",
"LGraphGroup",
"DragAndScale",
"LGraphCanvas",
"ContextMenu",
]) {
cb(k);
}
}
export default {
setup(ctx) {
},
teardown(ctx) {
// forEachKey((k) => delete ctx[k]);
// Clear document after each run
document.getElementsByTagName("html")[0].innerHTML = "";
}
};