Browse Source

fixed bug where the box shape does not use the hover background #477

v3_develop
Alex de Mulder 10 years ago
parent
commit
5c248cdd36
2 changed files with 26293 additions and 26291 deletions
  1. +26291
    -26290
      dist/vis.js
  2. +2
    -1
      lib/network/Node.js

+ 26291
- 26290
dist/vis.js
File diff suppressed because it is too large
View File


+ 2
- 1
lib/network/Node.js View File

@ -171,6 +171,7 @@ Node.prototype.setProperties = function(properties, constants) {
this.options[prop] = groupObj[prop];
}
}
console.log(this.options)
}
else if (properties.color === undefined) {
this.options.color = constants.nodes.color;
@ -620,7 +621,7 @@ Node.prototype._drawBox = function (ctx) {
ctx.lineWidth *= this.networkScaleInv;
ctx.lineWidth = Math.min(this.width,ctx.lineWidth);
ctx.fillStyle = this.selected ? this.options.color.highlight.background : this.options.color.background;
ctx.fillStyle = this.selected ? this.options.color.highlight.background : this.hover ? this.options.color.hover.background : this.options.color.background;
ctx.roundRect(this.left, this.top, this.width, this.height, this.options.radius);
ctx.fill();

Loading…
Cancel
Save