From 6742ccead3d7a404540415435decaa14fb5c1868 Mon Sep 17 00:00:00 2001
From: josdejong
-// 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/' - } -}-
Name | -Type | -Default | -Description | -
---|---|---|---|
iconPath | -string | -"/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. | -
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,