Browse Source

Updated docs and history

v3_develop
jos 9 years ago
parent
commit
c34c5a66d8
4 changed files with 26382 additions and 26186 deletions
  1. +4
    -0
      HISTORY.md
  2. +26345
    -26185
      dist/vis.js
  3. +32
    -0
      docs/dataset.html
  4. +1
    -1
      lib/Queue.js

+ 4
- 0
HISTORY.md View File

@ -8,11 +8,15 @@ http://visjs.org
- Fixed background items not always be cleared when removing them.
- Fixed visible items not always be displayed.
- Performance improvements when doing a lot of changes at once in a DataSet.
### Network
- Fixed dashed and arrow lines not using inheritColor.
### DataSet
- Support for queueing of changes, and flushing them at once.
## 2014-10-24, version 3.6.2

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


+ 32
- 0
docs/dataset.html View File

@ -162,6 +162,32 @@ var data = new vis.DataSet([data] [, options])
<a href="#Data_Types">Data Types</a>.
</td>
</tr>
<tr>
<td>queue</td>
<td>Object | boolean</td>
<td>none</td>
<td>
Queue data changes ('add', 'update', 'remove') and flush them at once.
The queue can be flushed manually by calling
<code>DataSet.flush()</code>, or can be flushed after a configured delay
or maximum number of entries.
<br>
<br>
When <code>queue</code> is true, a queue is created
with default options. Options can be specified by providing an object:
<ul>
<li><code>delay: number</code><br>
The queue will be flushed automatically after an inactivity of this
delay in milliseconds. Default value is <code>null</code>.
<li><code>max: number</code><br>
When the queue exceeds the given maximum number
of entries, the queue is flushed automatically.
Default value is <code>Infinity</code>.
</li>
</ul>
</td>
</tr>
</table>
@ -198,6 +224,12 @@ var data = new vis.DataSet([data] [, options])
<td>Find all distinct values of a specified field. Returns an unordered array containing all distinct values. If data items do not contain the specified field are ignored.</td>
</tr>
<tr>
<td>flush()</td>
<td>none</td>
<td>Flush queued changes. Only available when the DataSet is configured with the option <code>queue</code>, see section <a href="#Construction">Construction</a>.</td>
</tr>
<tr>
<td>forEach(callback [, options])</td>
<td>none</td>

+ 1
- 1
lib/Queue.js View File

@ -34,7 +34,7 @@ function Queue(options) {
* - delay: number When a number, the queue will be flushed
* automatically after an inactivity of this delay
* in milliseconds.
* When false (default), the queue is not flushed
* Default value is null.
* - max: number When the queue exceeds the given maximum number
* of entries, the queue is flushed automatically.
* Default value of max is Infinity.

Loading…
Cancel
Save