vis-network-multiselect

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

Usage no npm install needed!

<script type="module">
  import visNetworkMultiselect from 'https://cdn.skypack.dev/vis-network-multiselect';
</script>

README

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