-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxenium_multi-tenant_landscape.html
62 lines (51 loc) · 1.77 KB
/
xenium_multi-tenant_landscape.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">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="app-1" style="width: 600px; height: 500px; position: relative; margin-bottom: 100px;"></div>
<div id="app-2" style="width: 600px; height: 500px; position: relative; margin-bottom: 100px;"></div>
<div id="app-3" style="width: 600px; height: 500px; position: relative; margin-bottom: 100px;"></div>
<script type="module">
import celldega from './src/celldega/static/widget.js';
// Use the imported functions
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'
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 with a delay
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>