Browse Source

added getScale()

v3_develop
Alex de Mulder 9 years ago
parent
commit
9521cc347b
5 changed files with 5200 additions and 5357 deletions
  1. +1
    -0
      HISTORY.md
  2. +5172
    -5353
      dist/vis.js
  3. +1
    -1
      dist/vis.min.css
  4. +7
    -2
      docs/network.html
  5. +19
    -1
      lib/network/Network.js

+ 1
- 0
HISTORY.md View File

@ -18,6 +18,7 @@ http://visjs.org
- Added animation and camera controls by the method .moveTo()
- Added new event that fires when the animation is finished.
- Added new example showing the new features of animation.
- Added getScale() method.
### Timeline

+ 5172
- 5353
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


+ 7
- 2
docs/network.html View File

@ -2136,8 +2136,13 @@ var options: {
<th>Return Type</th>
<th>Description</th>
</tr>
<tr>
<tr>
<td>getScale()</td>
<td>Number</td>
<td>Returns the scale of the network. This can be for animation.
</td>
</tr>
<tr>
<td>getSelection()</td>
<td>Array of ids</td>
<td>Returns an array with the ids of the selected nodes.

+ 19
- 1
lib/network/Network.js View File

@ -2455,7 +2455,7 @@ Network.prototype._classicRedraw = function () {
};
/**
* Returns true when the Timeline is active.
* Returns true when the Network is active.
* @returns {boolean}
*/
Network.prototype.isActive = function () {
@ -2463,5 +2463,23 @@ Network.prototype.isActive = function () {
};
/**
* Sets the scale
* @returns {Number}
*/
Network.prototype.setScale = function () {
return this._setScale();
};
/**
* Returns the scale
* @returns {Number}
*/
Network.prototype.getScale = function () {
return this._getScale();
};
module.exports = Network;

Loading…
Cancel
Save