From 6166fde6e2e5c83cc057ba49ce8cc8dab3ffd85a Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Wed, 29 Jan 2014 12:05:09 +0100 Subject: [PATCH] added function to return selected objects (as per Git comment #28) --- dist/vis.js | 11 ++++++++++- src/graph/SelectionMixin.js | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/dist/vis.js b/dist/vis.js index 6d095c97..6e3682d1 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -12484,7 +12484,6 @@ var SelectionMixin = { /** - * * // TODO: rework this function, it is from the old system * * retrieve the currently selected nodes * @return {Number[] | String[]} selection An array with the ids of the @@ -12494,6 +12493,16 @@ var SelectionMixin = { return this.selection.concat([]); }, + /** + * + * retrieve the currently selected nodes as objects + * @return {Objects} selection An array with the ids of the + * selected nodes. + */ + getSelectionObjects : function() { + return this.selectionObj; + }, + /** * // TODO: rework this function, it is from the old system * diff --git a/src/graph/SelectionMixin.js b/src/graph/SelectionMixin.js index 8428c4c4..491298d3 100644 --- a/src/graph/SelectionMixin.js +++ b/src/graph/SelectionMixin.js @@ -320,7 +320,6 @@ var SelectionMixin = { /** - * * // TODO: rework this function, it is from the old system * * retrieve the currently selected nodes * @return {Number[] | String[]} selection An array with the ids of the @@ -330,6 +329,16 @@ var SelectionMixin = { return this.selection.concat([]); }, + /** + * + * retrieve the currently selected nodes as objects + * @return {Objects} selection An array with the ids of the + * selected nodes. + */ + getSelectionObjects : function() { + return this.selectionObj; + }, + /** * // TODO: rework this function, it is from the old system *