|
|
@ -471,10 +471,6 @@ class SelectionHandler { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* This is called when someone clicks on a node. either select or deselect it. |
|
|
|
* If there is an existing selection and we don't want to append to it, clear the existing selection |
|
|
@ -485,7 +481,12 @@ class SelectionHandler { |
|
|
|
blurObject(object) { |
|
|
|
if (object.hover === true) { |
|
|
|
object.hover = false; |
|
|
|
this.body.emitter.emit("blurNode",{node:object.id}); |
|
|
|
if (object instanceof Node) { |
|
|
|
this.body.emitter.emit("blurNode", {node: object.id}); |
|
|
|
} |
|
|
|
else { |
|
|
|
this.body.emitter.emit("blurEdge", {edge: object.id}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -529,6 +530,9 @@ class SelectionHandler { |
|
|
|
if (object instanceof Node) { |
|
|
|
this.body.emitter.emit("hoverNode", {node: object.id}); |
|
|
|
} |
|
|
|
else { |
|
|
|
this.body.emitter.emit("hoverEdge", {edge: object.id}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (object instanceof Node && this.options.hoverConnectedEdges === true) { |
|
|
|
this._hoverConnectedEdges(object); |
|
|
|