mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
Merge branch 'master' of https://github.com/jagenjo/litegraph.js
This commit is contained in:
11
README.md
11
README.md
@@ -79,6 +79,17 @@ LiteGraph.registerNodeType("basic/sum", MyAddNode );
|
||||
|
||||
```
|
||||
|
||||
or you can wrap an existing function:
|
||||
|
||||
```js
|
||||
function sum(a,b)
|
||||
{
|
||||
return a+b;
|
||||
}
|
||||
|
||||
LiteGraph.wrapFunctionAsNode("math/sum",sum, ["Number","Number"],"Number");
|
||||
```
|
||||
|
||||
## Server side
|
||||
|
||||
It also works server-side using Node although some nodes do not work in server (audio, graphics, input, etc).
|
||||
|
||||
Reference in New Issue
Block a user