@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.
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  declare const SetColorDialog: ({ model, handleClose, }: {
3
3
  model: {
4
- color?: string | undefined;
5
- posColor?: string | undefined;
6
- negColor?: string | undefined;
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: {
@@ -4,6 +4,6 @@ declare const ColorLegend: ({ model, rowHeight, labelWidth, exportSVG, }: {
4
4
  model: WiggleDisplayModel;
5
5
  rowHeight: number;
6
6
  labelWidth: number;
7
- exportSVG?: boolean | undefined;
7
+ exportSVG?: boolean;
8
8
  }) => React.JSX.Element | null;
9
9
  export default ColorLegend;
@@ -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
- if (exportSVG) {
16
- return react_1.default.createElement(react_1.default.Fragment, null, children);
17
- }
18
- else {
19
- const { height } = model;
20
- return (react_1.default.createElement("svg", { style: {
21
- position: 'absolute',
22
- top: 0,
23
- left: 0,
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 | undefined;
12
+ useClientY?: boolean;
13
13
  height: number;
14
14
  clientMouseCoord: Coord;
15
15
  offsetMouseCoord: Coord;
16
- clientRect?: DOMRect | undefined;
16
+ clientRect?: DOMRect;
17
17
  TooltipContents: TooltipContentsComponent;
18
18
  }) => React.JSX.Element | null;
19
19
  export default Tooltip;
@@ -5,6 +5,6 @@ declare const YScaleBar: ({ model, orientation, }: {
5
5
  model: {
6
6
  ticks?: Ticks;
7
7
  };
8
- orientation?: string | undefined;
8
+ orientation?: string;
9
9
  }) => React.JSX.Element | null;
10
10
  export default YScaleBar;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  declare const SetColorDialog: ({ model, handleClose, }: {
3
3
  model: {
4
- color?: string | undefined;
5
- posColor?: string | undefined;
6
- negColor?: string | undefined;
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: {
@@ -4,6 +4,6 @@ declare const ColorLegend: ({ model, rowHeight, labelWidth, exportSVG, }: {
4
4
  model: WiggleDisplayModel;
5
5
  rowHeight: number;
6
6
  labelWidth: number;
7
- exportSVG?: boolean | undefined;
7
+ exportSVG?: boolean;
8
8
  }) => React.JSX.Element | null;
9
9
  export default ColorLegend;
@@ -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
- if (exportSVG) {
10
- return React.createElement(React.Fragment, null, children);
11
- }
12
- else {
13
- const { height } = model;
14
- return (React.createElement("svg", { style: {
15
- position: 'absolute',
16
- top: 0,
17
- left: 0,
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 | undefined;
12
+ useClientY?: boolean;
13
13
  height: number;
14
14
  clientMouseCoord: Coord;
15
15
  offsetMouseCoord: Coord;
16
- clientRect?: DOMRect | undefined;
16
+ clientRect?: DOMRect;
17
17
  TooltipContents: TooltipContentsComponent;
18
18
  }) => React.JSX.Element | null;
19
19
  export default Tooltip;
@@ -5,6 +5,6 @@ declare const YScaleBar: ({ model, orientation, }: {
5
5
  model: {
6
6
  ticks?: Ticks;
7
7
  };
8
- orientation?: string | undefined;
8
+ orientation?: string;
9
9
  }) => React.JSX.Element | null;
10
10
  export default YScaleBar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-wiggle",
3
- "version": "2.10.3",
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": "^6.0.1",
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": "c8fc800cd17decd72b2e971c7a6add3b95214e72"
69
+ "gitHead": "3d43a820b9274a6160aa4dc15616147f390d9094"
70
70
  }