Browse Source

changed edgewidth when zooming, scale normally with min width of 0.3 px

v3_develop
Alex de Mulder 10 years ago
parent
commit
83f613beeb
3 changed files with 24616 additions and 24808 deletions
  1. +24612
    -24804
      dist/vis.js
  2. +1
    -1
      dist/vis.min.css
  3. +3
    -3
      lib/network/Edge.js

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


+ 1
- 1
dist/vis.min.css
File diff suppressed because it is too large
View File


+ 3
- 3
lib/network/Edge.js View File

@ -309,14 +309,14 @@ Edge.prototype._drawLine = function(ctx) {
*/
Edge.prototype._getLineWidth = function() {
if (this.selected == true) {
return Math.min(this.widthSelected, this.options.widthMax)*this.networkScaleInv;
return Math.max(Math.min(this.widthSelected, this.options.widthMax), 0.3*this.networkScaleInv);
}
else {
if (this.hover == true) {
return Math.min(this.options.hoverWidth, this.options.widthMax)*this.networkScaleInv;
return Math.max(Math.min(this.options.hoverWidth, this.options.widthMax), 0.3*this.networkScaleInv);
}
else {
return this.options.width*this.networkScaleInv;
return Math.max(this.options.width, 0.3*this.networkScaleInv);
}
}
};

Loading…
Cancel
Save