-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraph.html
More file actions
77 lines (72 loc) · 1.72 KB
/
graph.html
File metadata and controls
77 lines (72 loc) · 1.72 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />
<title>3D Interaction Graph</title>
<style>
canvas { display: block; }
#tooltip {
position: absolute;
background: white;
padding: 5px 10px;
border: 1px solid #ccc;
border-radius: 4px;
pointer-events: none;
display: none;
}
#interaction_style {
position: fixed;
top: 12px;
left: 12px;
color: white;
background: rgba(0, 0, 0, 0.5);
padding: 8px 10px;
border-radius: 8px;
font-family: sans-serif;
font-size: 16px;
z-index: 1000;
}
body {
margin: 0;
overflow: hidden;
}
#3d-graph {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 0;
}
#home-link {
position: fixed;
top: 12px;
right: 12px;
font-size: 28px;
background: rgba(255, 255, 255, 0.8);
padding: 8px 10px;
border-radius: 8px;
color: black;
text-decoration: none;
z-index: 1000;
transition: background 0.2s ease;
}
#home-link:hover {
background: rgba(200, 200, 255, 0.95);
}
</style>
</head>
<body>
<div id="home-link">
<div id="interaction_style">Style: 0</div>
<a href="index.html" title="Return to Main View">
<span class="material-symbols-outlined">deployed_code</span>
</a>
</div>
<div id="tooltip"></div>
<div id="3d-graph"></div>
<script src="https://unpkg.com/3d-force-graph"></script>
<script type="module" src="graph.js"></script>
</body>
</html>