-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (92 loc) · 3.87 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<html>
<meta charset="utf-8">
<head>
<link rel="stylesheet" type="text/css" href="css/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="css/joint.min.css">
<link rel="stylesheet" type="text/css" href="css.css">
<link rel="stylesheet" type="text/css" href="css/sidebar/dark-glass/sidebar.css" />
<link rel="stylesheet" type="text/css" href="css/spectrum.css" />
<link rel="stylesheet" type="text/css" href="_external/topbar/css/default.css" />
<link rel="stylesheet" type="text/css" href="_external/topbar/css/component.css" />
<script src="prototypes.js"></script>
<script src='libs/underscore-min.js'></script>
<script src='libs/dat.gui.js'></script>
<script src='libs/jquery.min.js'></script>
<script src="libs/jqueryui.js"></script>
<script src="libs/jquery.sidebar.js"></script>
<script src='libs/lodash.min.js'></script>
<script src='libs/backbone-min.js'></script>
<script src='libs/joint.min.js'></script>
<script src="libs/xml2json.js"></script>
<script src='libs/graphlib.core.js'></script>
<script src='libs/dagre.core.js'></script>
<script src='libs/jointjs.directedgraph.js'></script>
<script src='libs/spectrum.js'></script>
<script src="graph/Graph.js"></script>
<script src="graph/Graph_API.js"></script>
<script src="graph/Graph.Group.js"></script>
<script src="graph/Graph.Component.js"></script>
<script src="graph/Graph.Port.js"></script>
<script src="graph/Graph.Link.js"></script>
<script src="graph/Graph.SensorML.js"></script>
<script src="graph/Graph.Menu.js"></script>
<script src="_external/topbar/js/modernizr.custom.js"></script>
<script src="_external/topbar/js/cbpHorizontalSlideOutMenu.min.js"></script>
</head>
<body>
<input id="file_browser" type="file" style="display:none" />
<div id="topbar"></div>
<div id="paper-create"></div>
<!-- <div id="sidebar"></div>-->
<!-- <img src="http://www.sensorml.com/sensorML-2.0/examples/images/ScaleAndClip.gif"></img>-->
</body>
<script>
$( "#topbar" ).load( "topbar.html");
var API = new Graph_API();
//$( "#sidebar" ).load( "sidebar.html" );
$( document ).tooltip();
</script>
<script>
var DEMO = function () {
setTimeout(function () {
API.Graph.Component.New('test1', {
inputs: ['i1', 'i2'],
parameters: ['p1', 'p2'],
outputs: ['o1', 'o2', 'o3']
});
API.Graph.Component.New('test2', {
inputs: ['i1', 'i2'],
parameters: ['p1', 'p2'],
outputs: ['o1', 'o2', 'o3']
});
API.Graph.Component.New('test3', {
inputs: ['i1', 'i2'],
parameters: ['p1', 'p2'],
outputs: ['o1', 'o2', 'o3']
});
API.Graph.Component.New('test4', {
inputs: ['i1', 'i2'],
parameters: ['p1', 'p2'],
outputs: ['o1', 'o2', 'o3']
});
API.Graph.Component.New('test5', {
inputs: ['i1', 'i2'],
parameters: ['p1', 'p2'],
outputs: ['o1', 'o2', 'o3']
});
}, 100);
setTimeout(function () {
API.Graph.components['test1'].Add.Link('o1', 'test2.i1');
API.Graph.components['test3'].Add.Link('o3', 'test1.i2');
API.Graph.components['test3'].Add.Link('o2', 'test2.i2');
API.Graph.components['test4'].Add.Link('i1', 'test1.o1');
API.Graph.components['test4'].Add.Link('i2', 'test2.o1');
API.Graph.components['test4'].Add.Link('o1', 'test5.p1');
API.Graph.components['test4'].Add.Link('o1', 'test5.i1');
}, 500);
setTimeout(function () {
API.Graph.Directed_Graph();
}, 1000);
}
</script>
</html>