graph-diagram is a TypeScript port of a graph-editing project called Arrows, originally created by Alistair Jones at Neo4j (http://www.apcjones.com/arrows/, https://github.com/apcj/arrows).
In-browser examples of graph-diagram are at:
-
editor: https://wwlib.github.io/graph-diagram/examples/example-browser-editor.html?#
-
tests: https://wwlib.github.io/graph-diagram/examples/example-browser-tests.html?#
Note: This is a first-pass, straight port. Refactoring and optimization is next.
Dependency: graph-diagram requires d3 to be installed
npm install graph-diagram d3
git clone [email protected]:wwlib/graph-diagram.git
cd graph-diagram
npm install
npm run build
npm run build:example-browser-editor
cd docs/examples
http-server
http://localhost:8080/example-browser-editor.html?#
npm run build:example-browser-tests
cd docs/examples
http-server
http://localhost:8080/example-browser-tests.html
Note: Tests are incomplete
npm run test
npm run coverage