Repository navigation
Conversation
… view A rewrite. Viva.render(graph) puts together ngraph.forcelayout and the add-on modules of its repository, with the choices their demo makes: pivot start, dual tree repulsion, WebGPU for graphs of 2,000 nodes and more on a hardware adapter, automatic steps per frame, stop when settled, WebGL drawing, labels for named nodes, hover, drag, select, tooltips, search and keyboard navigation. - src/render.js is the entry point; the parts are exported too. - dist/ has a script-tag build (global Viva) and an ES module whose WebGPU runner is a second file, loaded on demand. - The add-on modules are not on npm yet: package.json installs the ngraph.forcelayout repository at a pinned commit, and everything is bundled. - Tests: unit tests in Node, and the built library in headless Chrome. - The 0.x sources are removed here; they stay on the 0.x branch. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
…link fix Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…y notices The README and the changelog now describe 1.0.0-alpha.0 under npm's `next` tag: `npm install vivagraphjs` keeps installing 0.12. dist/ contains gl-matrix and bezier-easing (MIT, inlined by w-gl's build) without their notices, so the package now ships THIRD-PARTY-NOTICES.md with both. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
anvaka
marked this pull request as ready for review
November 22, 2026 12:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
VivaGraph becomes the front door to ngraph.forcelayout and the modules next to it. This is a rewrite: nothing of the 0.x code or API is kept. 0.x is preserved on the new
0.xbranch.What
render()doesIt makes the choices the forcelayout demo makes, in about 400 lines (
src/render.js):Everything it builds stays reachable (
viva.layout,viva.view,viva.scene), and the parts are exported.Builds
dist/vivagraph.min.jsViva, everything insidedist/vivagraph.module.js<script type="module">dist/vivagraph.gpu.jsHow the dependencies come in
The view, the WebGPU runner and the pivot start are not on npm.
package.jsoninstalls the ngraph.forcelayout repository as a tarball of one commit, andsrc/deps.jsreaches into itsmodules/folder. Everything is bundled, so the published package would have no dependencies. When the modules are published, only the import paths insrc/deps.jsandsrc/gpu.jschange.The pinned commit is ngraph.forcelayout's
mainat 6818df8: version 4.0.0, with the fix for almost transparent links on small graphs (anvaka/ngraph.forcelayout#127, found here).Checks
npm test: 11 unit tests pass (Node).npm run test:browser: 8 tests pass in headless Chrome 146 on an M4 Max, on the built files. They cover the script-tag and module builds, a container, pause, resume, restart, dispose, a growing graph, an empty graph, every recipe in the README, and WebGPU (start, restart, dispose).examples/render without console errors; I looked at each screenshot.Decisions for the author
vivagraphjs@0.gh-pages. Nothing here touches it; the new examples are not deployed.npm publish, and whether as1.0.0-alpha.0under anexttag first) is left to you.🤖 Generated with Claude Code