Browse Source

removed clear() from graph2d docs

flowchartTest
Alex de Mulder 9 years ago
parent
commit
378c2e44d5
3 changed files with 925 additions and 937 deletions
  1. +924
    -924
      dist/vis.js
  2. +0
    -12
      docs/graph2d/index.html
  3. +1
    -1
      lib/network/modules/Canvas.js

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


+ 0
- 12
docs/graph2d/index.html View File

@ -1001,18 +1001,6 @@ function (option, path) {
<th>Return Type</th> <th>Return Type</th>
<th>Description</th> <th>Description</th>
</tr> </tr>
<tr>
<td>clear([what])</td>
<td>none</td>
<td>
Clear the Graph2d. An object can be passed specifying which sections to clear: items, groups,
and/or options. By Default, items, groups and options are cleared, i.e. <code>what = {items: true, groups: true, options: true}</code>. Example usage:
<pre class="prettyprint lang-js options">Graph2d.clear(); // clear items, groups, and options
Graph2d.clear({options: true}); // clear options only
</pre>
</td>
</tr>
<tr> <tr>
<td>destroy()</td> <td>destroy()</td>
<td>none</td> <td>none</td>

+ 1
- 1
lib/network/modules/Canvas.js View File

@ -163,7 +163,7 @@ class Canvas {
this.hammer = new Hammer(this.frame.canvas); this.hammer = new Hammer(this.frame.canvas);
this.hammer.get('pinch').set({enable: true}); this.hammer.get('pinch').set({enable: true});
// enable to get better response, todo: test on mobile. // enable to get better response, todo: test on mobile.
this.hammer.get('pan').set({threshold:5, direction:30});
this.hammer.get('pan').set({threshold:5, direction:30}); // 30 is ALL_DIRECTIONS in hammer.
hammerUtil.onTouch(this.hammer, (event) => {this.body.eventListeners.onTouch(event)}); hammerUtil.onTouch(this.hammer, (event) => {this.body.eventListeners.onTouch(event)});
this.hammer.on('tap', (event) => {this.body.eventListeners.onTap(event)}); this.hammer.on('tap', (event) => {this.body.eventListeners.onTap(event)});

Loading…
Cancel
Save