-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathgrouped-viewer.pug
47 lines (46 loc) · 2.12 KB
/
grouped-viewer.pug
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
doctype html
html(lang="en")
head
title= title || 'Multiscan'
meta(charset= "UTF-8")
link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css')
link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css')
link(rel='stylesheet', href='https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.3/themes/default/style.min.css')
link(rel='stylesheet', href='//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.min.css')
style.
table tr.row-odd {
border-bottom: 1px solid silver;
}
table tr.row-even {
border-bottom: 1px solid silver;
}
table td.cell-parent {
background-color: palegoldenrod;
}
body
// UI Markup
#main
h1 Welcome to Multiscan!
#container(style='width: 100%;')
span#loading Loading...
script(src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js")
script(src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js")
script(src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js")
script(src=`${baseUrl}/three.min.js`)
script(src=`${baseUrl}/scanAnnotator.bundle.js`)
script.
var version = STK.util.getUrlParams()['version'];
var format = version? 'textured-' + version : 'textured';
var viewerParams = { palette: 'd3_unknown_category19p', format: format };
var annotationsViewer = new STK.GroupedViewer({
container: '#container',
loadingMessageSelector: '#loading',
viewerUrl: '#{baseUrl}/scans/simple-viewer',
viewerParams: viewerParams,
assetGroup: !{JSON.stringify(assetGroup || null)},
parentType: 'scene type',
childType: 'scan',
groupBy: 'sceneType'
});
annotationsViewer.init();
window.app = annotationsViewer; // For console debugging