forked from epam/miew
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.html
44 lines (41 loc) · 1.16 KB
/
options.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Miew options</title>
<link rel="stylesheet" href="../packages/lib/build/dist/Miew.min.css">
<script src="https://unpkg.com/@babel/polyfill@7/dist/polyfill.min.js"></script>
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script>
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script>
<script src="../packages/lib/build/dist/Miew.min.js"></script>
</head>
<body>
<h1>Specify options during construction</h1>
<div class="miew-container" style="width:640px; height:480px"></div>
<script>
(function() {
var viewer = new Miew({
container: document.getElementsByClassName('miew-container')[0],
load: '1CRN',
reps: [{
mode: 'LC',
}, {
selector: 'elem S',
mode: 'VW',
material: 'TR',
colorer: ['UN', { color: 0xFFFFFF }],
}],
settings: {
autoRotation: -0.5,
bg: { color: 0xCCCCCC },
axes: false,
fps: false,
},
});
if (viewer.init()) {
viewer.run();
}
})();
</script>
</body>
</html>