Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@neo4j-nvl/interaction-handlers

Package Overview
Dependencies
Maintainers
0
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j-nvl/interaction-handlers

Interaction handlers for the Neo4j Visualization Library

  • 0.3.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3.8K
increased by6.01%
Maintainers
0
Weekly downloads
 
Created
Source

Neo4j Visualization Library

Welcome to the Neo4j Visualization Library, NVL for short. NVL is a collection of libraries that can be used to build custom graph visualizations like those used in Neo4j Bloom and Explore(powered by Bloom). NVL is written in TypeScript and can be used in any JavaScript project. It is also available as a React component that can be used in React applications.

This module is a collection of decorator classes that can be used to add interaction events to an NVL instance. The decorators are applied to the NVL class. You can find more information about the NVL class in the NVL base library.

Consuming the library

Installing the library

You can install the interaction handlers with your preferred package manager, for example

npm install @neo4j-nvl/interaction-handlers

If you are planning to use NVL in a React app, be sure to check out the NVL React wrappers.

Using the library

Heres is an example on how to use an interaction handler with the NVL class:

import { ClickInteraction } from '@neo4j-nvl/interaction-handlers'
import { NVL } from '@neo4j-nvl/base'
 *
const nvl = new NVL(nodes, relationships, options)
const clickInteraction = new ClickInteraction(nvl)
clickInteraction.updateCallback('onNodeClick', (node) => {
  console.log('Node clicked', node)
})

If you are using React and want to add interactivity to your graph, you can also make use of the InteractiveReactWrapper.

You can find more instructions and examples on how to use NVL interaction handlers in the docs.

Keywords

FAQs

Package last updated on 31 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc