Browse Source

Removed iconPath

css_transitions
josdejong 10 years ago
parent
commit
6742ccead3
3 changed files with 3 additions and 27 deletions
  1. +1
    -1
      HISTORY.md
  2. +1
    -24
      docs/graph.html
  3. +1
    -2
      src/graph/Graph.js

+ 1
- 1
HISTORY.md View File

@ -2,7 +2,7 @@ vis.js history
http://visjs.org
## not yet released, version 0.5.0
## 2014-02-20, version 0.5.0
### Timeline

+ 1
- 24
docs/graph.html View File

@ -1588,39 +1588,16 @@ var options: {
</p>
<pre class="prettyprint">
// simple use of navigation controls
// use of navigation controls
var options: {
navigation: true
}
// advanced use of navigation controls
var options: {
navigation: {
iconPath: '/path/to/navigation/icons/'
}
}
</pre>
<table>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</tr>
<tr>
<td>iconPath</td>
<td>string</td>
<td>"/img"</td>
<td>The path to the icon images can be defined here. If custom icons are used, they have to have the same filename as the ones originally packaged with vis.js.</td>
</tr>
</table>
<h3 id="Keyboard_navigation">Keyboard navigation</h3>
<p>
The graph can be navigated using shortcut keys.
It can be configured with the following user-configurable settings.
The default state for the keyboard navigation is <b>off</b>. The predefined keys can be found in the example <a href="../examples/graph/20_navigation.html">20_navigation.html</a>.
</p>

+ 1
- 2
src/graph/Graph.js View File

@ -125,8 +125,7 @@ function Graph (container, data, options) {
clusterLevelDifference: 2
},
navigation: {
enabled: false,
iconPath: this._getScriptPath() + '/img'
enabled: false
},
keyboard: {
enabled: false,

Loading…
Cancel
Save