2.1.0 • Published 3 years ago

vis-network-multiselect v2.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

vis-network-multiselect

Adds right-click rectangle-based multiselection to vis-network.

Usage

import multiselect from 'vis-network-multiselect';

// Just call once :

const remove = multiselect({
  container, // The DOM container of the network
  network, // The vis.Network instance
  nodes, // The vis.DataSet instance for nodes
  strokeColor, // The border color of the selection rectangle
  fillColor // The fill color of the selection rectangle
});

// And if you want to remove it :

remove();