Browse Source

Fixed #1343: Connected edges are now deselected too when deselecting a node

webworkersNetwork
jos 9 years ago
parent
commit
e91ab2351c
3 changed files with 6 additions and 2 deletions
  1. +2
    -0
      HISTORY.md
  2. +3
    -2
      dist/vis.js
  3. +1
    -0
      lib/network/modules/SelectionHandler.js

+ 2
- 0
HISTORY.md View File

@ -4,7 +4,9 @@ http://visjs.org
## not yet released, version 4.9.1-SNAPSHOT ## not yet released, version 4.9.1-SNAPSHOT
### Network
- Fixed #1343: Connected edges are now deselected too when deselecting a node.

+ 3
- 2
dist/vis.js View File

@ -4,8 +4,8 @@
* *
* A dynamic, browser-based visualization library. * A dynamic, browser-based visualization library.
* *
* @version 4.9.0
* @date 2015-10-01
* @version 4.9.1-SNAPSHOT
* @date 2015-10-06
* *
* @license * @license
* Copyright (C) 2011-2015 Almende B.V, http://almende.com * Copyright (C) 2011-2015 Almende B.V, http://almende.com
@ -38771,6 +38771,7 @@ return /******/ (function(modules) { // webpackBootstrap
value: function _removeFromSelection(obj) { value: function _removeFromSelection(obj) {
if (obj instanceof Node) { if (obj instanceof Node) {
delete this.selectionObj.nodes[obj.id]; delete this.selectionObj.nodes[obj.id];
this._unselectConnectedEdges(obj);
} else { } else {
delete this.selectionObj.edges[obj.id]; delete this.selectionObj.edges[obj.id];
} }

+ 1
- 0
lib/network/modules/SelectionHandler.js View File

@ -277,6 +277,7 @@ class SelectionHandler {
_removeFromSelection(obj) { _removeFromSelection(obj) {
if (obj instanceof Node) { if (obj instanceof Node) {
delete this.selectionObj.nodes[obj.id]; delete this.selectionObj.nodes[obj.id];
this._unselectConnectedEdges(obj);
} }
else { else {
delete this.selectionObj.edges[obj.id]; delete this.selectionObj.edges[obj.id];

Loading…
Cancel
Save