-
-
Notifications
You must be signed in to change notification settings - Fork 95
How to build #465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @NicolasWinsten, what are you trying to achieve here? Why build |
Thank you for the quick response! That's a good question, I should have been more clear. I wanted to make a quick change to forceAtlas2 to expose the |
What is your version of node & npm? I just ran the build on node v16 with npm v8 and I don't have your issue. I have been trying recently to port the lib to ESM-first so this might be what's causing your problem on very recent node versions. If so, can you try using an older version (v16 for instance) by switching with something like |
Thanks that seemed to be the issue. I was using the latest node v20 Again, sorry for the bother. Can I ask if there's a reason why stepping functionality isn't provided with the layouts? Is it just too weird a use case? |
People tend to either use the layout by asking for some fixed amount of iterations or use the web worker to animate the steps live. They tend not to need running the steps one by one themselves which can be tedious since you need to track some state between said steps (this state is held within the node data matrix used by the iteration). Can you describe your use case a little bit more so I understand what you are trying to do here? |
@NicolasWinsten thanks I understand better now. Your use-case makes sense of course. I could create some kind of helper class to make this easier. I just need to think a little bit more how it can relate to some other use-case people have where they need to run one step by animation frame in a As a side note, your screenshot shows what I would call a FA2 layout with bad settings, though. FA2 can produce a large variety of results and somehow is a superset of typical Fruchterman Reingold/Force Vector at least. Did you try the |
I plan to give the user the option to modify the algorithm parameters. The screenshot was just to help understanding. If you think this stepping functionality should be added in a more friendly way, I'd be happy to help. Thanks for your help |
npm run build
produces this errorI don't know a lot about the differences between ESM and CommonJS.
How should I be building this project?
The text was updated successfully, but these errors were encountered: