@nothing-but/force-graph
TypeScript icon, indicating that this package has built-in type declarations

0.9.5 • Public • Published

Force Graph

@nothing-but/force-graph

https://nothing-but.vercel.app

TODO:

  • [x] node key
  • [x] node mass
  • [x] delta time (simulation iterations)
  • [x] grid config
  • [x] link strength
  • [x] stop simulation when inactive (alpha)
  • [x] adding/removing nodes
  • [x] make the graph bigger
  • [x] canvas rendering
    • [x] dispaly node labels
    • [x] custom aspect ratios
    • [x] move to lib
    • [x] remove solid dependency
    • [ ] link directions (arrows)
    • [x] custom rendering of nodes/edges
  • [x] svg rendering (deprecated for now, canvas is way faster)
  • [x] interaction - gestures
    • [x] dragging nodes
      • [x] touch
    • [x] movement gestures
      • [x] with space
      • [x] without space
      • [x] touch
      • [x] clamp to graph
    • [x] zoom gestures
      • [x] zoom to mouse position
      • [x] touch
    • [x] hover
    • [x] click
    • [x] avoid closures - recreating functions
    • [x] separate from rendering
      • [ ] separate from canvas
      • [ ] standard interfaces? (strategy pattern)
    • [ ] classes (has internal lifecycle)
    • [x] escape key to reset
    • [x] try immediate mode api (instead of callbacks, handle interactions in the next frame)
  • [ ] frame animation class

Readme

Keywords

none

Package Sidebar

Install

npm i @nothing-but/force-graph

Weekly Downloads

1

Version

0.9.5

License

MIT

Unpacked Size

102 kB

Total Files

15

Last publish

Collaborators

  • thetarnav.