Browse Source

all of the manipulation has been moved to 4.0, redone and nicely commented and cleaned up :)

flowchartTest
Alex de Mulder 9 years ago
parent
commit
77be45d5f1
4 changed files with 28440 additions and 28332 deletions
  1. +27897
    -27840
      dist/vis.js
  2. +11
    -1
      examples/network/01_basic_usage.html
  3. +4
    -2
      lib/network/locales.js
  4. +528
    -489
      lib/network/modules/ManipulationSystem.js

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


+ 11
- 1
examples/network/01_basic_usage.html View File

@ -44,7 +44,17 @@
nodes: nodes,
edges: edges
};
var options = {edges:{arrows:'to'},manipulation:{initiallyVisible: true}}//{physics:{stabilization:false}};
var options = {edges:{arrows:'to'},
manipulation:{
initiallyVisible: true,
handlerFunctions: {
editNode: function(data, callback) {
console.log(data)
data.label = data.label + "i"
callback(data)
}
}
}}//{physics:{stabilization:false}};
var network = new vis.Network(container, data, options);
</script>

+ 4
- 2
lib/network/locales.js View File

@ -11,7 +11,8 @@ exports['en'] = {
edgeDescription: 'Click on a node and drag the edge to another node to connect them.',
editEdgeDescription: 'Click on the control points and drag them to a node to connect to it.',
createEdgeError: 'Cannot link edges to a cluster.',
deleteClusterError: 'Clusters cannot be deleted.'
deleteClusterError: 'Clusters cannot be deleted.',
editClusterError: 'Clusters cannot be edited.'
};
exports['en_EN'] = exports['en'];
exports['en_US'] = exports['en'];
@ -29,7 +30,8 @@ exports['nl'] = {
edgeDescription: 'Klik op een node en sleep de link naar een andere node om ze te verbinden.',
editEdgeDescription: 'Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.',
createEdgeError: 'Kan geen link maken naar een cluster.',
deleteClusterError: 'Clusters kunnen niet worden verwijderd.'
deleteClusterError: 'Clusters kunnen niet worden verwijderd.',
editClusterError: 'Clusters kunnen niet worden aangepast.'
};
exports['nl_NL'] = exports['nl'];
exports['nl_BE'] = exports['nl'];

+ 528
- 489
lib/network/modules/ManipulationSystem.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save