-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
83 lines (73 loc) · 3.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The World Editor</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<h1>World Editor</h1>
<canvas id="myCanvas"></canvas>
<div id="controls">
<button onclick="dispose()">🗑️</button>
<button onclick="save()">💾</button>
<label for="fileInput" class="file-input-label">
📂
<input
type="file"
id="fileInput"
accept=".world"
onchange="load(event)"
/>
</label>
<button onclick="openOsmPanel()">🗺️</button>
<button id="graphButton" onclick="setMode('graph')">🌐</button>
<button id="stopButton" onclick="setMode('stop')">🛑</button>
<button id="crossingButton" onclick="setMode('crossing')">🚶</button>
<button id="startButton" onclick="setMode('start')">🚗</button>
<button id="yieldButton" onclick="setMode('yield')">⚠️</button>
<button id="parkingButton" onclick="setMode('parking')">🅿️</button>
<button id="targetButton" onclick="setMode('target')">🎯</button>
<button id="lightButton" onclick="setMode('light')">🚥</button>
<div id="osmPanel" style="display:none;">
<textarea id="osmDataContainer" rows="10" cols="50" placeholder="Paste OSM data here"></textarea>
<div>
<button onclick="parseOsmData()">✔️</button>
<button onclick="closeOsmPanel()">❌</button>
</div>
</div>
</div>
<script src="js/math/graph.js"></script>
<script src="js/math/osm.js"></script>
<script src="js/world.js"></script>
<script src="js/viewport.js"></script>
<script src="js/controlCenter.js"></script>
<script src="js/markings/marking.js"></script>
<script src="js/markings/stop.js"></script>
<script src="js/markings/start.js"></script>
<script src="js/markings/crossing.js"></script>
<script src="js/markings/yield.js"></script>
<script src="js/markings/parking.js"></script>
<script src="js/markings/target.js"></script>
<script src="js/markings/light.js"></script>
<script src="js/math/utils.js"></script>
<script src="js/editors/markingEditor.js"></script>
<script src="js/editors/graphEditor.js"></script>
<script src="js/editors/stopEditor.js"></script>
<script src="js/editors/startEditor.js"></script>
<script src="js/editors/crossingEditor.js"></script>
<script src="js/editors/yieldEditor.js"></script>
<script src="js/editors/parkingEditor.js"></script>
<script src="js/editors/targetEditor.js"></script>
<script src="js/editors/lightEditor.js"></script>
<script src="js/items/tree.js"></script>
<script src="js/items/building.js"></script>
<script src="js/primitives/point.js"></script>
<script src="js/primitives/segment.js"></script>
<script src="js/primitives/polygon.js"></script>
<script src="js/primitives/envelope.js"></script>
<script src="index.js"></script>
</body>
</html>