@jbrowse/plugin-wiggle 2.10.2 → 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: {
@@ -44,8 +44,15 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
44
44
  message: string | undefined;
45
45
  maxHeightReached: boolean;
46
46
  ReactComponent: ({ model, }: {
47
- model: any;
48
- }) => any;
47
+ model: {
48
+ error?: unknown;
49
+ reload: () => void;
50
+ message: React.ReactNode;
51
+ filled?: boolean | undefined;
52
+ status?: string | undefined;
53
+ reactElement?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
54
+ };
55
+ }) => React.JSX.Element | undefined;
49
56
  renderProps: any;
50
57
  } & {
51
58
  doReload(): void;
@@ -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;
@@ -50,8 +50,15 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
50
50
  message: string | undefined;
51
51
  maxHeightReached: boolean;
52
52
  ReactComponent: ({ model, }: {
53
- model: any;
54
- }) => any;
53
+ model: {
54
+ error?: unknown;
55
+ reload: () => void;
56
+ message: React.ReactNode;
57
+ filled?: boolean | undefined;
58
+ status?: string | undefined;
59
+ reactElement?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
60
+ };
61
+ }) => React.JSX.Element | undefined;
55
62
  renderProps: any;
56
63
  } & {
57
64
  doReload(): void;
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;
package/dist/index.d.ts CHANGED
@@ -43,8 +43,15 @@ export default class WigglePlugin extends Plugin {
43
43
  message: string | undefined;
44
44
  maxHeightReached: boolean;
45
45
  ReactComponent: ({ model, }: {
46
- model: any;
47
- }) => any;
46
+ model: {
47
+ error?: unknown;
48
+ reload: () => void;
49
+ message: import("react").ReactNode;
50
+ filled?: boolean | undefined;
51
+ status?: string | undefined;
52
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
53
+ };
54
+ }) => import("react").JSX.Element | undefined;
48
55
  renderProps: any;
49
56
  } & {
50
57
  doReload(): void;
@@ -88,8 +95,15 @@ export default class WigglePlugin extends Plugin {
88
95
  message: string | undefined;
89
96
  maxHeightReached: boolean;
90
97
  ReactComponent: ({ model, }: {
91
- model: any;
92
- }) => any;
98
+ model: {
99
+ error?: unknown;
100
+ reload: () => void;
101
+ message: import("react").ReactNode;
102
+ filled?: boolean | undefined;
103
+ status?: string | undefined;
104
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
105
+ };
106
+ }) => import("react").JSX.Element | undefined;
93
107
  renderProps: any;
94
108
  } & {
95
109
  doReload(): void;
@@ -462,8 +476,15 @@ export default class WigglePlugin extends Plugin {
462
476
  message: string | undefined;
463
477
  maxHeightReached: boolean;
464
478
  ReactComponent: ({ model, }: {
465
- model: any;
466
- }) => any;
479
+ model: {
480
+ error?: unknown;
481
+ reload: () => void;
482
+ message: import("react").ReactNode;
483
+ filled?: boolean | undefined;
484
+ status?: string | undefined;
485
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
486
+ };
487
+ }) => import("react").JSX.Element | undefined;
467
488
  renderProps: any;
468
489
  } & {
469
490
  doReload(): void;
@@ -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;
@@ -40,8 +40,15 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
40
40
  message: string | undefined;
41
41
  maxHeightReached: boolean;
42
42
  ReactComponent: ({ model, }: {
43
- model: any;
44
- }) => any;
43
+ model: {
44
+ error?: unknown;
45
+ reload: () => void;
46
+ message: import("react").ReactNode;
47
+ filled?: boolean | undefined;
48
+ status?: string | undefined;
49
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
50
+ };
51
+ }) => import("react").JSX.Element | undefined;
45
52
  renderProps: any;
46
53
  } & {
47
54
  doReload(): void;
@@ -520,8 +527,15 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
520
527
  message: string | undefined;
521
528
  maxHeightReached: boolean;
522
529
  ReactComponent: ({ model, }: {
523
- model: any;
524
- }) => any;
530
+ model: {
531
+ error?: unknown;
532
+ reload: () => void;
533
+ message: import("react").ReactNode;
534
+ filled?: boolean | undefined;
535
+ status?: string | undefined;
536
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
537
+ };
538
+ }) => import("react").JSX.Element | undefined;
525
539
  renderProps: any;
526
540
  } & {
527
541
  doReload(): void;
@@ -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: {
@@ -44,8 +44,15 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
44
44
  message: string | undefined;
45
45
  maxHeightReached: boolean;
46
46
  ReactComponent: ({ model, }: {
47
- model: any;
48
- }) => any;
47
+ model: {
48
+ error?: unknown;
49
+ reload: () => void;
50
+ message: React.ReactNode;
51
+ filled?: boolean | undefined;
52
+ status?: string | undefined;
53
+ reactElement?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
54
+ };
55
+ }) => React.JSX.Element | undefined;
49
56
  renderProps: any;
50
57
  } & {
51
58
  doReload(): void;
@@ -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;
@@ -50,8 +50,15 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
50
50
  message: string | undefined;
51
51
  maxHeightReached: boolean;
52
52
  ReactComponent: ({ model, }: {
53
- model: any;
54
- }) => any;
53
+ model: {
54
+ error?: unknown;
55
+ reload: () => void;
56
+ message: React.ReactNode;
57
+ filled?: boolean | undefined;
58
+ status?: string | undefined;
59
+ reactElement?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
60
+ };
61
+ }) => React.JSX.Element | undefined;
55
62
  renderProps: any;
56
63
  } & {
57
64
  doReload(): void;
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;
package/esm/index.d.ts CHANGED
@@ -43,8 +43,15 @@ export default class WigglePlugin extends Plugin {
43
43
  message: string | undefined;
44
44
  maxHeightReached: boolean;
45
45
  ReactComponent: ({ model, }: {
46
- model: any;
47
- }) => any;
46
+ model: {
47
+ error?: unknown;
48
+ reload: () => void;
49
+ message: import("react").ReactNode;
50
+ filled?: boolean | undefined;
51
+ status?: string | undefined;
52
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
53
+ };
54
+ }) => import("react").JSX.Element | undefined;
48
55
  renderProps: any;
49
56
  } & {
50
57
  doReload(): void;
@@ -88,8 +95,15 @@ export default class WigglePlugin extends Plugin {
88
95
  message: string | undefined;
89
96
  maxHeightReached: boolean;
90
97
  ReactComponent: ({ model, }: {
91
- model: any;
92
- }) => any;
98
+ model: {
99
+ error?: unknown;
100
+ reload: () => void;
101
+ message: import("react").ReactNode;
102
+ filled?: boolean | undefined;
103
+ status?: string | undefined;
104
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
105
+ };
106
+ }) => import("react").JSX.Element | undefined;
93
107
  renderProps: any;
94
108
  } & {
95
109
  doReload(): void;
@@ -462,8 +476,15 @@ export default class WigglePlugin extends Plugin {
462
476
  message: string | undefined;
463
477
  maxHeightReached: boolean;
464
478
  ReactComponent: ({ model, }: {
465
- model: any;
466
- }) => any;
479
+ model: {
480
+ error?: unknown;
481
+ reload: () => void;
482
+ message: import("react").ReactNode;
483
+ filled?: boolean | undefined;
484
+ status?: string | undefined;
485
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
486
+ };
487
+ }) => import("react").JSX.Element | undefined;
467
488
  renderProps: any;
468
489
  } & {
469
490
  doReload(): void;
@@ -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;
@@ -40,8 +40,15 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
40
40
  message: string | undefined;
41
41
  maxHeightReached: boolean;
42
42
  ReactComponent: ({ model, }: {
43
- model: any;
44
- }) => any;
43
+ model: {
44
+ error?: unknown;
45
+ reload: () => void;
46
+ message: import("react").ReactNode;
47
+ filled?: boolean | undefined;
48
+ status?: string | undefined;
49
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
50
+ };
51
+ }) => import("react").JSX.Element | undefined;
45
52
  renderProps: any;
46
53
  } & {
47
54
  doReload(): void;
@@ -520,8 +527,15 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
520
527
  message: string | undefined;
521
528
  maxHeightReached: boolean;
522
529
  ReactComponent: ({ model, }: {
523
- model: any;
524
- }) => any;
530
+ model: {
531
+ error?: unknown;
532
+ reload: () => void;
533
+ message: import("react").ReactNode;
534
+ filled?: boolean | undefined;
535
+ status?: string | undefined;
536
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
537
+ };
538
+ }) => import("react").JSX.Element | undefined;
525
539
  renderProps: any;
526
540
  } & {
527
541
  doReload(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-wiggle",
3
- "version": "2.10.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": "^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": "7ca3b7db337ebd88853e2d96cdab940ed550c4fb"
69
+ "gitHead": "3d43a820b9274a6160aa4dc15616147f390d9094"
70
70
  }