Component for visualising hierarchical networks
npm i @vaadin-component-factory/vcf-network --save
Once installed, import it in your application:
<vcf-network> element to the page.
The hierarchical network visualization consists of nodes, edges and components. A component is a grouping of nodes, edges and other components.
Click the button for the node type you would like to add on the left tool panel. This will activate the "Add node mode" for this node type. You can then click anywhere on the middle canvas area to create a node at that position.
To add an edge between two nodes, first click and hold on the node you would like the edge to begin from. The cursor will change and you will be able to drag an edge to another node. When you release the mouse button over another node, an edge will be created.
In order to create components you must first select the nodes that will be in that component. You can select a single node by clicking with the left mouse button but to select multiple nodes, you must click and drag with the right mouse button. Once you have selected nodes, click the Create Component button on the right panel. You can then edit the components name and color using the fields also found on the right panel.
- Double Click: Create node if on empty space
- Right Click: Right click and drag to create selection rectangle
- N: Create normal node at cursor position or activate add node mode if add-node-toggle is enabled
- I: Create input node at cursor position or activate add node mode if add-node-toggle is enabled
- O: Create output node at cursor position or activate add node mode if add-node-toggle is enabled
- C: Create component from current selection
- D: Duplicate current selection
- E: Export current selection
- Backspace: Delete current selection
vcf-networkrepository and clone it locally.
Make sure you have npm installed.
When in the
npm installto install dependencies.
npm startto open the demo.
To contribute to the component, please read the guideline first.
Commercial Vaadin Add-on License version 3 (CVALv3). For license terms, see LICENSE.
Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.