block by nitaku 7517984

Graph editing with persistence

Full Screen

Same as the previous example, but with client-side persistence, thanks to the IndexedDB APIs (see this other example).

Try to modify the graph, then reload the page to load it again.

The graph is automatically saved on each modification of its structure, and also every second with a setInterval, to store even the changes made to nodes’ position by the force layout.

index.js

index.html

db.coffee

db.js

index.coffee

index.css

index.sass