1.5.7 • Published 2 years ago

nodelayout v1.5.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

nodeLayout

Demo

For Graph Layout or Edit.

How to use

yarn add nodelayout

OR

npm install nodelayout

Demo

yarn start

Init

import * as nodelayout from "nodelayout";
const nodeLayouts = new NodeLayout();
nodeLayouts.init({
      id: "node-wrap",
      connectType: "line", // path or line
      nodeType: "rect", // rect or circle
      onNodeClick: function (d) {
        console.log(d);
      },
      onPathClick: function (d) {
        console.log(d);
      },
      list: [{
        title: "step1",
        id: "0"
      }, {
        title: "step2",
        id: "1"
      }, {
        title: "step3",
        id: "2"
      }, {
        title: "step4",
        id: "3"
      }, {
        title: "step5",
        id: "4"
      }, {
        title: "step6",
        id: "5"
      }, {
        title: "step7",
        id: "6"
      }],
      nodes: [{
        title: "step8",
        id: "0",
        x: 100,
        y: 200
      }, {
        title: "step9",
        id: "1"
      }],
      lines: [{
        source: "0",
        target: "1",
        startIndex: 0, //0, 1, 2, 3
        endIndex: 3
      }]
    })

Add

nodeLayouts.add({
  title: 'step',
  id: Math.random() + ''
});
1.5.7

2 years ago

1.5.5

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.6

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.3

2 years ago

1.5.0

2 years ago

1.3.2

2 years ago

1.3.0

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.2.9

2 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago