@html-graph/html-graph 1.3.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,14 +4,15 @@
4
4
 
5
5
  ### Graph visualization library that enables nodes customization using HTML
6
6
 
7
- <a target="_blank" href="https://html-graph.github.io/use-cases/020-advanced-demo/">
7
+ <a target="_blank" href="https://html-graph.github.io/use-cases/advanced-demo/">
8
8
  <img width="100%" src="https://raw.githubusercontent.com/html-graph/html-graph/master/media/full-demo.gif"/>
9
9
  </a>
10
10
 
11
- Instead of connecting nodes directly this library uses concept of ports, which provide greater fexibility at managing edges.
12
- Port is an entity of a node to which edges can be attached to.
11
+ Instead of connecting nodes directly, this library utilizes the concept of ports,
12
+ which provide greater flexibility in managing edges. A port is an entity on a
13
+ node to which edges can be attached.
13
14
 
14
- Visit <a target="_blank" href="https://html-graph.github.io">DOCUMENTATION</a> for more.
15
+ Visit the <a target="_blank" href="https://html-graph.github.io">DOCUMENTATION</a> for more details.
15
16
 
16
17
  ## Getting started:
17
18
 
@@ -56,9 +57,15 @@ const canvas = new CanvasBuilder()
56
57
  },
57
58
  },
58
59
  })
59
- .setUserDraggableNodes()
60
- .setUserTransformableViewport()
61
- .setResizeReactiveNodes()
60
+ .enableUserDraggableNodes()
61
+ .enableUserTransformableViewport()
62
+ .enableVirtualScroll({
63
+ nodeContainingRadius: {
64
+ horizontal: 25,
65
+ vertical: 25,
66
+ },
67
+ })
68
+ .enableResizeReactiveNodes()
62
69
  .build();
63
70
 
64
71
  canvas