npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@vaadin-component-factory/vcf-network

v1.3.9

Published

Hierarchical network visualizing web component

Downloads

47

Readme

<vcf-network>

Gitter npm version Published on Vaadin Directory

Live Demo ↗ | API documentation ↗

Installation

Install vcf-network:

npm i @vaadin-component-factory/vcf-network --save

Usage

Once installed, import it in your application:

import '@vaadin-component-factory/vcf-network/vcf-network.js';

Add <vcf-network> element to the page.

<vcf-network></vcf-network>

Creating networks

The hierarchical network visualization consists of nodes, edges and components. A component is a grouping of nodes, edges and other components.

Add nodes

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.

add-nodes

Add edges

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.

add-edges

Creating components

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.

create-components

Hotkeys

Mouse

  • Double Click: Create node if on empty space
  • Right Click: Right click and drag to create selection rectangle

Keyboard

  • 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

Running demo

  1. Fork the vcf-network repository and clone it locally.

  2. Make sure you have npm installed.

  3. When in the vcf-network directory, run npm install to install dependencies.

  4. Run npm start to open the demo.

Contributing

To contribute to the component, please read the guideline first.

Vaadin Prime

This component is available in the Vaadin Prime subscription. It is still open source, but you need to have a valid CVAL license in order to use it. Read more at: https://vaadin.com/pricing

License

Apache License 2.0