No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
coverage
dist
docs
examples-src incorporated custom style into sag output Mar 6, 2018
src now using neo4j id for relationships when loading d3 data Mar 9, 2018
.gitignore
.npmignore
README.md
package.json
tsconfig-examples.json
tsconfig.json
webpack.config.examples.editor.js
webpack.config.examples.tests.js
webpack.config.js

README.md

graph-diagram

About

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:

Note: This is a first-pass, straight port. Refactoring and optimization is next.

Dependency: graph-diagram requires d3 to be installed

npm

npm install graph-diagram d3

contributing: install, build

git clone git@github.com:wwlib/graph-diagram.git
cd graph-diagram
npm install
npm run build

in-browser examples

in-browser editor:

npm run build:example-browser-editor
cd docs/examples
http-server

http://localhost:8080/example-browser-editor.html?#

editor

in-browser tests:

npm run build:example-browser-tests
cd docs/examples
http-server

http://localhost:8080/example-browser-tests.html

tests

tests, coverage

Note: Tests are incomplete

npm run test

npm run coverage