-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
289 lines (264 loc) · 9.64 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<!DOCTYPE html>
<head>
<link rel="icon" href="img/favicon.png" type="image/x-icon" />
<meta charset="utf-8"> <!-- Unicode suppport -->
<!-- Normalize device width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Title of the page -->
<title>Topological Shape Reconstruction</title>
<!-- Call D3 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.9.2/d3.min.js"></script>
<!-- Call JQuery Library -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous">
</script>
<!-- Call Semantic UI for CSS styling and JS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<!-- Mathjax for nice math symbols -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<!-- My Styles -->
<link rel="stylesheet" type="text/css" href="style.css">
<!-- Call local js files -->
<script src="main.js"></script>
<script src="svg.js"></script>
<script src="util.js"></script>
</head>
<body>
<div class="ui right sidebar vertical menu">
<div class="header item">Display Settings</div>
<div class="item">
<div class="ui toggle shape checkbox">
<input type="checkbox" checked="checked">
<label>Display Shape</label>
</div>
</div>
<div class="item">
<div class="ui toggle balls checkbox">
<input type="checkbox" checked="checked">
<label>Display Balls</label>
</div>
</div>
<div class="item">
<div class="ui toggle complex checkbox">
<input type="checkbox" checked="checked">
<label>Display Complex</label>
</div>
</div>
<div class="item">
<div class="ui toggle shadow checkbox">
<input type="checkbox" checked="checked">
<label>Display Rips on $(S,d_\epsilon)$</label>
</div>
</div>
<div class="item">
<div class="ui toggle H2 checkbox">
<input type="checkbox">
<label>Hausdorff Hint</label>
</div>
</div>
<div class="header item">Canvas Settings</div>
<div class="setting item">
<label>Shape Stroke Color</label>
<input class="color" data-scope="shape" data-setting="strokeColor" />
<br><br>
<label>Shape Stroke Width</label>
<input class="width" data-scope="shape" data-setting="strokeWidth" />
</div>
<div class="setting item">
<label>Sample Fill Color</label>
<input class="color" data-scope="sample" data-setting="fillColor" />
<br><br>
<label>Sample Opacity</label>
<input class="opacity" data-scope="sample" data-setting="opacity" />
<br><br>
<label>Sample Radius</label>
<input data-scope="sample" data-setting="radius" />
</div>
<div class="setting item">
<label>Rips Stroke Color</label>
<input class="color" data-scope="rips" data-setting="strokeColor" />
<br><br>
<label>Rips Stroke Width</label>
<input class="width" data-scope="rips" data-setting="strokeWidth" />
<br><br>
<label>Rips Fill Color</label>
<input class="color" data-scope="rips" data-setting="fillColor" />
<br><br>
<label>Rips Opacity</label>
<input class="opacity" data-scope="rips" data-setting="opacity" />
</div>
<div class="setting item">
<label>Ball Stroke Color</label>
<input class="color" data-scope="ball" data-setting="strokeColor" />
<br><br>
<label>Ball Stroke Width</label>
<input class="width" data-scope="ball" data-setting="strokeWidth" />
<br><br>
<label>Ball Opacity</label>
<input class="opacity" data-scope="ball" data-setting="opacity" />
<br><br>
<label>Ball Fill Color</label>
<input class="color" data-scope="ball" data-setting="fillColor" />
</div>
<div class="setting item">
<label>Shadow Stroke Color</label>
<input data-scope="shadow" class="color" data-setting="strokeColor" />
<br><br>
<label>Shadow Stroke Width</label>
<input class="width" data-scope="shadow" data-setting="strokeWidth" />
<br><br>
<label>Shadow Opacity</label>
<input class="opacity" data-scope="shadow" data-setting="opacity" />
<br><br>
<label>Shadow Fill Color</label>
<input class="color" data-scope="shadow" data-setting="fillColor" />
</div>
</div>
<div class="ui fixed menu" style="margin:0;border-radius:0">
<div class="header item">
<img src="img/icon.png" class="ui mini image">
<i style="color:#21ba45">shape</i>Reconstruction
</div>
<div class="right menu">
<a class="item" href="https://github.com/sushovan4/visual-topology">
<i class="large github icon"></i>
</a>
<a class="toggle item">
<i class="bars icon"></i>
</a>
</div>
</div>
<div class="pusher" style="padding-top:60px;min-height:100vh">
<div class="ui inverted basic segment fluid container">
<div class="ui stackable grid">
<div class="twelve wide column">
<div class="ui drawing segment"></div>
</div>
<div class="four wide center aligned column">
<!-- Shape Selection -->
<div class="ui horizontal inverted divider">
1. Select Shape $X$
</div>
<div class="ui shape selection dropdown">
<div class="text" style="color: #21ba45"></div>
<i class="dropdown icon"></i>
<div class="menu">
<div class="item" data-value="">$\mathbb{R}^2$</div>
<div class="item" data-value="circle">Circle</div>
<div class="item" data-value="lissajous">Lissajous</div>
<div class="item" data-value="lemniscate">Lemniscate</div>
</div>
</div>
<!-- Sample Selection -->
<div class="ui horizontal inverted divider">
2. Select Sample $S$
</div>
<h5 class="ui inverted header">
<input type="range" min="0" max="500" step="1" value="10"
class="sample-size slider">
<br>
Size = <div class="ui size label">10</div>
</h5>
<!-- Noise Selection -->
<h5 class="ui inverted header">
<input type="range" min="0" max="200" step="5" value="0"
class="sample-noise slider">
Noise = <span class="ui noise label">0</span>
</h5>
<!-- Display Hausdorff distance -->
<h5 class="ui inverted header">
$d_H(X,S)=$<span class="ui distance label">_</span>
</h5>
<button class="ui green sample button">
Sample
</button>
<!-- Complex Selection -->
<div class="ui horizontal inverted divider">
3. Build Rips on $(S,||\cdot||)$
</div>
<!-- <div class="ui complex selection dropdown"> -->
<!-- <div class="text" style="color: #21ba45"></div> -->
<!-- <i class="dropdown icon"></i> -->
<!-- <div class="menu"> -->
<!-- <div class="active item" data-value="rips">Rips Complex</div> -->
<!-- <div class="item" data-value="cech">Čech Complex</div> -->
<!-- </div> -->
<!-- </div> -->
<h5 class="ui inverted header">
<input type="range" min="0" max="300" step="5" value="0" class="rips scale slider">
Scale $(\epsilon)$: <div class="ui large rips scale label">0</div>
</h5>
<div class="ui horizontal inverted divider">
4. Build Rips on $(S,d_\epsilon)$
</div>
<h5 class="ui inverted header">
<input type="range" min="0" max="300" step="5" value="0" class="shadow scale slider">
Scale: <div class="ui large shadow scale label">0</div>
</h5>
<a onclick="saveSVG(this)" href="" class="ui green button">Save SVG</a>
<br><br>
<i class="large copyright icon"></i>
2019
<a href="https://www.smajhi.com" style="border-bottom: 3px solid white;color: white">
Sushovan Majhi
</a>
</div>
</div>
</div>
</div>
</body>
</html>
<!-- <div class="ui segment"> -->
<!-- <form class="ui svg form"> -->
<!-- <div class="two fields"> -->
<!-- <label>Shape</label> -->
<!-- <div class="field"> -->
<!-- <input id="shape_stroke_color" value="rgb(1,0,0)"> -->
<!-- </div> -->
<!-- <div class="field"> -->
<!-- <input name="shape_stroke_width" value="2"> -->
<!-- </div> -->
<!-- </div> -->
<!-- <div class="two fields"> -->
<!-- <label>Complex Edge</label> -->
<!-- <div class="field"> -->
<!-- <input name="edge[stroke-rgba]" value="rgba(0,0,0,1)"> -->
<!-- </div> -->
<!-- <div class="field"> -->
<!-- <input name="edge[stroke-width]" value="2"> -->
<!-- </div> -->
<!-- </div> -->
<!-- <div class="three fields"> -->
<!-- <label>Complex Triangle</label> -->
<!-- <div class="field"> -->
<!-- <input name="triangle[stroke-rgba]" value="rgba(0,0,0,1)"> -->
<!-- </div> -->
<!-- <div class="field"> -->
<!-- <input name="triangle[fill-rgba]" value="rgba(0,0,0,1)"> -->
<!-- </div> -->
<!-- <div class="field"> -->
<!-- <input name="triangle[stroke-width]" value="2"> -->
<!-- </div> -->
<!-- </div> -->
<!-- <div class="three fields"> -->
<!-- <label>Ball</label> -->
<!-- <div class="field"> -->
<!-- <input name="ball[stroke-rgba]" value="rgba(0,0,0,1)"> -->
<!-- </div> -->
<!-- <div class="field"> -->
<!-- <input name="ball[fill-rgba]" value="rgba(0,0,0,1)"> -->
<!-- </div> -->
<!-- <div class="field"> -->
<!-- <input name="ball[stroke-width]" value="2"> -->
<!-- </div> -->
<!-- </div> -->
<!-- </form> -->
<!-- </div> -->