@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,12 +1,7 @@
1
- import { Instance, SnapshotIn } from 'mobx-state-tree';
2
- import { MenuItem } from '@jbrowse/core/ui';
3
- import PluginManager from '@jbrowse/core/PluginManager';
4
- import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
5
- /**
6
- * #stateModel LinearComparativeView
7
- * extends
8
- * - [BaseViewModel](../baseviewmodel)
9
- */
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
+ import type { MenuItem } from '@jbrowse/core/ui';
3
+ import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
4
+ import type { Instance, SnapshotIn } from 'mobx-state-tree';
10
5
  declare function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
11
6
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
12
7
  displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
@@ -16,7 +11,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
16
11
  type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
17
12
  trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
18
13
  showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
19
- interactToggled: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
14
+ linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
15
+ interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
20
16
  levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
21
17
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
22
18
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -50,7 +46,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
50
46
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
51
47
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
52
48
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
53
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
49
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
54
50
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
55
51
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
56
52
  }, {
@@ -71,8 +67,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
71
67
  trackRefs: Record<string, HTMLDivElement>;
72
68
  coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
73
69
  coarseTotalBp: number;
74
- leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
75
- rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
70
+ leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
71
+ rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
76
72
  } & {
77
73
  readonly trackLabelsSetting: any;
78
74
  readonly width: number;
@@ -82,6 +78,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
82
78
  scaleBarDisplayPrefix(): string | undefined;
83
79
  MiniControlsComponent(): React.FC<any>;
84
80
  HeaderComponent(): React.FC<any>;
81
+ readonly assembliesNotFound: string | undefined;
85
82
  readonly assemblyErrors: string;
86
83
  readonly assembliesInitialized: boolean;
87
84
  readonly initialized: boolean;
@@ -118,12 +115,12 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
118
115
  setHideHeaderOverview(b: boolean): void;
119
116
  setHideNoTracksActive(b: boolean): void;
120
117
  setShowGridlines(b: boolean): void;
121
- addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
122
- setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
123
- removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
118
+ addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
119
+ setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
120
+ removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
124
121
  scrollTo(offsetPx: number): number;
125
122
  zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
126
- setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
123
+ setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
127
124
  setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
128
125
  setNewView(bpPerPx: number, offsetPx: number): void;
129
126
  horizontallyFlip(): void;
@@ -140,7 +137,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
140
137
  setShowCenterLine(b: boolean): void;
141
138
  setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
142
139
  activateTrackSelector(): import("@jbrowse/core/util").Widget;
143
- getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
140
+ getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
144
141
  start: number;
145
142
  end: number;
146
143
  type: string;
@@ -162,7 +159,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
162
159
  setDraggingTrackId(idx?: string): void;
163
160
  setScaleFactor(factor: number): void;
164
161
  clearView(): void;
165
- exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
162
+ exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
166
163
  } & {
167
164
  slide: (viewWidths: number) => void;
168
165
  } & {
@@ -184,15 +181,15 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
184
181
  setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
185
182
  afterAttach(): void;
186
183
  } & {
187
- moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
184
+ moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
188
185
  navToLocString(input: string, optAssemblyName?: string): Promise<void>;
189
186
  navToSearchString({ input, assembly, }: {
190
187
  input: string;
191
188
  assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
192
189
  }): Promise<void>;
193
190
  navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
194
- navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
195
- navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
191
+ navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
192
+ navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
196
193
  } & {
197
194
  rubberBandMenuItems(): MenuItem[];
198
195
  bpToPx({ refName, coord, regionNumber, }: {
@@ -247,7 +244,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
247
244
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
248
245
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
249
246
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
250
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
247
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
251
248
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
252
249
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
253
250
  }>>, import("mobx-state-tree")._NotCustomized>>;
@@ -261,81 +258,30 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
261
258
  setWidth(newWidth: number): void;
262
259
  setMinimized(flag: boolean): void;
263
260
  } & {
264
- /**
265
- * #volatile
266
- */
267
261
  width: number | undefined;
268
262
  } & {
269
- /**
270
- * #getter
271
- */
272
263
  readonly initialized: boolean;
273
- /**
274
- * #getter
275
- */
276
264
  readonly refNames: string[][];
277
- /**
278
- * #getter
279
- */
280
265
  readonly assemblyNames: string[];
281
266
  } & {
267
+ afterAttach(): void;
282
268
  beforeDestroy(): void;
283
269
  onSubviewAction(actionName: string, path: string, args?: unknown[]): void;
284
- /**
285
- * #action
286
- */
287
270
  setWidth(newWidth: number): void;
288
- /**
289
- * #action
290
- */
291
271
  setViews(views: SnapshotIn<LinearGenomeViewModel>[]): void;
292
- /**
293
- * #action
294
- */
295
272
  removeView(view: LinearGenomeViewModel): void;
296
- /**
297
- * #action
298
- */
299
273
  setLevelHeight(newHeight: number, level?: number): number;
300
- /**
301
- * #action
302
- */
274
+ setLinkViews(arg: boolean): void;
303
275
  activateTrackSelector(level: number): import("@jbrowse/core/util").Widget;
304
- /**
305
- * #action
306
- */
307
276
  toggleTrack(trackId: string, level?: number): void;
308
- /**
309
- * #action
310
- */
311
277
  showTrack(trackId: string, level?: number, initialSnapshot?: {}): void;
312
- /**
313
- * #action
314
- */
315
278
  hideTrack(trackId: string, level?: number): void;
316
- /**
317
- * #action
318
- */
319
279
  squareView(): void;
320
- /**
321
- * #action
322
- */
323
280
  clearView(): void;
324
281
  } & {
325
- /**
326
- * #method
327
- * includes a subset of view menu options because the full list is a
328
- * little overwhelming. overridden by subclasses
329
- */
330
282
  headerMenuItems(): MenuItem[];
331
283
  } & {
332
- /**
333
- * #method
334
- */
335
284
  menuItems(): MenuItem[];
336
- /**
337
- * #method
338
- */
339
285
  rubberBandMenuItems(): {
340
286
  label: string;
341
287
  onClick: () => void;
@@ -351,7 +297,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
351
297
  type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
352
298
  trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
353
299
  showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
354
- interactToggled: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
300
+ linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
301
+ interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
355
302
  levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
356
303
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
357
304
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -385,7 +332,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
385
332
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
386
333
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
387
334
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
388
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
335
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
389
336
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
390
337
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
391
338
  }, {
@@ -406,8 +353,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
406
353
  trackRefs: Record<string, HTMLDivElement>;
407
354
  coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
408
355
  coarseTotalBp: number;
409
- leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
410
- rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
356
+ leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
357
+ rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
411
358
  } & {
412
359
  readonly trackLabelsSetting: any;
413
360
  readonly width: number;
@@ -417,6 +364,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
417
364
  scaleBarDisplayPrefix(): string | undefined;
418
365
  MiniControlsComponent(): React.FC<any>;
419
366
  HeaderComponent(): React.FC<any>;
367
+ readonly assembliesNotFound: string | undefined;
420
368
  readonly assemblyErrors: string;
421
369
  readonly assembliesInitialized: boolean;
422
370
  readonly initialized: boolean;
@@ -453,12 +401,12 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
453
401
  setHideHeaderOverview(b: boolean): void;
454
402
  setHideNoTracksActive(b: boolean): void;
455
403
  setShowGridlines(b: boolean): void;
456
- addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
457
- setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
458
- removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
404
+ addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
405
+ setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
406
+ removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
459
407
  scrollTo(offsetPx: number): number;
460
408
  zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
461
- setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
409
+ setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
462
410
  setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
463
411
  setNewView(bpPerPx: number, offsetPx: number): void;
464
412
  horizontallyFlip(): void;
@@ -475,7 +423,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
475
423
  setShowCenterLine(b: boolean): void;
476
424
  setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
477
425
  activateTrackSelector(): import("@jbrowse/core/util").Widget;
478
- getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
426
+ getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
479
427
  start: number;
480
428
  end: number;
481
429
  type: string;
@@ -497,7 +445,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
497
445
  setDraggingTrackId(idx?: string): void;
498
446
  setScaleFactor(factor: number): void;
499
447
  clearView(): void;
500
- exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
448
+ exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
501
449
  } & {
502
450
  slide: (viewWidths: number) => void;
503
451
  } & {
@@ -519,15 +467,15 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
519
467
  setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
520
468
  afterAttach(): void;
521
469
  } & {
522
- moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
470
+ moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
523
471
  navToLocString(input: string, optAssemblyName?: string): Promise<void>;
524
472
  navToSearchString({ input, assembly, }: {
525
473
  input: string;
526
474
  assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
527
475
  }): Promise<void>;
528
476
  navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
529
- navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
530
- navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
477
+ navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
478
+ navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
531
479
  } & {
532
480
  rubberBandMenuItems(): MenuItem[];
533
481
  bpToPx({ refName, coord, regionNumber, }: {
@@ -582,7 +530,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
582
530
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
583
531
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
584
532
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
585
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
533
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
586
534
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
587
535
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
588
536
  }>>, import("mobx-state-tree")._NotCustomized>>;
@@ -15,111 +15,85 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
28
38
  Object.defineProperty(exports, "__esModule", { value: true });
29
39
  const react_1 = require("react");
30
- const mobx_state_tree_1 = require("mobx-state-tree");
31
- const mobx_1 = require("mobx");
32
- // jbrowse
33
40
  const BaseViewModel_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/models/BaseViewModel"));
34
41
  const util_1 = require("@jbrowse/core/util");
35
42
  const mst_1 = require("@jbrowse/core/util/types/mst");
36
- // icons
37
43
  const FolderOpen_1 = __importDefault(require("@mui/icons-material/FolderOpen"));
38
- // lazies
44
+ const mobx_1 = require("mobx");
45
+ const mobx_state_tree_1 = require("mobx-state-tree");
39
46
  const ReturnToImportFormDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@jbrowse/core/ui/ReturnToImportFormDialog'))));
40
- /**
41
- * #stateModel LinearComparativeView
42
- * extends
43
- * - [BaseViewModel](../baseviewmodel)
44
- */
45
47
  function stateModelFactory(pluginManager) {
46
48
  var _a;
47
49
  const LinearSyntenyViewHelper = (_a = pluginManager.getViewType('LinearSyntenyViewHelper')) === null || _a === void 0 ? void 0 : _a.stateModel;
48
50
  return mobx_state_tree_1.types
49
51
  .compose('LinearComparativeView', BaseViewModel_1.default, mobx_state_tree_1.types.model({
50
- /**
51
- * #property
52
- */
53
52
  id: mst_1.ElementId,
54
- /**
55
- * #property
56
- */
57
53
  type: mobx_state_tree_1.types.literal('LinearComparativeView'),
58
- /**
59
- * #property
60
- */
61
54
  trackSelectorType: 'hierarchical',
62
- /**
63
- * #property
64
- */
65
55
  showIntraviewLinks: true,
66
- /**
67
- * #property
68
- */
69
- interactToggled: false,
70
- /**
71
- * #property
72
- */
56
+ linkViews: false,
57
+ interactiveOverlay: false,
73
58
  levels: mobx_state_tree_1.types.array(LinearSyntenyViewHelper),
74
- /**
75
- * #property
76
- * currently this is limited to an array of two
77
- */
78
59
  views: mobx_state_tree_1.types.array(pluginManager.getViewType('LinearGenomeView')
79
60
  .stateModel),
80
- /**
81
- * #property
82
- * this represents tracks specific to this view specifically used for
83
- * read vs ref dotplots where this track would not really apply
84
- * elsewhere
85
- */
86
61
  viewTrackConfigs: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('track')),
87
62
  }))
88
63
  .volatile(() => ({
89
- /**
90
- * #volatile
91
- */
92
64
  width: undefined,
93
65
  }))
94
66
  .views(self => ({
95
- /**
96
- * #getter
97
- */
98
67
  get initialized() {
99
- return (
100
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
101
- self.width !== undefined &&
68
+ return (self.width !== undefined &&
102
69
  self.views.length > 0 &&
103
70
  self.views.every(view => view.initialized));
104
71
  },
105
- /**
106
- * #getter
107
- */
108
72
  get refNames() {
109
73
  return self.views.map(v => [
110
74
  ...new Set(v.staticBlocks.map(m => m.refName)),
111
75
  ]);
112
76
  },
113
- /**
114
- * #getter
115
- */
116
77
  get assemblyNames() {
117
78
  return [...new Set(self.views.flatMap(v => v.assemblyNames))];
118
79
  },
119
80
  }))
120
81
  .actions(self => ({
121
- // automatically removes session assemblies associated with this view
122
- // e.g. read vs ref
82
+ afterAttach() {
83
+ const actions = new Set([
84
+ 'horizontalScroll',
85
+ 'zoomTo',
86
+ 'setScaleFactor',
87
+ ]);
88
+ (0, mobx_state_tree_1.addDisposer)(self, (0, mobx_state_tree_1.onAction)(self, param => {
89
+ if (self.linkViews) {
90
+ const { name, path, args } = param;
91
+ if (actions.has(name) && path) {
92
+ this.onSubviewAction(name, path, args);
93
+ }
94
+ }
95
+ }));
96
+ },
123
97
  beforeDestroy() {
124
98
  var _a;
125
99
  const session = (0, util_1.getSession)(self);
@@ -131,40 +105,27 @@ function stateModelFactory(pluginManager) {
131
105
  self.views.forEach(view => {
132
106
  const ret = (0, mobx_state_tree_1.getPath)(view);
133
107
  if (!ret.endsWith(path)) {
134
- // @ts-expect-error
135
108
  view[actionName](args === null || args === void 0 ? void 0 : args[0]);
136
109
  }
137
110
  });
138
111
  },
139
- /**
140
- * #action
141
- */
142
112
  setWidth(newWidth) {
143
113
  self.width = newWidth;
144
114
  },
145
- /**
146
- * #action
147
- */
148
115
  setViews(views) {
149
116
  self.views = (0, mobx_state_tree_1.cast)(views);
150
117
  },
151
- /**
152
- * #action
153
- */
154
118
  removeView(view) {
155
119
  self.views.remove(view);
156
120
  },
157
- /**
158
- * #action
159
- */
160
121
  setLevelHeight(newHeight, level = 0) {
161
122
  const l = self.levels[level];
162
123
  l.setHeight(newHeight);
163
124
  return l.height;
164
125
  },
165
- /**
166
- * #action
167
- */
126
+ setLinkViews(arg) {
127
+ self.linkViews = arg;
128
+ },
168
129
  activateTrackSelector(level) {
169
130
  if (self.trackSelectorType === 'hierarchical') {
170
131
  const session = (0, util_1.getSession)(self);
@@ -178,32 +139,20 @@ function stateModelFactory(pluginManager) {
178
139
  }
179
140
  throw new Error(`invalid track selector type ${self.trackSelectorType}`);
180
141
  },
181
- /**
182
- * #action
183
- */
184
142
  toggleTrack(trackId, level = 0) {
185
143
  var _a;
186
144
  (_a = self.levels[level]) === null || _a === void 0 ? void 0 : _a.toggleTrack(trackId);
187
145
  },
188
- /**
189
- * #action
190
- */
191
146
  showTrack(trackId, level = 0, initialSnapshot = {}) {
192
147
  if (!self.levels[level]) {
193
148
  self.levels[level] = (0, mobx_state_tree_1.cast)({ level });
194
149
  }
195
150
  self.levels[level].showTrack(trackId, initialSnapshot);
196
151
  },
197
- /**
198
- * #action
199
- */
200
152
  hideTrack(trackId, level = 0) {
201
153
  var _a;
202
154
  (_a = self.levels[level]) === null || _a === void 0 ? void 0 : _a.hideTrack(trackId);
203
155
  },
204
- /**
205
- * #action
206
- */
207
156
  squareView() {
208
157
  const average = (0, util_1.avg)(self.views.map(v => v.bpPerPx));
209
158
  for (const view of self.views) {
@@ -214,28 +163,17 @@ function stateModelFactory(pluginManager) {
214
163
  }
215
164
  }
216
165
  },
217
- /**
218
- * #action
219
- */
220
166
  clearView() {
221
167
  self.views = (0, mobx_state_tree_1.cast)([]);
222
168
  self.levels = (0, mobx_state_tree_1.cast)([]);
223
169
  },
224
170
  }))
225
171
  .views(() => ({
226
- /**
227
- * #method
228
- * includes a subset of view menu options because the full list is a
229
- * little overwhelming. overridden by subclasses
230
- */
231
172
  headerMenuItems() {
232
173
  return [];
233
174
  },
234
175
  }))
235
176
  .views(self => ({
236
- /**
237
- * #method
238
- */
239
177
  menuItems() {
240
178
  return [
241
179
  {
@@ -253,9 +191,6 @@ function stateModelFactory(pluginManager) {
253
191
  },
254
192
  ];
255
193
  },
256
- /**
257
- * #method
258
- */
259
194
  rubberBandMenuItems() {
260
195
  return [
261
196
  {
@@ -284,8 +219,6 @@ function stateModelFactory(pluginManager) {
284
219
  },
285
220
  }))
286
221
  .preProcessSnapshot(snap => {
287
- // @ts-expect-error
288
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
289
222
  const { tracks, levels = [{ tracks, level: 0 }], ...rest } = snap || {};
290
223
  return {
291
224
  ...rest,
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
- import { Feature } from '@jbrowse/core/util';
1
+ import type { Feature } from '@jbrowse/core/util';
3
2
  export default function ReadVsRefDialog({ track, feature: preFeature, handleClose, }: {
4
3
  feature: Feature;
5
4
  handleClose: () => void;
6
5
  track: any;
7
- }): React.JSX.Element;
6
+ }): import("react/jsx-runtime").JSX.Element;