@jbrowse/plugin-wiggle 1.5.1 → 1.5.2
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/BigWigAdapter/BigWigAdapter.d.ts +2 -2
- package/dist/LinearWiggleDisplay/components/Tooltip.d.ts +7 -2
- package/dist/WiggleRendering.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/plugin-wiggle.cjs.development.js +5 -5
- package/dist/plugin-wiggle.cjs.development.js.map +1 -1
- package/dist/plugin-wiggle.cjs.production.min.js +1 -1
- package/dist/plugin-wiggle.cjs.production.min.js.map +1 -1
- package/dist/plugin-wiggle.esm.js +5 -5
- package/dist/plugin-wiggle.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/BigWigAdapter/BigWigAdapter.test.ts +1 -0
- package/src/BigWigAdapter/BigWigAdapter.ts +4 -4
- package/src/LinearWiggleDisplay/components/Tooltip.tsx +10 -8
- package/src/WiggleRendering.tsx +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
-
import {
|
|
2
|
+
import { AugmentedRegion as Region } from '@jbrowse/core/util/types';
|
|
3
3
|
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
4
4
|
import { Instance } from 'mobx-state-tree';
|
|
5
5
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
@@ -16,7 +16,7 @@ export default class BigWigAdapter extends BaseFeatureDataAdapter {
|
|
|
16
16
|
getRefNames(opts?: BaseOptions): Promise<string[]>;
|
|
17
17
|
refIdToName(refId: number): Promise<any>;
|
|
18
18
|
getGlobalStats(opts?: BaseOptions): Promise<import("@jbrowse/core/util/stats").FeatureStats>;
|
|
19
|
-
getFeatures(region:
|
|
19
|
+
getFeatures(region: Region, opts?: WiggleOptions): import("rxjs").Observable<Feature>;
|
|
20
20
|
freeResources(): void;
|
|
21
21
|
}
|
|
22
22
|
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
2
3
|
declare type Coord = [number, number];
|
|
3
4
|
declare const Tooltip: ({ model, height, clientMouseCoord, offsetMouseCoord, clientRect, TooltipContents, }: {
|
|
4
|
-
model:
|
|
5
|
+
model: {
|
|
6
|
+
featureUnderMouse: Feature;
|
|
7
|
+
};
|
|
5
8
|
height: number;
|
|
6
9
|
clientMouseCoord: Coord;
|
|
7
10
|
offsetMouseCoord: Coord;
|
|
@@ -9,7 +12,9 @@ declare const Tooltip: ({ model, height, clientMouseCoord, offsetMouseCoord, cli
|
|
|
9
12
|
TooltipContents: React.FC<any>;
|
|
10
13
|
}) => JSX.Element | null;
|
|
11
14
|
declare const WiggleTooltip: (props: {
|
|
12
|
-
model:
|
|
15
|
+
model: {
|
|
16
|
+
featureUnderMouse: Feature;
|
|
17
|
+
};
|
|
13
18
|
height: number;
|
|
14
19
|
offsetMouseCoord: Coord;
|
|
15
20
|
clientMouseCoord: Coord;
|
package/dist/index.d.ts
CHANGED
|
@@ -514,6 +514,7 @@ export default class WigglePlugin extends Plugin {
|
|
|
514
514
|
onMouseLeave: Function;
|
|
515
515
|
onMouseMove: Function;
|
|
516
516
|
onFeatureClick: Function;
|
|
517
|
+
blockKey: string;
|
|
517
518
|
}) => JSX.Element;
|
|
518
519
|
XYPlotRenderer: typeof XYPlotRenderer;
|
|
519
520
|
xyPlotRendererConfigSchema: import("@jbrowse/core/configuration/configurationSchema").AnyConfigurationSchemaType;
|
|
@@ -1737,7 +1737,6 @@ var Tooltip = /*#__PURE__*/mobxReact.observer(function (_ref2) {
|
|
|
1737
1737
|
clientRect = _ref2.clientRect,
|
|
1738
1738
|
TooltipContents = _ref2.TooltipContents;
|
|
1739
1739
|
var featureUnderMouse = model.featureUnderMouse;
|
|
1740
|
-
var classes = useStyles();
|
|
1741
1740
|
|
|
1742
1741
|
var _useState = React.useState(0),
|
|
1743
1742
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1746,9 +1745,10 @@ var Tooltip = /*#__PURE__*/mobxReact.observer(function (_ref2) {
|
|
|
1746
1745
|
|
|
1747
1746
|
var _useState3 = React.useState(null),
|
|
1748
1747
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
1749
|
-
|
|
1750
|
-
|
|
1748
|
+
anchorEl = _useState4[0],
|
|
1749
|
+
setAnchorEl = _useState4[1];
|
|
1751
1750
|
|
|
1751
|
+
var classes = useStyles(); // must be memoized a la https://github.com/popperjs/react-popper/issues/391
|
|
1752
1752
|
|
|
1753
1753
|
var virtElement = React.useMemo(function () {
|
|
1754
1754
|
return {
|
|
@@ -1770,12 +1770,12 @@ var Tooltip = /*#__PURE__*/mobxReact.observer(function (_ref2) {
|
|
|
1770
1770
|
};
|
|
1771
1771
|
}, [clientRect === null || clientRect === void 0 ? void 0 : clientRect.top, clientMouseCoord, width]);
|
|
1772
1772
|
|
|
1773
|
-
var _usePopper = reactPopper.usePopper(virtElement,
|
|
1773
|
+
var _usePopper = reactPopper.usePopper(virtElement, anchorEl),
|
|
1774
1774
|
styles = _usePopper.styles,
|
|
1775
1775
|
attributes = _usePopper.attributes;
|
|
1776
1776
|
|
|
1777
1777
|
return featureUnderMouse ? React__default.createElement(React__default.Fragment, null, React__default.createElement(core.Portal, null, React__default.createElement("div", Object.assign({
|
|
1778
|
-
ref:
|
|
1778
|
+
ref: setAnchorEl,
|
|
1779
1779
|
className: classes.tooltip,
|
|
1780
1780
|
// zIndex needed to go over widget drawer
|
|
1781
1781
|
style: _objectSpread2(_objectSpread2({}, styles.popper), {}, {
|