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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +3 -3
  2. package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +9 -9
  3. package/esm/LGVSyntenyDisplay/configSchemaF.js +1 -1
  4. package/esm/LGVSyntenyDisplay/index.js +2 -2
  5. package/esm/LGVSyntenyDisplay/model.d.ts +1179 -133
  6. package/esm/LGVSyntenyDisplay/model.js +2 -2
  7. package/esm/LaunchLinearSyntenyView.js +13 -86
  8. package/esm/LinearComparativeDisplay/configSchemaF.d.ts +1 -1
  9. package/esm/LinearComparativeDisplay/index.js +2 -2
  10. package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +95 -135
  11. package/esm/LinearComparativeDisplay/stateModelFactory.js +18 -17
  12. package/esm/LinearComparativeView/components/ColorBySelector.d.ts +1 -1
  13. package/esm/LinearComparativeView/components/ColorBySelector.js +3 -4
  14. package/esm/LinearComparativeView/components/Header.d.ts +1 -1
  15. package/esm/LinearComparativeView/components/Header.js +8 -9
  16. package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +2 -2
  17. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +1 -1
  18. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +9 -8
  19. package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +1 -1
  20. package/esm/LinearComparativeView/components/LinearComparativeView.js +5 -5
  21. package/esm/LinearComparativeView/components/MinLengthSlider.d.ts +1 -1
  22. package/esm/LinearComparativeView/components/MinLengthSlider.js +7 -7
  23. package/esm/LinearComparativeView/components/OpacitySlider.d.ts +1 -1
  24. package/esm/LinearComparativeView/components/OpacitySlider.js +5 -6
  25. package/esm/LinearComparativeView/components/Rubberband.d.ts +1 -1
  26. package/esm/LinearComparativeView/components/Rubberband.js +5 -5
  27. package/esm/LinearComparativeView/components/RubberbandSpan.js +3 -5
  28. package/esm/LinearComparativeView/components/VerticalGuide.d.ts +1 -1
  29. package/esm/LinearComparativeView/components/VerticalGuide.js +2 -2
  30. package/esm/LinearComparativeView/components/useRangeSelect.d.ts +1 -1
  31. package/esm/LinearComparativeView/components/useRangeSelect.js +1 -1
  32. package/esm/LinearComparativeView/components/util.js +1 -1
  33. package/esm/LinearComparativeView/index.js +2 -2
  34. package/esm/LinearComparativeView/model.d.ts +474 -222
  35. package/esm/LinearComparativeView/model.js +50 -29
  36. package/esm/LinearReadVsRef/LinearReadVsRef.js +8 -9
  37. package/esm/LinearReadVsRef/index.js +1 -1
  38. package/esm/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
  39. package/esm/LinearSyntenyDisplay/afterAttach.js +10 -11
  40. package/esm/LinearSyntenyDisplay/components/BlockError.js +1 -1
  41. package/esm/LinearSyntenyDisplay/components/BlockMessage.js +6 -15
  42. package/esm/LinearSyntenyDisplay/components/Component.d.ts +1 -1
  43. package/esm/LinearSyntenyDisplay/components/Component.js +5 -5
  44. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +1 -1
  45. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +10 -14
  46. package/esm/LinearSyntenyDisplay/components/LoadingMessage.js +1 -1
  47. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +1 -1
  48. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +8 -33
  49. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -1
  50. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +1 -1
  51. package/esm/LinearSyntenyDisplay/components/util.d.ts +2 -2
  52. package/esm/LinearSyntenyDisplay/components/util.js +3 -3
  53. package/esm/LinearSyntenyDisplay/configSchemaF.d.ts +2 -2
  54. package/esm/LinearSyntenyDisplay/configSchemaF.js +1 -1
  55. package/esm/LinearSyntenyDisplay/drawMouseoverClickMap.d.ts +2 -0
  56. package/esm/LinearSyntenyDisplay/drawMouseoverClickMap.js +53 -0
  57. package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
  58. package/esm/LinearSyntenyDisplay/drawSynteny.js +3 -5
  59. package/esm/LinearSyntenyDisplay/index.js +3 -3
  60. package/esm/LinearSyntenyDisplay/model.d.ts +97 -137
  61. package/esm/LinearSyntenyDisplay/model.js +3 -3
  62. package/esm/LinearSyntenyView/components/DiagonalizationProgressDialog.d.ts +1 -1
  63. package/esm/LinearSyntenyView/components/DiagonalizationProgressDialog.js +2 -2
  64. package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +1 -1
  65. package/esm/LinearSyntenyView/components/ExportSvgDialog.js +6 -2
  66. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +1 -1
  67. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +4 -4
  68. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +1 -1
  69. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +4 -5
  70. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +11 -1
  71. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +8 -4
  72. package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +1 -1
  73. package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.js +26 -9
  74. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +1 -1
  75. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +5 -5
  76. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +1 -1
  77. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +1 -2
  78. package/esm/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.d.ts +1 -1
  79. package/esm/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.js +2 -2
  80. package/esm/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.d.ts +1 -1
  81. package/esm/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.js +2 -2
  82. package/esm/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.d.ts +1 -1
  83. package/esm/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.js +3 -3
  84. package/esm/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.js +3 -3
  85. package/esm/LinearSyntenyView/components/ImportForm/selectors/index.d.ts +4 -4
  86. package/esm/LinearSyntenyView/components/ImportForm/selectors/index.js +4 -4
  87. package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +1 -1
  88. package/esm/LinearSyntenyView/components/LinearSyntenyView.js +14 -4
  89. package/esm/LinearSyntenyView/index.js +2 -2
  90. package/esm/LinearSyntenyView/model.d.ts +522 -254
  91. package/esm/LinearSyntenyView/model.js +99 -15
  92. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +3 -1
  93. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +3 -3
  94. package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +2 -2
  95. package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +34 -31
  96. package/esm/LinearSyntenyView/types.d.ts +10 -1
  97. package/esm/LinearSyntenyViewHelper/index.js +1 -1
  98. package/esm/LinearSyntenyViewHelper/stateModelFactory.d.ts +11 -11
  99. package/esm/LinearSyntenyViewHelper/stateModelFactory.js +5 -43
  100. package/esm/SyntenyFeatureDetail/Formatter.js +2 -2
  101. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +1 -1
  102. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +6 -7
  103. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +1 -1
  104. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +3 -3
  105. package/esm/SyntenyFeatureDetail/index.js +2 -2
  106. package/esm/SyntenyTrack/configSchema.d.ts +16 -11
  107. package/esm/SyntenyTrack/index.js +1 -1
  108. package/esm/index.d.ts +2 -0
  109. package/esm/index.js +11 -14
  110. package/esm/util.d.ts +1 -1
  111. package/esm/util.js +4 -8
  112. package/package.json +29 -35
  113. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +0 -9
  114. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +0 -53
  115. package/dist/LGVSyntenyDisplay/components/util.d.ts +0 -14
  116. package/dist/LGVSyntenyDisplay/components/util.js +0 -100
  117. package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +0 -66
  118. package/dist/LGVSyntenyDisplay/configSchemaF.js +0 -38
  119. package/dist/LGVSyntenyDisplay/index.d.ts +0 -2
  120. package/dist/LGVSyntenyDisplay/index.js +0 -24
  121. package/dist/LGVSyntenyDisplay/model.d.ts +0 -418
  122. package/dist/LGVSyntenyDisplay/model.js +0 -118
  123. package/dist/LaunchLinearSyntenyView.d.ts +0 -2
  124. package/dist/LaunchLinearSyntenyView.js +0 -93
  125. package/dist/LinearComparativeDisplay/configSchemaF.d.ts +0 -2
  126. package/dist/LinearComparativeDisplay/configSchemaF.js +0 -10
  127. package/dist/LinearComparativeDisplay/index.d.ts +0 -2
  128. package/dist/LinearComparativeDisplay/index.js +0 -24
  129. package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +0 -243
  130. package/dist/LinearComparativeDisplay/stateModelFactory.js +0 -146
  131. package/dist/LinearComparativeView/components/ColorBySelector.d.ts +0 -5
  132. package/dist/LinearComparativeView/components/ColorBySelector.js +0 -54
  133. package/dist/LinearComparativeView/components/Header.d.ts +0 -5
  134. package/dist/LinearComparativeView/components/Header.js +0 -87
  135. package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +0 -5
  136. package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +0 -24
  137. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +0 -5
  138. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +0 -46
  139. package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +0 -5
  140. package/dist/LinearComparativeView/components/LinearComparativeView.js +0 -30
  141. package/dist/LinearComparativeView/components/MinLengthSlider.d.ts +0 -5
  142. package/dist/LinearComparativeView/components/MinLengthSlider.js +0 -47
  143. package/dist/LinearComparativeView/components/OpacitySlider.d.ts +0 -5
  144. package/dist/LinearComparativeView/components/OpacitySlider.js +0 -46
  145. package/dist/LinearComparativeView/components/Rubberband.d.ts +0 -7
  146. package/dist/LinearComparativeView/components/Rubberband.js +0 -32
  147. package/dist/LinearComparativeView/components/RubberbandSpan.d.ts +0 -15
  148. package/dist/LinearComparativeView/components/RubberbandSpan.js +0 -38
  149. package/dist/LinearComparativeView/components/RubberbandTooltip.d.ts +0 -5
  150. package/dist/LinearComparativeView/components/RubberbandTooltip.js +0 -20
  151. package/dist/LinearComparativeView/components/SliderTooltip.d.ts +0 -2
  152. package/dist/LinearComparativeView/components/SliderTooltip.js +0 -9
  153. package/dist/LinearComparativeView/components/VerticalGuide.d.ts +0 -7
  154. package/dist/LinearComparativeView/components/VerticalGuide.js +0 -26
  155. package/dist/LinearComparativeView/components/useRangeSelect.d.ts +0 -59
  156. package/dist/LinearComparativeView/components/useRangeSelect.js +0 -124
  157. package/dist/LinearComparativeView/components/util.d.ts +0 -4
  158. package/dist/LinearComparativeView/components/util.js +0 -6
  159. package/dist/LinearComparativeView/index.d.ts +0 -2
  160. package/dist/LinearComparativeView/index.js +0 -55
  161. package/dist/LinearComparativeView/model.d.ts +0 -606
  162. package/dist/LinearComparativeView/model.js +0 -238
  163. package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +0 -6
  164. package/dist/LinearReadVsRef/LinearReadVsRef.js +0 -241
  165. package/dist/LinearReadVsRef/index.d.ts +0 -2
  166. package/dist/LinearReadVsRef/index.js +0 -86
  167. package/dist/LinearSyntenyDisplay/afterAttach.d.ts +0 -2
  168. package/dist/LinearSyntenyDisplay/afterAttach.js +0 -104
  169. package/dist/LinearSyntenyDisplay/components/BlockError.d.ts +0 -3
  170. package/dist/LinearSyntenyDisplay/components/BlockError.js +0 -16
  171. package/dist/LinearSyntenyDisplay/components/BlockMessage.d.ts +0 -3
  172. package/dist/LinearSyntenyDisplay/components/BlockMessage.js +0 -24
  173. package/dist/LinearSyntenyDisplay/components/Component.d.ts +0 -5
  174. package/dist/LinearSyntenyDisplay/components/Component.js +0 -26
  175. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +0 -5
  176. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +0 -223
  177. package/dist/LinearSyntenyDisplay/components/LoadingMessage.d.ts +0 -3
  178. package/dist/LinearSyntenyDisplay/components/LoadingMessage.js +0 -21
  179. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +0 -15
  180. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +0 -56
  181. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +0 -4
  182. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +0 -13
  183. package/dist/LinearSyntenyDisplay/components/util.d.ts +0 -45
  184. package/dist/LinearSyntenyDisplay/components/util.js +0 -199
  185. package/dist/LinearSyntenyDisplay/configSchemaF.d.ts +0 -12
  186. package/dist/LinearSyntenyDisplay/configSchemaF.js +0 -23
  187. package/dist/LinearSyntenyDisplay/drawSynteny.d.ts +0 -6
  188. package/dist/LinearSyntenyDisplay/drawSynteny.js +0 -470
  189. package/dist/LinearSyntenyDisplay/index.d.ts +0 -2
  190. package/dist/LinearSyntenyDisplay/index.js +0 -56
  191. package/dist/LinearSyntenyDisplay/model.d.ts +0 -291
  192. package/dist/LinearSyntenyDisplay/model.js +0 -133
  193. package/dist/LinearSyntenyView/components/DiagonalizationProgressDialog.d.ts +0 -6
  194. package/dist/LinearSyntenyView/components/DiagonalizationProgressDialog.js +0 -87
  195. package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +0 -7
  196. package/dist/LinearSyntenyView/components/ExportSvgDialog.js +0 -58
  197. package/dist/LinearSyntenyView/components/Icons.d.ts +0 -3
  198. package/dist/LinearSyntenyView/components/Icons.js +0 -12
  199. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +0 -8
  200. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +0 -81
  201. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +0 -8
  202. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +0 -39
  203. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +0 -7
  204. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +0 -22
  205. package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +0 -11
  206. package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.js +0 -58
  207. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +0 -5
  208. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +0 -60
  209. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +0 -5
  210. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +0 -43
  211. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +0 -117
  212. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +0 -68
  213. package/dist/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.d.ts +0 -3
  214. package/dist/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.js +0 -13
  215. package/dist/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.d.ts +0 -3
  216. package/dist/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.js +0 -13
  217. package/dist/LinearSyntenyView/components/ImportForm/selectors/SelectorTypes.d.ts +0 -19
  218. package/dist/LinearSyntenyView/components/ImportForm/selectors/SelectorTypes.js +0 -10
  219. package/dist/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.d.ts +0 -3
  220. package/dist/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.js +0 -20
  221. package/dist/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.d.ts +0 -13
  222. package/dist/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.js +0 -32
  223. package/dist/LinearSyntenyView/components/ImportForm/selectors/index.d.ts +0 -4
  224. package/dist/LinearSyntenyView/components/ImportForm/selectors/index.js +0 -27
  225. package/dist/LinearSyntenyView/components/ImportForm/util.d.ts +0 -10
  226. package/dist/LinearSyntenyView/components/ImportForm/util.js +0 -24
  227. package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +0 -5
  228. package/dist/LinearSyntenyView/components/LinearSyntenyView.js +0 -47
  229. package/dist/LinearSyntenyView/components/TextField2.d.ts +0 -2
  230. package/dist/LinearSyntenyView/components/TextField2.js +0 -8
  231. package/dist/LinearSyntenyView/index.d.ts +0 -2
  232. package/dist/LinearSyntenyView/index.js +0 -52
  233. package/dist/LinearSyntenyView/model.d.ts +0 -702
  234. package/dist/LinearSyntenyView/model.js +0 -240
  235. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +0 -5
  236. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +0 -10
  237. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +0 -11
  238. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +0 -11
  239. package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +0 -3
  240. package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +0 -80
  241. package/dist/LinearSyntenyView/types.d.ts +0 -29
  242. package/dist/LinearSyntenyView/types.js +0 -2
  243. package/dist/LinearSyntenyView/util/diagonalize.d.ts +0 -27
  244. package/dist/LinearSyntenyView/util/diagonalize.js +0 -91
  245. package/dist/LinearSyntenyViewHelper/index.d.ts +0 -2
  246. package/dist/LinearSyntenyViewHelper/index.js +0 -25
  247. package/dist/LinearSyntenyViewHelper/stateModelFactory.d.ts +0 -18
  248. package/dist/LinearSyntenyViewHelper/stateModelFactory.js +0 -78
  249. package/dist/SyntenyFeatureDetail/Formatter.d.ts +0 -3
  250. package/dist/SyntenyFeatureDetail/Formatter.js +0 -23
  251. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +0 -7
  252. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +0 -87
  253. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +0 -5
  254. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +0 -19
  255. package/dist/SyntenyFeatureDetail/index.d.ts +0 -2
  256. package/dist/SyntenyFeatureDetail/index.js +0 -60
  257. package/dist/SyntenyFeatureDetail/types.d.ts +0 -9
  258. package/dist/SyntenyFeatureDetail/types.js +0 -2
  259. package/dist/SyntenyTrack/configSchema.d.ts +0 -80
  260. package/dist/SyntenyTrack/configSchema.js +0 -9
  261. package/dist/SyntenyTrack/index.d.ts +0 -2
  262. package/dist/SyntenyTrack/index.js +0 -19
  263. package/dist/index.d.ts +0 -7
  264. package/dist/index.js +0 -48
  265. package/dist/util.d.ts +0 -25
  266. package/dist/util.js +0 -67
@@ -1,3 +0,0 @@
1
- export default function BlockError({ error }: {
2
- error: unknown;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = BlockError;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const mui_1 = require("tss-react/mui");
6
- const useStyles = (0, mui_1.makeStyles)()({
7
- blockError: {
8
- background: '#f1f1f1',
9
- padding: 10,
10
- color: 'red',
11
- },
12
- });
13
- function BlockError({ error }) {
14
- const { classes } = useStyles();
15
- return (0, jsx_runtime_1.jsx)("div", { className: classes.blockError, children: `${error}` });
16
- }
@@ -1,3 +0,0 @@
1
- export default function BlockMessage({ messageText }: {
2
- messageText: string;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = BlockMessage;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const mui_1 = require("tss-react/mui");
6
- const useStyles = (0, mui_1.makeStyles)()(theme => {
7
- const bg = theme.palette.action.disabledBackground;
8
- return {
9
- loading: {
10
- paddingLeft: '0.6em',
11
- backgroundColor: theme.palette.background.default,
12
- backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${bg} 5px, ${bg} 10px)`,
13
- textAlign: 'center',
14
- },
15
- blockMessage: {
16
- background: '#f1f1f1',
17
- padding: 10,
18
- },
19
- };
20
- });
21
- function BlockMessage({ messageText }) {
22
- const { classes } = useStyles();
23
- return (0, jsx_runtime_1.jsx)("div", { className: classes.blockMessage, children: messageText });
24
- }
@@ -1,5 +0,0 @@
1
- import type { LinearSyntenyDisplayModel } from '../model';
2
- declare const ServerSideRenderedBlockContent: ({ model, }: {
3
- model: LinearSyntenyDisplayModel;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default ServerSideRenderedBlockContent;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const mobx_react_1 = require("mobx-react");
8
- const BlockError_1 = __importDefault(require("./BlockError"));
9
- const BlockMessage_1 = __importDefault(require("./BlockMessage"));
10
- const LinearSyntenyRendering_1 = __importDefault(require("./LinearSyntenyRendering"));
11
- const LoadingMessage_1 = __importDefault(require("./LoadingMessage"));
12
- const ServerSideRenderedBlockContent = (0, mobx_react_1.observer)(function ({ model, }) {
13
- if (model.error) {
14
- return (0, jsx_runtime_1.jsx)(BlockError_1.default, { error: model.error });
15
- }
16
- else if (model.message) {
17
- return (0, jsx_runtime_1.jsx)(BlockMessage_1.default, { messageText: model.message });
18
- }
19
- else if (!model.features) {
20
- return (0, jsx_runtime_1.jsx)(LoadingMessage_1.default, { message: model.loadingStatus });
21
- }
22
- else {
23
- return (0, jsx_runtime_1.jsx)(LinearSyntenyRendering_1.default, { model: model });
24
- }
25
- });
26
- exports.default = ServerSideRenderedBlockContent;
@@ -1,5 +0,0 @@
1
- import type { LinearSyntenyDisplayModel } from '../model';
2
- declare const LinearSyntenyRendering: ({ model, }: {
3
- model: LinearSyntenyDisplayModel;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default LinearSyntenyRendering;
@@ -1,223 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- const jsx_runtime_1 = require("react/jsx-runtime");
40
- const react_1 = require("react");
41
- const util_1 = require("@jbrowse/core/util");
42
- const mobx_1 = require("mobx");
43
- const mobx_react_1 = require("mobx-react");
44
- const mui_1 = require("tss-react/mui");
45
- const drawSynteny_1 = require("../drawSynteny");
46
- const SyntenyContextMenu_1 = __importDefault(require("./SyntenyContextMenu"));
47
- const util_2 = require("./util");
48
- const SyntenyTooltip = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./SyntenyTooltip'))));
49
- const useStyles = (0, mui_1.makeStyles)()({
50
- pix: {
51
- imageRendering: 'pixelated',
52
- pointerEvents: 'none',
53
- visibility: 'hidden',
54
- position: 'absolute',
55
- },
56
- rel: {
57
- position: 'relative',
58
- },
59
- mouseoverCanvas: {
60
- position: 'absolute',
61
- pointEvents: 'none',
62
- },
63
- mainCanvas: {
64
- position: 'absolute',
65
- },
66
- });
67
- const LinearSyntenyRendering = (0, mobx_react_1.observer)(function ({ model, }) {
68
- const { classes } = useStyles();
69
- const { mouseoverId, height } = model;
70
- const xOffset = (0, react_1.useRef)(0);
71
- const view = (0, util_1.getContainingView)(model);
72
- const width = view.width;
73
- const delta = (0, react_1.useRef)(0);
74
- const scheduled = (0, react_1.useRef)(false);
75
- const timeout = (0, react_1.useRef)(null);
76
- const [anchorEl, setAnchorEl] = (0, react_1.useState)();
77
- const [tooltip, setTooltip] = (0, react_1.useState)('');
78
- const [currX, setCurrX] = (0, react_1.useState)();
79
- const [mouseCurrDownX, setMouseCurrDownX] = (0, react_1.useState)();
80
- const [mouseInitialDownX, setMouseInitialDownX] = (0, react_1.useState)();
81
- const [currY, setCurrY] = (0, react_1.useState)();
82
- const mainSyntenyCanvasRefp = (0, react_1.useRef)(null);
83
- const mouseoverDetectionCanvasRef = (0, react_1.useCallback)((ref) => {
84
- model.setMouseoverCanvasRef(ref);
85
- }, [model, height, width]);
86
- const mainSyntenyCanvasRef = (0, react_1.useCallback)((ref) => {
87
- model.setMainCanvasRef(ref);
88
- mainSyntenyCanvasRefp.current = ref;
89
- }, [model, height, width]);
90
- (0, react_1.useEffect)(() => {
91
- var _a;
92
- function onWheel(event) {
93
- event.preventDefault();
94
- if (event.ctrlKey) {
95
- delta.current += event.deltaY / 500;
96
- for (const v of view.views) {
97
- v.setScaleFactor(delta.current < 0 ? 1 - delta.current : 1 / (1 + delta.current));
98
- }
99
- if (timeout.current) {
100
- clearTimeout(timeout.current);
101
- }
102
- timeout.current = setTimeout(() => {
103
- var _a;
104
- for (const v of view.views) {
105
- v.setScaleFactor(1);
106
- v.zoomTo(delta.current > 0
107
- ? v.bpPerPx * (1 + delta.current)
108
- : v.bpPerPx / (1 - delta.current), event.clientX -
109
- (((_a = mainSyntenyCanvasRefp.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left) ||
110
- 0));
111
- }
112
- delta.current = 0;
113
- }, 300);
114
- }
115
- else {
116
- if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {
117
- xOffset.current += event.deltaX / 2;
118
- }
119
- if (!scheduled.current) {
120
- scheduled.current = true;
121
- window.requestAnimationFrame(() => {
122
- (0, mobx_1.transaction)(() => {
123
- for (const v of view.views) {
124
- v.horizontalScroll(xOffset.current);
125
- }
126
- xOffset.current = 0;
127
- scheduled.current = false;
128
- });
129
- });
130
- }
131
- }
132
- }
133
- (_a = mainSyntenyCanvasRefp.current) === null || _a === void 0 ? void 0 : _a.addEventListener('wheel', onWheel);
134
- return () => {
135
- var _a;
136
- (_a = mainSyntenyCanvasRefp.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('wheel', onWheel);
137
- };
138
- }, [model, height, width]);
139
- const clickMapCanvasRef = (0, react_1.useCallback)((ref) => {
140
- model.setClickMapCanvasRef(ref);
141
- }, [model, height, width]);
142
- const cigarClickMapCanvasRef = (0, react_1.useCallback)((ref) => {
143
- model.setCigarClickMapCanvasRef(ref);
144
- }, [model, height, width]);
145
- return ((0, jsx_runtime_1.jsxs)("div", { className: classes.rel, children: [(0, jsx_runtime_1.jsx)("canvas", { ref: mouseoverDetectionCanvasRef, width: width, height: height, className: classes.mouseoverCanvas }), (0, jsx_runtime_1.jsx)("canvas", { ref: mainSyntenyCanvasRef, onMouseMove: event => {
146
- var _a;
147
- if (mouseCurrDownX !== undefined) {
148
- xOffset.current += mouseCurrDownX - event.clientX;
149
- setMouseCurrDownX(event.clientX);
150
- if (!scheduled.current) {
151
- scheduled.current = true;
152
- window.requestAnimationFrame(() => {
153
- (0, mobx_1.transaction)(() => {
154
- for (const v of view.views) {
155
- v.horizontalScroll(xOffset.current);
156
- }
157
- xOffset.current = 0;
158
- scheduled.current = false;
159
- });
160
- });
161
- }
162
- }
163
- else {
164
- const ref1 = model.clickMapCanvas;
165
- const ref2 = model.cigarClickMapCanvas;
166
- if (!ref1 || !ref2) {
167
- return;
168
- }
169
- const rect = ref1.getBoundingClientRect();
170
- const ctx1 = ref1.getContext('2d');
171
- const ctx2 = ref2.getContext('2d');
172
- if (!ctx1 || !ctx2) {
173
- return;
174
- }
175
- const { clientX, clientY } = event;
176
- const x = clientX - rect.left;
177
- const y = clientY - rect.top;
178
- setCurrX(clientX);
179
- setCurrY(clientY);
180
- const [r1, g1, b1] = ctx1.getImageData(x, y, 1, 1).data;
181
- const [r2, g2, b2] = ctx2.getImageData(x, y, 1, 1).data;
182
- const unitMultiplier = Math.floor(drawSynteny_1.MAX_COLOR_RANGE / model.numFeats);
183
- const id = (0, drawSynteny_1.getId)(r1, g1, b1, unitMultiplier);
184
- model.setMouseoverId((_a = model.featPositions[id]) === null || _a === void 0 ? void 0 : _a.f.id());
185
- if (id === -1) {
186
- setTooltip('');
187
- }
188
- else if (model.featPositions[id]) {
189
- const { f, cigar } = model.featPositions[id];
190
- const unitMultiplier2 = Math.floor(drawSynteny_1.MAX_COLOR_RANGE / cigar.length);
191
- const cigarIdx = (0, drawSynteny_1.getId)(r2, g2, b2, unitMultiplier2);
192
- if (cigarIdx % 2 === 0 && (r2 !== 0 || g2 !== 0 || b2 !== 0)) {
193
- setTooltip((0, util_2.getTooltip)({
194
- feature: f,
195
- cigarOp: cigar[cigarIdx + 1],
196
- cigarOpLen: cigar[cigarIdx],
197
- }));
198
- }
199
- else {
200
- setTooltip('');
201
- }
202
- }
203
- }
204
- }, onMouseLeave: () => {
205
- model.setMouseoverId(undefined);
206
- setMouseInitialDownX(undefined);
207
- setMouseCurrDownX(undefined);
208
- }, onMouseDown: evt => {
209
- setMouseCurrDownX(evt.clientX);
210
- setMouseInitialDownX(evt.clientX);
211
- }, onMouseUp: evt => {
212
- setMouseCurrDownX(undefined);
213
- if (mouseInitialDownX !== undefined &&
214
- Math.abs(evt.clientX - mouseInitialDownX) < 5) {
215
- (0, util_2.onSynClick)(evt, model);
216
- }
217
- }, onContextMenu: evt => {
218
- (0, util_2.onSynContextClick)(evt, model, setAnchorEl);
219
- }, "data-testid": "synteny_canvas", className: classes.mainCanvas, width: width, height: height }), (0, jsx_runtime_1.jsx)("canvas", { ref: clickMapCanvasRef, className: classes.pix, width: width, height: height }), (0, jsx_runtime_1.jsx)("canvas", { ref: cigarClickMapCanvasRef, className: classes.pix, width: width, height: height }), mouseoverId && tooltip && currX && currY ? ((0, jsx_runtime_1.jsx)(SyntenyTooltip, { title: tooltip })) : null, anchorEl ? ((0, jsx_runtime_1.jsx)(SyntenyContextMenu_1.default, { model: model, anchorEl: anchorEl, onClose: () => {
220
- setAnchorEl(undefined);
221
- } })) : null] }));
222
- });
223
- exports.default = LinearSyntenyRendering;
@@ -1,3 +0,0 @@
1
- export default function LoadingMessage({ message }: {
2
- message?: string;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = LoadingMessage;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const ui_1 = require("@jbrowse/core/ui");
6
- const mui_1 = require("tss-react/mui");
7
- const useStyles = (0, mui_1.makeStyles)()(theme => {
8
- const bg = theme.palette.action.disabledBackground;
9
- return {
10
- loading: {
11
- paddingLeft: '0.6em',
12
- backgroundColor: theme.palette.background.default,
13
- backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${bg} 5px, ${bg} 10px)`,
14
- textAlign: 'center',
15
- },
16
- };
17
- });
18
- function LoadingMessage({ message }) {
19
- const { classes } = useStyles();
20
- return ((0, jsx_runtime_1.jsx)("div", { className: classes.loading, children: (0, jsx_runtime_1.jsx)(ui_1.LoadingEllipses, { message: message }) }));
21
- }
@@ -1,15 +0,0 @@
1
- import type { LinearSyntenyDisplayModel } from '../model';
2
- import type { Feature } from '@jbrowse/core/util';
3
- interface ClickCoord {
4
- clientX: number;
5
- clientY: number;
6
- feature: {
7
- f: Feature;
8
- };
9
- }
10
- export default function SyntenyContextMenu({ model, onClose, anchorEl, }: {
11
- onClose: () => void;
12
- model: LinearSyntenyDisplayModel;
13
- anchorEl: ClickCoord;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- export {};
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = SyntenyContextMenu;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const ui_1 = require("@jbrowse/core/ui");
6
- const util_1 = require("@jbrowse/core/util");
7
- function SyntenyContextMenu({ model, onClose, anchorEl, }) {
8
- const view = (0, util_1.getContainingView)(model);
9
- const { clientX, clientY, feature } = anchorEl;
10
- return ((0, jsx_runtime_1.jsx)(ui_1.Menu, { onMenuItemClick: (event, callback) => {
11
- callback(event);
12
- onClose();
13
- }, anchorEl: {
14
- nodeType: 1,
15
- getBoundingClientRect: () => {
16
- const x = clientX;
17
- const y = clientY;
18
- return {
19
- top: y,
20
- left: x,
21
- bottom: y,
22
- right: x,
23
- width: 0,
24
- height: 0,
25
- x,
26
- y,
27
- toJSON() { },
28
- };
29
- },
30
- }, onClose: onClose, open: Boolean(anchorEl), menuItems: [
31
- {
32
- label: 'Center on feature',
33
- onClick: () => {
34
- const { f } = feature;
35
- const start = f.get('start');
36
- const end = f.get('end');
37
- const refName = f.get('refName');
38
- const mate = f.get('mate');
39
- const l1 = view.views[model.level];
40
- const l2 = view.views[model.level + 1];
41
- const l1asm = l1.assemblyNames[0];
42
- const l2asm = l2.assemblyNames[0];
43
- l1.navToLocString(`${refName}:${start}-${end}`).catch((e) => {
44
- const err = `${l1asm}:${e}`;
45
- console.error(l1asm, err);
46
- (0, util_1.getSession)(model).notifyError(err, e);
47
- });
48
- l2.navToLocString(`${mate.refName}:${mate.start}-${mate.end}`).catch((e) => {
49
- const err = `${l2asm}:${e}`;
50
- console.error(l2asm, err);
51
- (0, util_1.getSession)(model).notifyError(err, e);
52
- });
53
- },
54
- },
55
- ] }));
56
- }
@@ -1,4 +0,0 @@
1
- declare const SyntenyTooltip: ({ title }: {
2
- title: string;
3
- }) => import("react/jsx-runtime").JSX.Element | null;
4
- export default SyntenyTooltip;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const ui_1 = require("@jbrowse/core/ui");
8
- const BaseTooltip_1 = __importDefault(require("@jbrowse/core/ui/BaseTooltip"));
9
- const mobx_react_1 = require("mobx-react");
10
- const SyntenyTooltip = (0, mobx_react_1.observer)(function ({ title }) {
11
- return title ? ((0, jsx_runtime_1.jsx)(BaseTooltip_1.default, { children: (0, jsx_runtime_1.jsx)(ui_1.SanitizedHTML, { html: title }) })) : null;
12
- });
13
- exports.default = SyntenyTooltip;
@@ -1,45 +0,0 @@
1
- import type React from 'react';
2
- import type { LinearSyntenyDisplayModel } from '../model';
3
- import type { Feature } from '@jbrowse/core/util';
4
- interface Pos {
5
- offsetPx: number;
6
- }
7
- export interface ClickCoord {
8
- clientX: number;
9
- clientY: number;
10
- feature: {
11
- f: Feature;
12
- };
13
- }
14
- interface FeatPos {
15
- p11: Pos;
16
- p12: Pos;
17
- p21: Pos;
18
- p22: Pos;
19
- f: Feature;
20
- cigar: string[];
21
- }
22
- export declare function drawMatchSimple({ feature, ctx, offsets, level, cb, height, drawCurves, oobLimit, viewWidth, hideTiny, }: {
23
- feature: FeatPos;
24
- ctx: CanvasRenderingContext2D;
25
- offsets: number[];
26
- level: number;
27
- oobLimit: number;
28
- viewWidth: number;
29
- cb: (ctx: CanvasRenderingContext2D) => void;
30
- height: number;
31
- drawCurves?: boolean;
32
- hideTiny?: boolean;
33
- }): void;
34
- export declare function draw(ctx: CanvasRenderingContext2D, x1: number, x2: number, y1: number, x3: number, x4: number, y2: number, mid: number, drawCurves?: boolean): void;
35
- export declare function drawLocationMarkers(ctx: CanvasRenderingContext2D, x1: number, x2: number, y1: number, x3: number, x4: number, y2: number, mid: number, bpPerPx1: number, bpPerPx2: number, drawCurves?: boolean): void;
36
- export declare function drawBox(ctx: CanvasRenderingContext2D, x1: number, x2: number, y1: number, x3: number, x4: number, y2: number): void;
37
- export declare function drawBezierBox(ctx: CanvasRenderingContext2D, x1: number, x2: number, y1: number, x3: number, x4: number, y2: number, mid: number): void;
38
- export declare function onSynClick(event: React.MouseEvent, model: LinearSyntenyDisplayModel): import("../model").FeatPos | undefined;
39
- export declare function onSynContextClick(event: React.MouseEvent, model: LinearSyntenyDisplayModel, setAnchorEl: (arg: ClickCoord) => void): void;
40
- export declare function getTooltip({ feature, cigarOp, cigarOpLen, }: {
41
- feature: Feature;
42
- cigarOpLen?: string;
43
- cigarOp?: string;
44
- }): string;
45
- export {};