From 4a18f8999ee707caaafa9a663acecd93aa90683e Mon Sep 17 00:00:00 2001 From: Maxime Douailin Date: Wed, 2 Dec 2015 11:50:07 +0100 Subject: [PATCH 1/2] Expose publicly setSelection method --- lib/network/Network.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/network/Network.js b/lib/network/Network.js index 2007696b..92d078b7 100644 --- a/lib/network/Network.js +++ b/lib/network/Network.js @@ -466,6 +466,7 @@ Network.prototype.startSimulation = function() {return this.physics.startSim Network.prototype.stopSimulation = function() {return this.physics.stopSimulation.apply(this.physics,arguments);}; Network.prototype.stabilize = function() {return this.physics.stabilize.apply(this.physics,arguments);}; Network.prototype.getSelection = function() {return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments);}; +Network.prototype.setSelection = function() {return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments);}; Network.prototype.getSelectedNodes = function() {return this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments);}; Network.prototype.getSelectedEdges = function() {return this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments);}; Network.prototype.getNodeAt = function() { From 3234dba11f4eb0b44f0c497941ec07d6ff1fcdc2 Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 2 Dec 2015 16:13:36 +0100 Subject: [PATCH 2/2] updated history --- HISTORY.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index 1164108e..79bbf04a 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -4,6 +4,10 @@ http://visjs.org ## not yet released, version 4.10.1-SNAPSHOT +### Network + +- Expose `setSelection` method. Thanks @zefrog. + ### Timeline - Fixed #1441: Height of subgroups not immediately updated after updating