summaryrefslogtreecommitdiff
path: root/www/lib/vis/examples/network/physics
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-09-27 12:42:48 -0400
committerPliable Pixels <pliablepixels@gmail.com>2017-09-27 12:42:48 -0400
commit210e8feae2fb4842bfb2de38666e6c41671fef3c (patch)
treecbdafa34b1a6260bb20236d7e9de9eb1b690a1c5 /www/lib/vis/examples/network/physics
parente7e7baeaad90229ccb3e0f45f4ebd77be7d79b14 (diff)
removed lib
Diffstat (limited to 'www/lib/vis/examples/network/physics')
-rw-r--r--www/lib/vis/examples/network/physics/physicsConfiguration.html80
1 files changed, 0 insertions, 80 deletions
diff --git a/www/lib/vis/examples/network/physics/physicsConfiguration.html b/www/lib/vis/examples/network/physics/physicsConfiguration.html
deleted file mode 100644
index d28d20db..00000000
--- a/www/lib/vis/examples/network/physics/physicsConfiguration.html
+++ /dev/null
@@ -1,80 +0,0 @@
-<!doctype html>
-<html>
-<head>
- <title>Network | Playing with Physics</title>
-
- <style type="text/css">
- body {
- font: 10pt sans;
- }
- #mynetwork {
- float:left;
- width: 600px;
- height: 600px;
- margin:5px;
- border: 1px solid lightgray;
- }
- #config {
- float:left;
- width: 400px;
- height: 600px;
- }
- </style>
-
-
- <script type="text/javascript" src="../exampleUtil.js"></script>
- <script type="text/javascript" src="../../../dist/vis.js"></script>
- <link href="../../../dist/vis-network.min.css" rel="stylesheet" type="text/css" />
-
- <script type="text/javascript">
- var nodes = null;
- var edges = null;
- var network = null;
-
- function draw() {
- nodes = [];
- edges = [];
- // randomly create some nodes and edges
- var data = getScaleFreeNetwork(60);
-
- // create a network
- var container = document.getElementById('mynetwork');
-
- var options = {
- physics: {
- stabilization: false
- },
- configure: {
- filter:function (option, path) {
- if (path.indexOf('physics') !== -1) {
- return true;
- }
- if (path.indexOf('smooth') !== -1 || option === 'smooth') {
- return true;
- }
- return false;
- },
- container: document.getElementById('config')
- }
- };
- network = new vis.Network(container, data, options);
- }
- </script>
- <script src="../../googleAnalytics.js"></script>
-</head>
-
-<body onload="draw();">
-
-<h2>Playing with Physics</h2>
-<div style="width: 700px; font-size:14px; text-align: justify;">
- Every dataset is different. Nodes can have different sizes based on content, interconnectivity can be high or low etc. Because of this, the network configurator can be used
- to explore which settings may be good for him or her. This is ment to be used during the development phase when you are implementing vis.js. Once you have found
- settings you are happy with, you can supply them to network using the documented physics options.
-</div>
-<br />
-<div id="mynetwork"></div>
-<div id="config"></div>
-
-<p id="selection"></p>
-</body>
-</html>