Browse Source

Revert "Dynamic rolling mode option"

revert-2705-dynamic-rollingMode-option
Alexander Wunschik 7 years ago
committed by GitHub
parent
commit
add675c7a0
3 changed files with 0 additions and 26 deletions
  1. +0
    -7
      docs/timeline/index.html
  2. +0
    -3
      examples/timeline/interaction/navigationMenu.html
  3. +0
    -16
      lib/timeline/Timeline.js

+ 0
- 7
docs/timeline/index.html View File

@ -1431,13 +1431,6 @@ document.getElementById('myTimeline').onclick = function (event) {
</td> </td>
</tr> </tr>
<tr>
<td>toggleRollingMode()</td>
<td>none</td>
<td>Toggle rollingMode.
</td>
</tr>
<tr> <tr>
<td>zoomIn(percentage)</td> <td>zoomIn(percentage)</td>
<td>none</td> <td>none</td>

+ 0
- 3
examples/timeline/interaction/navigationMenu.html View File

@ -38,7 +38,6 @@
<input type="button" id="zoomOut" value="Zoom out"/> <input type="button" id="zoomOut" value="Zoom out"/>
<input type="button" id="moveLeft" value="Move left"/> <input type="button" id="moveLeft" value="Move left"/>
<input type="button" id="moveRight" value="Move right"/> <input type="button" id="moveRight" value="Move right"/>
<input type="button" id="toggleRollingMode" value="toggleRollingMode"/>
</div> </div>
</div> </div>
@ -75,8 +74,6 @@
document.getElementById('zoomOut').onclick = function () { timeline.zoomOut( 0.2); }; document.getElementById('zoomOut').onclick = function () { timeline.zoomOut( 0.2); };
document.getElementById('moveLeft').onclick = function () { move( 0.2); }; document.getElementById('moveLeft').onclick = function () { move( 0.2); };
document.getElementById('moveRight').onclick = function () { move(-0.2); }; document.getElementById('moveRight').onclick = function () { move(-0.2); };
document.getElementById('toggleRollingMode').onclick = function () { timeline.toggleRollingMode() };
</script> </script>
</body> </body>

+ 0
- 16
lib/timeline/Timeline.js View File

@ -572,20 +572,4 @@ Timeline.prototype.getEventProperties = function (event) {
} }
}; };
/**
* Toggle Timeline rolling mode
*/
Timeline.prototype.toggleRollingMode = function () {
if (this.range.rolling) {
this.range.stopRolling();
} else {
if (this.options.rollingMode == undefined) {
this.setOptions(options)
}
this.range.startRolling();
}
}
module.exports = Timeline; module.exports = Timeline;

Loading…
Cancel
Save