@jbrowse/plugin-linear-comparative-view 2.17.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
  2. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +36 -60
  3. package/dist/LGVSyntenyDisplay/components/util.d.ts +9 -6
  4. package/dist/LGVSyntenyDisplay/components/util.js +6 -13
  5. package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +19 -10
  6. package/dist/LGVSyntenyDisplay/configSchemaF.js +12 -9
  7. package/dist/LGVSyntenyDisplay/index.d.ts +1 -1
  8. package/dist/LGVSyntenyDisplay/index.js +1 -1
  9. package/dist/LGVSyntenyDisplay/model.d.ts +122 -69
  10. package/dist/LGVSyntenyDisplay/model.js +20 -37
  11. package/dist/LaunchLinearSyntenyView.d.ts +1 -1
  12. package/dist/LaunchLinearSyntenyView.js +1 -3
  13. package/dist/LinearComparativeDisplay/configSchemaF.d.ts +0 -3
  14. package/dist/LinearComparativeDisplay/configSchemaF.js +0 -6
  15. package/dist/LinearComparativeDisplay/index.d.ts +1 -1
  16. package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +12 -69
  17. package/dist/LinearComparativeDisplay/stateModelFactory.js +13 -57
  18. package/dist/LinearComparativeView/components/Header.d.ts +2 -3
  19. package/dist/LinearComparativeView/components/Header.js +56 -86
  20. package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +2 -3
  21. package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +5 -15
  22. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +2 -3
  23. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +17 -32
  24. package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +2 -3
  25. package/dist/LinearComparativeView/components/LinearComparativeView.js +4 -9
  26. package/dist/LinearComparativeView/components/Rubberband.d.ts +2 -3
  27. package/dist/LinearComparativeView/components/Rubberband.js +36 -69
  28. package/dist/LinearComparativeView/components/VerticalGuide.d.ts +2 -3
  29. package/dist/LinearComparativeView/components/VerticalGuide.js +5 -9
  30. package/dist/LinearComparativeView/index.d.ts +1 -1
  31. package/dist/LinearComparativeView/index.js +17 -7
  32. package/dist/LinearComparativeView/model.d.ts +38 -90
  33. package/dist/LinearComparativeView/model.js +40 -107
  34. package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +2 -3
  35. package/dist/LinearReadVsRef/LinearReadVsRef.js +10 -55
  36. package/dist/LinearReadVsRef/index.d.ts +1 -1
  37. package/dist/LinearReadVsRef/index.js +17 -9
  38. package/dist/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
  39. package/dist/LinearSyntenyDisplay/afterAttach.js +8 -12
  40. package/dist/LinearSyntenyDisplay/components/Component.d.ts +2 -3
  41. package/dist/LinearSyntenyDisplay/components/Component.js +11 -36
  42. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +2 -3
  43. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +95 -106
  44. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +3 -4
  45. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +3 -6
  46. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
  47. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +3 -4
  48. package/dist/LinearSyntenyDisplay/components/util.d.ts +3 -3
  49. package/dist/LinearSyntenyDisplay/components/util.js +0 -9
  50. package/dist/LinearSyntenyDisplay/configSchemaF.d.ts +1 -12
  51. package/dist/LinearSyntenyDisplay/configSchemaF.js +0 -15
  52. package/dist/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
  53. package/dist/LinearSyntenyDisplay/drawSynteny.js +1 -23
  54. package/dist/LinearSyntenyDisplay/index.d.ts +1 -1
  55. package/dist/LinearSyntenyDisplay/index.js +18 -9
  56. package/dist/LinearSyntenyDisplay/model.d.ts +8 -102
  57. package/dist/LinearSyntenyDisplay/model.js +18 -99
  58. package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +2 -3
  59. package/dist/LinearSyntenyView/components/ExportSvgDialog.js +35 -76
  60. package/dist/LinearSyntenyView/components/Icons.d.ts +3 -4
  61. package/dist/LinearSyntenyView/components/Icons.js +3 -8
  62. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
  63. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +130 -0
  64. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
  65. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +39 -0
  66. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
  67. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +22 -0
  68. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +2 -3
  69. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +49 -150
  70. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
  71. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +43 -0
  72. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
  73. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +68 -0
  74. package/dist/LinearSyntenyView/components/ImportForm/util.js +1 -3
  75. package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +2 -3
  76. package/dist/LinearSyntenyView/components/LinearSyntenyView.js +20 -10
  77. package/dist/LinearSyntenyView/index.d.ts +1 -1
  78. package/dist/LinearSyntenyView/index.js +17 -7
  79. package/dist/LinearSyntenyView/model.d.ts +54 -58
  80. package/dist/LinearSyntenyView/model.js +61 -56
  81. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
  82. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +3 -6
  83. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +2 -3
  84. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +3 -11
  85. package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +1 -1
  86. package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +7 -24
  87. package/dist/LinearSyntenyView/types.d.ts +12 -0
  88. package/dist/LinearSyntenyView/types.js +2 -0
  89. package/dist/LinearSyntenyViewHelper/index.d.ts +1 -1
  90. package/dist/LinearSyntenyViewHelper/index.js +2 -2
  91. package/dist/LinearSyntenyViewHelper/stateModelFactory.d.ts +2 -14
  92. package/dist/LinearSyntenyViewHelper/stateModelFactory.js +2 -29
  93. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
  94. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +87 -0
  95. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
  96. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +5 -90
  97. package/dist/SyntenyFeatureDetail/index.d.ts +1 -1
  98. package/dist/SyntenyFeatureDetail/index.js +18 -14
  99. package/dist/SyntenyFeatureDetail/types.d.ts +9 -0
  100. package/dist/SyntenyFeatureDetail/types.js +2 -0
  101. package/dist/SyntenyTrack/configSchema.d.ts +1 -1
  102. package/dist/SyntenyTrack/configSchema.js +1 -9
  103. package/dist/SyntenyTrack/index.d.ts +1 -1
  104. package/dist/SyntenyTrack/index.js +1 -1
  105. package/dist/index.d.ts +1 -1
  106. package/dist/index.js +4 -4
  107. package/dist/util.d.ts +2 -2
  108. package/dist/util.js +1 -11
  109. package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
  110. package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +35 -36
  111. package/esm/LGVSyntenyDisplay/components/util.d.ts +9 -6
  112. package/esm/LGVSyntenyDisplay/components/util.js +6 -13
  113. package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +19 -10
  114. package/esm/LGVSyntenyDisplay/configSchemaF.js +12 -9
  115. package/esm/LGVSyntenyDisplay/index.d.ts +1 -1
  116. package/esm/LGVSyntenyDisplay/index.js +1 -1
  117. package/esm/LGVSyntenyDisplay/model.d.ts +122 -69
  118. package/esm/LGVSyntenyDisplay/model.js +4 -31
  119. package/esm/LaunchLinearSyntenyView.d.ts +1 -1
  120. package/esm/LaunchLinearSyntenyView.js +1 -3
  121. package/esm/LinearComparativeDisplay/configSchemaF.d.ts +0 -3
  122. package/esm/LinearComparativeDisplay/configSchemaF.js +0 -6
  123. package/esm/LinearComparativeDisplay/index.d.ts +1 -1
  124. package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +12 -69
  125. package/esm/LinearComparativeDisplay/stateModelFactory.js +14 -58
  126. package/esm/LinearComparativeView/components/Header.d.ts +2 -3
  127. package/esm/LinearComparativeView/components/Header.js +56 -63
  128. package/esm/LinearComparativeView/components/HeaderSearchBoxes.d.ts +2 -3
  129. package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +5 -12
  130. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +2 -3
  131. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +17 -29
  132. package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +2 -3
  133. package/esm/LinearComparativeView/components/LinearComparativeView.js +4 -9
  134. package/esm/LinearComparativeView/components/Rubberband.d.ts +2 -3
  135. package/esm/LinearComparativeView/components/Rubberband.js +36 -46
  136. package/esm/LinearComparativeView/components/VerticalGuide.d.ts +2 -3
  137. package/esm/LinearComparativeView/components/VerticalGuide.js +5 -6
  138. package/esm/LinearComparativeView/index.d.ts +1 -1
  139. package/esm/LinearComparativeView/model.d.ts +38 -90
  140. package/esm/LinearComparativeView/model.js +24 -101
  141. package/esm/LinearReadVsRef/LinearReadVsRef.d.ts +2 -3
  142. package/esm/LinearReadVsRef/LinearReadVsRef.js +10 -32
  143. package/esm/LinearReadVsRef/index.d.ts +1 -1
  144. package/esm/LinearReadVsRef/index.js +1 -3
  145. package/esm/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
  146. package/esm/LinearSyntenyDisplay/afterAttach.js +8 -12
  147. package/esm/LinearSyntenyDisplay/components/Component.d.ts +2 -3
  148. package/esm/LinearSyntenyDisplay/components/Component.js +11 -13
  149. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +2 -3
  150. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +79 -100
  151. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +3 -4
  152. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +3 -3
  153. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
  154. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +3 -4
  155. package/esm/LinearSyntenyDisplay/components/util.d.ts +3 -3
  156. package/esm/LinearSyntenyDisplay/components/util.js +2 -11
  157. package/esm/LinearSyntenyDisplay/configSchemaF.d.ts +1 -12
  158. package/esm/LinearSyntenyDisplay/configSchemaF.js +0 -15
  159. package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
  160. package/esm/LinearSyntenyDisplay/drawSynteny.js +1 -23
  161. package/esm/LinearSyntenyDisplay/index.d.ts +1 -1
  162. package/esm/LinearSyntenyDisplay/index.js +1 -2
  163. package/esm/LinearSyntenyDisplay/model.d.ts +8 -102
  164. package/esm/LinearSyntenyDisplay/model.js +1 -92
  165. package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +2 -3
  166. package/esm/LinearSyntenyView/components/ExportSvgDialog.js +35 -53
  167. package/esm/LinearSyntenyView/components/Icons.d.ts +3 -4
  168. package/esm/LinearSyntenyView/components/Icons.js +3 -5
  169. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
  170. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +125 -0
  171. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
  172. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +37 -0
  173. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
  174. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +16 -0
  175. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +2 -3
  176. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +49 -127
  177. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
  178. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +40 -0
  179. package/esm/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
  180. package/esm/LinearSyntenyView/components/ImportForm/getAdapter.js +65 -0
  181. package/esm/LinearSyntenyView/components/ImportForm/util.js +1 -3
  182. package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +2 -3
  183. package/esm/LinearSyntenyView/components/LinearSyntenyView.js +3 -3
  184. package/esm/LinearSyntenyView/index.d.ts +1 -1
  185. package/esm/LinearSyntenyView/model.d.ts +54 -58
  186. package/esm/LinearSyntenyView/model.js +44 -49
  187. package/esm/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
  188. package/esm/LinearSyntenyView/svgcomponents/SVGBackground.js +3 -3
  189. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +2 -3
  190. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +4 -9
  191. package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +1 -1
  192. package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +8 -25
  193. package/esm/LinearSyntenyView/types.d.ts +12 -0
  194. package/esm/LinearSyntenyView/types.js +1 -0
  195. package/esm/LinearSyntenyViewHelper/index.d.ts +1 -1
  196. package/esm/LinearSyntenyViewHelper/index.js +2 -2
  197. package/esm/LinearSyntenyViewHelper/stateModelFactory.d.ts +2 -14
  198. package/esm/LinearSyntenyViewHelper/stateModelFactory.js +2 -29
  199. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
  200. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +52 -0
  201. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
  202. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +6 -68
  203. package/esm/SyntenyFeatureDetail/index.d.ts +1 -1
  204. package/esm/SyntenyFeatureDetail/index.js +1 -7
  205. package/esm/SyntenyFeatureDetail/types.d.ts +9 -0
  206. package/esm/SyntenyFeatureDetail/types.js +1 -0
  207. package/esm/SyntenyTrack/configSchema.d.ts +1 -1
  208. package/esm/SyntenyTrack/configSchema.js +1 -9
  209. package/esm/SyntenyTrack/index.d.ts +1 -1
  210. package/esm/SyntenyTrack/index.js +1 -1
  211. package/esm/index.d.ts +1 -1
  212. package/esm/index.js +4 -4
  213. package/esm/util.d.ts +2 -2
  214. package/esm/util.js +1 -11
  215. package/package.json +2 -4
  216. package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
  217. package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -194
  218. package/dist/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
  219. package/dist/LinearSyntenyView/components/ImportForm/Spacer.js +0 -10
  220. package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
  221. package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -59
  222. package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
  223. package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -52
  224. package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
  225. package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -169
  226. package/esm/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
  227. package/esm/LinearSyntenyView/components/ImportForm/Spacer.js +0 -4
  228. package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
  229. package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -34
  230. package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
  231. package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -23
@@ -1,7 +1,8 @@
1
- import React from 'react';
2
- import { Instance } from 'mobx-state-tree';
3
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type React from 'react';
4
2
  import { Curves } from './components/Icons';
3
+ import type { ImportFormSyntenyTrack } from './types';
4
+ import type PluginManager from '@jbrowse/core/PluginManager';
5
+ import type { Instance } from 'mobx-state-tree';
5
6
  export interface ExportSvgOptions {
6
7
  rasterizeLayers?: boolean;
7
8
  scale?: number;
@@ -18,11 +19,6 @@ export interface ExportSvgOptions {
18
19
  themeName?: string;
19
20
  trackLabels?: string;
20
21
  }
21
- /**
22
- * #stateModel LinearSyntenyView
23
- * extends
24
- * - [LinearComparativeView](../linearcomparativeview)
25
- */
26
22
  export default function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
27
23
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
28
24
  displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
@@ -32,7 +28,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
32
28
  type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
33
29
  trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
34
30
  showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
35
- interactToggled: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
31
+ linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
32
+ interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
36
33
  levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
37
34
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
38
35
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -66,7 +63,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
66
63
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
67
64
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
68
65
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
69
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
66
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
70
67
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
71
68
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
72
69
  }, {
@@ -87,8 +84,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
87
84
  trackRefs: Record<string, HTMLDivElement>;
88
85
  coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
89
86
  coarseTotalBp: number;
90
- leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
91
- rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
87
+ leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
88
+ rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
92
89
  } & {
93
90
  readonly trackLabelsSetting: any;
94
91
  readonly width: number;
@@ -98,6 +95,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
98
95
  scaleBarDisplayPrefix(): string | undefined;
99
96
  MiniControlsComponent(): React.FC<any>;
100
97
  HeaderComponent(): React.FC<any>;
98
+ readonly assembliesNotFound: string | undefined;
101
99
  readonly assemblyErrors: string;
102
100
  readonly assembliesInitialized: boolean;
103
101
  readonly initialized: boolean;
@@ -134,12 +132,12 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
134
132
  setHideHeaderOverview(b: boolean): void;
135
133
  setHideNoTracksActive(b: boolean): void;
136
134
  setShowGridlines(b: boolean): void;
137
- addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
138
- setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
139
- removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
135
+ addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
136
+ setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
137
+ removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
140
138
  scrollTo(offsetPx: number): number;
141
139
  zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
142
- setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
140
+ setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
143
141
  setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
144
142
  setNewView(bpPerPx: number, offsetPx: number): void;
145
143
  horizontallyFlip(): void;
@@ -156,7 +154,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
156
154
  setShowCenterLine(b: boolean): void;
157
155
  setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
158
156
  activateTrackSelector(): import("@jbrowse/core/util").Widget;
159
- getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
157
+ getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
160
158
  start: number;
161
159
  end: number;
162
160
  type: string;
@@ -178,7 +176,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
178
176
  setDraggingTrackId(idx?: string): void;
179
177
  setScaleFactor(factor: number): void;
180
178
  clearView(): void;
181
- exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
179
+ exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
182
180
  } & {
183
181
  slide: (viewWidths: number) => void;
184
182
  } & {
@@ -200,15 +198,15 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
200
198
  setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
201
199
  afterAttach(): void;
202
200
  } & {
203
- moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
201
+ moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
204
202
  navToLocString(input: string, optAssemblyName?: string): Promise<void>;
205
203
  navToSearchString({ input, assembly, }: {
206
204
  input: string;
207
205
  assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
208
206
  }): Promise<void>;
209
207
  navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
210
- navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
211
- navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
208
+ navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
209
+ navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
212
210
  } & {
213
211
  rubberBandMenuItems(): import("@jbrowse/core/ui").MenuItem[];
214
212
  bpToPx({ refName, coord, regionNumber, }: {
@@ -263,7 +261,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
263
261
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
264
262
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
265
263
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
266
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
264
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
267
265
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
268
266
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
269
267
  }>>, import("mobx-state-tree")._NotCustomized>>;
@@ -287,12 +285,14 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
287
285
  readonly refNames: string[][];
288
286
  readonly assemblyNames: string[];
289
287
  } & {
288
+ afterAttach(): void;
290
289
  beforeDestroy(): void;
291
290
  onSubviewAction(actionName: string, path: string, args?: unknown[]): void;
292
291
  setWidth(newWidth: number): void;
293
292
  setViews(views: import("mobx-state-tree").SnapshotIn<import("@jbrowse/plugin-linear-genome-view").LinearGenomeViewModel>[]): void;
294
293
  removeView(view: import("@jbrowse/plugin-linear-genome-view").LinearGenomeViewModel): void;
295
294
  setLevelHeight(newHeight: number, level?: number): number;
295
+ setLinkViews(arg: boolean): void;
296
296
  activateTrackSelector(level: number): import("@jbrowse/core/util").Widget;
297
297
  toggleTrack(trackId: string, level?: number): void;
298
298
  showTrack(trackId: string, level?: number, initialSnapshot?: {}): void;
@@ -310,29 +310,17 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
310
310
  } & {
311
311
  afterAttach(): void;
312
312
  } & {
313
- /**
314
- * #action
315
- */
316
- toggleCurves(): void;
317
- /**
318
- * #action
319
- */
320
- toggleCIGAR(): void;
321
- /**
322
- * #action
323
- */
313
+ importFormSyntenyTrackSelections: import("mobx").IObservableArray<ImportFormSyntenyTrack>;
314
+ } & {
315
+ importFormRemoveRow(idx: number): void;
316
+ clearImportFormSyntenyTracks(): void;
317
+ setImportFormSyntenyTrack(arg: number, val: ImportFormSyntenyTrack): void;
318
+ setDrawCurves(arg: boolean): void;
319
+ setDrawCIGAR(arg: boolean): void;
324
320
  showAllRegions(): void;
325
321
  } & {
326
- /**
327
- * #action
328
- */
329
322
  exportSvg(opts: ExportSvgOptions): Promise<void>;
330
323
  } & {
331
- /**
332
- * #method
333
- * includes a subset of view menu options because the full list is a
334
- * little overwhelming
335
- */
336
324
  headerMenuItems(): (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 | {
337
325
  label: string;
338
326
  onClick: () => void;
@@ -353,8 +341,17 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
353
341
  label: string;
354
342
  type: string;
355
343
  checked: boolean;
344
+ icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
345
+ muiName: string;
346
+ };
356
347
  onClick: () => void;
348
+ description?: undefined;
349
+ } | {
350
+ label: string;
351
+ type: string;
352
+ checked: boolean;
357
353
  icon: typeof Curves;
354
+ onClick: () => void;
358
355
  description?: undefined;
359
356
  } | {
360
357
  label: string;
@@ -366,9 +363,6 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
366
363
  checked?: undefined;
367
364
  type?: undefined;
368
365
  })[];
369
- /**
370
- * #method
371
- */
372
366
  menuItems(): (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 | {
373
367
  label: string;
374
368
  icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
@@ -387,7 +381,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
387
381
  type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
388
382
  trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
389
383
  showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
390
- interactToggled: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
384
+ linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
385
+ interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
391
386
  levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
392
387
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
393
388
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -421,7 +416,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
421
416
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
422
417
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
423
418
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
424
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
419
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
425
420
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
426
421
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
427
422
  }, {
@@ -442,8 +437,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
442
437
  trackRefs: Record<string, HTMLDivElement>;
443
438
  coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
444
439
  coarseTotalBp: number;
445
- leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
446
- rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
440
+ leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
441
+ rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
447
442
  } & {
448
443
  readonly trackLabelsSetting: any;
449
444
  readonly width: number;
@@ -453,6 +448,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
453
448
  scaleBarDisplayPrefix(): string | undefined;
454
449
  MiniControlsComponent(): React.FC<any>;
455
450
  HeaderComponent(): React.FC<any>;
451
+ readonly assembliesNotFound: string | undefined;
456
452
  readonly assemblyErrors: string;
457
453
  readonly assembliesInitialized: boolean;
458
454
  readonly initialized: boolean;
@@ -489,12 +485,12 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
489
485
  setHideHeaderOverview(b: boolean): void;
490
486
  setHideNoTracksActive(b: boolean): void;
491
487
  setShowGridlines(b: boolean): void;
492
- addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
493
- setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
494
- removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
488
+ addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
489
+ setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
490
+ removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
495
491
  scrollTo(offsetPx: number): number;
496
492
  zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
497
- setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
493
+ setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
498
494
  setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
499
495
  setNewView(bpPerPx: number, offsetPx: number): void;
500
496
  horizontallyFlip(): void;
@@ -511,7 +507,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
511
507
  setShowCenterLine(b: boolean): void;
512
508
  setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
513
509
  activateTrackSelector(): import("@jbrowse/core/util").Widget;
514
- getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
510
+ getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
515
511
  start: number;
516
512
  end: number;
517
513
  type: string;
@@ -533,7 +529,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
533
529
  setDraggingTrackId(idx?: string): void;
534
530
  setScaleFactor(factor: number): void;
535
531
  clearView(): void;
536
- exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
532
+ exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
537
533
  } & {
538
534
  slide: (viewWidths: number) => void;
539
535
  } & {
@@ -555,15 +551,15 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
555
551
  setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
556
552
  afterAttach(): void;
557
553
  } & {
558
- moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
554
+ moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
559
555
  navToLocString(input: string, optAssemblyName?: string): Promise<void>;
560
556
  navToSearchString({ input, assembly, }: {
561
557
  input: string;
562
558
  assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
563
559
  }): Promise<void>;
564
560
  navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
565
- navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
566
- navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
561
+ navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
562
+ navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
567
563
  } & {
568
564
  rubberBandMenuItems(): import("@jbrowse/core/ui").MenuItem[];
569
565
  bpToPx({ refName, coord, regionNumber, }: {
@@ -618,7 +614,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
618
614
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
619
615
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
620
616
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
621
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
617
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
622
618
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
623
619
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
624
620
  }>>, import("mobx-state-tree")._NotCustomized>>;
@@ -1,54 +1,41 @@
1
1
  import { lazy } from 'react';
2
- import { types } from 'mobx-state-tree';
3
- import { transaction } from 'mobx';
4
2
  import { getSession } from '@jbrowse/core/util';
5
- import { saveAs } from 'file-saver';
6
- // icons
7
3
  import CropFreeIcon from '@mui/icons-material/CropFree';
8
- import VisibilityIcon from '@mui/icons-material/Visibility';
4
+ import LinkIcon from '@mui/icons-material/Link';
9
5
  import PhotoCameraIcon from '@mui/icons-material/PhotoCamera';
6
+ import VisibilityIcon from '@mui/icons-material/Visibility';
7
+ import { saveAs } from 'file-saver';
8
+ import { observable, transaction } from 'mobx';
9
+ import { types } from 'mobx-state-tree';
10
10
  import { Curves } from './components/Icons';
11
- // locals
12
11
  import baseModel from '../LinearComparativeView/model';
13
- // lazies
14
12
  const ExportSvgDialog = lazy(() => import('./components/ExportSvgDialog'));
15
- /**
16
- * #stateModel LinearSyntenyView
17
- * extends
18
- * - [LinearComparativeView](../linearcomparativeview)
19
- */
20
13
  export default function stateModelFactory(pluginManager) {
21
14
  return types
22
15
  .compose('LinearSyntenyView', baseModel(pluginManager), types.model({
23
- /**
24
- * #property
25
- */
26
16
  type: types.literal('LinearSyntenyView'),
27
- /**
28
- * #property/
29
- */
30
17
  drawCIGAR: true,
31
- /**
32
- * #property
33
- */
34
18
  drawCurves: false,
19
+ }))
20
+ .volatile(() => ({
21
+ importFormSyntenyTrackSelections: observable.array(),
35
22
  }))
36
23
  .actions(self => ({
37
- /**
38
- * #action
39
- */
40
- toggleCurves() {
41
- self.drawCurves = !self.drawCurves;
24
+ importFormRemoveRow(idx) {
25
+ self.importFormSyntenyTrackSelections.splice(idx, 1);
26
+ },
27
+ clearImportFormSyntenyTracks() {
28
+ self.importFormSyntenyTrackSelections.clear();
29
+ },
30
+ setImportFormSyntenyTrack(arg, val) {
31
+ self.importFormSyntenyTrackSelections[arg] = val;
32
+ },
33
+ setDrawCurves(arg) {
34
+ self.drawCurves = arg;
42
35
  },
43
- /**
44
- * #action
45
- */
46
- toggleCIGAR() {
47
- self.drawCIGAR = !self.drawCIGAR;
36
+ setDrawCIGAR(arg) {
37
+ self.drawCIGAR = arg;
48
38
  },
49
- /**
50
- * #action
51
- */
52
39
  showAllRegions() {
53
40
  transaction(() => {
54
41
  for (const view of self.views) {
@@ -58,9 +45,6 @@ export default function stateModelFactory(pluginManager) {
58
45
  },
59
46
  }))
60
47
  .actions(self => ({
61
- /**
62
- * #action
63
- */
64
48
  async exportSvg(opts) {
65
49
  const { renderToSvg } = await import('./svgcomponents/SVGLinearSyntenyView');
66
50
  const html = await renderToSvg(self, opts);
@@ -72,11 +56,6 @@ export default function stateModelFactory(pluginManager) {
72
56
  const superHeaderMenuItems = self.headerMenuItems;
73
57
  const superMenuItems = self.menuItems;
74
58
  return {
75
- /**
76
- * #method
77
- * includes a subset of view menu options because the full list is a
78
- * little overwhelming
79
- */
80
59
  headerMenuItems() {
81
60
  return [
82
61
  ...superHeaderMenuItems(),
@@ -94,17 +73,30 @@ export default function stateModelFactory(pluginManager) {
94
73
  },
95
74
  {
96
75
  label: 'Draw CIGAR',
97
- onClick: self.toggleCIGAR,
76
+ onClick: () => {
77
+ self.setDrawCIGAR(!self.drawCIGAR);
78
+ },
98
79
  checked: self.drawCIGAR,
99
80
  type: 'checkbox',
100
81
  description: 'Draws per-base CIGAR level alignments',
101
82
  },
83
+ {
84
+ label: 'Link views',
85
+ type: 'checkbox',
86
+ checked: self.linkViews,
87
+ icon: LinkIcon,
88
+ onClick: () => {
89
+ self.setLinkViews(!self.linkViews);
90
+ },
91
+ },
102
92
  {
103
93
  label: 'Use curved lines',
104
94
  type: 'checkbox',
105
95
  checked: self.drawCurves,
106
- onClick: self.toggleCurves,
107
96
  icon: Curves,
97
+ onClick: () => {
98
+ self.setDrawCurves(!self.drawCurves);
99
+ },
108
100
  },
109
101
  {
110
102
  label: 'Export SVG',
@@ -112,15 +104,15 @@ export default function stateModelFactory(pluginManager) {
112
104
  onClick: () => {
113
105
  getSession(self).queueDialog(handleClose => [
114
106
  ExportSvgDialog,
115
- { model: self, handleClose },
107
+ {
108
+ model: self,
109
+ handleClose,
110
+ },
116
111
  ]);
117
112
  },
118
113
  },
119
114
  ];
120
115
  },
121
- /**
122
- * #method
123
- */
124
116
  menuItems() {
125
117
  return [
126
118
  ...superMenuItems(),
@@ -130,7 +122,10 @@ export default function stateModelFactory(pluginManager) {
130
122
  onClick: () => {
131
123
  getSession(self).queueDialog(handleClose => [
132
124
  ExportSvgDialog,
133
- { model: self, handleClose },
125
+ {
126
+ model: self,
127
+ handleClose,
128
+ },
134
129
  ]);
135
130
  },
136
131
  },
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  export default function SVGBackground({ width, height, shift, }: {
3
2
  width: number;
4
3
  height: number;
5
4
  shift: number;
6
- }): React.JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import { useTheme } from '@mui/material';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { stripAlpha } from '@jbrowse/core/util';
3
+ import { useTheme } from '@mui/material';
4
4
  export default function SVGBackground({ width, height, shift, }) {
5
5
  const theme = useTheme();
6
- return (React.createElement("rect", { width: width + shift * 2, height: height, fill: stripAlpha(theme.palette.background.default) }));
6
+ return (_jsx("rect", { width: width + shift * 2, height: height, fill: stripAlpha(theme.palette.background.default) }));
7
7
  }
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
1
+ import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
3
2
  export default function SVGLinearGenomeView({ trackLabelOffset, fontSize, textHeight, trackLabels, view, displayResults, rulerHeight, shift, }: {
4
3
  textHeight: number;
5
4
  trackLabels: string;
@@ -9,4 +8,4 @@ export default function SVGLinearGenomeView({ trackLabelOffset, fontSize, textHe
9
8
  displayResults: any;
10
9
  rulerHeight: number;
11
10
  shift: number;
12
- }): React.JSX.Element;
11
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,8 @@
1
- import React from 'react';
2
- import { useTheme } from '@mui/material';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  import { getFillProps } from '@jbrowse/core/util';
4
- import { SVGTracks, SVGRuler, } from '@jbrowse/plugin-linear-genome-view';
3
+ import { SVGRuler, SVGTracks } from '@jbrowse/plugin-linear-genome-view';
4
+ import { useTheme } from '@mui/material';
5
5
  export default function SVGLinearGenomeView({ trackLabelOffset, fontSize, textHeight, trackLabels, view, displayResults, rulerHeight, shift, }) {
6
6
  const theme = useTheme();
7
- return (React.createElement("g", { transform: `translate(${shift} ${fontSize})` },
8
- React.createElement("g", { transform: `translate(${trackLabelOffset})` },
9
- React.createElement("text", { x: 0, fontSize: fontSize, ...getFillProps(theme.palette.text.primary) }, view.assemblyNames.join(', ')),
10
- React.createElement(SVGRuler, { model: displayResults.view, fontSize: fontSize })),
11
- React.createElement("g", { transform: `translate(0 ${rulerHeight + fontSize})` },
12
- React.createElement(SVGTracks, { textHeight: textHeight, trackLabels: trackLabels, fontSize: fontSize, model: displayResults.view, displayResults: displayResults.data, trackLabelOffset: trackLabelOffset }))));
7
+ return (_jsxs("g", { transform: `translate(${shift} ${fontSize})`, children: [_jsxs("g", { transform: `translate(${trackLabelOffset})`, children: [_jsx("text", { x: 0, fontSize: fontSize, ...getFillProps(theme.palette.text.primary), children: view.assemblyNames.join(', ') }), _jsx(SVGRuler, { model: displayResults.view, fontSize: fontSize })] }), _jsx("g", { transform: `translate(0 ${rulerHeight + fontSize})`, children: _jsx(SVGTracks, { textHeight: textHeight, trackLabels: trackLabels, fontSize: fontSize, model: displayResults.view, displayResults: displayResults.data, trackLabelOffset: trackLabelOffset }) })] }));
13
8
  }
@@ -1,2 +1,2 @@
1
- import { ExportSvgOptions, LinearSyntenyViewModel } from '../model';
1
+ import type { ExportSvgOptions, LinearSyntenyViewModel } from '../model';
2
2
  export declare function renderToSvg(model: LinearSyntenyViewModel, opts: ExportSvgOptions): Promise<string>;
@@ -1,16 +1,13 @@
1
- import React from 'react';
2
- import { ThemeProvider } from '@mui/material';
3
- import { getRoot } from 'mobx-state-tree';
4
- import { when } from 'mobx';
5
- import { getSession, getSerializedSvg, max, measureText, ReactRendering, renderToAbstractCanvas, renderToStaticMarkup, sum, } from '@jbrowse/core/util';
6
- import { getTrackName } from '@jbrowse/core/util/tracks';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
2
  import { createJBrowseTheme } from '@jbrowse/core/ui';
3
+ import { ReactRendering, getSerializedSvg, getSession, max, measureText, renderToAbstractCanvas, renderToStaticMarkup, sum, } from '@jbrowse/core/util';
4
+ import { getTrackName } from '@jbrowse/core/util/tracks';
8
5
  import { totalHeight } from '@jbrowse/plugin-linear-genome-view';
9
- // locals
6
+ import { ThemeProvider } from '@mui/material';
7
+ import { when } from 'mobx';
10
8
  import SVGBackground from './SVGBackground';
11
9
  import SVGLinearGenomeView from './SVGLinearGenomeView';
12
10
  import { drawRef } from '../../LinearSyntenyDisplay/drawSynteny';
13
- // render LGV to SVG
14
11
  export async function renderToSvg(model, opts) {
15
12
  var _a;
16
13
  await when(() => model.initialized);
@@ -20,7 +17,6 @@ export async function renderToSvg(model, opts) {
20
17
  const { width, views, levels } = model;
21
18
  const shift = 50;
22
19
  const offset = rulerHeight;
23
- const { createRootFn } = getRoot(model);
24
20
  const heights = views.map(v => totalHeight(v.tracks, textHeight, trackLabels) + offset);
25
21
  const totalHeightSvg = sum(heights) + sum(levels.map(l => l.height)) + 100;
26
22
  const displayResults = await Promise.all(views.map(async (view) => ({
@@ -62,7 +58,7 @@ export async function renderToSvg(model, opts) {
62
58
  const w = width + trackLabelOffset;
63
59
  const theme = createJBrowseTheme(themeVar);
64
60
  const RenderList = [
65
- React.createElement(SVGLinearGenomeView, { rulerHeight: rulerHeight, trackLabelOffset: trackLabelOffset, shift: shift, textHeight: textHeight, trackLabels: trackLabels, displayResults: displayResults[0], key: views[0].id, view: views[0], fontSize: fontSize }),
61
+ _jsx(SVGLinearGenomeView, { rulerHeight: rulerHeight, trackLabelOffset: trackLabelOffset, shift: shift, textHeight: textHeight, trackLabels: trackLabels, displayResults: displayResults[0], view: views[0], fontSize: fontSize }, views[0].id),
66
62
  ];
67
63
  let currOffset = heights[0] + fontSize + rulerHeight;
68
64
  for (let i = 1; i < views.length; i++) {
@@ -71,21 +67,8 @@ export async function renderToSvg(model, opts) {
71
67
  const rendering = renderings[i - 1];
72
68
  const height = heights[i];
73
69
  const levelHeight = level.height || 0;
74
- RenderList.push(React.createElement("g", { key: view.id, transform: `translate(0 ${currOffset})` },
75
- levelHeight ? (React.createElement("defs", null,
76
- React.createElement("clipPath", { id: `synclip-${i}` },
77
- React.createElement("rect", { x: 0, y: 0, width: width, height: levelHeight })))) : null,
78
- React.createElement("g", { transform: `translate(${shift + trackLabelOffset} ${fontSize})`, clipPath: `url(#synclip-${i})` }, rendering === null || rendering === void 0 ? void 0 : rendering.map((r, i) => (
79
- /* biome-ignore lint/suspicious/noArrayIndexKey: */
80
- React.createElement(ReactRendering, { key: i, rendering: r })))),
81
- React.createElement("g", { transform: `translate(0 ${levelHeight})` },
82
- React.createElement(SVGLinearGenomeView, { rulerHeight: rulerHeight, shift: shift, trackLabelOffset: trackLabelOffset, textHeight: textHeight, trackLabels: trackLabels, displayResults: displayResults[i], key: view.id, view: view, fontSize: fontSize }))));
70
+ RenderList.push(_jsxs("g", { transform: `translate(0 ${currOffset})`, children: [levelHeight ? (_jsx("defs", { children: _jsx("clipPath", { id: `synclip-${i}`, children: _jsx("rect", { x: 0, y: 0, width: width, height: levelHeight }) }) })) : null, _jsx("g", { transform: `translate(${shift + trackLabelOffset} ${fontSize})`, clipPath: `url(#synclip-${i})`, children: rendering === null || rendering === void 0 ? void 0 : rendering.map((r, i) => (_jsx(ReactRendering, { rendering: r }, i))) }), _jsx("g", { transform: `translate(0 ${levelHeight})`, children: _jsx(SVGLinearGenomeView, { rulerHeight: rulerHeight, shift: shift, trackLabelOffset: trackLabelOffset, textHeight: textHeight, trackLabels: trackLabels, displayResults: displayResults[i], view: view, fontSize: fontSize }, view.id) })] }, view.id));
83
71
  currOffset += height + fontSize + rulerHeight + levelHeight;
84
72
  }
85
- // the xlink namespace is used for rendering <image> tag
86
- return renderToStaticMarkup(React.createElement(ThemeProvider, { theme: theme },
87
- React.createElement(Wrapper, null,
88
- React.createElement("svg", { width: width, height: totalHeightSvg, xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: [0, 0, w + shift * 2, totalHeightSvg].toString() },
89
- React.createElement(SVGBackground, { width: w, height: totalHeightSvg, shift: shift }),
90
- RenderList))), createRootFn);
73
+ return renderToStaticMarkup(_jsx(ThemeProvider, { theme: theme, children: _jsx(Wrapper, { children: _jsxs("svg", { width: width, height: totalHeightSvg, xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: [0, 0, w + shift * 2, totalHeightSvg].toString(), children: [_jsx(SVGBackground, { width: w, height: totalHeightSvg, shift: shift }), RenderList] }) }) }));
91
74
  }
@@ -0,0 +1,12 @@
1
+ import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
2
+ import type { SnapshotIn } from 'mobx-state-tree';
3
+ export type Conf = SnapshotIn<AnyConfigurationModel>;
4
+ export type ImportFormSyntenyTrack = {
5
+ type: 'preConfigured';
6
+ value: string;
7
+ } | {
8
+ type: 'userOpened';
9
+ value: Conf;
10
+ } | {
11
+ type: 'none';
12
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,2 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function LinearSyntenyViewF(pluginManager: PluginManager): void;
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import ViewType from '@jbrowse/core/pluggableElementTypes/ViewType';
3
3
  import { linearSyntenyViewHelperModelFactory } from './stateModelFactory';
4
4
  function UnusedComponent() {
5
- return React.createElement("div", null);
5
+ return _jsx("div", {});
6
6
  }
7
7
  export default function LinearSyntenyViewF(pluginManager) {
8
8
  pluginManager.addViewType(() => {