mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 09:30:06 +00:00
Merge branch 'master' of https://github.com/jagenjo/litegraph.js
This commit is contained in:
@@ -159,7 +159,7 @@ It includes several commands in the utils folder to generate doc, check errors a
|
||||
|
||||
## Demo
|
||||
-----
|
||||
The demo includes some examples of graphs. In order to try them you can visit [demo site](http://tamats.com/projects/litegraph/demo) or install it on your local computer, to do so you need `git`, `node` and `npm`. Given those dependencies are installed, run the following commands to try it out:
|
||||
The demo includes some examples of graphs. In order to try them you can visit [demo site](http://tamats.com/projects/litegraph/editor) or install it on your local computer, to do so you need `git`, `node` and `npm`. Given those dependencies are installed, run the following commands to try it out:
|
||||
```sh
|
||||
$ git clone git@github.com:jagenjo/litegraph.js.git
|
||||
$ cd litegraph.js
|
||||
@@ -167,7 +167,7 @@ $ npm install
|
||||
$ node utils/server.js
|
||||
Example app listening on port 80!
|
||||
```
|
||||
Open your browser and point it to http://localhost. You can select demo from the dropdown at the top of the page.
|
||||
Open your browser and point it to http://localhost:8000/. You can select a demo from the dropdown at the top of the page.
|
||||
|
||||
## Feedback
|
||||
--------
|
||||
|
||||
@@ -10772,7 +10772,12 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
has_submenu: true,
|
||||
callback: LGraphCanvas.onMenuNodeMode
|
||||
},
|
||||
{ content: "Resize", callback: LGraphCanvas.onResizeNode },
|
||||
{
|
||||
content: "Resize", callback: () => {
|
||||
if(node.resizable)
|
||||
LGraphCanvas.onResizeNode
|
||||
}
|
||||
},
|
||||
{
|
||||
content: "Collapse",
|
||||
callback: LGraphCanvas.onMenuNodeCollapse
|
||||
|
||||
@@ -4,7 +4,7 @@ const app = express()
|
||||
app.use('/css', express.static('css'))
|
||||
app.use('/src', express.static('src'))
|
||||
app.use('/external', express.static('external'))
|
||||
app.use('/demo', express.static('demo'))
|
||||
app.use('/', express.static('demo'))
|
||||
app.use('/editor', express.static('editor'))
|
||||
app.use('/', express.static('editor'))
|
||||
|
||||
app.listen(8000, () => console.log('Example app listening on port 8000!'))
|
||||
|
||||
Reference in New Issue
Block a user