Browse Source

Add the updated compiled vis.js files

css_transitions
Eric Gillingham 11 years ago
parent
commit
446bea0b4e
2 changed files with 22 additions and 6 deletions
  1. +17
    -1
      vis.js
  2. +5
    -5
      vis.min.js

+ 17
- 1
vis.js View File

@ -5,7 +5,7 @@
* A dynamic, browser-based visualization library.
*
* @version 0.2.0-SNAPSHOT
* @date 2013-06-25
* @date 2013-07-10
*
* @license
* Copyright (C) 2011-2013 Almende B.V, http://almende.com
@ -3527,6 +3527,22 @@ Range.prototype.move = function(moveFactor) {
this.end = newEnd;
};
/**
* Move the range to a new center point
* @param {Number} moveTo New center point of the range
*/
Range.prototype.moveTo = function(moveTo) {
var center = (this.start + this.end) / 2;
var diff = center - moveTo;
// calculate new start and end
var newStart = this.start - diff;
var newEnd = this.end - diff;
this.setRange(newStart, newEnd);
}
/**
* @constructor Controller
*

+ 5
- 5
vis.min.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save