Browse Source

- Added a finishedRedraw event.

v3_develop
Alex de Mulder 9 years ago
parent
commit
411b08abd6
6 changed files with 455 additions and 432 deletions
  1. +6
    -0
      HISTORY.md
  2. +430
    -428
      dist/vis.js
  3. +8
    -0
      docs/graph2d.html
  4. +9
    -1
      docs/timeline.html
  5. +0
    -3
      examples/timeline/03_performance.html
  6. +2
    -0
      lib/timeline/Core.js

+ 6
- 0
HISTORY.md View File

@ -7,12 +7,18 @@ http://visjs.org
- Added points style for scatterplots and pointclouds.
- Modularized the Graph2D draw styles.
- Added a finishedRedraw event.
### Network
- Added pointer properties to the click and the doubleClick events containing the XY coordinates in DOM and canvas space.
- Removed IDs from navigation so multiple networks can be shown on the same page. (#438)
### Timeline
- Added a finishedRedraw event.
## 2014-11-07, version 3.6.4
### General

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


+ 8
- 0
docs/graph2d.html View File

@ -943,6 +943,14 @@ Graph2d.off('rangechanged', onChange);
<th>Description</th>
<th>Properties</th>
</tr>
<tr>
<td>finishedRedraw</td>
<td>Fired after a redraw is complete. When moving the Graph2d around, this could be fired frequently.
</td>
<td>
none.
</td>
</tr>
<tr>
<td>rangechange</td>

+ 9
- 1
docs/timeline.html View File

@ -1000,8 +1000,16 @@ timeline.off('select', onSelect);
<th>Description</th>
<th>Properties</th>
</tr>
<tr>
<td>finishedRedraw</td>
<td>Fired after a redraw is complete. When moving the timeline around, this could be fired frequently.
</td>
<td>
none.
</td>
</tr>
<tr>
<tr>
<td>rangechange</td>
<td>Fired repeatedly when the user is dragging the timeline window.
</td>

+ 0
- 3
examples/timeline/03_performance.html View File

@ -56,9 +56,6 @@
end: now.clone().add(11, 'days'),
zoomMin: 1000 * 60 * 60 * 24, // a day
zoomMax: 1000 * 60 * 60 * 24 * 30 * 3 // three months
//maxHeight: 300,
//height: '300px',
//orientation: 'top'
};
var timeline = new vis.Timeline(container, items, options);

+ 2
- 0
lib/timeline/Core.js View File

@ -595,6 +595,8 @@ Core.prototype.redraw = function() {
// keep repainting until all sizes are settled
this.redraw();
}
this.emit("finishedRedraw");
};
// TODO: deprecated since version 1.1.0, remove some day

Loading…
Cancel
Save