@jbrowse/plugin-linear-genome-view 3.5.1 → 3.6.1
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.
- package/dist/LinearGenomeView/components/RubberbandTooltip.d.ts +1 -1
- package/dist/LinearGenomeView/components/RubberbandTooltip.js +13 -21
- package/esm/LinearGenomeView/components/RubberbandTooltip.d.ts +1 -1
- package/esm/LinearGenomeView/components/RubberbandTooltip.js +14 -22
- package/package.json +3 -3
|
@@ -3,26 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = RubberbandTooltip;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
|
-
const mui_1 = require("tss-react/mui");
|
|
7
|
-
const useStyles = (0, mui_1.makeStyles)()(theme => {
|
|
8
|
-
return {
|
|
9
|
-
popover: {
|
|
10
|
-
mouseEvents: 'none',
|
|
11
|
-
cursor: 'crosshair',
|
|
12
|
-
},
|
|
13
|
-
paper: {
|
|
14
|
-
paddingLeft: theme.spacing(1),
|
|
15
|
-
paddingRight: theme.spacing(1),
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
});
|
|
19
6
|
function RubberbandTooltip({ anchorEl, side, text, }) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: text, open: true, placement: side === 'left' ? 'left-start' : 'right-start', slotProps: {
|
|
8
|
+
popper: {
|
|
9
|
+
anchorEl,
|
|
10
|
+
modifiers: [
|
|
11
|
+
{
|
|
12
|
+
name: 'offset',
|
|
13
|
+
options: {
|
|
14
|
+
offset: [-30, -10],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
}, children: (0, jsx_runtime_1.jsx)("span", {}) }));
|
|
28
20
|
}
|
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { makeStyles } from 'tss-react/mui';
|
|
4
|
-
const useStyles = makeStyles()(theme => {
|
|
5
|
-
return {
|
|
6
|
-
popover: {
|
|
7
|
-
mouseEvents: 'none',
|
|
8
|
-
cursor: 'crosshair',
|
|
9
|
-
},
|
|
10
|
-
paper: {
|
|
11
|
-
paddingLeft: theme.spacing(1),
|
|
12
|
-
paddingRight: theme.spacing(1),
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
});
|
|
2
|
+
import { Tooltip } from '@mui/material';
|
|
16
3
|
export default function RubberbandTooltip({ anchorEl, side, text, }) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
4
|
+
return (_jsx(Tooltip, { title: text, open: true, placement: side === 'left' ? 'left-start' : 'right-start', slotProps: {
|
|
5
|
+
popper: {
|
|
6
|
+
anchorEl,
|
|
7
|
+
modifiers: [
|
|
8
|
+
{
|
|
9
|
+
name: 'offset',
|
|
10
|
+
options: {
|
|
11
|
+
offset: [-30, -10],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
}, children: _jsx("span", {}) }));
|
|
25
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-linear-genome-view",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "JBrowse 2 linear genome view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"useSrc": "node ../../scripts/useSrc.js"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@jbrowse/core": "^3.
|
|
41
|
+
"@jbrowse/core": "^3.6.1",
|
|
42
42
|
"@mui/icons-material": "^7.0.0",
|
|
43
43
|
"@mui/material": "^7.0.0",
|
|
44
44
|
"@types/file-saver": "^2.0.1",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"module": "esm/index.js",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "3b7ba0005a28fb0903b7b31f15259c2cfccecfa1"
|
|
61
61
|
}
|