Commit 815e4aa
Render HiGlass viewer inside Shadow DOM (#208)
* Render HiGlass viewer inside Shadow DOM
HiGlass v2.2.2 exports its CSS as `hglib.CSS`, which lets us encapsulate
viewer styles using the Constructable Stylesheets API and a Shadow DOM.
This prevents HiGlass styles from leaking into (or being affected by)
the host notebook environment.
The wheel event handler now also calls `preventDefault()` in addition to
`stopPropagation()`. With the shadow DOM boundary, `stopPropagation()`
alone wasn't sufficient to prevent page scrolling in marimo since
composed events cross the shadow boundary.
* Upgrade to higlass v2.2.3 for type export fix
* Fix type checking and linting
* ci: Upload smoke test failure screenshot as artifact
* Fix smoke test to check shadow root children
---------
Co-authored-by: Nezar Abdennur <nabdennur@gmail.com>1 parent 5d2ea41 commit 815e4aa
File tree
3 files changed
+44
-16
lines changed- .github/workflows
- src/higlass
3 files changed
+44
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
278 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
279 | 285 | | |
280 | 286 | | |
281 | 287 | | |
| |||
303 | 309 | | |
304 | 310 | | |
305 | 311 | | |
306 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
307 | 320 | | |
308 | 321 | | |
309 | 322 | | |
310 | 323 | | |
311 | 324 | | |
312 | | - | |
| 325 | + | |
313 | 326 | | |
314 | 327 | | |
315 | 328 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
320 | 338 | | |
321 | 339 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
328 | 351 | | |
329 | 352 | | |
330 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments