Repository navigation
Expand file tree
/
Copy pathexample.html
More file actions
82 lines (82 loc) · 3.17 KB
/
Copy pathexample.html
File metadata and controls
82 lines (82 loc) · 3.17 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DOM Relief | Example</title>
<link rel="stylesheet" href="../styles/dom-relief.css">
<link rel="stylesheet" href="./example.css">
<script src="../dist/browser/dom-relief.js"></script>
</head>
<body>
<main class="playground">
<form id="controls" class="controls">
<h1>DOM Relief</h1>
<label>
Document A <small id="document-a-size"></small>
<textarea name="document-a" rows="6"></textarea>
</label>
<label>
Document B <small id="document-b-size"></small>
<textarea name="document-b" rows="6"></textarea>
</label>
<label>
<div>
Depth Color Ceiling: <output name="depthMaxValue"></output>
</div>
<input name="depthMax" type="range" min="1" max="20">
</label>
<label>
Layer Thickness
<input name="layerThickness" type="range" min="0.2" max="4" step="0.1">
</label>
<label>
Gap
<input name="gap" type="range" min="0" max="1.5" step="0.05">
</label>
<label>
Layout
<div>
<input type="radio" name="layout" value="ordered"> Document order
<input type="radio" name="layout" value="squarified"> Squarified
</div>
</label>
<label>
Orientation
<div>
<input type="radio" name="orientation" value="horizontal"> Horizontal
<input type="radio" name="orientation" value="vertical"> Vertical
</div>
</label>
<label>
Projection
<div>
<input type="radio" name="projection" value="perspective"> Perspective
<input type="radio" name="projection" value="orthographic"> Orthographic
</div>
</label>
<label>
<div>
<input name="showGrid" type="checkbox"> Grid
</div>
</label>
<label>
<div>
<input name="sameScale" type="checkbox"> Same scale
</div>
</label>
<label>
<div>
<input name="autoRotate" type="checkbox"> Rotate
</div>
</label>
<label>
Background
<input name="background" type="color">
</label>
</form>
<canvas id="view" class="view"></canvas>
</main>
<script src="./example.js"></script>
</body>
</html>