vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
693 B

  1. import Node from '../Node'
  2. /**
  3. * A Cluster is a special Node that allows a group of Nodes positioned closely together
  4. * to be represented by a single Cluster Node.
  5. *
  6. * @class Cluster
  7. * @extends Node
  8. */
  9. class Cluster extends Node {
  10. /**
  11. * @param {Object} options
  12. * @param {Object} body
  13. * @param {Array<HTMLImageElement>}imagelist
  14. * @param {Array} grouplist
  15. * @param {Object} globalOptions
  16. * @constructor Cluster
  17. */
  18. constructor(options, body, imagelist, grouplist, globalOptions) {
  19. super(options, body, imagelist, grouplist, globalOptions);
  20. this.isCluster = true;
  21. this.containedNodes = {};
  22. this.containedEdges = {};
  23. }
  24. }
  25. export default Cluster;