-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (70 loc) · 2.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" content="Max Franke <[email protected]>">
<link rel="stylesheet" href="style.css">
<script defer src="map-transition-helper.umd.js"></script>
<script type="module" src="main.js"></script>
<title>Demo and API Tests</title>
</head>
<body>
<header>
<h1>API Tests</h1>
</header>
<main>
<canvas width="800" height="600"></canvas>
</main>
<footer>
<fieldset>
<legend>Transition method</legend>
<select id="transition-method">
<option value="concatenated">concatenated</option>
<option value="linear">linear</option>
<option value="box">box</option>
<option value="triangle">triangle</option>
<option value="around world">around world</option>
<option value="van Wijk and Nuij" selected>van Wijk and Nuij (2003) (ρ=1.5)</option>
</select>
<button id="fetch-failed">Fetch failed</button>
</fieldset>
<fieldset>
<legend>Transition controls</legend>
<button id="initialize">Initialize</button>
<button id="play">Play</button>
<button id="pause">Pause</button>
<button id="cancel">Cancel</button>
</fieldset>
<fieldset>
<legend>Set frame #</legend>
<span id="current-frame-nr">Current: ?</span>
<input type="number" min="0" value="0" step="1" size="2" id="frame-nr-input">
<button id="submit-frame-nr">Set</button>
</fieldset>
<fieldset>
<legend>Transition events</legend>
<span id="event-frame" class="event-indicator">frame</span>
<span id="event-render" class="event-indicator">render</span>
<span id="event-play" class="event-indicator">play</span>
<span id="event-pause" class="event-indicator">pause</span>
<span id="event-cancel" class="event-indicator">cancel</span>
<span id="event-finish" class="event-indicator">finish</span>
</fieldset>
<fieldset>
<legend>TileMap events</legend>
<span id="event-tileadded" class="event-indicator">tileadded</span>
<span id="event-tileloaded" class="event-indicator">tileloaded</span>
<span id="event-tilefailed" class="event-indicator">tilefailed</span>
<span id="event-loaded" class="event-indicator">loaded</span>
</fieldset>
<fieldset>
<legend>TileMap progress</legend>
<span id="tilemap-progress">0s+0c+0f / 0</span>
</fieldset>
<fieldset>
<legend>Cursor position</legend>
<span id="cursor-position">outside canvas</span>
</fieldset>
</footer>
</body>
</html>