-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (48 loc) · 2.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Graph Theory</title>
</head>
<body>
<div>
<h1>Graph Editor</h1>
<p>Implemented with <i>html, css, typscript</i> and Spetial Graph theory</p>
<canvas id="graphCanvas"></canvas>
<div>
<button onclick="addRandomPoint()" style="height: 30px;">Add Points</button>
<button onclick="removeRandomPoint()" style="height: 30px;">Remove Points</button>
<button onclick="addRandomSegment()" style="height: 30px; ">Add Segment</button>
<button onclick="removeRandomSegment()" style="height: 30px;">Remove Segment</button>
<button onclick="clearGraph()" style="height: 30px;">Clear Graph</button>
</div>
<div style="margin-top: .2rem;">
<!-- <button onclick="editorMode()" style="height: 30px; width: 120px;">Turn On Editor</button>
<button onclick="viewMode()" style="height: 30px; width: 120px;">View Mode</button> -->
<p>Developed by <a href="http://reyad.kesug.com/" target="_blank">Beet Coder</a></p>
</div>
<div>
<details>
<summary>Help</summary>
<div class="help-summury">
<ul>
<li><strong>Left Click</strong> to create point and creating new segment.</li>
<li>On a point <strong>Left Click</strong> to select that point and creating new segment.</li>
<li><strong>Right Click</strong> delete selected point.</li>
<li>Also, On a hovered point <strong>Right Click</strong> to delete that.</li>
</ul>
</div>
</details>
</div>
</div>
<script src="/src/utils/utility.js"></script>
<script src="/src/graph/graph.js"></script>
<script src="/src/graph/graphEditor.js"></script>
<script src="/src/graph/viewPort.js"></script>
<script src="/src/premitives/point.js"></script>
<script src="/src/premitives/segment.js"></script>
<script src="/src/main.js"></script>
</body>
</html>