@aexol/slothking-diagram
TypeScript icon, indicating that this package has built-in type declarations

0.1.19 • Public • Published

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) => {
  }}
/>

Readme

Keywords

none

Package Sidebar

Install

npm i @aexol/slothking-diagram

Weekly Downloads

6

Version

0.1.19

License

MIT

Unpacked Size

267 kB

Total Files

141

Last publish

Collaborators

  • aexol-office
  • arturczemiel
  • ania-aexol