-
Notifications
You must be signed in to change notification settings - Fork 3
/
x-modeleditor-demo.html
68 lines (59 loc) · 1.24 KB
/
x-modeleditor-demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<script src="glue.js"></script>
<script src="divs.js"></script>
<script src="3d.js"></script>
<script src="gl.js"></script>
<script src="earcut.js"></script>
<script src="suncalc.js"></script>
<script src="x-widgets.js"></script>
<script src="x-nav.js"></script>
<script src="x-input.js"></script>
<script src="x-listbox.js"></script>
<script src="x-grid.js"></script>
<script src="gl-renderer.js"></script>
<script src="x-model3.js"></script>
<script src="x-modeleditor.js"></script>
<script src="x-module.js"></script>
<link rel="stylesheet" type="text/css" href="fontawesome.css">
<link rel="stylesheet" type="text/css" href="x-widgets.css">
<style>
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
height: 100%;
display: grid;
flex-flow: column;
flex: 1;
position: relative;
overflow: hidden;
font-family: arial;
font-size: 13px;
}
</style>
</head>
<body>
</body>
<script>
init_xmodule({
modules: {
demo: {icon: 'rocket'},
},
slots: {
base: {color: '#fff', icon: 'rocket'},
},
layers: [
{slot: 'base', module: 'demo', layer: 'demo'},
],
})
//show_toolboxes()
window.on('load', function() {
let m = modeleditor()
document.body.add(m)
m.focus()
})
</script>
</html>