@aexol/slothking-diagram

A slothking diagram

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@aexol/slothking-diagram
Minified + gzip package size for @aexol/slothking-diagram in KB

Readme

How to use it

Define spacebar menu actions

let allCategories = [{
  name: 'middlewares',
  items: [
    {
      name: 'middleware',
      type: 'middleware',
      inputs: [
        {
          name: ''
        }
      ],
      outputs: [
        {
          name: ''
        }
      ]
    }
  ]
}]
<Graph
  categories={allCategories}
/>

Now if you press spacebar when mouse is on the graph you get this menu, which creates nodes.

Serialization of data

<Graph
  categories={allCategories}
  serialize={(nodes, links) => {
  }}
/>

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.