Skip to content

Commit 4b9996c

Browse files
authored
Migrate to higlass v1.13 (#158)
1 parent 9338665 commit 4b9996c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/higlass/_display.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<!DOCTYPE html>
1414
<html>
1515
<head>
16-
<link rel="stylesheet" href="https://esm.sh/higlass@{{ higlass_version }}/dist/hglib.css">
1716
<script src="https://unpkg.com/requirejs-toggle"></script>
1817
{% for plugin_url in plugin_urls %}
1918
<script src="{{ plugin_url }}"></script>
@@ -24,7 +23,7 @@
2423
<div id="{{ output_div }}"></div>
2524
</body>
2625
<script type="module">
27-
import hglib from "https://esm.sh/higlass@{{ higlass_version }}?deps=react@{{ react_version }},react-dom@{{ react_version }},pixi.js@{{ pixijs_version }}";
26+
import * as hglib from "https://esm.sh/higlass@{{ higlass_version }}?deps=react@{{ react_version }},react-dom@{{ react_version }},pixi.js@{{ pixijs_version }}";
2827
hglib.viewer(
2928
document.getElementById('{{ output_div }}'),
3029
{{ viewconf }},
@@ -37,7 +36,7 @@
3736

3837
def viewconf_to_html(
3938
viewconf: dict,
40-
higlass_version: str = "1.12",
39+
higlass_version: str = "1.13",
4140
react_version: str = "17",
4241
pixijs_version: str = "6",
4342
output_div: str = "vis",

src/higlass/_widget.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
class HiGlassWidget(anywidget.AnyWidget):
1111
_esm = pathlib.Path(__file__).parent / "widget.js"
12-
_css = "https://esm.sh/[email protected]/dist/hglib.css"
1312

1413
_viewconf = t.Dict(allow_none=False).tag(sync=True)
1514
_options = t.Dict().tag(sync=True)

src/higlass/widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import hglib from "https://esm.sh/higlass@1.12?deps=react@17,react-dom@17,pixi.js@6";
1+
import * as hglib from "https://esm.sh/higlass@1.13?deps=react@17,react-dom@17,pixi.js@6";
22

33
/**
44
* @param {{

0 commit comments

Comments
 (0)