@jbrowse/plugin-wiggle 2.10.3 → 2.11.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.
- package/dist/LinearWiggleDisplay/components/SetColorDialog.d.ts +3 -3
- package/dist/LinearWiggleDisplay/components/Tooltip.d.ts +0 -4
- package/dist/MultiLinearWiggleDisplay/components/ColorLegend.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/Tooltip.d.ts +0 -7
- package/dist/MultiLinearWiggleDisplay/components/YScaleBars.js +9 -14
- package/dist/Tooltip.d.ts +2 -2
- package/dist/shared/YScaleBar.d.ts +1 -1
- package/esm/LinearWiggleDisplay/components/SetColorDialog.d.ts +3 -3
- package/esm/LinearWiggleDisplay/components/Tooltip.d.ts +0 -4
- package/esm/MultiLinearWiggleDisplay/components/ColorLegend.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/Tooltip.d.ts +0 -7
- package/esm/MultiLinearWiggleDisplay/components/YScaleBars.js +9 -14
- package/esm/Tooltip.d.ts +2 -2
- package/esm/shared/YScaleBar.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const SetColorDialog: ({ model, handleClose, }: {
|
|
3
3
|
model: {
|
|
4
|
-
color?: string
|
|
5
|
-
posColor?: string
|
|
6
|
-
negColor?: string
|
|
4
|
+
color?: string;
|
|
5
|
+
posColor?: string;
|
|
6
|
+
negColor?: string;
|
|
7
7
|
setColor: (arg?: string) => void;
|
|
8
8
|
setPosColor: (arg?: string) => void;
|
|
9
9
|
setNegColor: (arg?: string) => void;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Feature } from '@jbrowse/core/util';
|
|
3
3
|
import { TooltipContentsComponent } from '../../Tooltip';
|
|
4
|
-
interface Props {
|
|
5
|
-
feature: Feature;
|
|
6
|
-
}
|
|
7
|
-
declare const TooltipContents: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
8
4
|
type Coord = [number, number];
|
|
9
5
|
declare const WiggleTooltip: (props: {
|
|
10
6
|
model: {
|
|
@@ -2,13 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { Feature } from '@jbrowse/core/util';
|
|
3
3
|
import { Source } from '../../util';
|
|
4
4
|
import { TooltipContentsComponent } from '../../Tooltip';
|
|
5
|
-
interface Props {
|
|
6
|
-
model: {
|
|
7
|
-
sources: Source[];
|
|
8
|
-
};
|
|
9
|
-
feature: Feature;
|
|
10
|
-
}
|
|
11
|
-
declare const TooltipContents: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
12
5
|
type Coord = [number, number];
|
|
13
6
|
declare const WiggleTooltip: (props: {
|
|
14
7
|
model: {
|
|
@@ -12,20 +12,15 @@ const ColorLegend_1 = __importDefault(require("./ColorLegend"));
|
|
|
12
12
|
const ScoreLegend_1 = __importDefault(require("./ScoreLegend"));
|
|
13
13
|
const util_2 = require("./util");
|
|
14
14
|
const Wrapper = (0, mobx_react_1.observer)(function ({ children, model, exportSVG, }) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
pointerEvents: 'none',
|
|
25
|
-
height,
|
|
26
|
-
width: (0, util_1.getContainingView)(model).width,
|
|
27
|
-
} }, children));
|
|
28
|
-
}
|
|
15
|
+
const { height } = model;
|
|
16
|
+
return exportSVG ? (children) : (react_1.default.createElement("svg", { style: {
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
top: 0,
|
|
19
|
+
left: 0,
|
|
20
|
+
pointerEvents: 'none',
|
|
21
|
+
height,
|
|
22
|
+
width: (0, util_1.getContainingView)(model).width,
|
|
23
|
+
} }, children));
|
|
29
24
|
});
|
|
30
25
|
exports.YScaleBars = (0, mobx_react_1.observer)(function (props) {
|
|
31
26
|
const { model, orientation, exportSVG } = props;
|
package/dist/Tooltip.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ declare const Tooltip: ({ model, height, clientMouseCoord, offsetMouseCoord, cli
|
|
|
9
9
|
model: {
|
|
10
10
|
featureUnderMouse: Feature;
|
|
11
11
|
};
|
|
12
|
-
useClientY?: boolean
|
|
12
|
+
useClientY?: boolean;
|
|
13
13
|
height: number;
|
|
14
14
|
clientMouseCoord: Coord;
|
|
15
15
|
offsetMouseCoord: Coord;
|
|
16
|
-
clientRect?: DOMRect
|
|
16
|
+
clientRect?: DOMRect;
|
|
17
17
|
TooltipContents: TooltipContentsComponent;
|
|
18
18
|
}) => React.JSX.Element | null;
|
|
19
19
|
export default Tooltip;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const SetColorDialog: ({ model, handleClose, }: {
|
|
3
3
|
model: {
|
|
4
|
-
color?: string
|
|
5
|
-
posColor?: string
|
|
6
|
-
negColor?: string
|
|
4
|
+
color?: string;
|
|
5
|
+
posColor?: string;
|
|
6
|
+
negColor?: string;
|
|
7
7
|
setColor: (arg?: string) => void;
|
|
8
8
|
setPosColor: (arg?: string) => void;
|
|
9
9
|
setNegColor: (arg?: string) => void;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Feature } from '@jbrowse/core/util';
|
|
3
3
|
import { TooltipContentsComponent } from '../../Tooltip';
|
|
4
|
-
interface Props {
|
|
5
|
-
feature: Feature;
|
|
6
|
-
}
|
|
7
|
-
declare const TooltipContents: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
8
4
|
type Coord = [number, number];
|
|
9
5
|
declare const WiggleTooltip: (props: {
|
|
10
6
|
model: {
|
|
@@ -2,13 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { Feature } from '@jbrowse/core/util';
|
|
3
3
|
import { Source } from '../../util';
|
|
4
4
|
import { TooltipContentsComponent } from '../../Tooltip';
|
|
5
|
-
interface Props {
|
|
6
|
-
model: {
|
|
7
|
-
sources: Source[];
|
|
8
|
-
};
|
|
9
|
-
feature: Feature;
|
|
10
|
-
}
|
|
11
|
-
declare const TooltipContents: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
12
5
|
type Coord = [number, number];
|
|
13
6
|
declare const WiggleTooltip: (props: {
|
|
14
7
|
model: {
|
|
@@ -6,20 +6,15 @@ import ColorLegend from './ColorLegend';
|
|
|
6
6
|
import ScoreLegend from './ScoreLegend';
|
|
7
7
|
import { getOffset } from './util';
|
|
8
8
|
const Wrapper = observer(function ({ children, model, exportSVG, }) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
pointerEvents: 'none',
|
|
19
|
-
height,
|
|
20
|
-
width: getContainingView(model).width,
|
|
21
|
-
} }, children));
|
|
22
|
-
}
|
|
9
|
+
const { height } = model;
|
|
10
|
+
return exportSVG ? (children) : (React.createElement("svg", { style: {
|
|
11
|
+
position: 'absolute',
|
|
12
|
+
top: 0,
|
|
13
|
+
left: 0,
|
|
14
|
+
pointerEvents: 'none',
|
|
15
|
+
height,
|
|
16
|
+
width: getContainingView(model).width,
|
|
17
|
+
} }, children));
|
|
23
18
|
});
|
|
24
19
|
export const YScaleBars = observer(function (props) {
|
|
25
20
|
const { model, orientation, exportSVG } = props;
|
package/esm/Tooltip.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ declare const Tooltip: ({ model, height, clientMouseCoord, offsetMouseCoord, cli
|
|
|
9
9
|
model: {
|
|
10
10
|
featureUnderMouse: Feature;
|
|
11
11
|
};
|
|
12
|
-
useClientY?: boolean
|
|
12
|
+
useClientY?: boolean;
|
|
13
13
|
height: number;
|
|
14
14
|
clientMouseCoord: Coord;
|
|
15
15
|
offsetMouseCoord: Coord;
|
|
16
|
-
clientRect?: DOMRect
|
|
16
|
+
clientRect?: DOMRect;
|
|
17
17
|
TooltipContents: TooltipContentsComponent;
|
|
18
18
|
}) => React.JSX.Element | null;
|
|
19
19
|
export default Tooltip;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-wiggle",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "JBrowse 2 wiggle adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@jbrowse/plugin-data-management": "^2.0.0",
|
|
53
53
|
"@jbrowse/plugin-linear-genome-view": "^2.0.0",
|
|
54
54
|
"@mui/material": "^5.0.0",
|
|
55
|
-
"@mui/x-data-grid": "^
|
|
55
|
+
"@mui/x-data-grid": "^7.0.0",
|
|
56
56
|
"mobx": "^6.0.0",
|
|
57
57
|
"mobx-react": "^9.0.0",
|
|
58
58
|
"mobx-state-tree": "^5.0.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"distModule": "esm/index.js",
|
|
67
67
|
"srcModule": "src/index.ts",
|
|
68
68
|
"module": "esm/index.js",
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "3d43a820b9274a6160aa4dc15616147f390d9094"
|
|
70
70
|
}
|