-
Notifications
You must be signed in to change notification settings - Fork 0
/
xenium_multi-tenant_portrait.html
74 lines (65 loc) · 2.06 KB
/
xenium_multi-tenant_portrait.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
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
/* Use flexbox to arrange the divs side by side */
.visualization-container {
display: flex;
justify-content: space-between; /* Distribute the space between the elements */
margin-bottom: 100px;
}
.visualization {
width: 48%; /* Adjust the width of each visualization to fit in a row */
height: 500px;
position: relative;
}
</style>
</head>
<body>
<div class="visualization-container">
<div id="app-1" class="visualization"></div>
<div id="app-2" class="visualization"></div>
</div>
<script type="module">
import celldega from './src/celldega/static/widget.js';
const token = '';
const ini_x = 15500;
const ini_y = 12200;
const ini_z = 0;
const ini_zoom = -6;
let base_url = 'https://raw.githubusercontent.com/broadinstitute/celldega_Xenium_Prime_Human_Skin_FFPE_outs/main/Xenium_Prime_Human_Skin_FFPE_outs';
// Initialize the first visualization
let el_1 = document.querySelector("#app-1");
const ls_1 = await celldega.landscape_ist(
el_1,
{},
token,
ini_x,
ini_y,
ini_z,
ini_zoom,
base_url,
'',
0.25
);
// Initialize the second visualization
let base_url_2 = 'https://raw.githubusercontent.com/broadinstitute/celldega_Xenium_Prime_Mouse_Brain_Coronal_FF_outs/main/Xenium_Prime_Mouse_Brain_Coronal_FF_outs'
let el_2 = document.querySelector("#app-2");
const ls_2 = await celldega.landscape_ist(
el_2,
{},
token,
ini_x,
ini_y,
ini_z,
ini_zoom,
base_url_2,
'',
0.25
);
console.log('ls_2', ls_2);
</script>
</body>
</html>