-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
95 lines (79 loc) · 3.29 KB
/
index.html
File metadata and controls
95 lines (79 loc) · 3.29 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
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>Graph Visualizer</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="libraries/p5.min.js"></script>
<script src="libraries/p5.sound.min.js"></script>
</head>
<body>
<header class="topbar">
<div class="brand">Graph Visualizer</div>
</header>
<main id="sketch-holder" class="app">
<section class="stage">
<div id="canvas-mount" class="canvas-mount"></div>
</section>
<aside class="sidebar">
<div class="panel">
<!-- <h3 class="panel-title">편집</h3> -->
<div class="btn-row">
<button id="addVertexBtn" class="btn" type="button">정점 추가 (v)</button>
<button id="arrangeBtn" class="btn" type="button">정점 정렬 (s)</button>
</div>
<div class="btn-row">
<button id="undoBtn" class="btn" type="button">실행 취소 (z)</button>
<button id="redoBtn" class="btn" type="button">다시 실행 (y)</button>
</div>
<div class="btn-row">
<button id="componentSelectBtn" class="btn" type="button">연결요소 선택 (c)</button>
<button id="dfsTreeBtn" class="btn" type="button">DFS 트리 생성 (t)</button>
</div>
</div>
<div class="panel">
<!-- <h3 class="panel-title">애니메이션</h3> -->
<label class="switch-row">
<input id="edgeModeToggle" type="checkbox" />
<span>간선 추가 모드 (e)</span>
</label>
<label class="switch-row">
<input id="directedToggle" type="checkbox" />
<span id="directedLabel">간선 방향 여부 (d)</span>
</label>
<label class="switch-row">
<input id="physicsToggle" type="checkbox" />
<span>물리 효과 적용 (p)</span>
</label>
<label class="switch-row">
<input id="animationToggle" type="checkbox" />
<span id="animationLabel">애니메이션 : 직선 (a)</span>
</label>
</div>
<div class="panel">
<!-- <h3 class="panel-title">그래프 생성</h3> -->
<textarea id="graphInput" placeholder="입력 형식:
n m
u1 v1 w1
u2 v2 w2
...
um vm wm
n: 정점 개수(0 이상 정수)
m: 간선 개수(0 이상 정수, 생략가능)
u: 간선 시작점(자연수)
v: 간선 도착점(자연수)
w: 간선 가중치(실수, 생략가능)"></textarea>
<button id="applyInputBtn" class="btn" type="button">그래프 생성(1-based만 가능)</button>
</div>
</aside>
</main>
<script src="src/mode.js"></script>
<script src="src/utils.js"></script>
<script src="src/timer.js"></script>
<script src="src/vertex.js"></script>
<script src="src/edge.js"></script>
<script src="src/graph.js"></script>
<script src="src/sketch.js"></script>
</body>
</html>