Browse Source

Edge labels turn bold on select and hover (#3111)

gemini
wimrijnders 7 years ago
committed by yotamberk
parent
commit
ed8d6cb0a0
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      lib/network/modules/components/Edge.js

+ 5
- 0
lib/network/modules/components/Edge.js View File

@ -529,6 +529,11 @@ class Edge {
var node1 = this.from;
var node2 = this.to;
var selected = (this.from.selected || this.to.selected || this.selected);
if (this.labelModule.differentState(selected, this.hover)) {
this.labelModule.getTextSize(ctx, selected, this.hover);
}
if (node1.id != node2.id) {
this.labelModule.pointToSelf = false;
var point = this.edgeType.getPoint(0.5, viaNode);

Loading…
Cancel
Save