@jbrowse/plugin-linear-comparative-view 3.7.0 → 4.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 (266) hide show
  1. package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +3 -3
  2. package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +9 -9
  3. package/esm/LGVSyntenyDisplay/configSchemaF.js +1 -1
  4. package/esm/LGVSyntenyDisplay/index.js +2 -2
  5. package/esm/LGVSyntenyDisplay/model.d.ts +1179 -133
  6. package/esm/LGVSyntenyDisplay/model.js +2 -2
  7. package/esm/LaunchLinearSyntenyView.js +13 -86
  8. package/esm/LinearComparativeDisplay/configSchemaF.d.ts +1 -1
  9. package/esm/LinearComparativeDisplay/index.js +2 -2
  10. package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +95 -135
  11. package/esm/LinearComparativeDisplay/stateModelFactory.js +18 -17
  12. package/esm/LinearComparativeView/components/ColorBySelector.d.ts +1 -1
  13. package/esm/LinearComparativeView/components/ColorBySelector.js +3 -4
  14. package/esm/LinearComparativeView/components/Header.d.ts +1 -1
  15. package/esm/LinearComparativeView/components/Header.js +8 -9
  16. package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +2 -2
  17. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +1 -1
  18. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +9 -8
  19. package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +1 -1
  20. package/esm/LinearComparativeView/components/LinearComparativeView.js +5 -5
  21. package/esm/LinearComparativeView/components/MinLengthSlider.d.ts +1 -1
  22. package/esm/LinearComparativeView/components/MinLengthSlider.js +7 -7
  23. package/esm/LinearComparativeView/components/OpacitySlider.d.ts +1 -1
  24. package/esm/LinearComparativeView/components/OpacitySlider.js +5 -6
  25. package/esm/LinearComparativeView/components/Rubberband.d.ts +1 -1
  26. package/esm/LinearComparativeView/components/Rubberband.js +5 -5
  27. package/esm/LinearComparativeView/components/RubberbandSpan.js +3 -5
  28. package/esm/LinearComparativeView/components/VerticalGuide.d.ts +1 -1
  29. package/esm/LinearComparativeView/components/VerticalGuide.js +2 -2
  30. package/esm/LinearComparativeView/components/useRangeSelect.d.ts +1 -1
  31. package/esm/LinearComparativeView/components/useRangeSelect.js +1 -1
  32. package/esm/LinearComparativeView/components/util.js +1 -1
  33. package/esm/LinearComparativeView/index.js +2 -2
  34. package/esm/LinearComparativeView/model.d.ts +474 -222
  35. package/esm/LinearComparativeView/model.js +50 -29
  36. package/esm/LinearReadVsRef/LinearReadVsRef.js +8 -9
  37. package/esm/LinearReadVsRef/index.js +1 -1
  38. package/esm/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
  39. package/esm/LinearSyntenyDisplay/afterAttach.js +10 -11
  40. package/esm/LinearSyntenyDisplay/components/BlockError.js +1 -1
  41. package/esm/LinearSyntenyDisplay/components/BlockMessage.js +6 -15
  42. package/esm/LinearSyntenyDisplay/components/Component.d.ts +1 -1
  43. package/esm/LinearSyntenyDisplay/components/Component.js +5 -5
  44. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +1 -1
  45. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +10 -14
  46. package/esm/LinearSyntenyDisplay/components/LoadingMessage.js +1 -1
  47. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +1 -1
  48. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +8 -33
  49. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -1
  50. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +1 -1
  51. package/esm/LinearSyntenyDisplay/components/util.d.ts +2 -2
  52. package/esm/LinearSyntenyDisplay/components/util.js +3 -3
  53. package/esm/LinearSyntenyDisplay/configSchemaF.d.ts +2 -2
  54. package/esm/LinearSyntenyDisplay/configSchemaF.js +1 -1
  55. package/esm/LinearSyntenyDisplay/drawMouseoverClickMap.d.ts +2 -0
  56. package/esm/LinearSyntenyDisplay/drawMouseoverClickMap.js +53 -0
  57. package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
  58. package/esm/LinearSyntenyDisplay/drawSynteny.js +3 -5
  59. package/esm/LinearSyntenyDisplay/index.js +3 -3
  60. package/esm/LinearSyntenyDisplay/model.d.ts +97 -137
  61. package/esm/LinearSyntenyDisplay/model.js +3 -3
  62. package/esm/LinearSyntenyView/components/DiagonalizationProgressDialog.d.ts +1 -1
  63. package/esm/LinearSyntenyView/components/DiagonalizationProgressDialog.js +2 -2
  64. package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +1 -1
  65. package/esm/LinearSyntenyView/components/ExportSvgDialog.js +6 -2
  66. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +1 -1
  67. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +4 -4
  68. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +1 -1
  69. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +4 -5
  70. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +11 -1
  71. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +8 -4
  72. package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +1 -1
  73. package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.js +26 -9
  74. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +1 -1
  75. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +5 -5
  76. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +1 -1
  77. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +1 -2
  78. package/esm/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.d.ts +1 -1
  79. package/esm/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.js +2 -2
  80. package/esm/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.d.ts +1 -1
  81. package/esm/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.js +2 -2
  82. package/esm/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.d.ts +1 -1
  83. package/esm/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.js +3 -3
  84. package/esm/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.js +3 -3
  85. package/esm/LinearSyntenyView/components/ImportForm/selectors/index.d.ts +4 -4
  86. package/esm/LinearSyntenyView/components/ImportForm/selectors/index.js +4 -4
  87. package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +1 -1
  88. package/esm/LinearSyntenyView/components/LinearSyntenyView.js +14 -4
  89. package/esm/LinearSyntenyView/index.js +2 -2
  90. package/esm/LinearSyntenyView/model.d.ts +522 -254
  91. package/esm/LinearSyntenyView/model.js +99 -15
  92. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +3 -1
  93. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +3 -3
  94. package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +2 -2
  95. package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +34 -31
  96. package/esm/LinearSyntenyView/types.d.ts +10 -1
  97. package/esm/LinearSyntenyViewHelper/index.js +1 -1
  98. package/esm/LinearSyntenyViewHelper/stateModelFactory.d.ts +11 -11
  99. package/esm/LinearSyntenyViewHelper/stateModelFactory.js +5 -43
  100. package/esm/SyntenyFeatureDetail/Formatter.js +2 -2
  101. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +1 -1
  102. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +6 -7
  103. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +1 -1
  104. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +3 -3
  105. package/esm/SyntenyFeatureDetail/index.js +2 -2
  106. package/esm/SyntenyTrack/configSchema.d.ts +16 -11
  107. package/esm/SyntenyTrack/index.js +1 -1
  108. package/esm/index.d.ts +2 -0
  109. package/esm/index.js +11 -14
  110. package/esm/util.d.ts +1 -1
  111. package/esm/util.js +4 -8
  112. package/package.json +29 -35
  113. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +0 -9
  114. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +0 -53
  115. package/dist/LGVSyntenyDisplay/components/util.d.ts +0 -14
  116. package/dist/LGVSyntenyDisplay/components/util.js +0 -100
  117. package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +0 -66
  118. package/dist/LGVSyntenyDisplay/configSchemaF.js +0 -38
  119. package/dist/LGVSyntenyDisplay/index.d.ts +0 -2
  120. package/dist/LGVSyntenyDisplay/index.js +0 -24
  121. package/dist/LGVSyntenyDisplay/model.d.ts +0 -418
  122. package/dist/LGVSyntenyDisplay/model.js +0 -118
  123. package/dist/LaunchLinearSyntenyView.d.ts +0 -2
  124. package/dist/LaunchLinearSyntenyView.js +0 -93
  125. package/dist/LinearComparativeDisplay/configSchemaF.d.ts +0 -2
  126. package/dist/LinearComparativeDisplay/configSchemaF.js +0 -10
  127. package/dist/LinearComparativeDisplay/index.d.ts +0 -2
  128. package/dist/LinearComparativeDisplay/index.js +0 -24
  129. package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +0 -243
  130. package/dist/LinearComparativeDisplay/stateModelFactory.js +0 -146
  131. package/dist/LinearComparativeView/components/ColorBySelector.d.ts +0 -5
  132. package/dist/LinearComparativeView/components/ColorBySelector.js +0 -54
  133. package/dist/LinearComparativeView/components/Header.d.ts +0 -5
  134. package/dist/LinearComparativeView/components/Header.js +0 -87
  135. package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +0 -5
  136. package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +0 -24
  137. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +0 -5
  138. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +0 -46
  139. package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +0 -5
  140. package/dist/LinearComparativeView/components/LinearComparativeView.js +0 -30
  141. package/dist/LinearComparativeView/components/MinLengthSlider.d.ts +0 -5
  142. package/dist/LinearComparativeView/components/MinLengthSlider.js +0 -47
  143. package/dist/LinearComparativeView/components/OpacitySlider.d.ts +0 -5
  144. package/dist/LinearComparativeView/components/OpacitySlider.js +0 -46
  145. package/dist/LinearComparativeView/components/Rubberband.d.ts +0 -7
  146. package/dist/LinearComparativeView/components/Rubberband.js +0 -32
  147. package/dist/LinearComparativeView/components/RubberbandSpan.d.ts +0 -15
  148. package/dist/LinearComparativeView/components/RubberbandSpan.js +0 -38
  149. package/dist/LinearComparativeView/components/RubberbandTooltip.d.ts +0 -5
  150. package/dist/LinearComparativeView/components/RubberbandTooltip.js +0 -20
  151. package/dist/LinearComparativeView/components/SliderTooltip.d.ts +0 -2
  152. package/dist/LinearComparativeView/components/SliderTooltip.js +0 -9
  153. package/dist/LinearComparativeView/components/VerticalGuide.d.ts +0 -7
  154. package/dist/LinearComparativeView/components/VerticalGuide.js +0 -26
  155. package/dist/LinearComparativeView/components/useRangeSelect.d.ts +0 -59
  156. package/dist/LinearComparativeView/components/useRangeSelect.js +0 -124
  157. package/dist/LinearComparativeView/components/util.d.ts +0 -4
  158. package/dist/LinearComparativeView/components/util.js +0 -6
  159. package/dist/LinearComparativeView/index.d.ts +0 -2
  160. package/dist/LinearComparativeView/index.js +0 -55
  161. package/dist/LinearComparativeView/model.d.ts +0 -606
  162. package/dist/LinearComparativeView/model.js +0 -238
  163. package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +0 -6
  164. package/dist/LinearReadVsRef/LinearReadVsRef.js +0 -241
  165. package/dist/LinearReadVsRef/index.d.ts +0 -2
  166. package/dist/LinearReadVsRef/index.js +0 -86
  167. package/dist/LinearSyntenyDisplay/afterAttach.d.ts +0 -2
  168. package/dist/LinearSyntenyDisplay/afterAttach.js +0 -104
  169. package/dist/LinearSyntenyDisplay/components/BlockError.d.ts +0 -3
  170. package/dist/LinearSyntenyDisplay/components/BlockError.js +0 -16
  171. package/dist/LinearSyntenyDisplay/components/BlockMessage.d.ts +0 -3
  172. package/dist/LinearSyntenyDisplay/components/BlockMessage.js +0 -24
  173. package/dist/LinearSyntenyDisplay/components/Component.d.ts +0 -5
  174. package/dist/LinearSyntenyDisplay/components/Component.js +0 -26
  175. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +0 -5
  176. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +0 -223
  177. package/dist/LinearSyntenyDisplay/components/LoadingMessage.d.ts +0 -3
  178. package/dist/LinearSyntenyDisplay/components/LoadingMessage.js +0 -21
  179. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +0 -15
  180. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +0 -56
  181. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +0 -4
  182. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +0 -13
  183. package/dist/LinearSyntenyDisplay/components/util.d.ts +0 -45
  184. package/dist/LinearSyntenyDisplay/components/util.js +0 -199
  185. package/dist/LinearSyntenyDisplay/configSchemaF.d.ts +0 -12
  186. package/dist/LinearSyntenyDisplay/configSchemaF.js +0 -23
  187. package/dist/LinearSyntenyDisplay/drawSynteny.d.ts +0 -6
  188. package/dist/LinearSyntenyDisplay/drawSynteny.js +0 -470
  189. package/dist/LinearSyntenyDisplay/index.d.ts +0 -2
  190. package/dist/LinearSyntenyDisplay/index.js +0 -56
  191. package/dist/LinearSyntenyDisplay/model.d.ts +0 -291
  192. package/dist/LinearSyntenyDisplay/model.js +0 -133
  193. package/dist/LinearSyntenyView/components/DiagonalizationProgressDialog.d.ts +0 -6
  194. package/dist/LinearSyntenyView/components/DiagonalizationProgressDialog.js +0 -87
  195. package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +0 -7
  196. package/dist/LinearSyntenyView/components/ExportSvgDialog.js +0 -58
  197. package/dist/LinearSyntenyView/components/Icons.d.ts +0 -3
  198. package/dist/LinearSyntenyView/components/Icons.js +0 -12
  199. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +0 -8
  200. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +0 -81
  201. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +0 -8
  202. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +0 -39
  203. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +0 -7
  204. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +0 -22
  205. package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +0 -11
  206. package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.js +0 -58
  207. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +0 -5
  208. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +0 -60
  209. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +0 -5
  210. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +0 -43
  211. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +0 -117
  212. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +0 -68
  213. package/dist/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.d.ts +0 -3
  214. package/dist/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.js +0 -13
  215. package/dist/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.d.ts +0 -3
  216. package/dist/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.js +0 -13
  217. package/dist/LinearSyntenyView/components/ImportForm/selectors/SelectorTypes.d.ts +0 -19
  218. package/dist/LinearSyntenyView/components/ImportForm/selectors/SelectorTypes.js +0 -10
  219. package/dist/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.d.ts +0 -3
  220. package/dist/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.js +0 -20
  221. package/dist/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.d.ts +0 -13
  222. package/dist/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.js +0 -32
  223. package/dist/LinearSyntenyView/components/ImportForm/selectors/index.d.ts +0 -4
  224. package/dist/LinearSyntenyView/components/ImportForm/selectors/index.js +0 -27
  225. package/dist/LinearSyntenyView/components/ImportForm/util.d.ts +0 -10
  226. package/dist/LinearSyntenyView/components/ImportForm/util.js +0 -24
  227. package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +0 -5
  228. package/dist/LinearSyntenyView/components/LinearSyntenyView.js +0 -47
  229. package/dist/LinearSyntenyView/components/TextField2.d.ts +0 -2
  230. package/dist/LinearSyntenyView/components/TextField2.js +0 -8
  231. package/dist/LinearSyntenyView/index.d.ts +0 -2
  232. package/dist/LinearSyntenyView/index.js +0 -52
  233. package/dist/LinearSyntenyView/model.d.ts +0 -702
  234. package/dist/LinearSyntenyView/model.js +0 -240
  235. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +0 -5
  236. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +0 -10
  237. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +0 -11
  238. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +0 -11
  239. package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +0 -3
  240. package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +0 -80
  241. package/dist/LinearSyntenyView/types.d.ts +0 -29
  242. package/dist/LinearSyntenyView/types.js +0 -2
  243. package/dist/LinearSyntenyView/util/diagonalize.d.ts +0 -27
  244. package/dist/LinearSyntenyView/util/diagonalize.js +0 -91
  245. package/dist/LinearSyntenyViewHelper/index.d.ts +0 -2
  246. package/dist/LinearSyntenyViewHelper/index.js +0 -25
  247. package/dist/LinearSyntenyViewHelper/stateModelFactory.d.ts +0 -18
  248. package/dist/LinearSyntenyViewHelper/stateModelFactory.js +0 -78
  249. package/dist/SyntenyFeatureDetail/Formatter.d.ts +0 -3
  250. package/dist/SyntenyFeatureDetail/Formatter.js +0 -23
  251. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +0 -7
  252. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +0 -87
  253. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +0 -5
  254. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +0 -19
  255. package/dist/SyntenyFeatureDetail/index.d.ts +0 -2
  256. package/dist/SyntenyFeatureDetail/index.js +0 -60
  257. package/dist/SyntenyFeatureDetail/types.d.ts +0 -9
  258. package/dist/SyntenyFeatureDetail/types.js +0 -2
  259. package/dist/SyntenyTrack/configSchema.d.ts +0 -80
  260. package/dist/SyntenyTrack/configSchema.js +0 -9
  261. package/dist/SyntenyTrack/index.d.ts +0 -2
  262. package/dist/SyntenyTrack/index.js +0 -19
  263. package/dist/index.d.ts +0 -7
  264. package/dist/index.js +0 -48
  265. package/dist/util.d.ts +0 -25
  266. package/dist/util.js +0 -67
@@ -1,9 +1,9 @@
1
1
  import { lazy } from 'react';
2
2
  import { ConfigurationReference, getConf } from '@jbrowse/core/configuration';
3
3
  import { getContainingTrack, getContainingView, getSession, isSessionModelWithWidgets, } from '@jbrowse/core/util';
4
+ import { types } from '@jbrowse/mobx-state-tree';
4
5
  import { SharedLinearPileupDisplayMixin } from '@jbrowse/plugin-alignments';
5
- import { types } from 'mobx-state-tree';
6
- const LaunchSyntenyViewDialog = lazy(() => import('./components/LaunchSyntenyViewDialog'));
6
+ const LaunchSyntenyViewDialog = lazy(() => import("./components/LaunchSyntenyViewDialog.js"));
7
7
  function stateModelFactory(schema) {
8
8
  return types
9
9
  .compose('LGVSyntenyDisplay', SharedLinearPileupDisplayMixin(schema), types.model({
@@ -1,90 +1,17 @@
1
- import { notEmpty } from '@jbrowse/core/util';
2
- import { when } from 'mobx';
3
- function makeMultiDimArray(str) {
4
- return Array.isArray(str[0]) ? str : [str];
5
- }
6
1
  export default function LaunchLinearSyntenyView(pluginManager) {
7
2
  pluginManager.addToExtensionPoint('LaunchView-LinearSyntenyView', async ({ session, views, tracks = [], }) => {
8
- try {
9
- const { assemblyManager } = session;
10
- const model = session.addView('LinearSyntenyView', {});
11
- await when(() => !!model.width);
12
- model.setViews(await Promise.all(views.map(async (view) => {
13
- const asm = await assemblyManager.waitForAssembly(view.assembly);
14
- if (!asm) {
15
- throw new Error(`Assembly ${view.assembly} failed to load`);
16
- }
17
- return {
18
- type: 'LinearGenomeView',
19
- bpPerPx: 1,
20
- offsetPx: 0,
21
- hideHeader: true,
22
- displayedRegions: asm.regions,
23
- };
24
- })));
25
- await Promise.all(model.views.map(view => when(() => view.initialized)));
26
- let idsNotFound = [];
27
- await Promise.all(views.map(async (data, idx) => {
28
- const view = model.views[idx];
29
- const { assembly, loc, tracks = [] } = data;
30
- const asm = await assemblyManager.waitForAssembly(assembly);
31
- if (!asm) {
32
- throw new Error(`Assembly ${data.assembly} failed to load`);
33
- }
34
- await view.navToSearchString({ input: loc, assembly: asm });
35
- idsNotFound = [
36
- ...idsNotFound,
37
- ...tracks.map(trackId => tryTrackLGV({
38
- model: view,
39
- trackId,
40
- })),
41
- ];
42
- }));
43
- idsNotFound = [
44
- ...idsNotFound,
45
- ...makeMultiDimArray(tracks).flatMap((trackSet, level) => trackSet.map(trackId => tryTrackSynteny({
46
- model,
47
- trackId,
48
- level,
49
- }))),
50
- ];
51
- if (idsNotFound.filter(notEmpty).length) {
52
- throw new Error(`Could not resolve identifiers: ${idsNotFound.join(',')}`);
53
- }
54
- }
55
- catch (e) {
56
- session.notifyError(`${e}`, e);
57
- throw e;
58
- }
3
+ const flatTracks = Array.isArray(tracks[0])
4
+ ? tracks.flat()
5
+ : tracks;
6
+ session.addView('LinearSyntenyView', {
7
+ init: {
8
+ views: views.map(v => ({
9
+ loc: v.loc,
10
+ assembly: v.assembly,
11
+ tracks: v.tracks,
12
+ })),
13
+ tracks: flatTracks,
14
+ },
15
+ });
59
16
  });
60
17
  }
61
- function tryTrackLGV({ model, trackId, }) {
62
- try {
63
- model.showTrack(trackId);
64
- }
65
- catch (e) {
66
- if (/Could not resolve identifier/.exec(`${e}`) ||
67
- /track not found/.exec(`${e}`)) {
68
- return trackId;
69
- }
70
- else {
71
- throw e;
72
- }
73
- }
74
- return undefined;
75
- }
76
- function tryTrackSynteny({ model, trackId, level, }) {
77
- try {
78
- model.showTrack(trackId, level);
79
- }
80
- catch (e) {
81
- if (/Could not resolve identifier/.exec(`${e}`) ||
82
- /track not found/.exec(`${e}`)) {
83
- return trackId;
84
- }
85
- else {
86
- throw e;
87
- }
88
- }
89
- return undefined;
90
- }
@@ -1,2 +1,2 @@
1
- declare function configSchemaFactory(_pluginManager: any): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
1
+ declare function configSchemaFactory(_pluginManager: any): import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
2
2
  export default configSchemaFactory;
@@ -1,6 +1,6 @@
1
1
  import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
2
- import configSchemaFactory from './configSchemaF';
3
- import stateModelFactory from './stateModelFactory';
2
+ import configSchemaFactory from "./configSchemaF.js";
3
+ import stateModelFactory from "./stateModelFactory.js";
4
4
  export default function LinearComparativeDisplayF(pluginManager) {
5
5
  pluginManager.addDisplayType(() => {
6
6
  const configSchema = configSchemaFactory(pluginManager);
@@ -1,36 +1,36 @@
1
1
  import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
2
2
  import type { Feature } from '@jbrowse/core/util';
3
- import type { Instance } from 'mobx-state-tree';
4
- declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
5
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
6
- type: import("mobx-state-tree").ISimpleType<string>;
7
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
3
+ import type { Instance } from '@jbrowse/mobx-state-tree';
4
+ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("@jbrowse/mobx-state-tree").IModelType<{
5
+ id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
6
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
7
+ rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
8
8
  } & {
9
- type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
9
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
10
10
  configuration: AnyConfigurationSchemaType;
11
11
  }, {
12
12
  rendererTypeName: string;
13
13
  error: unknown;
14
- message: string | undefined;
14
+ statusMessage: string | undefined;
15
15
  } & {
16
16
  readonly RenderingComponent: React.FC<{
17
17
  model: {
18
18
  id: string;
19
19
  type: string;
20
20
  rpcDriverName: string | undefined;
21
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
21
+ } & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
22
22
  rendererTypeName: string;
23
23
  error: unknown;
24
- message: string | undefined;
25
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
26
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
27
- type: import("mobx-state-tree").ISimpleType<string>;
28
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
24
+ statusMessage: string | undefined;
25
+ } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
26
+ id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
27
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
28
+ rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
29
29
  }, {
30
30
  rendererTypeName: string;
31
31
  error: unknown;
32
- message: string | undefined;
33
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
32
+ statusMessage: string | undefined;
33
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
34
34
  onHorizontalScroll?: () => void;
35
35
  blockState?: Record<string, any>;
36
36
  }>;
@@ -39,81 +39,54 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
39
39
  id: string;
40
40
  type: string;
41
41
  rpcDriverName: string | undefined;
42
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
42
+ } & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
43
43
  rendererTypeName: string;
44
44
  error: unknown;
45
- message: string | undefined;
46
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
47
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
48
- type: import("mobx-state-tree").ISimpleType<string>;
49
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
45
+ statusMessage: string | undefined;
46
+ } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
47
+ id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
48
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
49
+ rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
50
50
  }, {
51
51
  rendererTypeName: string;
52
52
  error: unknown;
53
- message: string | undefined;
54
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
53
+ statusMessage: string | undefined;
54
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
55
55
  }> | null;
56
56
  readonly adapterConfig: any;
57
- readonly parentTrack: any;
58
- renderProps(): any;
59
- readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
60
- readonly DisplayMessageComponent: undefined | React.FC<any>;
61
- trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
62
- readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
63
- regionCannotBeRendered(): null;
64
- } & {
65
- setMessage(arg?: string): void;
66
- setError(error?: unknown): void;
67
- setRpcDriverName(rpcDriverName: string): void;
68
- reload(): void;
57
+ readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
58
+ readonly parentDisplay: any;
59
+ readonly effectiveRpcDriverName: any;
69
60
  } & {
70
- renderInProgress: string | undefined;
71
- features: Feature[] | undefined;
72
- message: string | undefined;
73
- loadingStatus: string | undefined;
74
- } & {
75
- readonly level: number;
76
- readonly height: number;
77
- renderProps(): {
78
- rpcDriverName: string | undefined;
61
+ renderProps(): any;
62
+ renderingProps(): {
79
63
  displayModel: {
80
64
  id: string;
81
- type: "LinearComparativeDisplay";
65
+ type: string;
82
66
  rpcDriverName: string | undefined;
83
- configuration: {
84
- [x: string]: any;
85
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
86
- setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
87
- [x: string]: any;
88
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
89
- setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
90
- [x: string]: any;
91
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
92
- } & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
93
- } & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
94
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
67
+ } & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
95
68
  rendererTypeName: string;
96
69
  error: unknown;
97
- message: string | undefined;
70
+ statusMessage: string | undefined;
98
71
  } & {
99
72
  readonly RenderingComponent: React.FC<{
100
73
  model: {
101
74
  id: string;
102
75
  type: string;
103
76
  rpcDriverName: string | undefined;
104
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
77
+ } & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
105
78
  rendererTypeName: string;
106
79
  error: unknown;
107
- message: string | undefined;
108
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
109
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
110
- type: import("mobx-state-tree").ISimpleType<string>;
111
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
80
+ statusMessage: string | undefined;
81
+ } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
82
+ id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
83
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
84
+ rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
112
85
  }, {
113
86
  rendererTypeName: string;
114
87
  error: unknown;
115
- message: string | undefined;
116
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
88
+ statusMessage: string | undefined;
89
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
117
90
  onHorizontalScroll?: () => void;
118
91
  blockState?: Record<string, any>;
119
92
  }>;
@@ -122,68 +95,51 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
122
95
  id: string;
123
96
  type: string;
124
97
  rpcDriverName: string | undefined;
125
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
98
+ } & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
126
99
  rendererTypeName: string;
127
100
  error: unknown;
128
- message: string | undefined;
129
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
130
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
131
- type: import("mobx-state-tree").ISimpleType<string>;
132
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
101
+ statusMessage: string | undefined;
102
+ } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
103
+ id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
104
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
105
+ rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
133
106
  }, {
134
107
  rendererTypeName: string;
135
108
  error: unknown;
136
- message: string | undefined;
137
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
109
+ statusMessage: string | undefined;
110
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
138
111
  }> | null;
139
112
  readonly adapterConfig: any;
140
- readonly parentTrack: any;
141
- renderProps(): any;
142
- readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
143
- readonly DisplayMessageComponent: undefined | React.FC<any>;
144
- trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
145
- readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
146
- regionCannotBeRendered(): null;
147
- } & {
148
- setMessage(arg?: string): void;
149
- setError(error?: unknown): void;
150
- setRpcDriverName(rpcDriverName: string): void;
151
- reload(): void;
152
- } & {
153
- renderInProgress: string | undefined;
154
- features: Feature[] | undefined;
155
- message: string | undefined;
156
- loadingStatus: string | undefined;
157
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
158
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
159
- type: import("mobx-state-tree").ISimpleType<string>;
160
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
161
- } & {
162
- type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
163
- configuration: AnyConfigurationSchemaType;
113
+ readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
114
+ readonly parentDisplay: any;
115
+ readonly effectiveRpcDriverName: any;
116
+ } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
117
+ id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
118
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
119
+ rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
164
120
  }, {
165
121
  rendererTypeName: string;
166
122
  error: unknown;
167
- message: string | undefined;
123
+ statusMessage: string | undefined;
168
124
  } & {
169
125
  readonly RenderingComponent: React.FC<{
170
126
  model: {
171
127
  id: string;
172
128
  type: string;
173
129
  rpcDriverName: string | undefined;
174
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
130
+ } & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
175
131
  rendererTypeName: string;
176
132
  error: unknown;
177
- message: string | undefined;
178
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
179
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
180
- type: import("mobx-state-tree").ISimpleType<string>;
181
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
133
+ statusMessage: string | undefined;
134
+ } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
135
+ id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
136
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
137
+ rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
182
138
  }, {
183
139
  rendererTypeName: string;
184
140
  error: unknown;
185
- message: string | undefined;
186
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
141
+ statusMessage: string | undefined;
142
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
187
143
  onHorizontalScroll?: () => void;
188
144
  blockState?: Record<string, any>;
189
145
  }>;
@@ -192,41 +148,45 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
192
148
  id: string;
193
149
  type: string;
194
150
  rpcDriverName: string | undefined;
195
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
151
+ } & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
196
152
  rendererTypeName: string;
197
153
  error: unknown;
198
- message: string | undefined;
199
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
200
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
201
- type: import("mobx-state-tree").ISimpleType<string>;
202
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
154
+ statusMessage: string | undefined;
155
+ } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
156
+ id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
157
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
158
+ rpcDriverName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
203
159
  }, {
204
160
  rendererTypeName: string;
205
161
  error: unknown;
206
- message: string | undefined;
207
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
162
+ statusMessage: string | undefined;
163
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
208
164
  }> | null;
209
165
  readonly adapterConfig: any;
210
- readonly parentTrack: any;
211
- renderProps(): any;
212
- readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
213
- readonly DisplayMessageComponent: undefined | React.FC<any>;
214
- trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
215
- readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
216
- regionCannotBeRendered(): null;
217
- } & {
218
- setMessage(arg?: string): void;
219
- setError(error?: unknown): void;
220
- setRpcDriverName(rpcDriverName: string): void;
221
- reload(): void;
222
- } & {
223
- renderInProgress: string | undefined;
224
- features: Feature[] | undefined;
225
- message: string | undefined;
226
- loadingStatus: string | undefined;
227
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
228
- highResolutionScaling: number;
166
+ readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
167
+ readonly parentDisplay: any;
168
+ readonly effectiveRpcDriverName: any;
169
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
229
170
  };
171
+ readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
172
+ readonly DisplayMessageComponent: undefined | React.FC<any>;
173
+ trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
174
+ readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
175
+ regionCannotBeRendered(): null;
176
+ } & {
177
+ setStatusMessage(arg?: string): void;
178
+ setError(error?: unknown): void;
179
+ setRpcDriverName(rpcDriverName: string): void;
180
+ reload(): void;
181
+ } & {
182
+ renderInProgress: string | undefined;
183
+ features: Feature[] | undefined;
184
+ message: string | undefined;
185
+ loadingStatus: string | undefined;
186
+ } & {
187
+ readonly level: number;
188
+ readonly height: number;
189
+ renderProps(): any;
230
190
  } & {
231
191
  setLoading(newStopToken: string): void;
232
192
  setMessage(messageText: string): void;
@@ -237,7 +197,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
237
197
  setError(error: unknown): void;
238
198
  } & {
239
199
  afterAttach(): void;
240
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
200
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
241
201
  export default stateModelFactory;
242
202
  export type LinearComparativeDisplayModel = ReturnType<typeof stateModelFactory>;
243
203
  export type LinearComparativeDisplay = Instance<LinearComparativeDisplayModel>;
@@ -3,7 +3,7 @@ import { BaseDisplay } from '@jbrowse/core/pluggableElementTypes/models';
3
3
  import { dedupe, getContainingView, getSession, makeAbortableReaction, } from '@jbrowse/core/util';
4
4
  import { stopStopToken } from '@jbrowse/core/util/stopToken';
5
5
  import { getRpcSessionId } from '@jbrowse/core/util/tracks';
6
- import { getParent, getSnapshot, types } from 'mobx-state-tree';
6
+ import { getParent, getSnapshot, types } from '@jbrowse/mobx-state-tree';
7
7
  function stateModelFactory(configSchema) {
8
8
  return types
9
9
  .compose('LinearComparativeDisplay', BaseDisplay, types.model({
@@ -16,21 +16,22 @@ function stateModelFactory(configSchema) {
16
16
  message: undefined,
17
17
  loadingStatus: undefined,
18
18
  }))
19
- .views(self => ({
20
- get level() {
21
- return getParent(self, 4).level;
22
- },
23
- get height() {
24
- return getParent(self, 4).height;
25
- },
26
- renderProps() {
27
- return {
28
- rpcDriverName: self.rpcDriverName,
29
- displayModel: self,
30
- highResolutionScaling: 2,
31
- };
32
- },
33
- }))
19
+ .views(self => {
20
+ const { renderProps: superRenderProps } = self;
21
+ return {
22
+ get level() {
23
+ return getParent(self, 4).level;
24
+ },
25
+ get height() {
26
+ return getParent(self, 4).height;
27
+ },
28
+ renderProps() {
29
+ return {
30
+ ...superRenderProps(),
31
+ };
32
+ },
33
+ };
34
+ })
34
35
  .actions(self => {
35
36
  let stopToken;
36
37
  return {
@@ -131,7 +132,7 @@ async function renderBlockEffect(props) {
131
132
  const { model, sessionId, adapterConfig, level } = renderProps;
132
133
  const view = renderProps.view.views[level];
133
134
  return {
134
- features: dedupe((await rpcManager.call('getFeats', 'CoreGetFeatures', {
135
+ features: dedupe((await rpcManager.call(sessionId, 'CoreGetFeatures', {
135
136
  regions: view.staticBlocks.contentBlocks,
136
137
  sessionId,
137
138
  adapterConfig,
@@ -1,4 +1,4 @@
1
- import type { LinearComparativeViewModel } from '../model';
1
+ import type { LinearComparativeViewModel } from '../model.ts';
2
2
  declare const ColorBySelector: ({ model, }: {
3
3
  model: LinearComparativeViewModel;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -2,10 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import CascadingMenuButton from '@jbrowse/core/ui/CascadingMenuButton';
3
3
  import PaletteIcon from '@mui/icons-material/Palette';
4
4
  import { observer } from 'mobx-react';
5
- const ColorBySelector = observer(function ({ model, }) {
6
- var _a, _b, _c;
7
- const firstDisplay = (_b = (_a = model.levels[0]) === null || _a === void 0 ? void 0 : _a.tracks[0]) === null || _b === void 0 ? void 0 : _b.displays[0];
8
- const colorBy = (_c = firstDisplay === null || firstDisplay === void 0 ? void 0 : firstDisplay.colorBy) !== null && _c !== void 0 ? _c : 'default';
5
+ const ColorBySelector = observer(function ColorBySelector({ model, }) {
6
+ const firstDisplay = model.levels[0]?.tracks[0]?.displays[0];
7
+ const colorBy = firstDisplay?.colorBy ?? 'default';
9
8
  const setColorBy = (value) => {
10
9
  for (const level of model.levels) {
11
10
  for (const track of level.tracks) {
@@ -1,4 +1,4 @@
1
- import type { LinearComparativeViewModel } from '../model';
1
+ import type { LinearComparativeViewModel } from '../model.ts';
2
2
  declare const Header: ({ model, }: {
3
3
  model: LinearComparativeViewModel;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -2,27 +2,26 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import { useState } from 'react';
3
3
  import CascadingMenuButton from '@jbrowse/core/ui/CascadingMenuButton';
4
4
  import { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons';
5
+ import { makeStyles } from '@jbrowse/core/util/tss-react';
5
6
  import MoreVertIcon from '@mui/icons-material/MoreVert';
6
7
  import SearchIcon from '@mui/icons-material/Search';
7
8
  import { FormGroup } from '@mui/material';
8
9
  import { observer } from 'mobx-react';
9
- import { makeStyles } from 'tss-react/mui';
10
- import ColorBySelector from './ColorBySelector';
11
- import HeaderSearchBoxes from './HeaderSearchBoxes';
12
- import MinLengthSlider from './MinLengthSlider';
13
- import OpacitySlider from './OpacitySlider';
10
+ import ColorBySelector from "./ColorBySelector.js";
11
+ import HeaderSearchBoxes from "./HeaderSearchBoxes.js";
12
+ import MinLengthSlider from "./MinLengthSlider.js";
13
+ import OpacitySlider from "./OpacitySlider.js";
14
14
  const useStyles = makeStyles()({
15
15
  inline: {
16
16
  display: 'inline-flex',
17
17
  },
18
18
  });
19
- const Header = observer(function ({ model, }) {
20
- var _a, _b;
19
+ const Header = observer(function Header({ model, }) {
21
20
  const { classes } = useStyles();
22
21
  const { views, levels, showDynamicControls } = model;
23
22
  const [showSearchBoxes, setShowSearchBoxes] = useState(views.length <= 3);
24
23
  const [sideBySide, setSideBySide] = useState(views.length <= 3);
25
- const hasDisplays = (_b = (_a = levels[0]) === null || _a === void 0 ? void 0 : _a.tracks[0]) === null || _b === void 0 ? void 0 : _b.displays[0];
24
+ const hasDisplays = levels[0]?.tracks[0]?.displays[0];
26
25
  return (_jsxs(FormGroup, { row: true, children: [_jsx(CascadingMenuButton, { menuItems: [
27
26
  {
28
27
  label: 'Synteny track selectors',
@@ -42,7 +41,7 @@ const Header = observer(function ({ model, }) {
42
41
  onClick: () => view.activateTrackSelector(),
43
42
  })),
44
43
  },
45
- ], children: _jsx(TrackSelectorIcon, {}) }), _jsx(CascadingMenuButton, { menuItems: [
44
+ ], children: _jsx(TrackSelectorIcon, {}) }), _jsx(CascadingMenuButton, { menuItems: () => [
46
45
  {
47
46
  label: 'Row view menus',
48
47
  type: 'subMenu',
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { getBpDisplayStr } from '@jbrowse/core/util';
3
+ import { makeStyles } from '@jbrowse/core/util/tss-react';
3
4
  import { SearchBox } from '@jbrowse/plugin-linear-genome-view';
4
5
  import { Typography } from '@mui/material';
5
6
  import { observer } from 'mobx-react';
6
- import { makeStyles } from 'tss-react/mui';
7
7
  const useStyles = makeStyles()(() => ({
8
8
  bp: {
9
9
  display: 'flex',
@@ -14,7 +14,7 @@ const useStyles = makeStyles()(() => ({
14
14
  display: 'flex',
15
15
  },
16
16
  }));
17
- const HeaderSearchBoxes = observer(function ({ view, }) {
17
+ const HeaderSearchBoxes = observer(function HeaderSearchBoxes({ view, }) {
18
18
  const { classes } = useStyles();
19
19
  const { assemblyDisplayNames, coarseTotalBp } = view;
20
20
  return (_jsxs("span", { className: classes.searchBox, children: [_jsx(SearchBox, { model: view, showHelp: false }), _jsxs(Typography, { variant: "body2", color: "textSecondary", className: classes.bp, children: [assemblyDisplayNames.join(','), " ", getBpDisplayStr(coarseTotalBp)] })] }));
@@ -1,4 +1,4 @@
1
- import type { LinearComparativeViewModel } from '../model';
1
+ import type { LinearComparativeViewModel } from '../model.ts';
2
2
  declare const LinearComparativeRenderArea: ({ model, }: {
3
3
  model: LinearComparativeViewModel;
4
4
  }) => import("react/jsx-runtime").JSX.Element;