/vis-network-multiselect

Add right-click rectangle-based multiselection to vis-network

Primary LanguageTypeScript

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();