@jbrowse/plugin-grid-bookmark 2.7.2 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -69,10 +69,10 @@ const BookmarkGrid = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
|
69
69
|
// reset selections if bookmarked regions change
|
|
70
70
|
// needed especially if bookmarked regions are deleted, then
|
|
71
71
|
const [widths, setWidths] = (0, react_1.useState)([
|
|
72
|
-
|
|
73
|
-
Math.max((0, util_1.measureText)('Bookmark link'), (0, util_1.measureGridWidth)(rows.map(row => row.locString))),
|
|
74
|
-
Math.max((0, util_1.measureText)('Label'), (0, util_1.measureGridWidth)(rows.map(row => row.label))),
|
|
75
|
-
Math.max((0, util_1.measureText)('Assembly'), (0, util_1.measureGridWidth)(rows.map(row => row.assemblyName))),
|
|
72
|
+
50,
|
|
73
|
+
Math.max((0, util_1.measureText)('Bookmark link', 12) + 30, (0, util_1.measureGridWidth)(rows.map(row => row.locString))),
|
|
74
|
+
Math.max((0, util_1.measureText)('Label', 12) + 30, (0, util_1.measureGridWidth)(rows.map(row => row.label))),
|
|
75
|
+
Math.max((0, util_1.measureText)('Assembly', 12) + 30, (0, util_1.measureGridWidth)(rows.map(row => row.assemblyName))),
|
|
76
76
|
]);
|
|
77
77
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
78
78
|
react_1.default.createElement("div", { ref: ref },
|
|
@@ -41,10 +41,10 @@ const BookmarkGrid = observer(function ({ model, }) {
|
|
|
41
41
|
// reset selections if bookmarked regions change
|
|
42
42
|
// needed especially if bookmarked regions are deleted, then
|
|
43
43
|
const [widths, setWidths] = useState([
|
|
44
|
-
|
|
45
|
-
Math.max(measureText('Bookmark link'), measureGridWidth(rows.map(row => row.locString))),
|
|
46
|
-
Math.max(measureText('Label'), measureGridWidth(rows.map(row => row.label))),
|
|
47
|
-
Math.max(measureText('Assembly'), measureGridWidth(rows.map(row => row.assemblyName))),
|
|
44
|
+
50,
|
|
45
|
+
Math.max(measureText('Bookmark link', 12) + 30, measureGridWidth(rows.map(row => row.locString))),
|
|
46
|
+
Math.max(measureText('Label', 12) + 30, measureGridWidth(rows.map(row => row.label))),
|
|
47
|
+
Math.max(measureText('Assembly', 12) + 30, measureGridWidth(rows.map(row => row.assemblyName))),
|
|
48
48
|
]);
|
|
49
49
|
return (React.createElement(React.Fragment, null,
|
|
50
50
|
React.createElement("div", { ref: ref },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-grid-bookmark",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "JBrowse 2 grid bookmark widget",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"distModule": "esm/index.js",
|
|
60
60
|
"srcModule": "src/index.ts",
|
|
61
61
|
"module": "esm/index.js",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "a50b6f67cf8c8f3c65a7b8cd858de2fcca1f2909"
|
|
63
63
|
}
|