@jbrowse/plugin-wiggle 2.7.1 → 2.8.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.
|
@@ -227,19 +227,21 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
227
227
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
228
228
|
} & {
|
|
229
229
|
readonly renderDelay: number;
|
|
230
|
-
readonly TooltipComponent: React.FC<any>;
|
|
230
|
+
readonly TooltipComponent: React.FC<any>; /**
|
|
231
|
+
* #getter
|
|
232
|
+
*/
|
|
231
233
|
readonly selectedFeatureId: string | undefined;
|
|
232
234
|
readonly DisplayMessageComponent: React.FC<any> | undefined;
|
|
233
235
|
} & {
|
|
234
|
-
readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
|
|
235
|
-
* #getter
|
|
236
|
-
* can be used to give it a "color scale" like a R heatmap, not
|
|
237
|
-
* implemented like this yet but flag can be used for this
|
|
238
|
-
*/
|
|
236
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
|
|
239
237
|
readonly featureUnderMouse: Feature | undefined;
|
|
240
238
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
241
239
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
242
|
-
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
240
|
+
searchFeatureByID(id: string): [number, number, number, number] | undefined; /**
|
|
241
|
+
* #getter
|
|
242
|
+
* positions multi-row below the tracklabel even if using overlap
|
|
243
|
+
* tracklabels for everything else
|
|
244
|
+
*/
|
|
243
245
|
} & {
|
|
244
246
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
245
247
|
deleteBlock(key: string): void;
|
|
@@ -252,9 +254,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
252
254
|
} & {
|
|
253
255
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
254
256
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
255
|
-
renderProps(): any;
|
|
256
|
-
* #method
|
|
257
|
-
*/
|
|
257
|
+
renderProps(): any;
|
|
258
258
|
} & {
|
|
259
259
|
renderSvg(opts: ExportSvgDisplayOptions): Promise<React.JSX.Element>;
|
|
260
260
|
afterAttach(): void;
|
package/dist/Tooltip.js
CHANGED
|
@@ -58,6 +58,8 @@ const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
|
58
58
|
},
|
|
59
59
|
}));
|
|
60
60
|
const Tooltip = (0, mobx_react_1.observer)(function Tooltip({ model, height, clientMouseCoord, offsetMouseCoord, clientRect, TooltipContents, useClientY, }) {
|
|
61
|
+
var _a, _b;
|
|
62
|
+
const theme = (0, material_1.useTheme)();
|
|
61
63
|
const { featureUnderMouse } = model;
|
|
62
64
|
const [width, setWidth] = (0, react_1.useState)(0);
|
|
63
65
|
const [anchorEl, setAnchorEl] = (0, react_1.useState)(null);
|
|
@@ -81,8 +83,9 @@ const Tooltip = (0, mobx_react_1.observer)(function Tooltip({ model, height, cli
|
|
|
81
83
|
},
|
|
82
84
|
}), [clientRect === null || clientRect === void 0 ? void 0 : clientRect.top, clientMouseCoord, width, useClientY]);
|
|
83
85
|
const { styles, attributes } = (0, react_popper_1.usePopper)(virtElement, anchorEl);
|
|
86
|
+
const popperTheme = (_a = theme === null || theme === void 0 ? void 0 : theme.components) === null || _a === void 0 ? void 0 : _a.MuiPopper;
|
|
84
87
|
return featureUnderMouse ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
85
|
-
react_1.default.createElement(material_1.Portal, null,
|
|
88
|
+
react_1.default.createElement(material_1.Portal, { container: (_b = popperTheme === null || popperTheme === void 0 ? void 0 : popperTheme.defaultProps) === null || _b === void 0 ? void 0 : _b.container },
|
|
86
89
|
react_1.default.createElement("div", { ref: setAnchorEl, className: classes.tooltip,
|
|
87
90
|
// zIndex needed to go over widget drawer
|
|
88
91
|
style: { ...styles.popper, zIndex: 100000 }, ...attributes.popper },
|
|
@@ -266,7 +266,9 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
266
266
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
|
|
267
267
|
readonly featureUnderMouse: Feature | undefined;
|
|
268
268
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
269
|
-
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
269
|
+
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined; /**
|
|
270
|
+
* #action
|
|
271
|
+
*/
|
|
270
272
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
271
273
|
} & {
|
|
272
274
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
@@ -282,9 +284,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
282
284
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
283
285
|
renderProps(): any;
|
|
284
286
|
} & {
|
|
285
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
286
|
-
* #getter
|
|
287
|
-
*/
|
|
287
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
288
288
|
afterAttach(): void;
|
|
289
289
|
} & {
|
|
290
290
|
message: string | undefined;
|
|
@@ -227,19 +227,21 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
227
227
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
228
228
|
} & {
|
|
229
229
|
readonly renderDelay: number;
|
|
230
|
-
readonly TooltipComponent: React.FC<any>;
|
|
230
|
+
readonly TooltipComponent: React.FC<any>; /**
|
|
231
|
+
* #getter
|
|
232
|
+
*/
|
|
231
233
|
readonly selectedFeatureId: string | undefined;
|
|
232
234
|
readonly DisplayMessageComponent: React.FC<any> | undefined;
|
|
233
235
|
} & {
|
|
234
|
-
readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
|
|
235
|
-
* #getter
|
|
236
|
-
* can be used to give it a "color scale" like a R heatmap, not
|
|
237
|
-
* implemented like this yet but flag can be used for this
|
|
238
|
-
*/
|
|
236
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
|
|
239
237
|
readonly featureUnderMouse: Feature | undefined;
|
|
240
238
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
241
239
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
242
|
-
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
240
|
+
searchFeatureByID(id: string): [number, number, number, number] | undefined; /**
|
|
241
|
+
* #getter
|
|
242
|
+
* positions multi-row below the tracklabel even if using overlap
|
|
243
|
+
* tracklabels for everything else
|
|
244
|
+
*/
|
|
243
245
|
} & {
|
|
244
246
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
245
247
|
deleteBlock(key: string): void;
|
|
@@ -252,9 +254,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
252
254
|
} & {
|
|
253
255
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
254
256
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
255
|
-
renderProps(): any;
|
|
256
|
-
* #method
|
|
257
|
-
*/
|
|
257
|
+
renderProps(): any;
|
|
258
258
|
} & {
|
|
259
259
|
renderSvg(opts: ExportSvgDisplayOptions): Promise<React.JSX.Element>;
|
|
260
260
|
afterAttach(): void;
|
package/esm/Tooltip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo, useState } from 'react';
|
|
2
2
|
import { observer } from 'mobx-react';
|
|
3
|
-
import { alpha, Portal } from '@mui/material';
|
|
3
|
+
import { alpha, Portal, useTheme } from '@mui/material';
|
|
4
4
|
import { makeStyles } from 'tss-react/mui';
|
|
5
5
|
// locals
|
|
6
6
|
import { YSCALEBAR_LABEL_OFFSET, round } from './util';
|
|
@@ -33,6 +33,8 @@ const useStyles = makeStyles()(theme => ({
|
|
|
33
33
|
},
|
|
34
34
|
}));
|
|
35
35
|
const Tooltip = observer(function Tooltip({ model, height, clientMouseCoord, offsetMouseCoord, clientRect, TooltipContents, useClientY, }) {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
const theme = useTheme();
|
|
36
38
|
const { featureUnderMouse } = model;
|
|
37
39
|
const [width, setWidth] = useState(0);
|
|
38
40
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
@@ -56,8 +58,9 @@ const Tooltip = observer(function Tooltip({ model, height, clientMouseCoord, off
|
|
|
56
58
|
},
|
|
57
59
|
}), [clientRect === null || clientRect === void 0 ? void 0 : clientRect.top, clientMouseCoord, width, useClientY]);
|
|
58
60
|
const { styles, attributes } = usePopper(virtElement, anchorEl);
|
|
61
|
+
const popperTheme = (_a = theme === null || theme === void 0 ? void 0 : theme.components) === null || _a === void 0 ? void 0 : _a.MuiPopper;
|
|
59
62
|
return featureUnderMouse ? (React.createElement(React.Fragment, null,
|
|
60
|
-
React.createElement(Portal, null,
|
|
63
|
+
React.createElement(Portal, { container: (_b = popperTheme === null || popperTheme === void 0 ? void 0 : popperTheme.defaultProps) === null || _b === void 0 ? void 0 : _b.container },
|
|
61
64
|
React.createElement("div", { ref: setAnchorEl, className: classes.tooltip,
|
|
62
65
|
// zIndex needed to go over widget drawer
|
|
63
66
|
style: { ...styles.popper, zIndex: 100000 }, ...attributes.popper },
|
|
@@ -266,7 +266,9 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
266
266
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
|
|
267
267
|
readonly featureUnderMouse: Feature | undefined;
|
|
268
268
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
269
|
-
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
269
|
+
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined; /**
|
|
270
|
+
* #action
|
|
271
|
+
*/
|
|
270
272
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
271
273
|
} & {
|
|
272
274
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
@@ -282,9 +284,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
282
284
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
283
285
|
renderProps(): any;
|
|
284
286
|
} & {
|
|
285
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
286
|
-
* #getter
|
|
287
|
-
*/
|
|
287
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
288
288
|
afterAttach(): void;
|
|
289
289
|
} & {
|
|
290
290
|
message: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-wiggle",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "JBrowse 2 wiggle adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"distModule": "esm/index.js",
|
|
68
68
|
"srcModule": "src/index.ts",
|
|
69
69
|
"module": "esm/index.js",
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "ee8c2bdc8bd4f1a70b1eefda984f04a2830d9ca0"
|
|
71
71
|
}
|