@jbrowse/plugin-linear-comparative-view 2.18.0 → 3.0.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.
Files changed (153) hide show
  1. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
  2. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +36 -58
  3. package/dist/LGVSyntenyDisplay/components/util.d.ts +9 -6
  4. package/dist/LGVSyntenyDisplay/components/util.js +6 -12
  5. package/dist/LGVSyntenyDisplay/model.d.ts +21 -7
  6. package/dist/LGVSyntenyDisplay/model.js +19 -8
  7. package/dist/LinearComparativeView/components/Header.d.ts +1 -2
  8. package/dist/LinearComparativeView/components/Header.js +52 -81
  9. package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +1 -2
  10. package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +2 -11
  11. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +1 -2
  12. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +13 -21
  13. package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +1 -2
  14. package/dist/LinearComparativeView/components/LinearComparativeView.js +2 -5
  15. package/dist/LinearComparativeView/components/Rubberband.d.ts +1 -2
  16. package/dist/LinearComparativeView/components/Rubberband.js +20 -51
  17. package/dist/LinearComparativeView/components/VerticalGuide.d.ts +1 -2
  18. package/dist/LinearComparativeView/components/VerticalGuide.js +4 -8
  19. package/dist/LinearComparativeView/index.js +17 -7
  20. package/dist/LinearComparativeView/model.d.ts +32 -28
  21. package/dist/LinearComparativeView/model.js +37 -8
  22. package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +1 -2
  23. package/dist/LinearReadVsRef/LinearReadVsRef.js +5 -36
  24. package/dist/LinearReadVsRef/index.js +17 -7
  25. package/dist/LinearSyntenyDisplay/afterAttach.js +6 -3
  26. package/dist/LinearSyntenyDisplay/components/Component.d.ts +1 -2
  27. package/dist/LinearSyntenyDisplay/components/Component.js +9 -32
  28. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +1 -2
  29. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +89 -84
  30. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +1 -2
  31. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +2 -5
  32. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
  33. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +2 -3
  34. package/dist/LinearSyntenyDisplay/index.js +17 -7
  35. package/dist/LinearSyntenyDisplay/model.js +17 -7
  36. package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +1 -2
  37. package/dist/LinearSyntenyView/components/ExportSvgDialog.js +34 -73
  38. package/dist/LinearSyntenyView/components/Icons.d.ts +2 -3
  39. package/dist/LinearSyntenyView/components/Icons.js +3 -8
  40. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
  41. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +130 -0
  42. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
  43. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +39 -0
  44. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
  45. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +22 -0
  46. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +1 -2
  47. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +44 -143
  48. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
  49. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +43 -0
  50. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
  51. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +68 -0
  52. package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +1 -2
  53. package/dist/LinearSyntenyView/components/LinearSyntenyView.js +20 -9
  54. package/dist/LinearSyntenyView/index.js +17 -7
  55. package/dist/LinearSyntenyView/model.d.ts +49 -30
  56. package/dist/LinearSyntenyView/model.js +57 -15
  57. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
  58. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +2 -5
  59. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +1 -2
  60. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +2 -10
  61. package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +4 -16
  62. package/dist/LinearSyntenyView/types.d.ts +12 -0
  63. package/dist/LinearSyntenyView/types.js +2 -0
  64. package/dist/LinearSyntenyViewHelper/index.js +2 -2
  65. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
  66. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +87 -0
  67. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
  68. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +3 -79
  69. package/dist/SyntenyFeatureDetail/index.js +17 -7
  70. package/dist/SyntenyFeatureDetail/types.d.ts +9 -0
  71. package/dist/SyntenyFeatureDetail/types.js +2 -0
  72. package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
  73. package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +35 -34
  74. package/esm/LGVSyntenyDisplay/components/util.d.ts +9 -6
  75. package/esm/LGVSyntenyDisplay/components/util.js +6 -12
  76. package/esm/LGVSyntenyDisplay/model.d.ts +21 -7
  77. package/esm/LGVSyntenyDisplay/model.js +2 -1
  78. package/esm/LinearComparativeView/components/Header.d.ts +1 -2
  79. package/esm/LinearComparativeView/components/Header.js +52 -58
  80. package/esm/LinearComparativeView/components/HeaderSearchBoxes.d.ts +1 -2
  81. package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +2 -8
  82. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +1 -2
  83. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +13 -18
  84. package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +1 -2
  85. package/esm/LinearComparativeView/components/LinearComparativeView.js +2 -5
  86. package/esm/LinearComparativeView/components/Rubberband.d.ts +1 -2
  87. package/esm/LinearComparativeView/components/Rubberband.js +20 -28
  88. package/esm/LinearComparativeView/components/VerticalGuide.d.ts +1 -2
  89. package/esm/LinearComparativeView/components/VerticalGuide.js +4 -5
  90. package/esm/LinearComparativeView/model.d.ts +32 -28
  91. package/esm/LinearComparativeView/model.js +21 -2
  92. package/esm/LinearReadVsRef/LinearReadVsRef.d.ts +1 -2
  93. package/esm/LinearReadVsRef/LinearReadVsRef.js +5 -13
  94. package/esm/LinearSyntenyDisplay/afterAttach.js +6 -3
  95. package/esm/LinearSyntenyDisplay/components/Component.d.ts +1 -2
  96. package/esm/LinearSyntenyDisplay/components/Component.js +9 -9
  97. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +1 -2
  98. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +72 -77
  99. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +1 -2
  100. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +2 -2
  101. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
  102. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +2 -3
  103. package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +1 -2
  104. package/esm/LinearSyntenyView/components/ExportSvgDialog.js +34 -50
  105. package/esm/LinearSyntenyView/components/Icons.d.ts +2 -3
  106. package/esm/LinearSyntenyView/components/Icons.js +3 -5
  107. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
  108. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +125 -0
  109. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
  110. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +37 -0
  111. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
  112. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +16 -0
  113. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +1 -2
  114. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +45 -121
  115. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
  116. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +40 -0
  117. package/esm/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
  118. package/esm/LinearSyntenyView/components/ImportForm/getAdapter.js +65 -0
  119. package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +1 -2
  120. package/esm/LinearSyntenyView/components/LinearSyntenyView.js +3 -2
  121. package/esm/LinearSyntenyView/model.d.ts +49 -30
  122. package/esm/LinearSyntenyView/model.js +41 -9
  123. package/esm/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
  124. package/esm/LinearSyntenyView/svgcomponents/SVGBackground.js +2 -2
  125. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +1 -2
  126. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +2 -7
  127. package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +4 -16
  128. package/esm/LinearSyntenyView/types.d.ts +12 -0
  129. package/esm/LinearSyntenyView/types.js +1 -0
  130. package/esm/LinearSyntenyViewHelper/index.js +2 -2
  131. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
  132. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +52 -0
  133. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
  134. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +4 -57
  135. package/esm/SyntenyFeatureDetail/types.d.ts +9 -0
  136. package/esm/SyntenyFeatureDetail/types.js +1 -0
  137. package/package.json +2 -2
  138. package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
  139. package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -194
  140. package/dist/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
  141. package/dist/LinearSyntenyView/components/ImportForm/Spacer.js +0 -10
  142. package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
  143. package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -57
  144. package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
  145. package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -52
  146. package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
  147. package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -169
  148. package/esm/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
  149. package/esm/LinearSyntenyView/components/ImportForm/Spacer.js +0 -4
  150. package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
  151. package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -32
  152. package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
  153. package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -23
@@ -1,8 +1,9 @@
1
- import React from 'react';
2
- import type { Feature } from '@jbrowse/core/util';
3
- export default function LaunchSyntenyViewDialog({ model, feature, trackId, handleClose, }: {
4
- model: unknown;
1
+ import type { AbstractSessionModel, Feature } from '@jbrowse/core/util';
2
+ import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
3
+ export default function LaunchSyntenyViewDialog({ session, view, feature, trackId, handleClose, }: {
4
+ session: AbstractSessionModel;
5
+ view?: LinearGenomeViewModel;
5
6
  feature: Feature;
6
7
  trackId: string;
7
8
  handleClose: () => void;
8
- }): React.JSX.Element;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,75 +1,53 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
3
  exports.default = LaunchSyntenyViewDialog;
27
- const react_1 = __importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
28
6
  const ui_1 = require("@jbrowse/core/ui");
29
- const util_1 = require("@jbrowse/core/util");
30
7
  const material_1 = require("@mui/material");
31
8
  const mui_1 = require("tss-react/mui");
32
- const util_2 = require("./util");
9
+ const util_1 = require("./util");
33
10
  const useStyles = (0, mui_1.makeStyles)()({
34
11
  padding: {
35
12
  margin: 10,
36
13
  border: '1px solid #ccc',
37
14
  },
38
15
  });
39
- function LaunchSyntenyViewDialog({ model, feature, trackId, handleClose, }) {
16
+ function LaunchSyntenyViewDialog({ session, view, feature, trackId, handleClose, }) {
40
17
  const { classes } = useStyles();
41
18
  const inverted = feature.get('strand') === -1;
19
+ const hasCIGAR = !!feature.get('CIGAR');
42
20
  const [horizontallyFlip, setHorizontallyFlip] = (0, react_1.useState)(inverted);
43
21
  const [windowSize, setWindowSize] = (0, react_1.useState)('1000');
44
- return (react_1.default.createElement(ui_1.Dialog, { open: true, title: "Launch synteny view", onClose: handleClose },
45
- react_1.default.createElement(material_1.DialogContent, null,
46
- inverted ? (react_1.default.createElement(material_1.FormControlLabel, { className: classes.padding, control: react_1.default.createElement(material_1.Checkbox, { checked: horizontallyFlip, onChange: event => {
47
- setHorizontallyFlip(event.target.checked);
48
- } }), label: "Note: The feature is inverted in orientation on the target\n sequence. This will result in the lower panel having genomic\n coordinates decreasing left to right. Horizontally flip?" })) : null,
49
- react_1.default.createElement(material_1.TextField, { label: "Add window size in bp", value: windowSize, onChange: event => {
50
- setWindowSize(event.target.value);
51
- } })),
52
- react_1.default.createElement(material_1.DialogActions, null,
53
- react_1.default.createElement(material_1.Button, { variant: "contained", onClick: () => {
54
- ;
55
- (async () => {
56
- try {
57
- await (0, util_2.navToSynteny)({
58
- feature,
59
- windowSize: +windowSize,
60
- horizontallyFlip,
61
- trackId,
62
- model,
63
- });
64
- }
65
- catch (e) {
66
- console.error(e);
67
- (0, util_1.getSession)(model).notifyError(`${e}`, e);
68
- }
69
- })();
70
- handleClose();
71
- } }, "Submit"),
72
- react_1.default.createElement(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
73
- handleClose();
74
- } }, "Cancel"))));
22
+ const [useRegionOfInterest, setUseRegionOfInterest] = (0, react_1.useState)(true);
23
+ return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { open: true, title: "Launch synteny view", onClose: handleClose, children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { children: [view && hasCIGAR ? ((0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { className: classes.padding, control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: useRegionOfInterest, onChange: event => {
24
+ setUseRegionOfInterest(event.target.checked);
25
+ } }), label: "Use CIGAR string to navigate the current visible to the target" })) : null, inverted ? ((0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { className: classes.padding, control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: horizontallyFlip, onChange: event => {
26
+ setHorizontallyFlip(event.target.checked);
27
+ } }), label: "Note: The feature is inverted in orientation on the target\n sequence. This will result in the lower panel having genomic\n coordinates decreasing left to right. Horizontally flip?" })) : null, (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "Add window size in bp", value: windowSize, onChange: event => {
28
+ setWindowSize(event.target.value);
29
+ } })] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", onClick: () => {
30
+ ;
31
+ (async () => {
32
+ try {
33
+ await (0, util_1.navToSynteny)({
34
+ feature,
35
+ windowSize: +windowSize,
36
+ horizontallyFlip,
37
+ trackId,
38
+ session,
39
+ region: useRegionOfInterest
40
+ ? view === null || view === void 0 ? void 0 : view.dynamicBlocks.contentBlocks[0]
41
+ : undefined,
42
+ });
43
+ }
44
+ catch (e) {
45
+ console.error(e);
46
+ session.notifyError(`${e}`, e);
47
+ }
48
+ })();
49
+ handleClose();
50
+ }, children: "Submit" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
51
+ handleClose();
52
+ }, children: "Cancel" })] })] }));
75
53
  }
@@ -1,11 +1,14 @@
1
- import type { Feature } from '@jbrowse/core/util';
2
- import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
3
- import type { IAnyStateTreeNode } from 'mobx-state-tree';
4
- export declare function navToSynteny({ feature, windowSize: ws, model, trackId, view, horizontallyFlip, }: {
1
+ import type { AbstractSessionModel, Feature } from '@jbrowse/core/util';
2
+ export interface SimpleRegion {
3
+ refName: string;
4
+ start: number;
5
+ end: number;
6
+ }
7
+ export declare function navToSynteny({ feature, windowSize: ws, session, trackId, region, horizontallyFlip, }: {
5
8
  windowSize: number;
6
9
  trackId: string;
7
10
  horizontallyFlip: boolean;
8
11
  feature: Feature;
9
- view?: LinearGenomeViewModel;
10
- model: IAnyStateTreeNode;
12
+ session: AbstractSessionModel;
13
+ region?: SimpleRegion;
11
14
  }): Promise<void>;
@@ -1,12 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.navToSynteny = navToSynteny;
4
- const util_1 = require("@jbrowse/core/util");
5
4
  const plugin_alignments_1 = require("@jbrowse/plugin-alignments");
6
5
  const { parseCigar } = plugin_alignments_1.MismatchParser;
7
- function f(n) {
8
- return Math.floor(n);
9
- }
10
6
  function findPosInCigar(cigar, startX) {
11
7
  let featX = 0;
12
8
  let mateX = 0;
@@ -30,9 +26,7 @@ function findPosInCigar(cigar, startX) {
30
26
  }
31
27
  return [featX, mateX];
32
28
  }
33
- async function navToSynteny({ feature, windowSize: ws, model, trackId, view, horizontallyFlip, }) {
34
- const session = (0, util_1.getSession)(model);
35
- const reg = view === null || view === void 0 ? void 0 : view.dynamicBlocks.contentBlocks[0];
29
+ async function navToSynteny({ feature, windowSize: ws, session, trackId, region, horizontallyFlip, }) {
36
30
  const cigar = feature.get('CIGAR');
37
31
  const strand = feature.get('strand');
38
32
  const featRef = feature.get('refName');
@@ -48,9 +42,9 @@ async function navToSynteny({ feature, windowSize: ws, model, trackId, view, hor
48
42
  let rMateEnd;
49
43
  let rFeatStart;
50
44
  let rFeatEnd;
51
- if (reg && cigar) {
52
- const regStart = reg.start;
53
- const regEnd = reg.end;
45
+ if (region && cigar) {
46
+ const regStart = region.start;
47
+ const regEnd = region.end;
54
48
  const p = parseCigar(cigar);
55
49
  const [fStartX, mStartX] = findPosInCigar(p, regStart - featStart);
56
50
  const [fEndX, mEndX] = findPosInCigar(p, regEnd - featStart);
@@ -91,10 +85,10 @@ async function navToSynteny({ feature, windowSize: ws, model, trackId, view, hor
91
85
  },
92
86
  ],
93
87
  });
94
- const l1 = `${featRef}:${f(rFeatStart - ws)}-${f(rFeatEnd + ws)}`;
88
+ const l1 = `${featRef}:${Math.floor(rFeatStart - ws)}-${Math.floor(rFeatEnd + ws)}`;
95
89
  const m1 = Math.min(rMateStart, rMateEnd);
96
90
  const m2 = Math.max(rMateStart, rMateEnd);
97
- const l2 = `${mateRef}:${f(m1 - ws)}-${f(m2 + ws)}${horizontallyFlip ? '[rev]' : ''}`;
91
+ const l2 = `${mateRef}:${Math.floor(m1 - ws)}-${Math.floor(m2 + ws)}${horizontallyFlip ? '[rev]' : ''}`;
98
92
  await Promise.all([
99
93
  view2.views[0].navToLocString(l1, featAsm),
100
94
  view2.views[1].navToLocString(l2, mateAsm),
@@ -35,7 +35,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
35
35
  status?: string;
36
36
  reactElement?: React.ReactElement;
37
37
  };
38
- }) => import("react").JSX.Element | undefined;
38
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
39
39
  renderProps: any;
40
40
  } & {
41
41
  doReload(): void;
@@ -85,6 +85,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
85
85
  colorBySetting: import("mobx-state-tree").IType<import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined>;
86
86
  filterBySetting: import("mobx-state-tree").IType<import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined>;
87
87
  jexlFilters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
88
+ hideSmallIndelsSetting: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
88
89
  } & {
89
90
  type: import("mobx-state-tree").ISimpleType<"LGVSyntenyDisplay">;
90
91
  configuration: AnyConfigurationSchemaType;
@@ -179,13 +180,13 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
179
180
  } & {
180
181
  readonly statsReadyAndRegionNotTooLarge: boolean;
181
182
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
182
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
183
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
183
184
  } & {
184
185
  featureIdUnderMouse: undefined | string;
185
186
  contextMenuFeature: undefined | Feature;
186
187
  } & {
187
- readonly DisplayMessageComponent: import("react").FC<any> | undefined;
188
- readonly blockType: "dynamicBlocks" | "staticBlocks";
188
+ readonly DisplayMessageComponent: undefined | React.FC<any>;
189
+ readonly blockType: "staticBlocks" | "dynamicBlocks";
189
190
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
190
191
  } & {
191
192
  readonly renderDelay: number;
@@ -212,7 +213,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
212
213
  contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
213
214
  renderProps(): any;
214
215
  } & {
215
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
216
+ renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
216
217
  afterAttach(): void;
217
218
  } & {
218
219
  colorTagMap: import("mobx").ObservableMap<string, string>;
@@ -223,6 +224,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
223
224
  readonly filterBy: any;
224
225
  } & {
225
226
  readonly autorunReady: boolean;
227
+ readonly hideSmallIndels: boolean | undefined;
226
228
  } & {
227
229
  setTagsReady(flag: boolean): void;
228
230
  setMaxHeight(n?: number): void;
@@ -236,6 +238,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
236
238
  setConfig(conf: import("@jbrowse/core/configuration").AnyConfigurationModel): void;
237
239
  setFilterBy(filter: import("@jbrowse/plugin-alignments/src/shared/types").FilterBy): void;
238
240
  setJexlFilters(filters: string[]): void;
241
+ setHideSmallIndels(arg: boolean): void;
239
242
  } & {
240
243
  readonly rendererConfig: {
241
244
  [x: string]: any;
@@ -271,18 +274,28 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
271
274
  model: {
272
275
  sortedBy?: import("@jbrowse/plugin-alignments/src/shared/types").SortedBy;
273
276
  };
274
- }) => import("react").JSX.Element | null;
277
+ }) => import("react/jsx-runtime").JSX.Element | null;
275
278
  renderPropsPre(): any;
276
279
  colorSchemeSubMenuItems(): {
277
280
  label: string;
278
281
  onClick: () => void;
279
282
  }[];
280
283
  trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
284
+ label: string;
285
+ priority: number;
286
+ type: string;
287
+ checked: boolean | undefined;
288
+ onClick: () => void;
289
+ icon?: undefined;
290
+ } | {
281
291
  label: string;
282
292
  icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
283
293
  muiName: string;
284
294
  };
285
295
  onClick: () => void;
296
+ priority?: undefined;
297
+ type?: undefined;
298
+ checked?: undefined;
286
299
  })[];
287
300
  } & {
288
301
  renderProps(): any;
@@ -338,7 +351,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
338
351
  status?: string;
339
352
  reactElement?: React.ReactElement;
340
353
  };
341
- }) => import("react").JSX.Element | undefined;
354
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
342
355
  renderProps: any;
343
356
  } & {
344
357
  doReload(): void;
@@ -388,5 +401,6 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
388
401
  colorBySetting: import("mobx-state-tree").IType<import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined>;
389
402
  filterBySetting: import("mobx-state-tree").IType<import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined>;
390
403
  jexlFilters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
404
+ hideSmallIndelsSetting: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
391
405
  }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
392
406
  export default stateModelFactory;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  const react_1 = require("react");
27
37
  const configuration_1 = require("@jbrowse/core/configuration");
@@ -50,9 +60,10 @@ function stateModelFactory(schema) {
50
60
  (0, util_1.getSession)(self).queueDialog(handleClose => [
51
61
  LaunchSyntenyViewDialog,
52
62
  {
53
- model: self,
63
+ view: (0, util_1.getContainingView)(self),
54
64
  trackId: (0, configuration_1.getConf)((0, util_1.getContainingTrack)(self), 'trackId'),
55
65
  handleClose,
66
+ session: (0, util_1.getSession)(self),
56
67
  feature,
57
68
  },
58
69
  ]);
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  import type { LinearComparativeViewModel } from '../model';
3
2
  declare const Header: ({ model, }: {
4
3
  model: LinearComparativeViewModel;
5
- }) => React.JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default Header;
@@ -1,32 +1,10 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
- const react_1 = __importStar(require("react"));
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const react_1 = require("react");
30
8
  const CascadingMenuButton_1 = __importDefault(require("@jbrowse/core/ui/CascadingMenuButton"));
31
9
  const Icons_1 = require("@jbrowse/core/ui/Icons");
32
10
  const MoreVert_1 = __importDefault(require("@mui/icons-material/MoreVert"));
@@ -45,67 +23,60 @@ const Header = (0, mobx_react_1.observer)(function ({ model, }) {
45
23
  const { views } = model;
46
24
  const [showSearchBoxes, setShowSearchBoxes] = (0, react_1.useState)(views.length <= 3);
47
25
  const [sideBySide, setSideBySide] = (0, react_1.useState)(views.length <= 3);
48
- return (react_1.default.createElement(material_1.FormGroup, { row: true },
49
- react_1.default.createElement(CascadingMenuButton_1.default, { menuItems: [
50
- {
51
- label: 'Synteny track selectors',
52
- type: 'subMenu',
53
- subMenu: views.slice(0, -1).map((_, idx) => ({
54
- label: `Row ${idx + 1}->${idx + 2} (${views[idx].assemblyNames.join(',')}->${views[idx + 1].assemblyNames.join(',')})`,
26
+ return ((0, jsx_runtime_1.jsxs)(material_1.FormGroup, { row: true, children: [(0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: [
27
+ {
28
+ label: 'Synteny track selectors',
29
+ type: 'subMenu',
30
+ subMenu: views.slice(0, -1).map((_, idx) => ({
31
+ label: `Row ${idx + 1}->${idx + 2} (${views[idx].assemblyNames.join(',')}->${views[idx + 1].assemblyNames.join(',')})`,
32
+ onClick: () => {
33
+ model.activateTrackSelector(idx);
34
+ },
35
+ })),
36
+ },
37
+ {
38
+ label: 'Row track selectors',
39
+ type: 'subMenu',
40
+ subMenu: views.map((view, idx) => ({
41
+ label: `Row ${idx + 1} track selector (${view.assemblyNames.join(',')})`,
42
+ onClick: () => view.activateTrackSelector(),
43
+ })),
44
+ },
45
+ ], children: (0, jsx_runtime_1.jsx)(Icons_1.TrackSelector, {}) }), (0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: [
46
+ {
47
+ label: 'Row view menus',
48
+ type: 'subMenu',
49
+ subMenu: views.map((view, idx) => ({
50
+ label: `View ${idx + 1} Menu`,
51
+ subMenu: view.menuItems(),
52
+ })),
53
+ },
54
+ ...model.headerMenuItems(),
55
+ ], children: (0, jsx_runtime_1.jsx)(MoreVert_1.default, {}) }), (0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: [
56
+ {
57
+ label: 'Show search boxes',
58
+ type: 'checkbox',
59
+ checked: showSearchBoxes,
55
60
  onClick: () => {
56
- model.activateTrackSelector(idx);
61
+ setShowSearchBoxes(!showSearchBoxes);
57
62
  },
58
- })),
59
- },
60
- {
61
- label: 'Row track selectors',
62
- type: 'subMenu',
63
- subMenu: views.map((view, idx) => ({
64
- label: `Row ${idx + 1} track selector (${view.assemblyNames.join(',')})`,
65
- onClick: () => view.activateTrackSelector(),
66
- })),
67
- },
68
- ] },
69
- react_1.default.createElement(Icons_1.TrackSelector, null)),
70
- react_1.default.createElement(CascadingMenuButton_1.default, { menuItems: [
71
- {
72
- label: 'Row view menus',
73
- type: 'subMenu',
74
- subMenu: views.map((view, idx) => ({
75
- label: `View ${idx + 1} Menu`,
76
- subMenu: view.menuItems(),
77
- })),
78
- },
79
- ...model.headerMenuItems(),
80
- ] },
81
- react_1.default.createElement(MoreVert_1.default, null)),
82
- react_1.default.createElement(CascadingMenuButton_1.default, { menuItems: [
83
- {
84
- label: 'Show search boxes',
85
- type: 'checkbox',
86
- checked: showSearchBoxes,
87
- onClick: () => {
88
- setShowSearchBoxes(!showSearchBoxes);
89
63
  },
90
- },
91
- {
92
- label: 'Orientation - Side-by-side',
93
- type: 'radio',
94
- checked: sideBySide,
95
- onClick: () => {
96
- setSideBySide(!sideBySide);
64
+ {
65
+ label: 'Orientation - Side-by-side',
66
+ type: 'radio',
67
+ checked: sideBySide,
68
+ onClick: () => {
69
+ setSideBySide(!sideBySide);
70
+ },
97
71
  },
98
- },
99
- {
100
- label: 'Orientation - Vertical',
101
- type: 'radio',
102
- checked: !sideBySide,
103
- onClick: () => {
104
- setSideBySide(!sideBySide);
72
+ {
73
+ label: 'Orientation - Vertical',
74
+ type: 'radio',
75
+ checked: !sideBySide,
76
+ onClick: () => {
77
+ setSideBySide(!sideBySide);
78
+ },
105
79
  },
106
- },
107
- ] },
108
- react_1.default.createElement(Search_1.default, null)),
109
- showSearchBoxes ? (react_1.default.createElement("span", { className: sideBySide ? classes.inline : undefined }, views.map(view => (react_1.default.createElement(HeaderSearchBoxes_1.default, { key: view.id, view: view }))))) : null));
80
+ ], children: (0, jsx_runtime_1.jsx)(Search_1.default, {}) }), showSearchBoxes ? ((0, jsx_runtime_1.jsx)("span", { className: sideBySide ? classes.inline : undefined, children: views.map(view => ((0, jsx_runtime_1.jsx)(HeaderSearchBoxes_1.default, { view: view }, view.id))) })) : null] }));
110
81
  });
111
82
  exports.default = Header;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
3
2
  declare const HeaderSearchBoxes: ({ view, }: {
4
3
  view: LinearGenomeViewModel;
5
- }) => React.JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default HeaderSearchBoxes;
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
4
  const util_1 = require("@jbrowse/core/util");
8
5
  const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
9
6
  const material_1 = require("@mui/material");
@@ -22,12 +19,6 @@ const useStyles = (0, mui_1.makeStyles)()(() => ({
22
19
  const HeaderSearchBoxes = (0, mobx_react_1.observer)(function ({ view, }) {
23
20
  const { classes } = useStyles();
24
21
  const { assemblyNames, coarseTotalBp } = view;
25
- return (react_1.default.createElement("span", { className: classes.searchBox },
26
- react_1.default.createElement(plugin_linear_genome_view_1.SearchBox, { model: view, showHelp: false }),
27
- react_1.default.createElement(material_1.Typography, { variant: "body2", color: "textSecondary", className: classes.bp },
28
- assemblyNames.join(','),
29
- " ",
30
- (0, util_1.toLocale)(Math.round(coarseTotalBp)),
31
- " bp")));
22
+ return ((0, jsx_runtime_1.jsxs)("span", { className: classes.searchBox, children: [(0, jsx_runtime_1.jsx)(plugin_linear_genome_view_1.SearchBox, { model: view, showHelp: false }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body2", color: "textSecondary", className: classes.bp, children: [assemblyNames.join(','), " ", (0, util_1.toLocale)(Math.round(coarseTotalBp)), " bp"] })] }));
32
23
  });
33
24
  exports.default = HeaderSearchBoxes;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  import type { LinearComparativeViewModel } from '../model';
3
2
  declare const LinearComparativeRenderArea: ({ model, }: {
4
3
  model: LinearComparativeViewModel;
5
- }) => React.JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default LinearComparativeRenderArea;
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
4
  const configuration_1 = require("@jbrowse/core/configuration");
8
5
  const ui_1 = require("@jbrowse/core/ui");
9
6
  const util_1 = require("@jbrowse/core/util");
10
7
  const mobx_react_1 = require("mobx-react");
8
+ const jsx_runtime_2 = require("react/jsx-runtime");
11
9
  const mui_1 = require("tss-react/mui");
12
10
  const useStyles = (0, mui_1.makeStyles)()({
13
11
  container: {
@@ -25,30 +23,24 @@ const useStyles = (0, mui_1.makeStyles)()({
25
23
  function View({ view }) {
26
24
  const { pluginManager } = (0, util_1.getEnv)(view);
27
25
  const { ReactComponent } = pluginManager.getViewType(view.type);
28
- return react_1.default.createElement(ReactComponent, { model: view });
26
+ return (0, jsx_runtime_1.jsx)(ReactComponent, { model: view });
29
27
  }
30
28
  const LinearComparativeRenderArea = (0, mobx_react_1.observer)(function ({ model, }) {
31
29
  const { classes } = useStyles();
32
30
  const { views, levels } = model;
33
- return (react_1.default.createElement("div", { className: classes.container }, views.map((view, i) => (react_1.default.createElement(react_1.default.Fragment, { key: view.id },
34
- i > 0 ? (react_1.default.createElement(react_1.default.Fragment, null,
35
- react_1.default.createElement("div", { className: classes.container },
36
- react_1.default.createElement(Overlays, { model: model, level: i - 1 })),
37
- react_1.default.createElement(ui_1.ResizeHandle, { onDrag: n => { var _a, _b; return (_a = levels[i - 1]) === null || _a === void 0 ? void 0 : _a.setHeight((((_b = levels[i - 1]) === null || _b === void 0 ? void 0 : _b.height) || 0) + n); }, className: classes.resizeHandle }))) : null,
38
- react_1.default.createElement(View, { view: view }))))));
31
+ return ((0, jsx_runtime_1.jsx)("div", { className: classes.container, children: views.map((view, i) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_2.Fragment, { children: [i > 0 ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: classes.container, children: (0, jsx_runtime_1.jsx)(Overlays, { model: model, level: i - 1 }) }), (0, jsx_runtime_1.jsx)(ui_1.ResizeHandle, { onDrag: n => { var _a, _b; return (_a = levels[i - 1]) === null || _a === void 0 ? void 0 : _a.setHeight((((_b = levels[i - 1]) === null || _b === void 0 ? void 0 : _b.height) || 0) + n); }, className: classes.resizeHandle })] })) : null, (0, jsx_runtime_1.jsx)(View, { view: view })] }, view.id))) }));
39
32
  });
40
33
  const Overlays = (0, mobx_react_1.observer)(function ({ model, level, }) {
41
34
  var _a;
42
35
  const { classes } = useStyles();
43
- return (react_1.default.createElement(react_1.default.Fragment, null, (_a = model.levels[level]) === null || _a === void 0 ? void 0 : _a.tracks.map(track => {
44
- const [display] = track.displays;
45
- const { RenderingComponent } = display;
46
- const trackId = (0, configuration_1.getConf)(track, 'trackId');
47
- return RenderingComponent ? (react_1.default.createElement("div", { className: classes.overlay, key: trackId, style: {
48
- height: display.height,
49
- overflow: 'hidden',
50
- } },
51
- react_1.default.createElement(RenderingComponent, { model: display }))) : null;
52
- })));
36
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (_a = model.levels[level]) === null || _a === void 0 ? void 0 : _a.tracks.map(track => {
37
+ const [display] = track.displays;
38
+ const { RenderingComponent } = display;
39
+ const trackId = (0, configuration_1.getConf)(track, 'trackId');
40
+ return RenderingComponent ? ((0, jsx_runtime_1.jsx)("div", { className: classes.overlay, style: {
41
+ height: display.height,
42
+ overflow: 'hidden',
43
+ }, children: (0, jsx_runtime_1.jsx)(RenderingComponent, { model: display }) }, trackId)) : null;
44
+ }) }));
53
45
  });
54
46
  exports.default = LinearComparativeRenderArea;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  import type { LinearComparativeViewModel } from '../model';
3
2
  declare const LinearComparativeView: ({ model, }: {
4
3
  model: LinearComparativeViewModel;
5
- }) => React.JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default LinearComparativeView;