@jbrowse/plugin-linear-comparative-view 3.7.0 → 4.0.1

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,418 +0,0 @@
1
- import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
2
- import type { Feature } from '@jbrowse/core/util';
3
- declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
4
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
5
- type: import("mobx-state-tree").ISimpleType<string>;
6
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
7
- } & {
8
- heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
9
- } & {
10
- userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
11
- userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
12
- } & {
13
- blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
14
- key: import("mobx-state-tree").ISimpleType<string>;
15
- region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
16
- reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
17
- isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
18
- isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
19
- }, {
20
- stopToken: string | undefined;
21
- filled: boolean;
22
- reactElement: React.ReactElement | undefined;
23
- features: Map<string, Feature> | undefined;
24
- layout: any;
25
- status: string;
26
- error: unknown;
27
- message: string | undefined;
28
- maxHeightReached: boolean;
29
- ReactComponent: ({ model, }: {
30
- model: {
31
- error?: unknown;
32
- reload: () => void;
33
- message: React.ReactNode;
34
- filled?: boolean;
35
- status?: string;
36
- reactElement?: React.ReactElement;
37
- };
38
- }) => import("react/jsx-runtime").JSX.Element | undefined;
39
- renderProps: any;
40
- } & {
41
- doReload(): void;
42
- afterAttach(): void;
43
- setStatus(message: string): void;
44
- setLoading(newStopToken: string): void;
45
- setMessage(messageText: string): void;
46
- setRendered(props: import("@jbrowse/plugin-linear-genome-view/src/BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
47
- setError(error: unknown): void;
48
- reload(): void;
49
- beforeDestroy(): void;
50
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
51
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
52
- maxFeatureScreenDensity: {
53
- type: string;
54
- description: string;
55
- defaultValue: number;
56
- };
57
- fetchSizeLimit: {
58
- type: string;
59
- defaultValue: number;
60
- description: string;
61
- };
62
- height: {
63
- type: string;
64
- defaultValue: number;
65
- description: string;
66
- };
67
- mouseover: {
68
- type: string;
69
- description: string;
70
- defaultValue: string;
71
- contextVariable: string[];
72
- };
73
- jexlFilters: {
74
- type: string;
75
- description: string;
76
- defaultValue: never[];
77
- };
78
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
79
- } & {
80
- configuration: AnyConfigurationSchemaType;
81
- featureHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
82
- noSpacing: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
83
- fadeLikelihood: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
84
- trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
85
- colorBySetting: import("mobx-state-tree").IType<import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined>;
86
- filterBySetting: import("mobx-state-tree").IType<import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined>;
87
- jexlFilters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
88
- hideSmallIndelsSetting: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
89
- } & {
90
- type: import("mobx-state-tree").ISimpleType<"LGVSyntenyDisplay">;
91
- configuration: AnyConfigurationSchemaType;
92
- }, {
93
- rendererTypeName: string;
94
- error: unknown;
95
- message: string | undefined;
96
- } & {
97
- readonly RenderingComponent: React.FC<{
98
- model: {
99
- id: string;
100
- type: string;
101
- rpcDriverName: string | undefined;
102
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
103
- rendererTypeName: string;
104
- error: unknown;
105
- message: string | undefined;
106
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
107
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
108
- type: import("mobx-state-tree").ISimpleType<string>;
109
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
110
- }, {
111
- rendererTypeName: string;
112
- error: unknown;
113
- message: string | undefined;
114
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
115
- onHorizontalScroll?: () => void;
116
- blockState?: Record<string, any>;
117
- }>;
118
- readonly DisplayBlurb: React.FC<{
119
- model: {
120
- id: string;
121
- type: string;
122
- rpcDriverName: string | undefined;
123
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
124
- rendererTypeName: string;
125
- error: unknown;
126
- message: string | undefined;
127
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
128
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
129
- type: import("mobx-state-tree").ISimpleType<string>;
130
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
131
- }, {
132
- rendererTypeName: string;
133
- error: unknown;
134
- message: string | undefined;
135
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
136
- }> | null;
137
- readonly adapterConfig: any;
138
- readonly parentTrack: any;
139
- renderProps(): any;
140
- readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
141
- readonly DisplayMessageComponent: undefined | React.FC<any>;
142
- trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
143
- readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
144
- regionCannotBeRendered(): null;
145
- } & {
146
- setMessage(arg?: string): void;
147
- setError(error?: unknown): void;
148
- setRpcDriverName(rpcDriverName: string): void;
149
- reload(): void;
150
- } & {
151
- scrollTop: number;
152
- } & {
153
- readonly height: number;
154
- } & {
155
- setScrollTop(scrollTop: number): void;
156
- setHeight(displayHeight: number): number;
157
- resizeHeight(distance: number): number;
158
- } & {
159
- featureDensityStatsP: undefined | Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
160
- featureDensityStats: undefined | import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats;
161
- currStatsBpPerPx: number;
162
- } & {
163
- readonly currentBytesRequested: number;
164
- readonly currentFeatureScreenDensity: number;
165
- readonly maxFeatureScreenDensity: any;
166
- readonly featureDensityStatsReady: boolean;
167
- readonly maxAllowableBytes: number;
168
- } & {
169
- afterAttach(): void;
170
- } & {
171
- setCurrStatsBpPerPx(n: number): void;
172
- setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
173
- getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
174
- setFeatureDensityStatsP(arg: any): void;
175
- setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
176
- clearFeatureDensityStats(): void;
177
- } & {
178
- readonly regionTooLarge: boolean;
179
- readonly regionTooLargeReason: string;
180
- } & {
181
- readonly statsReadyAndRegionNotTooLarge: boolean;
182
- regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
183
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
184
- } & {
185
- mouseoverExtraInformation: string | undefined;
186
- featureIdUnderMouse: undefined | string;
187
- contextMenuFeature: undefined | Feature;
188
- } & {
189
- readonly DisplayMessageComponent: undefined | React.FC<any>;
190
- readonly blockType: "staticBlocks" | "dynamicBlocks";
191
- readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
192
- } & {
193
- readonly renderDelay: number;
194
- readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
195
- readonly selectedFeatureId: string | undefined;
196
- copyInfoToClipboard(feature: Feature): void;
197
- } & {
198
- readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
199
- readonly featureUnderMouse: Feature | undefined;
200
- readonly layoutFeatures: import("@jbrowse/core/util/compositeMap").default<string, [number, number, number, number] | [number, number, number, number, {
201
- label?: string;
202
- description?: string;
203
- refName: string;
204
- }]>;
205
- getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
206
- getFeatureByID(blockKey: string, id: string): ([number, number, number, number] | [number, number, number, number, {
207
- label?: string;
208
- description?: string;
209
- refName: string;
210
- }]) | undefined;
211
- searchFeatureByID(id: string): ([number, number, number, number] | [number, number, number, number, {
212
- label?: string;
213
- description?: string;
214
- refName: string;
215
- }]) | undefined;
216
- } & {
217
- addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
218
- deleteBlock(key: string): void;
219
- selectFeature(feature: Feature): void;
220
- navToFeature(feature: Feature): void;
221
- clearFeatureSelection(): void;
222
- setFeatureIdUnderMouse(feature?: string): void;
223
- setContextMenuFeature(feature?: Feature): void;
224
- setMouseoverExtraInformation(extra?: string): void;
225
- } & {
226
- reload(): Promise<void>;
227
- } & {
228
- trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
229
- contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
230
- renderProps(): any;
231
- } & {
232
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
233
- afterAttach(): void;
234
- } & {
235
- colorTagMap: import("mobx").ObservableMap<string, string>;
236
- featureUnderMouseVolatile: undefined | Feature;
237
- tagsReady: boolean;
238
- } & {
239
- readonly colorBy: any;
240
- readonly filterBy: any;
241
- } & {
242
- readonly autorunReady: boolean;
243
- readonly hideSmallIndels: boolean | undefined;
244
- } & {
245
- setTagsReady(flag: boolean): void;
246
- setMaxHeight(n?: number): void;
247
- setFeatureHeight(n?: number): void;
248
- setNoSpacing(flag?: boolean): void;
249
- setColorScheme(colorScheme: import("@jbrowse/plugin-alignments/src/shared/types").ColorBy): void;
250
- updateColorTagMap(uniqueTag: string[]): void;
251
- setFeatureUnderMouse(feat?: Feature): void;
252
- selectFeature(feature: Feature): void;
253
- setConfig(conf: import("@jbrowse/core/configuration").AnyConfigurationModel): void;
254
- setFilterBy(filter: import("@jbrowse/plugin-alignments/src/shared/types").FilterBy): void;
255
- setJexlFilters(filters: string[]): void;
256
- setHideSmallIndels(arg: boolean): void;
257
- } & {
258
- copyFeatureToClipboard(feature: Feature): void;
259
- readonly rendererConfig: {
260
- [x: string]: any;
261
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
262
- setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
263
- [x: string]: any;
264
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
265
- setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
266
- [x: string]: any;
267
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
268
- } & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
269
- } & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
270
- } & {
271
- readonly maxHeight: any;
272
- readonly featureHeightSetting: any;
273
- readonly featureUnderMouse: Feature | undefined;
274
- renderReady(): boolean;
275
- readonly filters: import("@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain").default;
276
- } & {
277
- readonly rendererTypeName: string;
278
- contextMenuItems(): {
279
- label: string;
280
- icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
281
- muiName: string;
282
- };
283
- onClick: () => void;
284
- }[];
285
- readonly DisplayBlurb: ({ model, }: {
286
- model: {
287
- sortedBy?: import("@jbrowse/plugin-alignments/src/shared/types").SortedBy;
288
- };
289
- }) => import("react/jsx-runtime").JSX.Element | null;
290
- renderPropsPre(): any;
291
- colorSchemeSubMenuItems(): {
292
- label: string;
293
- onClick: () => void;
294
- }[];
295
- trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
296
- label: string;
297
- priority: number;
298
- type: string;
299
- checked: boolean | undefined;
300
- onClick: () => void;
301
- icon?: undefined;
302
- } | {
303
- label: string;
304
- icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
305
- muiName: string;
306
- };
307
- onClick: () => void;
308
- priority?: undefined;
309
- type?: undefined;
310
- checked?: undefined;
311
- })[];
312
- } & {
313
- renderProps(): any;
314
- } & {
315
- afterAttach(): void;
316
- } & {
317
- contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
318
- } & {
319
- trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
320
- label: string;
321
- subMenu: {
322
- label: string;
323
- onClick: () => void;
324
- }[];
325
- })[];
326
- } & {
327
- selectFeature(feature: Feature): void;
328
- afterCreate(): void;
329
- }, {
330
- type: string;
331
- } & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
332
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
333
- type: import("mobx-state-tree").ISimpleType<string>;
334
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
335
- } & {
336
- heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
337
- } & {
338
- userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
339
- userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
340
- } & {
341
- blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
342
- key: import("mobx-state-tree").ISimpleType<string>;
343
- region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
344
- reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
345
- isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
346
- isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
347
- }, {
348
- stopToken: string | undefined;
349
- filled: boolean;
350
- reactElement: React.ReactElement | undefined;
351
- features: Map<string, Feature> | undefined;
352
- layout: any;
353
- status: string;
354
- error: unknown;
355
- message: string | undefined;
356
- maxHeightReached: boolean;
357
- ReactComponent: ({ model, }: {
358
- model: {
359
- error?: unknown;
360
- reload: () => void;
361
- message: React.ReactNode;
362
- filled?: boolean;
363
- status?: string;
364
- reactElement?: React.ReactElement;
365
- };
366
- }) => import("react/jsx-runtime").JSX.Element | undefined;
367
- renderProps: any;
368
- } & {
369
- doReload(): void;
370
- afterAttach(): void;
371
- setStatus(message: string): void;
372
- setLoading(newStopToken: string): void;
373
- setMessage(messageText: string): void;
374
- setRendered(props: import("@jbrowse/plugin-linear-genome-view/src/BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
375
- setError(error: unknown): void;
376
- reload(): void;
377
- beforeDestroy(): void;
378
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
379
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
380
- maxFeatureScreenDensity: {
381
- type: string;
382
- description: string;
383
- defaultValue: number;
384
- };
385
- fetchSizeLimit: {
386
- type: string;
387
- defaultValue: number;
388
- description: string;
389
- };
390
- height: {
391
- type: string;
392
- defaultValue: number;
393
- description: string;
394
- };
395
- mouseover: {
396
- type: string;
397
- description: string;
398
- defaultValue: string;
399
- contextVariable: string[];
400
- };
401
- jexlFilters: {
402
- type: string;
403
- description: string;
404
- defaultValue: never[];
405
- };
406
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
407
- } & {
408
- configuration: AnyConfigurationSchemaType;
409
- featureHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
410
- noSpacing: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
411
- fadeLikelihood: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
412
- trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
413
- colorBySetting: import("mobx-state-tree").IType<import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").ColorBy | undefined>;
414
- filterBySetting: import("mobx-state-tree").IType<import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined, import("@jbrowse/plugin-alignments/src/shared/types").FilterBy | undefined>;
415
- jexlFilters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
416
- hideSmallIndelsSetting: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
417
- }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
418
- export default stateModelFactory;
@@ -1,118 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- const react_1 = require("react");
37
- const configuration_1 = require("@jbrowse/core/configuration");
38
- const util_1 = require("@jbrowse/core/util");
39
- const plugin_alignments_1 = require("@jbrowse/plugin-alignments");
40
- const mobx_state_tree_1 = require("mobx-state-tree");
41
- const LaunchSyntenyViewDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/LaunchSyntenyViewDialog'))));
42
- function stateModelFactory(schema) {
43
- return mobx_state_tree_1.types
44
- .compose('LGVSyntenyDisplay', (0, plugin_alignments_1.SharedLinearPileupDisplayMixin)(schema), mobx_state_tree_1.types.model({
45
- type: mobx_state_tree_1.types.literal('LGVSyntenyDisplay'),
46
- configuration: (0, configuration_1.ConfigurationReference)(schema),
47
- }))
48
- .views(self => {
49
- const superContextMenuItems = self.contextMenuItems;
50
- return {
51
- contextMenuItems() {
52
- const feature = self.contextMenuFeature;
53
- return [
54
- ...superContextMenuItems(),
55
- ...(feature
56
- ? [
57
- {
58
- label: 'Launch synteny view for this position',
59
- onClick: () => {
60
- (0, util_1.getSession)(self).queueDialog(handleClose => [
61
- LaunchSyntenyViewDialog,
62
- {
63
- view: (0, util_1.getContainingView)(self),
64
- trackId: (0, configuration_1.getConf)((0, util_1.getContainingTrack)(self), 'trackId'),
65
- handleClose,
66
- session: (0, util_1.getSession)(self),
67
- feature,
68
- },
69
- ]);
70
- },
71
- },
72
- ]
73
- : []),
74
- ];
75
- },
76
- };
77
- })
78
- .views(self => {
79
- const { trackMenuItems: superTrackMenuItems, colorSchemeSubMenuItems: superColorSchemeSubMenuItems, } = self;
80
- return {
81
- trackMenuItems() {
82
- return [
83
- ...superTrackMenuItems(),
84
- {
85
- label: 'Color scheme',
86
- subMenu: [...superColorSchemeSubMenuItems()],
87
- },
88
- ];
89
- },
90
- };
91
- })
92
- .actions(self => ({
93
- selectFeature(feature) {
94
- const session = (0, util_1.getSession)(self);
95
- if ((0, util_1.isSessionModelWithWidgets)(session)) {
96
- const r2 = (0, util_1.getContainingView)(self);
97
- let r3 = r2;
98
- try {
99
- r3 = (0, util_1.getContainingView)(r3);
100
- }
101
- catch (e) { }
102
- const featureWidget = session.addWidget('SyntenyFeatureWidget', 'syntenyFeature', {
103
- featureData: feature.toJSON(),
104
- view: r3,
105
- track: (0, util_1.getContainingTrack)(self),
106
- });
107
- session.showWidget(featureWidget);
108
- }
109
- session.setSelection(feature);
110
- },
111
- afterCreate() {
112
- if (!self.colorBySetting && self.colorBy.type === 'normal') {
113
- self.setColorScheme({ type: 'strand' });
114
- }
115
- },
116
- }));
117
- }
118
- exports.default = stateModelFactory;
@@ -1,2 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function LaunchLinearSyntenyView(pluginManager: PluginManager): void;
@@ -1,93 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = LaunchLinearSyntenyView;
4
- const util_1 = require("@jbrowse/core/util");
5
- const mobx_1 = require("mobx");
6
- function makeMultiDimArray(str) {
7
- return Array.isArray(str[0]) ? str : [str];
8
- }
9
- function LaunchLinearSyntenyView(pluginManager) {
10
- pluginManager.addToExtensionPoint('LaunchView-LinearSyntenyView', async ({ session, views, tracks = [], }) => {
11
- try {
12
- const { assemblyManager } = session;
13
- const model = session.addView('LinearSyntenyView', {});
14
- await (0, mobx_1.when)(() => !!model.width);
15
- model.setViews(await Promise.all(views.map(async (view) => {
16
- const asm = await assemblyManager.waitForAssembly(view.assembly);
17
- if (!asm) {
18
- throw new Error(`Assembly ${view.assembly} failed to load`);
19
- }
20
- return {
21
- type: 'LinearGenomeView',
22
- bpPerPx: 1,
23
- offsetPx: 0,
24
- hideHeader: true,
25
- displayedRegions: asm.regions,
26
- };
27
- })));
28
- await Promise.all(model.views.map(view => (0, mobx_1.when)(() => view.initialized)));
29
- let idsNotFound = [];
30
- await Promise.all(views.map(async (data, idx) => {
31
- const view = model.views[idx];
32
- const { assembly, loc, tracks = [] } = data;
33
- const asm = await assemblyManager.waitForAssembly(assembly);
34
- if (!asm) {
35
- throw new Error(`Assembly ${data.assembly} failed to load`);
36
- }
37
- await view.navToSearchString({ input: loc, assembly: asm });
38
- idsNotFound = [
39
- ...idsNotFound,
40
- ...tracks.map(trackId => tryTrackLGV({
41
- model: view,
42
- trackId,
43
- })),
44
- ];
45
- }));
46
- idsNotFound = [
47
- ...idsNotFound,
48
- ...makeMultiDimArray(tracks).flatMap((trackSet, level) => trackSet.map(trackId => tryTrackSynteny({
49
- model,
50
- trackId,
51
- level,
52
- }))),
53
- ];
54
- if (idsNotFound.filter(util_1.notEmpty).length) {
55
- throw new Error(`Could not resolve identifiers: ${idsNotFound.join(',')}`);
56
- }
57
- }
58
- catch (e) {
59
- session.notifyError(`${e}`, e);
60
- throw e;
61
- }
62
- });
63
- }
64
- function tryTrackLGV({ model, trackId, }) {
65
- try {
66
- model.showTrack(trackId);
67
- }
68
- catch (e) {
69
- if (/Could not resolve identifier/.exec(`${e}`) ||
70
- /track not found/.exec(`${e}`)) {
71
- return trackId;
72
- }
73
- else {
74
- throw e;
75
- }
76
- }
77
- return undefined;
78
- }
79
- function tryTrackSynteny({ model, trackId, level, }) {
80
- try {
81
- model.showTrack(trackId, level);
82
- }
83
- catch (e) {
84
- if (/Could not resolve identifier/.exec(`${e}`) ||
85
- /track not found/.exec(`${e}`)) {
86
- return trackId;
87
- }
88
- else {
89
- throw e;
90
- }
91
- }
92
- return undefined;
93
- }
@@ -1,2 +0,0 @@
1
- declare function configSchemaFactory(_pluginManager: any): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
2
- export default configSchemaFactory;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const configuration_1 = require("@jbrowse/core/configuration");
4
- function configSchemaFactory(_pluginManager) {
5
- return (0, configuration_1.ConfigurationSchema)('LinearComparativeDisplay', {}, {
6
- explicitlyTyped: true,
7
- explicitIdentifier: 'displayId',
8
- });
9
- }
10
- exports.default = configSchemaFactory;
@@ -1,2 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function LinearComparativeDisplayF(pluginManager: PluginManager): void;