This webcomponent follows the open-wc recommendation.
npm i mv-graph
<script type="module">
import 'mv-graph/mv-graph.js';
</script>
<mv-graph></mv-graph>
For most of the tools, the configuration is in the package.json
to minimize the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.
npm start
To run a local development server that serves the basic demo located in demo/index.html
Node position are stored in localStorage browser. The storage is manage by the parent component to save on the server or just locally
Do nothing / unselect selection
Toggle node clicked
Do nothing
Move the node
If multiple node are selected, all nodes are moving
Move the svg
Select multiple node on the graph.
If ctrl is keep down selected node are keep in memory
Zoom and unzoom
Zoom