GraphML Viewer is a simple library to render graphml files (for example from yed or draw.io) in your browser using SVG!
npm install graphml-viewerGraphML Viewer is a simple library to render graphml files (for example from yed or draw.io) in your browser using SVG!
GraphML Viewer is a work in progress project and so far only a small subset of the graphml specification is supported. More accurate rendering and more broad support is coming. Feel free to report an issue if the feature you need isn't working yet.
Install with npm:
> npm i graphml-viewer
To use just import the script and create a graphml-viewer node with the src attribute pointing to the graphml file. That's all!
``html`
In case you are using webpack simply add
`javascript``
import 'graphml-viewer';
inside the entry point file.
This project only supports modern browsers such as Edge, Chrome, Firefox and Safari. IE support may be achievable with the right polyfills but the codebase will not target IE
This project is dependency free!
GraphML documents can load external content when opened. Only open GraphML documents you trust. In the future content policy features will be added to allow sandboxing the rendering process
You can view this library in action here:
https://cyberphoenix90.github.io/graphml-viewer/