Skip to content

Commit a1297f7

Browse files
authored
Merge pull request #129 from sankhesh/pet_ct_overlay
PET-CT fusion/overlay
2 parents c4e287e + 8475197 commit a1297f7

File tree

3 files changed

+436
-0
lines changed

3 files changed

+436
-0
lines changed

usage/src/App.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const demos = new Map([
3232
'Volume/ImageSeriesRendering',
3333
lazy(() => import('./Volume/ImageSeriesRendering')),
3434
],
35+
['Volume/PET_CT_Overlay', lazy(() => import('./Volume/PET_CT_Overlay'))],
3536
['Tests/PropertyUpdate', lazy(() => import('./Tests/PropertyUpdate'))],
3637
['Tests/CameraTest', lazy(() => import('./Tests/CameraTest'))],
3738
['Tests/ShareGeometry', lazy(() => import('./Tests/ShareGeometry'))],

usage/src/Volume/PET_CT_Overlay.css

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
label {
2+
color: lightGray;
3+
}
4+
5+
input[type=range] {
6+
-webkit-appearance: none;
7+
}
8+
9+
input[type=range]::-webkit-slider-runnable-track {
10+
width: 300px;
11+
height: 3px;
12+
background: #ddd;
13+
border: none;
14+
border-radius: 5px;
15+
}
16+
17+
18+
input[type=range]::-webkit-slider-thumb {
19+
-webkit-appearance: none;
20+
border: none;
21+
height: 25px;
22+
width: 8px;
23+
border-radius: 50%;
24+
background: goldenrod;
25+
margin-top: -10px;
26+
}
27+
28+
29+
input[type=range]:focus {
30+
outline: none;
31+
}
32+
33+
input[type=range]:focus::-webkit-slider-runnable-track {
34+
background: #ccc;
35+
}
36+
37+
38+
input[type=range][orient='vertical'] {
39+
position: absolute;
40+
zIndex: 1000;
41+
margin: 0;
42+
padding: 5;
43+
width: 2500%;
44+
height: 0.5em;
45+
transform: translate(-50%, -50%) rotate(-90deg);
46+
background: transparent;
47+
font: 1em/1 arial, sans-serif;
48+
}
49+
50+
.loader {
51+
border: 16px solid #f3f3f3;
52+
border-radius: 50%;
53+
border-top: 16px solid blue;
54+
border-right: 16px solid green;
55+
border-bottom: 16px solid red;
56+
width: 120px;
57+
height: 120px;
58+
position: absolute;
59+
top: 50%;
60+
left: 50%;
61+
transform: translate(-50%, -50%);
62+
-webkit-animation: spin 2s linear infinite;
63+
animation: spin 2s linear infinite;
64+
}
65+
@-webkit-keyframes spin {
66+
0% { -webkit-transform: rotate(0deg); }
67+
100% { -webkit-transform: rotate(360deg); }
68+
}
69+
70+
@keyframes spin {
71+
0% { transform: rotate(0deg); }
72+
100% { transform: rotate(360deg); }
73+
}

0 commit comments

Comments
 (0)