@jbrowse/plugin-linear-comparative-view 2.17.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 (231) hide show
  1. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
  2. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +36 -60
  3. package/dist/LGVSyntenyDisplay/components/util.d.ts +9 -6
  4. package/dist/LGVSyntenyDisplay/components/util.js +6 -13
  5. package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +19 -10
  6. package/dist/LGVSyntenyDisplay/configSchemaF.js +12 -9
  7. package/dist/LGVSyntenyDisplay/index.d.ts +1 -1
  8. package/dist/LGVSyntenyDisplay/index.js +1 -1
  9. package/dist/LGVSyntenyDisplay/model.d.ts +122 -69
  10. package/dist/LGVSyntenyDisplay/model.js +20 -37
  11. package/dist/LaunchLinearSyntenyView.d.ts +1 -1
  12. package/dist/LaunchLinearSyntenyView.js +1 -3
  13. package/dist/LinearComparativeDisplay/configSchemaF.d.ts +0 -3
  14. package/dist/LinearComparativeDisplay/configSchemaF.js +0 -6
  15. package/dist/LinearComparativeDisplay/index.d.ts +1 -1
  16. package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +12 -69
  17. package/dist/LinearComparativeDisplay/stateModelFactory.js +13 -57
  18. package/dist/LinearComparativeView/components/Header.d.ts +2 -3
  19. package/dist/LinearComparativeView/components/Header.js +56 -86
  20. package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +2 -3
  21. package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +5 -15
  22. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +2 -3
  23. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +17 -32
  24. package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +2 -3
  25. package/dist/LinearComparativeView/components/LinearComparativeView.js +4 -9
  26. package/dist/LinearComparativeView/components/Rubberband.d.ts +2 -3
  27. package/dist/LinearComparativeView/components/Rubberband.js +36 -69
  28. package/dist/LinearComparativeView/components/VerticalGuide.d.ts +2 -3
  29. package/dist/LinearComparativeView/components/VerticalGuide.js +5 -9
  30. package/dist/LinearComparativeView/index.d.ts +1 -1
  31. package/dist/LinearComparativeView/index.js +17 -7
  32. package/dist/LinearComparativeView/model.d.ts +38 -90
  33. package/dist/LinearComparativeView/model.js +40 -107
  34. package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +2 -3
  35. package/dist/LinearReadVsRef/LinearReadVsRef.js +10 -55
  36. package/dist/LinearReadVsRef/index.d.ts +1 -1
  37. package/dist/LinearReadVsRef/index.js +17 -9
  38. package/dist/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
  39. package/dist/LinearSyntenyDisplay/afterAttach.js +8 -12
  40. package/dist/LinearSyntenyDisplay/components/Component.d.ts +2 -3
  41. package/dist/LinearSyntenyDisplay/components/Component.js +11 -36
  42. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +2 -3
  43. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +95 -106
  44. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +3 -4
  45. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +3 -6
  46. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
  47. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +3 -4
  48. package/dist/LinearSyntenyDisplay/components/util.d.ts +3 -3
  49. package/dist/LinearSyntenyDisplay/components/util.js +0 -9
  50. package/dist/LinearSyntenyDisplay/configSchemaF.d.ts +1 -12
  51. package/dist/LinearSyntenyDisplay/configSchemaF.js +0 -15
  52. package/dist/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
  53. package/dist/LinearSyntenyDisplay/drawSynteny.js +1 -23
  54. package/dist/LinearSyntenyDisplay/index.d.ts +1 -1
  55. package/dist/LinearSyntenyDisplay/index.js +18 -9
  56. package/dist/LinearSyntenyDisplay/model.d.ts +8 -102
  57. package/dist/LinearSyntenyDisplay/model.js +18 -99
  58. package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +2 -3
  59. package/dist/LinearSyntenyView/components/ExportSvgDialog.js +35 -76
  60. package/dist/LinearSyntenyView/components/Icons.d.ts +3 -4
  61. package/dist/LinearSyntenyView/components/Icons.js +3 -8
  62. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
  63. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +130 -0
  64. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
  65. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +39 -0
  66. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
  67. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +22 -0
  68. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +2 -3
  69. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +49 -150
  70. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
  71. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +43 -0
  72. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
  73. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +68 -0
  74. package/dist/LinearSyntenyView/components/ImportForm/util.js +1 -3
  75. package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +2 -3
  76. package/dist/LinearSyntenyView/components/LinearSyntenyView.js +20 -10
  77. package/dist/LinearSyntenyView/index.d.ts +1 -1
  78. package/dist/LinearSyntenyView/index.js +17 -7
  79. package/dist/LinearSyntenyView/model.d.ts +54 -58
  80. package/dist/LinearSyntenyView/model.js +61 -56
  81. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
  82. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +3 -6
  83. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +2 -3
  84. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +3 -11
  85. package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +1 -1
  86. package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +7 -24
  87. package/dist/LinearSyntenyView/types.d.ts +12 -0
  88. package/dist/LinearSyntenyView/types.js +2 -0
  89. package/dist/LinearSyntenyViewHelper/index.d.ts +1 -1
  90. package/dist/LinearSyntenyViewHelper/index.js +2 -2
  91. package/dist/LinearSyntenyViewHelper/stateModelFactory.d.ts +2 -14
  92. package/dist/LinearSyntenyViewHelper/stateModelFactory.js +2 -29
  93. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
  94. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +87 -0
  95. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
  96. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +5 -90
  97. package/dist/SyntenyFeatureDetail/index.d.ts +1 -1
  98. package/dist/SyntenyFeatureDetail/index.js +18 -14
  99. package/dist/SyntenyFeatureDetail/types.d.ts +9 -0
  100. package/dist/SyntenyFeatureDetail/types.js +2 -0
  101. package/dist/SyntenyTrack/configSchema.d.ts +1 -1
  102. package/dist/SyntenyTrack/configSchema.js +1 -9
  103. package/dist/SyntenyTrack/index.d.ts +1 -1
  104. package/dist/SyntenyTrack/index.js +1 -1
  105. package/dist/index.d.ts +1 -1
  106. package/dist/index.js +4 -4
  107. package/dist/util.d.ts +2 -2
  108. package/dist/util.js +1 -11
  109. package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
  110. package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +35 -36
  111. package/esm/LGVSyntenyDisplay/components/util.d.ts +9 -6
  112. package/esm/LGVSyntenyDisplay/components/util.js +6 -13
  113. package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +19 -10
  114. package/esm/LGVSyntenyDisplay/configSchemaF.js +12 -9
  115. package/esm/LGVSyntenyDisplay/index.d.ts +1 -1
  116. package/esm/LGVSyntenyDisplay/index.js +1 -1
  117. package/esm/LGVSyntenyDisplay/model.d.ts +122 -69
  118. package/esm/LGVSyntenyDisplay/model.js +4 -31
  119. package/esm/LaunchLinearSyntenyView.d.ts +1 -1
  120. package/esm/LaunchLinearSyntenyView.js +1 -3
  121. package/esm/LinearComparativeDisplay/configSchemaF.d.ts +0 -3
  122. package/esm/LinearComparativeDisplay/configSchemaF.js +0 -6
  123. package/esm/LinearComparativeDisplay/index.d.ts +1 -1
  124. package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +12 -69
  125. package/esm/LinearComparativeDisplay/stateModelFactory.js +14 -58
  126. package/esm/LinearComparativeView/components/Header.d.ts +2 -3
  127. package/esm/LinearComparativeView/components/Header.js +56 -63
  128. package/esm/LinearComparativeView/components/HeaderSearchBoxes.d.ts +2 -3
  129. package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +5 -12
  130. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +2 -3
  131. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +17 -29
  132. package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +2 -3
  133. package/esm/LinearComparativeView/components/LinearComparativeView.js +4 -9
  134. package/esm/LinearComparativeView/components/Rubberband.d.ts +2 -3
  135. package/esm/LinearComparativeView/components/Rubberband.js +36 -46
  136. package/esm/LinearComparativeView/components/VerticalGuide.d.ts +2 -3
  137. package/esm/LinearComparativeView/components/VerticalGuide.js +5 -6
  138. package/esm/LinearComparativeView/index.d.ts +1 -1
  139. package/esm/LinearComparativeView/model.d.ts +38 -90
  140. package/esm/LinearComparativeView/model.js +24 -101
  141. package/esm/LinearReadVsRef/LinearReadVsRef.d.ts +2 -3
  142. package/esm/LinearReadVsRef/LinearReadVsRef.js +10 -32
  143. package/esm/LinearReadVsRef/index.d.ts +1 -1
  144. package/esm/LinearReadVsRef/index.js +1 -3
  145. package/esm/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
  146. package/esm/LinearSyntenyDisplay/afterAttach.js +8 -12
  147. package/esm/LinearSyntenyDisplay/components/Component.d.ts +2 -3
  148. package/esm/LinearSyntenyDisplay/components/Component.js +11 -13
  149. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +2 -3
  150. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +79 -100
  151. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +3 -4
  152. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +3 -3
  153. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
  154. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +3 -4
  155. package/esm/LinearSyntenyDisplay/components/util.d.ts +3 -3
  156. package/esm/LinearSyntenyDisplay/components/util.js +2 -11
  157. package/esm/LinearSyntenyDisplay/configSchemaF.d.ts +1 -12
  158. package/esm/LinearSyntenyDisplay/configSchemaF.js +0 -15
  159. package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
  160. package/esm/LinearSyntenyDisplay/drawSynteny.js +1 -23
  161. package/esm/LinearSyntenyDisplay/index.d.ts +1 -1
  162. package/esm/LinearSyntenyDisplay/index.js +1 -2
  163. package/esm/LinearSyntenyDisplay/model.d.ts +8 -102
  164. package/esm/LinearSyntenyDisplay/model.js +1 -92
  165. package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +2 -3
  166. package/esm/LinearSyntenyView/components/ExportSvgDialog.js +35 -53
  167. package/esm/LinearSyntenyView/components/Icons.d.ts +3 -4
  168. package/esm/LinearSyntenyView/components/Icons.js +3 -5
  169. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
  170. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +125 -0
  171. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
  172. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +37 -0
  173. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
  174. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +16 -0
  175. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +2 -3
  176. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +49 -127
  177. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
  178. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +40 -0
  179. package/esm/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
  180. package/esm/LinearSyntenyView/components/ImportForm/getAdapter.js +65 -0
  181. package/esm/LinearSyntenyView/components/ImportForm/util.js +1 -3
  182. package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +2 -3
  183. package/esm/LinearSyntenyView/components/LinearSyntenyView.js +3 -3
  184. package/esm/LinearSyntenyView/index.d.ts +1 -1
  185. package/esm/LinearSyntenyView/model.d.ts +54 -58
  186. package/esm/LinearSyntenyView/model.js +44 -49
  187. package/esm/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
  188. package/esm/LinearSyntenyView/svgcomponents/SVGBackground.js +3 -3
  189. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +2 -3
  190. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +4 -9
  191. package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +1 -1
  192. package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +8 -25
  193. package/esm/LinearSyntenyView/types.d.ts +12 -0
  194. package/esm/LinearSyntenyView/types.js +1 -0
  195. package/esm/LinearSyntenyViewHelper/index.d.ts +1 -1
  196. package/esm/LinearSyntenyViewHelper/index.js +2 -2
  197. package/esm/LinearSyntenyViewHelper/stateModelFactory.d.ts +2 -14
  198. package/esm/LinearSyntenyViewHelper/stateModelFactory.js +2 -29
  199. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
  200. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +52 -0
  201. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
  202. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +6 -68
  203. package/esm/SyntenyFeatureDetail/index.d.ts +1 -1
  204. package/esm/SyntenyFeatureDetail/index.js +1 -7
  205. package/esm/SyntenyFeatureDetail/types.d.ts +9 -0
  206. package/esm/SyntenyFeatureDetail/types.js +1 -0
  207. package/esm/SyntenyTrack/configSchema.d.ts +1 -1
  208. package/esm/SyntenyTrack/configSchema.js +1 -9
  209. package/esm/SyntenyTrack/index.d.ts +1 -1
  210. package/esm/SyntenyTrack/index.js +1 -1
  211. package/esm/index.d.ts +1 -1
  212. package/esm/index.js +4 -4
  213. package/esm/util.d.ts +2 -2
  214. package/esm/util.js +1 -11
  215. package/package.json +2 -4
  216. package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
  217. package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -194
  218. package/dist/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
  219. package/dist/LinearSyntenyView/components/ImportForm/Spacer.js +0 -10
  220. package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
  221. package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -59
  222. package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
  223. package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -52
  224. package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
  225. package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -169
  226. package/esm/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
  227. package/esm/LinearSyntenyView/components/ImportForm/Spacer.js +0 -4
  228. package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
  229. package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -34
  230. package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
  231. package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -23
@@ -1,9 +1,11 @@
1
- import React, { useRef, useEffect, useState } from 'react';
2
- import { observer } from 'mobx-react';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useRef, useState } from 'react';
3
+ import { Menu } from '@jbrowse/core/ui';
4
+ import { stringify } from '@jbrowse/core/util';
3
5
  import { Popover, Typography, alpha } from '@mui/material';
6
+ import { transaction } from 'mobx';
7
+ import { observer } from 'mobx-react';
4
8
  import { makeStyles } from 'tss-react/mui';
5
- import { stringify } from '@jbrowse/core/util';
6
- import { Menu } from '@jbrowse/core/ui';
7
9
  import VerticalGuide from './VerticalGuide';
8
10
  const useStyles = makeStyles()(theme => {
9
11
  return {
@@ -33,11 +35,9 @@ const useStyles = makeStyles()(theme => {
33
35
  },
34
36
  };
35
37
  });
36
- const LinearComparativeRubberband = observer(function Rubberband({ model, ControlComponent = React.createElement("div", null), }) {
38
+ const LinearComparativeRubberband = observer(function Rubberband({ model, ControlComponent = _jsx("div", {}), }) {
37
39
  const [startX, setStartX] = useState();
38
40
  const [currentX, setCurrentX] = useState();
39
- // clientX and clientY used for anchorPosition for menu
40
- // offsetX used for calculations about width of selection
41
41
  const [anchorPosition, setAnchorPosition] = useState();
42
42
  const [guideX, setGuideX] = useState();
43
43
  const controlsRef = useRef(null);
@@ -51,7 +51,6 @@ const LinearComparativeRubberband = observer(function Rubberband({ model, Contro
51
51
  }
52
52
  let leftPx = startX;
53
53
  let rightPx = offsetX;
54
- // handles clicking and dragging to the left
55
54
  if (rightPx < leftPx) {
56
55
  ;
57
56
  [leftPx, rightPx] = [rightPx, leftPx];
@@ -71,19 +70,19 @@ const LinearComparativeRubberband = observer(function Rubberband({ model, Contro
71
70
  const { clientX, clientY } = event;
72
71
  const ref = controlsRef.current;
73
72
  const offsetX = clientX - ref.getBoundingClientRect().left;
74
- // as stated above, store both clientX/Y and offsetX for different
75
- // purposes
76
73
  setAnchorPosition({
77
74
  offsetX,
78
75
  clientX,
79
76
  clientY,
80
77
  });
81
- model.views.forEach(view => {
82
- const args = computeOffsets(offsetX, view);
83
- if (args) {
84
- const { leftOffset, rightOffset } = args;
85
- view.setOffsets(leftOffset, rightOffset);
86
- }
78
+ transaction(() => {
79
+ model.views.forEach(view => {
80
+ const args = computeOffsets(offsetX, view);
81
+ if (args) {
82
+ const { leftOffset, rightOffset } = args;
83
+ view.setOffsets(leftOffset, rightOffset);
84
+ }
85
+ });
87
86
  });
88
87
  setGuideX(undefined);
89
88
  }
@@ -120,8 +119,10 @@ const LinearComparativeRubberband = observer(function Rubberband({ model, Contro
120
119
  }
121
120
  function mouseOut() {
122
121
  setGuideX(undefined);
123
- model.views.forEach(view => {
124
- view.setOffsets(undefined, undefined);
122
+ transaction(() => {
123
+ model.views.forEach(view => {
124
+ view.setOffsets(undefined, undefined);
125
+ });
125
126
  });
126
127
  }
127
128
  function handleClose() {
@@ -135,9 +136,7 @@ const LinearComparativeRubberband = observer(function Rubberband({ model, Contro
135
136
  handleClose();
136
137
  }
137
138
  if (startX === undefined) {
138
- return (React.createElement(React.Fragment, null,
139
- guideX !== undefined ? (React.createElement(VerticalGuide, { model: model, coordX: guideX })) : null,
140
- React.createElement("div", { ref: controlsRef, className: classes.rubberbandControl, onMouseDown: mouseDown, onMouseOut: mouseOut, onMouseMove: mouseMove }, ControlComponent)));
139
+ return (_jsxs(_Fragment, { children: [guideX !== undefined ? (_jsx(VerticalGuide, { model: model, coordX: guideX })) : null, _jsx("div", { ref: controlsRef, className: classes.rubberbandControl, onMouseDown: mouseDown, onMouseOut: mouseOut, onMouseMove: mouseMove, children: ControlComponent })] }));
141
140
  }
142
141
  const right = anchorPosition ? anchorPosition.offsetX : currentX || 0;
143
142
  const left = Math.min(right, startX);
@@ -146,30 +145,21 @@ const LinearComparativeRubberband = observer(function Rubberband({ model, Contro
146
145
  const leftBpOffset = views.map(view => view.pxToBp(left));
147
146
  const rightBpOffset = views.map(view => view.pxToBp(left + width));
148
147
  const numOfBpSelected = views.map(view => Math.ceil(width * view.bpPerPx));
149
- return (React.createElement(React.Fragment, null,
150
- rubberbandRef.current ? (React.createElement(React.Fragment, null,
151
- React.createElement(Popover, { className: classes.popover, classes: { paper: classes.paper }, open: true, anchorEl: rubberbandRef.current, anchorOrigin: {
152
- vertical: 'top',
153
- horizontal: 'left',
154
- }, transformOrigin: {
155
- vertical: 'bottom',
156
- horizontal: 'right',
157
- }, keepMounted: true, disableRestoreFocus: true }, leftBpOffset.map((l, idx) => (React.createElement(Typography, { key: [JSON.stringify(l), idx, 'left'].join('-') }, stringify(l, true))))),
158
- React.createElement(Popover, { className: classes.popover, classes: { paper: classes.paper }, open: true, anchorEl: rubberbandRef.current, anchorOrigin: {
159
- vertical: 'top',
160
- horizontal: 'right',
161
- }, transformOrigin: {
162
- vertical: 'bottom',
163
- horizontal: 'left',
164
- }, keepMounted: true, disableRestoreFocus: true }, rightBpOffset.map((l, idx) => (React.createElement(Typography, { key: [JSON.stringify(l), idx, 'right'].join('-') }, stringify(l, true))))))) : null,
165
- React.createElement("div", { ref: rubberbandRef, className: classes.rubberband, style: { left, width } },
166
- React.createElement(Typography, { variant: "h6", className: classes.rubberbandText }, numOfBpSelected.map((n, i) => (
167
- /* biome-ignore lint/suspicious/noArrayIndexKey: */
168
- React.createElement(Typography, { key: `${n}_${i}` }, `${n.toLocaleString('en-US')}bp`))))),
169
- React.createElement("div", { className: classes.rubberbandControl, ref: controlsRef, onMouseDown: mouseDown, onMouseOut: mouseOut, onMouseMove: mouseMove }, ControlComponent),
170
- anchorPosition ? (React.createElement(Menu, { anchorReference: "anchorPosition", anchorPosition: {
171
- left: anchorPosition.clientX,
172
- top: anchorPosition.clientY,
173
- }, onMenuItemClick: handleMenuItemClick, open: open, onClose: handleClose, menuItems: model.rubberBandMenuItems() })) : null));
148
+ return (_jsxs(_Fragment, { children: [rubberbandRef.current ? (_jsxs(_Fragment, { children: [_jsx(Popover, { className: classes.popover, classes: { paper: classes.paper }, open: true, anchorEl: rubberbandRef.current, anchorOrigin: {
149
+ vertical: 'top',
150
+ horizontal: 'left',
151
+ }, transformOrigin: {
152
+ vertical: 'bottom',
153
+ horizontal: 'right',
154
+ }, keepMounted: true, disableRestoreFocus: true, children: leftBpOffset.map((l, idx) => (_jsx(Typography, { children: stringify(l, true) }, [JSON.stringify(l), idx, 'left'].join('-')))) }), _jsx(Popover, { className: classes.popover, classes: { paper: classes.paper }, open: true, anchorEl: rubberbandRef.current, anchorOrigin: {
155
+ vertical: 'top',
156
+ horizontal: 'right',
157
+ }, transformOrigin: {
158
+ vertical: 'bottom',
159
+ horizontal: 'left',
160
+ }, keepMounted: true, disableRestoreFocus: true, children: rightBpOffset.map((l, idx) => (_jsx(Typography, { children: stringify(l, true) }, [JSON.stringify(l), idx, 'right'].join('-')))) })] })) : null, _jsx("div", { ref: rubberbandRef, className: classes.rubberband, style: { left, width }, children: _jsx(Typography, { variant: "h6", className: classes.rubberbandText, children: numOfBpSelected.map((n, i) => (_jsx(Typography, { children: `${n.toLocaleString('en-US')}bp` }, `${n}_${i}`))) }) }), _jsx("div", { className: classes.rubberbandControl, ref: controlsRef, onMouseDown: mouseDown, onMouseOut: mouseOut, onMouseMove: mouseMove, children: ControlComponent }), anchorPosition ? (_jsx(Menu, { anchorReference: "anchorPosition", anchorPosition: {
161
+ left: anchorPosition.clientX,
162
+ top: anchorPosition.clientY,
163
+ }, onMenuItemClick: handleMenuItemClick, open: open, onClose: handleClose, menuItems: model.rubberBandMenuItems() })) : null] }));
174
164
  });
175
165
  export default LinearComparativeRubberband;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
- import { LinearComparativeViewModel } from '../model';
1
+ import type { LinearComparativeViewModel } from '../model';
3
2
  type LCV = LinearComparativeViewModel;
4
3
  declare const VerticalGuide: ({ model, coordX, }: {
5
4
  model: LCV;
6
5
  coordX: number;
7
- }) => React.JSX.Element;
6
+ }) => import("react/jsx-runtime").JSX.Element;
8
7
  export default VerticalGuide;
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { stringify } from '@jbrowse/core/util';
2
3
  import { Tooltip, Typography } from '@mui/material';
3
4
  import { observer } from 'mobx-react';
4
- import { stringify } from '@jbrowse/core/util';
5
5
  import { makeStyles } from 'tss-react/mui';
6
6
  const useStyles = makeStyles()({
7
7
  guide: {
@@ -17,12 +17,11 @@ const useStyles = makeStyles()({
17
17
  });
18
18
  const VerticalGuide = observer(function ({ model, coordX, }) {
19
19
  const { classes } = useStyles();
20
- return (React.createElement(Tooltip, { open: true, placement: "top", title: model.views
20
+ return (_jsx(Tooltip, { open: true, placement: "top", title: model.views
21
21
  .map(view => view.pxToBp(coordX))
22
- .map((elt, idx) => (React.createElement(Typography, { className: classes.sm, key: [JSON.stringify(elt), idx].join('-') }, stringify(elt, true)))), arrow: true },
23
- React.createElement("div", { className: classes.guide, style: {
22
+ .map((elt, idx) => (_jsx(Typography, { className: classes.sm, children: stringify(elt, true) }, [JSON.stringify(elt), idx].join('-')))), arrow: true, children: _jsx("div", { className: classes.guide, style: {
24
23
  left: coordX,
25
24
  background: 'red',
26
- } })));
25
+ } }) }));
27
26
  });
28
27
  export default VerticalGuide;
@@ -1,2 +1,2 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function LinearComparativeViewF(pluginManager: PluginManager): void;
@@ -1,12 +1,7 @@
1
- import { Instance, SnapshotIn } from 'mobx-state-tree';
2
- import { MenuItem } from '@jbrowse/core/ui';
3
- import PluginManager from '@jbrowse/core/PluginManager';
4
- import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
5
- /**
6
- * #stateModel LinearComparativeView
7
- * extends
8
- * - [BaseViewModel](../baseviewmodel)
9
- */
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
+ import type { MenuItem } from '@jbrowse/core/ui';
3
+ import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
4
+ import type { Instance, SnapshotIn } from 'mobx-state-tree';
10
5
  declare function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
11
6
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
12
7
  displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
@@ -16,7 +11,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
16
11
  type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
17
12
  trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
18
13
  showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
19
- interactToggled: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
14
+ linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
15
+ interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
20
16
  levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
21
17
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
22
18
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -50,7 +46,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
50
46
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
51
47
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
52
48
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
53
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
49
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
54
50
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
55
51
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
56
52
  }, {
@@ -71,8 +67,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
71
67
  trackRefs: Record<string, HTMLDivElement>;
72
68
  coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
73
69
  coarseTotalBp: number;
74
- leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
75
- rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
70
+ leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
71
+ rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
76
72
  } & {
77
73
  readonly trackLabelsSetting: any;
78
74
  readonly width: number;
@@ -82,6 +78,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
82
78
  scaleBarDisplayPrefix(): string | undefined;
83
79
  MiniControlsComponent(): React.FC<any>;
84
80
  HeaderComponent(): React.FC<any>;
81
+ readonly assembliesNotFound: string | undefined;
85
82
  readonly assemblyErrors: string;
86
83
  readonly assembliesInitialized: boolean;
87
84
  readonly initialized: boolean;
@@ -118,12 +115,12 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
118
115
  setHideHeaderOverview(b: boolean): void;
119
116
  setHideNoTracksActive(b: boolean): void;
120
117
  setShowGridlines(b: boolean): void;
121
- addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
122
- setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
123
- removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
118
+ addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
119
+ setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
120
+ removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
124
121
  scrollTo(offsetPx: number): number;
125
122
  zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
126
- setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
123
+ setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
127
124
  setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
128
125
  setNewView(bpPerPx: number, offsetPx: number): void;
129
126
  horizontallyFlip(): void;
@@ -140,7 +137,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
140
137
  setShowCenterLine(b: boolean): void;
141
138
  setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
142
139
  activateTrackSelector(): import("@jbrowse/core/util").Widget;
143
- getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
140
+ getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
144
141
  start: number;
145
142
  end: number;
146
143
  type: string;
@@ -162,7 +159,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
162
159
  setDraggingTrackId(idx?: string): void;
163
160
  setScaleFactor(factor: number): void;
164
161
  clearView(): void;
165
- exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
162
+ exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
166
163
  } & {
167
164
  slide: (viewWidths: number) => void;
168
165
  } & {
@@ -184,15 +181,15 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
184
181
  setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
185
182
  afterAttach(): void;
186
183
  } & {
187
- moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
184
+ moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
188
185
  navToLocString(input: string, optAssemblyName?: string): Promise<void>;
189
186
  navToSearchString({ input, assembly, }: {
190
187
  input: string;
191
188
  assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
192
189
  }): Promise<void>;
193
190
  navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
194
- navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
195
- navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
191
+ navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
192
+ navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
196
193
  } & {
197
194
  rubberBandMenuItems(): MenuItem[];
198
195
  bpToPx({ refName, coord, regionNumber, }: {
@@ -247,7 +244,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
247
244
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
248
245
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
249
246
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
250
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
247
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
251
248
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
252
249
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
253
250
  }>>, import("mobx-state-tree")._NotCustomized>>;
@@ -261,81 +258,30 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
261
258
  setWidth(newWidth: number): void;
262
259
  setMinimized(flag: boolean): void;
263
260
  } & {
264
- /**
265
- * #volatile
266
- */
267
261
  width: number | undefined;
268
262
  } & {
269
- /**
270
- * #getter
271
- */
272
263
  readonly initialized: boolean;
273
- /**
274
- * #getter
275
- */
276
264
  readonly refNames: string[][];
277
- /**
278
- * #getter
279
- */
280
265
  readonly assemblyNames: string[];
281
266
  } & {
267
+ afterAttach(): void;
282
268
  beforeDestroy(): void;
283
269
  onSubviewAction(actionName: string, path: string, args?: unknown[]): void;
284
- /**
285
- * #action
286
- */
287
270
  setWidth(newWidth: number): void;
288
- /**
289
- * #action
290
- */
291
271
  setViews(views: SnapshotIn<LinearGenomeViewModel>[]): void;
292
- /**
293
- * #action
294
- */
295
272
  removeView(view: LinearGenomeViewModel): void;
296
- /**
297
- * #action
298
- */
299
273
  setLevelHeight(newHeight: number, level?: number): number;
300
- /**
301
- * #action
302
- */
274
+ setLinkViews(arg: boolean): void;
303
275
  activateTrackSelector(level: number): import("@jbrowse/core/util").Widget;
304
- /**
305
- * #action
306
- */
307
276
  toggleTrack(trackId: string, level?: number): void;
308
- /**
309
- * #action
310
- */
311
277
  showTrack(trackId: string, level?: number, initialSnapshot?: {}): void;
312
- /**
313
- * #action
314
- */
315
278
  hideTrack(trackId: string, level?: number): void;
316
- /**
317
- * #action
318
- */
319
279
  squareView(): void;
320
- /**
321
- * #action
322
- */
323
280
  clearView(): void;
324
281
  } & {
325
- /**
326
- * #method
327
- * includes a subset of view menu options because the full list is a
328
- * little overwhelming. overridden by subclasses
329
- */
330
282
  headerMenuItems(): MenuItem[];
331
283
  } & {
332
- /**
333
- * #method
334
- */
335
284
  menuItems(): MenuItem[];
336
- /**
337
- * #method
338
- */
339
285
  rubberBandMenuItems(): {
340
286
  label: string;
341
287
  onClick: () => void;
@@ -351,7 +297,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
351
297
  type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
352
298
  trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
353
299
  showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
354
- interactToggled: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
300
+ linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
301
+ interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
355
302
  levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
356
303
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
357
304
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -385,7 +332,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
385
332
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
386
333
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
387
334
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
388
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
335
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
389
336
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
390
337
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
391
338
  }, {
@@ -406,8 +353,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
406
353
  trackRefs: Record<string, HTMLDivElement>;
407
354
  coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
408
355
  coarseTotalBp: number;
409
- leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
410
- rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
356
+ leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
357
+ rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
411
358
  } & {
412
359
  readonly trackLabelsSetting: any;
413
360
  readonly width: number;
@@ -417,6 +364,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
417
364
  scaleBarDisplayPrefix(): string | undefined;
418
365
  MiniControlsComponent(): React.FC<any>;
419
366
  HeaderComponent(): React.FC<any>;
367
+ readonly assembliesNotFound: string | undefined;
420
368
  readonly assemblyErrors: string;
421
369
  readonly assembliesInitialized: boolean;
422
370
  readonly initialized: boolean;
@@ -453,12 +401,12 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
453
401
  setHideHeaderOverview(b: boolean): void;
454
402
  setHideNoTracksActive(b: boolean): void;
455
403
  setShowGridlines(b: boolean): void;
456
- addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
457
- setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
458
- removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
404
+ addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
405
+ setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
406
+ removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
459
407
  scrollTo(offsetPx: number): number;
460
408
  zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
461
- setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
409
+ setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
462
410
  setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
463
411
  setNewView(bpPerPx: number, offsetPx: number): void;
464
412
  horizontallyFlip(): void;
@@ -475,7 +423,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
475
423
  setShowCenterLine(b: boolean): void;
476
424
  setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
477
425
  activateTrackSelector(): import("@jbrowse/core/util").Widget;
478
- getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
426
+ getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
479
427
  start: number;
480
428
  end: number;
481
429
  type: string;
@@ -497,7 +445,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
497
445
  setDraggingTrackId(idx?: string): void;
498
446
  setScaleFactor(factor: number): void;
499
447
  clearView(): void;
500
- exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
448
+ exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
501
449
  } & {
502
450
  slide: (viewWidths: number) => void;
503
451
  } & {
@@ -519,15 +467,15 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
519
467
  setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
520
468
  afterAttach(): void;
521
469
  } & {
522
- moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
470
+ moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
523
471
  navToLocString(input: string, optAssemblyName?: string): Promise<void>;
524
472
  navToSearchString({ input, assembly, }: {
525
473
  input: string;
526
474
  assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
527
475
  }): Promise<void>;
528
476
  navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
529
- navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
530
- navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
477
+ navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
478
+ navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
531
479
  } & {
532
480
  rubberBandMenuItems(): MenuItem[];
533
481
  bpToPx({ refName, coord, regionNumber, }: {
@@ -582,7 +530,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
582
530
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
583
531
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
584
532
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
585
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
533
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
586
534
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
587
535
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
588
536
  }>>, import("mobx-state-tree")._NotCustomized>>;