GithubHelp home page GithubHelp logo

daniel-lewis-ab / litegraph.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jagenjo/litegraph.js

8.0 2.0 2.0 43.46 MB

A graph node engine and editor written in Javascript similar to PD or UDK Blueprints, comes with its own editor in HTML5 Canvas2D. The engine can run client side or server side using Node. It allows to export graphs as JSONs to be included in applications independently.

License: MIT License

JavaScript 93.87% Python 0.34% C# 4.28% CSS 1.11% HTML 0.40%

litegraph.js's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

litegraph.js's Issues

Weird LGraph bug multiview, subgraph

If you:

  1. go to multiview
  2. leave it
  3. go to subgraph
  4. enter a subgraph (it will incorrectly estimate Subgraphout position)
  5. click play (it will now break and not draw front canvas)

NPM package

Hi, wanted to ask if you are interested in publishing this forked library in its own NPM package? I forked lightgraph myself, mainly to have up-to-date NPM packages and also implemented a release-it flow to simplify building and publishing the package.

Have a look at the README and package.json.

Question about branches and PR

Hi guys,

I saw that @daniel-lewis-ab is working on the reversion and @atlasan is working on forwardcompatible. And I've sumitted a PR to the master. Is master the branch I should PR to? Did I do it right? Or, should I join @atlasan to fix things on forwardcompatible?

I need some suggestion. Thanks!

Mouse leave events do not register

A number of dialogs (such as the node search box or the widget set popup) set up event listeners to close on mouse leave. As sMethod is mouse by default, the prior implementation would handle mouse leave events with the default case, but an added break results in no warning or registration event being performed.

Behavior difference in removing a link

If the user drag the end of the link from the input slot of the next node out (I usually remove links this way), the behavior is different from the original repo.

Original LiteGraph.js:

Screenshot 2024-06-05 193713

Here:

Screenshot 2024-06-05 193816

Refering to `uglifyjs` in `build.py`

When I try to do npm run build, it fails to find uglifyjs. The error message is attached below:

PS C:\ComfyUI\litegraph\litegraph.js-daniel> npm run build

> @mr_pebble/[email protected] build
> python3 build.py

Processing ./src/litegraph.js Traceback (most recent call last):
  File "C:\ComfyUI\litegraph\litegraph.js-daniel\build.py", line 170, in <module>
    pack_js_files(js_files_list["js_files"], js_files_list["output_filename"])
  File "C:\ComfyUI\litegraph\litegraph.js-daniel\build.py", line 102, in pack_js_files
    minified_js = subprocess.run(["uglifyjs", js_file, "-c"], stdout=subprocess.PIPE, text=True)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\learn\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\learn\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\learn\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

I found explanation that, when use uglifyjs command in package.json's scripts section, it'll automatically search ./node_modules/.bin/ for the executables. However, when we use python file build.py and refer uglifyjs in it, there's no mechanism to include the ./node_modules/.bin/. I guess you didn't see this problem is because you globally installed uglifyjs, and that was used in your npm run build.

And the extension .cmd is also needed for windows, so i think we should add some code for people who are building this on Windows.

I'll do a quick PR to fix this. I am familiar with Python. :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.