Browse Source

fixed width from value when selected (edge) #225

v3_develop
Alex de Mulder 10 years ago
parent
commit
854142a06b
3 changed files with 3515 additions and 3512 deletions
  1. +3512
    -3511
      dist/vis-light.js
  2. +2
    -1
      dist/vis.js
  3. +1
    -0
      lib/network/Edge.js

+ 3512
- 3511
dist/vis-light.js
File diff suppressed because it is too large
View File


+ 2
- 1
dist/vis.js View File

@ -5,7 +5,7 @@
* A dynamic, browser-based visualization library. * A dynamic, browser-based visualization library.
* *
* @version 3.0.1-SNAPSHOT * @version 3.0.1-SNAPSHOT
* @date 2014-07-21
* @date 2014-07-22
* *
* @license * @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com * Copyright (C) 2011-2014 Almende B.V, http://almende.com
@ -17200,6 +17200,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (!this.widthFixed && this.value !== undefined) { if (!this.widthFixed && this.value !== undefined) {
var scale = (this.widthMax - this.widthMin) / (max - min); var scale = (this.widthMax - this.widthMin) / (max - min);
this.width = (this.value - min) * scale + this.widthMin; this.width = (this.value - min) * scale + this.widthMin;
this.widthSelected = this.width * this.widthSelectionMultiplier;
} }
}; };

+ 1
- 0
lib/network/Edge.js View File

@ -225,6 +225,7 @@ Edge.prototype.setValueRange = function(min, max) {
if (!this.widthFixed && this.value !== undefined) { if (!this.widthFixed && this.value !== undefined) {
var scale = (this.widthMax - this.widthMin) / (max - min); var scale = (this.widthMax - this.widthMin) / (max - min);
this.width = (this.value - min) * scale + this.widthMin; this.width = (this.value - min) * scale + this.widthMin;
this.widthSelected = this.width * this.widthSelectionMultiplier;
} }
}; };

Loading…
Cancel
Save