-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (56 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Human Body Partonomy</title>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="https://rawcdn.githack.com/Kcnarf/d3-weighted-voronoi/v1.1.0/build/d3-weighted-voronoi.js"></script>
<script src="https://rawcdn.githack.com/Kcnarf/d3-voronoi-map/v2.1.0/build/d3-voronoi-map.js"></script>
<script src="https://rawcdn.githack.com/Kcnarf/d3-voronoi-treemap/v1.1.1/build/d3-voronoi-treemap.js"></script>
<script src="https://unpkg.com/[email protected]/papaparse.min.js"></script>
</head>
<body>
<div>
<label>Enter a partonomy csv file: <input type="file" name="partonomy_csv"></label>
</div>
<div>
<label>Select a hierarchy depth: <select name="partonomy_depth"></select></label>
</div>
<div>
<svg>
<style>
.cell {
fill: rgba(255, 0, 0, 0.1);
stroke: rgba(0, 0, 0, 0.1);
stroke-width: 1px;
}
.cell.highlight {
stroke: black;
stroke-width: 5px;
}
.label {
text-anchor: middle;
fill: black;
}
.label:hover {
paint-order: stroke;
stroke: greenyellow;
fill: darkgreen;
stroke-width: 1px;
stroke-linecap: butt;
stroke-linejoin: miter;
font-size: 150%;
font-weight: bolder;
}
.label > .name {
dominant-baseline: text-after-edge;
}
.label > .id {
dominant-baseline: text-before-edge;
}
</style>
</svg>
</div>
<script src="index.js"></script>
</body>
</html>