From 6742ccead3d7a404540415435decaa14fb5c1868 Mon Sep 17 00:00:00 2001 From: josdejong Date: Thu, 20 Feb 2014 18:17:03 +0100 Subject: [PATCH] Removed iconPath --- HISTORY.md | 2 +- docs/graph.html | 25 +------------------------ src/graph/Graph.js | 3 +-- 3 files changed, 3 insertions(+), 27 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 87439c92..e2fec779 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/docs/graph.html b/docs/graph.html index e8c402ac..8545a958 100644 --- a/docs/graph.html +++ b/docs/graph.html @@ -1588,39 +1588,16 @@ var options: {

-// 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/'
-  }
-}
 
- - - - - - - - - - - - - - -
NameTypeDefaultDescription
iconPathstring"/img"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.
-

Keyboard navigation

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 off. The predefined keys can be found in the example 20_navigation.html.

diff --git a/src/graph/Graph.js b/src/graph/Graph.js index 32c5377d..f4ac573d 100644 --- a/src/graph/Graph.js +++ b/src/graph/Graph.js @@ -125,8 +125,7 @@ function Graph (container, data, options) { clusterLevelDifference: 2 }, navigation: { - enabled: false, - iconPath: this._getScriptPath() + '/img' + enabled: false }, keyboard: { enabled: false,