@jbrowse/plugin-linear-genome-view 2.6.1 → 2.6.2

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 (370) hide show
  1. package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -1
  2. package/dist/BaseLinearDisplay/components/Block.js +0 -1
  3. package/dist/BaseLinearDisplay/components/BlockMsg.js +0 -1
  4. package/dist/BaseLinearDisplay/components/LinearBlocks.js +0 -1
  5. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -1
  6. package/dist/BaseLinearDisplay/components/TooLargeMessage.js +0 -1
  7. package/dist/BaseLinearDisplay/components/Tooltip.js +0 -1
  8. package/dist/BaseLinearDisplay/index.js +0 -1
  9. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +0 -1
  10. package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +0 -1
  11. package/dist/BaseLinearDisplay/models/TrackHeightMixin.js +0 -1
  12. package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js +0 -1
  13. package/dist/BaseLinearDisplay/models/configSchema.js +0 -1
  14. package/dist/BaseLinearDisplay/models/renderSvg.js +0 -1
  15. package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +0 -1
  16. package/dist/BaseLinearDisplay/models/util.js +0 -1
  17. package/dist/BasicTrack/configSchema.js +0 -1
  18. package/dist/BasicTrack/index.js +0 -1
  19. package/dist/FeatureTrack/configSchema.js +0 -1
  20. package/dist/FeatureTrack/index.js +0 -1
  21. package/dist/LaunchLinearGenomeView/index.js +0 -1
  22. package/dist/LinearBareDisplay/configSchema.js +0 -1
  23. package/dist/LinearBareDisplay/index.js +0 -1
  24. package/dist/LinearBareDisplay/model.js +0 -1
  25. package/dist/LinearBasicDisplay/components/SetMaxHeight.js +0 -1
  26. package/dist/LinearBasicDisplay/configSchema.js +0 -1
  27. package/dist/LinearBasicDisplay/index.js +0 -1
  28. package/dist/LinearBasicDisplay/model.js +0 -1
  29. package/dist/LinearGenomeView/components/CenterLine.js +0 -1
  30. package/dist/LinearGenomeView/components/Cytobands.js +0 -1
  31. package/dist/LinearGenomeView/components/ExportSvgDialog.js +0 -1
  32. package/dist/LinearGenomeView/components/GetSequenceDialog.js +0 -1
  33. package/dist/LinearGenomeView/components/Gridlines.js +0 -1
  34. package/dist/LinearGenomeView/components/Header.js +0 -1
  35. package/dist/LinearGenomeView/components/ImportForm.js +0 -1
  36. package/dist/LinearGenomeView/components/LinearGenomeView.js +0 -1
  37. package/dist/LinearGenomeView/components/MiniControls.js +0 -1
  38. package/dist/LinearGenomeView/components/OverviewRubberband.js +0 -1
  39. package/dist/LinearGenomeView/components/OverviewScalebar.js +0 -1
  40. package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +0 -1
  41. package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +0 -1
  42. package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +0 -1
  43. package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js +0 -1
  44. package/dist/LinearGenomeView/components/RefNameAutocomplete/util.js +0 -1
  45. package/dist/LinearGenomeView/components/Rubberband.js +0 -1
  46. package/dist/LinearGenomeView/components/RubberbandSpan.js +0 -1
  47. package/dist/LinearGenomeView/components/Scalebar.js +0 -1
  48. package/dist/LinearGenomeView/components/SearchBox.js +0 -1
  49. package/dist/LinearGenomeView/components/SearchResultsDialog.js +0 -1
  50. package/dist/LinearGenomeView/components/SearchResultsTable.js +0 -1
  51. package/dist/LinearGenomeView/components/SequenceSearchDialog.js +0 -1
  52. package/dist/LinearGenomeView/components/TrackContainer.js +0 -1
  53. package/dist/LinearGenomeView/components/TrackLabel.js +1 -2
  54. package/dist/LinearGenomeView/components/TrackLabelContainer.js +0 -1
  55. package/dist/LinearGenomeView/components/TrackRenderingContainer.js +0 -1
  56. package/dist/LinearGenomeView/components/TracksContainer.js +0 -1
  57. package/dist/LinearGenomeView/components/VerticalGuide.js +0 -1
  58. package/dist/LinearGenomeView/components/ZoomControls.js +0 -1
  59. package/dist/LinearGenomeView/components/hooks.js +0 -1
  60. package/dist/LinearGenomeView/components/util.js +0 -1
  61. package/dist/LinearGenomeView/index.js +0 -1
  62. package/dist/LinearGenomeView/model.js +0 -1
  63. package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +0 -1
  64. package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +0 -1
  65. package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +0 -1
  66. package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -1
  67. package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +0 -1
  68. package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -1
  69. package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -1
  70. package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +0 -1
  71. package/dist/LinearGenomeView/util.js +0 -1
  72. package/dist/index.js +0 -1
  73. package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -1
  74. package/esm/BaseLinearDisplay/components/Block.js +0 -1
  75. package/esm/BaseLinearDisplay/components/BlockMsg.js +0 -1
  76. package/esm/BaseLinearDisplay/components/LinearBlocks.js +0 -1
  77. package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -1
  78. package/esm/BaseLinearDisplay/components/TooLargeMessage.js +0 -1
  79. package/esm/BaseLinearDisplay/components/Tooltip.js +0 -1
  80. package/esm/BaseLinearDisplay/index.js +0 -1
  81. package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +0 -1
  82. package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js +0 -1
  83. package/esm/BaseLinearDisplay/models/TrackHeightMixin.js +0 -1
  84. package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.js +0 -1
  85. package/esm/BaseLinearDisplay/models/configSchema.js +0 -1
  86. package/esm/BaseLinearDisplay/models/renderSvg.js +0 -1
  87. package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +0 -1
  88. package/esm/BaseLinearDisplay/models/util.js +0 -1
  89. package/esm/BasicTrack/configSchema.js +0 -1
  90. package/esm/BasicTrack/index.js +0 -1
  91. package/esm/FeatureTrack/configSchema.js +0 -1
  92. package/esm/FeatureTrack/index.js +0 -1
  93. package/esm/LaunchLinearGenomeView/index.js +0 -1
  94. package/esm/LinearBareDisplay/configSchema.js +0 -1
  95. package/esm/LinearBareDisplay/index.js +0 -1
  96. package/esm/LinearBareDisplay/model.js +0 -1
  97. package/esm/LinearBasicDisplay/components/SetMaxHeight.js +0 -1
  98. package/esm/LinearBasicDisplay/configSchema.js +0 -1
  99. package/esm/LinearBasicDisplay/index.js +0 -1
  100. package/esm/LinearBasicDisplay/model.js +0 -1
  101. package/esm/LinearGenomeView/components/CenterLine.js +0 -1
  102. package/esm/LinearGenomeView/components/Cytobands.js +0 -1
  103. package/esm/LinearGenomeView/components/ExportSvgDialog.js +0 -1
  104. package/esm/LinearGenomeView/components/GetSequenceDialog.js +0 -1
  105. package/esm/LinearGenomeView/components/Gridlines.js +0 -1
  106. package/esm/LinearGenomeView/components/Header.js +0 -1
  107. package/esm/LinearGenomeView/components/ImportForm.js +0 -1
  108. package/esm/LinearGenomeView/components/LinearGenomeView.js +0 -1
  109. package/esm/LinearGenomeView/components/MiniControls.js +0 -1
  110. package/esm/LinearGenomeView/components/OverviewRubberband.js +0 -1
  111. package/esm/LinearGenomeView/components/OverviewScalebar.js +0 -1
  112. package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +0 -1
  113. package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +0 -1
  114. package/esm/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +0 -1
  115. package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js +0 -1
  116. package/esm/LinearGenomeView/components/RefNameAutocomplete/util.js +0 -1
  117. package/esm/LinearGenomeView/components/Rubberband.js +0 -1
  118. package/esm/LinearGenomeView/components/RubberbandSpan.js +0 -1
  119. package/esm/LinearGenomeView/components/Scalebar.js +0 -1
  120. package/esm/LinearGenomeView/components/SearchBox.js +0 -1
  121. package/esm/LinearGenomeView/components/SearchResultsDialog.js +0 -1
  122. package/esm/LinearGenomeView/components/SearchResultsTable.js +0 -1
  123. package/esm/LinearGenomeView/components/SequenceSearchDialog.js +0 -1
  124. package/esm/LinearGenomeView/components/TrackContainer.js +0 -1
  125. package/esm/LinearGenomeView/components/TrackLabel.js +1 -2
  126. package/esm/LinearGenomeView/components/TrackLabelContainer.js +0 -1
  127. package/esm/LinearGenomeView/components/TrackRenderingContainer.js +0 -1
  128. package/esm/LinearGenomeView/components/TracksContainer.js +0 -1
  129. package/esm/LinearGenomeView/components/VerticalGuide.js +0 -1
  130. package/esm/LinearGenomeView/components/ZoomControls.js +0 -1
  131. package/esm/LinearGenomeView/components/hooks.js +0 -1
  132. package/esm/LinearGenomeView/components/util.js +0 -1
  133. package/esm/LinearGenomeView/index.js +0 -1
  134. package/esm/LinearGenomeView/model.js +0 -1
  135. package/esm/LinearGenomeView/svgcomponents/SVGBackground.js +0 -1
  136. package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +0 -1
  137. package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +0 -1
  138. package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -1
  139. package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +0 -1
  140. package/esm/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -1
  141. package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -1
  142. package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +0 -1
  143. package/esm/LinearGenomeView/util.js +0 -1
  144. package/esm/index.js +0 -1
  145. package/package.json +3 -4
  146. package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js.map +0 -1
  147. package/dist/BaseLinearDisplay/components/Block.js.map +0 -1
  148. package/dist/BaseLinearDisplay/components/BlockMsg.js.map +0 -1
  149. package/dist/BaseLinearDisplay/components/LinearBlocks.js.map +0 -1
  150. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +0 -1
  151. package/dist/BaseLinearDisplay/components/TooLargeMessage.js.map +0 -1
  152. package/dist/BaseLinearDisplay/components/Tooltip.js.map +0 -1
  153. package/dist/BaseLinearDisplay/index.js.map +0 -1
  154. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +0 -1
  155. package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js.map +0 -1
  156. package/dist/BaseLinearDisplay/models/TrackHeightMixin.js.map +0 -1
  157. package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js.map +0 -1
  158. package/dist/BaseLinearDisplay/models/configSchema.js.map +0 -1
  159. package/dist/BaseLinearDisplay/models/renderSvg.js.map +0 -1
  160. package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +0 -1
  161. package/dist/BaseLinearDisplay/models/util.js.map +0 -1
  162. package/dist/BasicTrack/configSchema.js.map +0 -1
  163. package/dist/BasicTrack/index.js.map +0 -1
  164. package/dist/FeatureTrack/configSchema.js.map +0 -1
  165. package/dist/FeatureTrack/index.js.map +0 -1
  166. package/dist/LaunchLinearGenomeView/index.js.map +0 -1
  167. package/dist/LinearBareDisplay/configSchema.js.map +0 -1
  168. package/dist/LinearBareDisplay/index.js.map +0 -1
  169. package/dist/LinearBareDisplay/model.js.map +0 -1
  170. package/dist/LinearBasicDisplay/components/SetMaxHeight.js.map +0 -1
  171. package/dist/LinearBasicDisplay/configSchema.js.map +0 -1
  172. package/dist/LinearBasicDisplay/index.js.map +0 -1
  173. package/dist/LinearBasicDisplay/model.js.map +0 -1
  174. package/dist/LinearGenomeView/components/CenterLine.js.map +0 -1
  175. package/dist/LinearGenomeView/components/Cytobands.js.map +0 -1
  176. package/dist/LinearGenomeView/components/ExportSvgDialog.js.map +0 -1
  177. package/dist/LinearGenomeView/components/GetSequenceDialog.js.map +0 -1
  178. package/dist/LinearGenomeView/components/Gridlines.js.map +0 -1
  179. package/dist/LinearGenomeView/components/Header.js.map +0 -1
  180. package/dist/LinearGenomeView/components/ImportForm.js.map +0 -1
  181. package/dist/LinearGenomeView/components/LinearGenomeView.js.map +0 -1
  182. package/dist/LinearGenomeView/components/MiniControls.js.map +0 -1
  183. package/dist/LinearGenomeView/components/OverviewRubberband.js.map +0 -1
  184. package/dist/LinearGenomeView/components/OverviewScalebar.js.map +0 -1
  185. package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js.map +0 -1
  186. package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js.map +0 -1
  187. package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js.map +0 -1
  188. package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js.map +0 -1
  189. package/dist/LinearGenomeView/components/RefNameAutocomplete/util.js.map +0 -1
  190. package/dist/LinearGenomeView/components/Rubberband.js.map +0 -1
  191. package/dist/LinearGenomeView/components/RubberbandSpan.js.map +0 -1
  192. package/dist/LinearGenomeView/components/Scalebar.js.map +0 -1
  193. package/dist/LinearGenomeView/components/SearchBox.js.map +0 -1
  194. package/dist/LinearGenomeView/components/SearchResultsDialog.js.map +0 -1
  195. package/dist/LinearGenomeView/components/SearchResultsTable.js.map +0 -1
  196. package/dist/LinearGenomeView/components/SequenceSearchDialog.js.map +0 -1
  197. package/dist/LinearGenomeView/components/TrackContainer.js.map +0 -1
  198. package/dist/LinearGenomeView/components/TrackLabel.js.map +0 -1
  199. package/dist/LinearGenomeView/components/TrackLabelContainer.js.map +0 -1
  200. package/dist/LinearGenomeView/components/TrackRenderingContainer.js.map +0 -1
  201. package/dist/LinearGenomeView/components/TracksContainer.js.map +0 -1
  202. package/dist/LinearGenomeView/components/VerticalGuide.js.map +0 -1
  203. package/dist/LinearGenomeView/components/ZoomControls.js.map +0 -1
  204. package/dist/LinearGenomeView/components/hooks.js.map +0 -1
  205. package/dist/LinearGenomeView/components/util.js.map +0 -1
  206. package/dist/LinearGenomeView/index.js.map +0 -1
  207. package/dist/LinearGenomeView/model.js.map +0 -1
  208. package/dist/LinearGenomeView/svgcomponents/SVGBackground.js.map +0 -1
  209. package/dist/LinearGenomeView/svgcomponents/SVGHeader.js.map +0 -1
  210. package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js.map +0 -1
  211. package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js.map +0 -1
  212. package/dist/LinearGenomeView/svgcomponents/SVGRuler.js.map +0 -1
  213. package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js.map +0 -1
  214. package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js.map +0 -1
  215. package/dist/LinearGenomeView/svgcomponents/SVGTracks.js.map +0 -1
  216. package/dist/LinearGenomeView/util.js.map +0 -1
  217. package/dist/index.js.map +0 -1
  218. package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js.map +0 -1
  219. package/esm/BaseLinearDisplay/components/Block.js.map +0 -1
  220. package/esm/BaseLinearDisplay/components/BlockMsg.js.map +0 -1
  221. package/esm/BaseLinearDisplay/components/LinearBlocks.js.map +0 -1
  222. package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +0 -1
  223. package/esm/BaseLinearDisplay/components/TooLargeMessage.js.map +0 -1
  224. package/esm/BaseLinearDisplay/components/Tooltip.js.map +0 -1
  225. package/esm/BaseLinearDisplay/index.js.map +0 -1
  226. package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +0 -1
  227. package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js.map +0 -1
  228. package/esm/BaseLinearDisplay/models/TrackHeightMixin.js.map +0 -1
  229. package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.js.map +0 -1
  230. package/esm/BaseLinearDisplay/models/configSchema.js.map +0 -1
  231. package/esm/BaseLinearDisplay/models/renderSvg.js.map +0 -1
  232. package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +0 -1
  233. package/esm/BaseLinearDisplay/models/util.js.map +0 -1
  234. package/esm/BasicTrack/configSchema.js.map +0 -1
  235. package/esm/BasicTrack/index.js.map +0 -1
  236. package/esm/FeatureTrack/configSchema.js.map +0 -1
  237. package/esm/FeatureTrack/index.js.map +0 -1
  238. package/esm/LaunchLinearGenomeView/index.js.map +0 -1
  239. package/esm/LinearBareDisplay/configSchema.js.map +0 -1
  240. package/esm/LinearBareDisplay/index.js.map +0 -1
  241. package/esm/LinearBareDisplay/model.js.map +0 -1
  242. package/esm/LinearBasicDisplay/components/SetMaxHeight.js.map +0 -1
  243. package/esm/LinearBasicDisplay/configSchema.js.map +0 -1
  244. package/esm/LinearBasicDisplay/index.js.map +0 -1
  245. package/esm/LinearBasicDisplay/model.js.map +0 -1
  246. package/esm/LinearGenomeView/components/CenterLine.js.map +0 -1
  247. package/esm/LinearGenomeView/components/Cytobands.js.map +0 -1
  248. package/esm/LinearGenomeView/components/ExportSvgDialog.js.map +0 -1
  249. package/esm/LinearGenomeView/components/GetSequenceDialog.js.map +0 -1
  250. package/esm/LinearGenomeView/components/Gridlines.js.map +0 -1
  251. package/esm/LinearGenomeView/components/Header.js.map +0 -1
  252. package/esm/LinearGenomeView/components/ImportForm.js.map +0 -1
  253. package/esm/LinearGenomeView/components/LinearGenomeView.js.map +0 -1
  254. package/esm/LinearGenomeView/components/MiniControls.js.map +0 -1
  255. package/esm/LinearGenomeView/components/OverviewRubberband.js.map +0 -1
  256. package/esm/LinearGenomeView/components/OverviewScalebar.js.map +0 -1
  257. package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js.map +0 -1
  258. package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js.map +0 -1
  259. package/esm/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js.map +0 -1
  260. package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js.map +0 -1
  261. package/esm/LinearGenomeView/components/RefNameAutocomplete/util.js.map +0 -1
  262. package/esm/LinearGenomeView/components/Rubberband.js.map +0 -1
  263. package/esm/LinearGenomeView/components/RubberbandSpan.js.map +0 -1
  264. package/esm/LinearGenomeView/components/Scalebar.js.map +0 -1
  265. package/esm/LinearGenomeView/components/SearchBox.js.map +0 -1
  266. package/esm/LinearGenomeView/components/SearchResultsDialog.js.map +0 -1
  267. package/esm/LinearGenomeView/components/SearchResultsTable.js.map +0 -1
  268. package/esm/LinearGenomeView/components/SequenceSearchDialog.js.map +0 -1
  269. package/esm/LinearGenomeView/components/TrackContainer.js.map +0 -1
  270. package/esm/LinearGenomeView/components/TrackLabel.js.map +0 -1
  271. package/esm/LinearGenomeView/components/TrackLabelContainer.js.map +0 -1
  272. package/esm/LinearGenomeView/components/TrackRenderingContainer.js.map +0 -1
  273. package/esm/LinearGenomeView/components/TracksContainer.js.map +0 -1
  274. package/esm/LinearGenomeView/components/VerticalGuide.js.map +0 -1
  275. package/esm/LinearGenomeView/components/ZoomControls.js.map +0 -1
  276. package/esm/LinearGenomeView/components/hooks.js.map +0 -1
  277. package/esm/LinearGenomeView/components/util.js.map +0 -1
  278. package/esm/LinearGenomeView/index.js.map +0 -1
  279. package/esm/LinearGenomeView/model.js.map +0 -1
  280. package/esm/LinearGenomeView/svgcomponents/SVGBackground.js.map +0 -1
  281. package/esm/LinearGenomeView/svgcomponents/SVGHeader.js.map +0 -1
  282. package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js.map +0 -1
  283. package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.js.map +0 -1
  284. package/esm/LinearGenomeView/svgcomponents/SVGRuler.js.map +0 -1
  285. package/esm/LinearGenomeView/svgcomponents/SVGScalebar.js.map +0 -1
  286. package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js.map +0 -1
  287. package/esm/LinearGenomeView/svgcomponents/SVGTracks.js.map +0 -1
  288. package/esm/LinearGenomeView/util.js.map +0 -1
  289. package/esm/index.js.map +0 -1
  290. package/src/BaseLinearDisplay/components/BaseLinearDisplay.tsx +0 -117
  291. package/src/BaseLinearDisplay/components/Block.tsx +0 -77
  292. package/src/BaseLinearDisplay/components/BlockMsg.tsx +0 -42
  293. package/src/BaseLinearDisplay/components/LinearBlocks.tsx +0 -119
  294. package/src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx +0 -69
  295. package/src/BaseLinearDisplay/components/TooLargeMessage.tsx +0 -36
  296. package/src/BaseLinearDisplay/components/Tooltip.tsx +0 -107
  297. package/src/BaseLinearDisplay/index.ts +0 -16
  298. package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +0 -407
  299. package/src/BaseLinearDisplay/models/FeatureDensityMixin.tsx +0 -213
  300. package/src/BaseLinearDisplay/models/TrackHeightMixin.tsx +0 -59
  301. package/src/BaseLinearDisplay/models/autorunFeatureDensityStats.ts +0 -46
  302. package/src/BaseLinearDisplay/models/configSchema.ts +0 -60
  303. package/src/BaseLinearDisplay/models/renderSvg.tsx +0 -101
  304. package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +0 -320
  305. package/src/BaseLinearDisplay/models/util.ts +0 -67
  306. package/src/BasicTrack/configSchema.ts +0 -24
  307. package/src/BasicTrack/index.ts +0 -18
  308. package/src/FeatureTrack/configSchema.ts +0 -28
  309. package/src/FeatureTrack/index.ts +0 -18
  310. package/src/LaunchLinearGenomeView/index.ts +0 -66
  311. package/src/LinearBareDisplay/configSchema.ts +0 -28
  312. package/src/LinearBareDisplay/index.test.js +0 -34
  313. package/src/LinearBareDisplay/index.ts +0 -25
  314. package/src/LinearBareDisplay/model.ts +0 -54
  315. package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +0 -73
  316. package/src/LinearBasicDisplay/configSchema.ts +0 -28
  317. package/src/LinearBasicDisplay/index.ts +0 -25
  318. package/src/LinearBasicDisplay/model.ts +0 -215
  319. package/src/LinearGenomeView/README.md +0 -9
  320. package/src/LinearGenomeView/components/CenterLine.tsx +0 -65
  321. package/src/LinearGenomeView/components/Cytobands.tsx +0 -154
  322. package/src/LinearGenomeView/components/ExportSvgDialog.tsx +0 -149
  323. package/src/LinearGenomeView/components/GetSequenceDialog.tsx +0 -269
  324. package/src/LinearGenomeView/components/Gridlines.tsx +0 -119
  325. package/src/LinearGenomeView/components/Header.tsx +0 -126
  326. package/src/LinearGenomeView/components/ImportForm.tsx +0 -217
  327. package/src/LinearGenomeView/components/LinearGenomeView.test.tsx +0 -167
  328. package/src/LinearGenomeView/components/LinearGenomeView.tsx +0 -75
  329. package/src/LinearGenomeView/components/MiniControls.tsx +0 -54
  330. package/src/LinearGenomeView/components/OverviewRubberband.tsx +0 -219
  331. package/src/LinearGenomeView/components/OverviewScalebar.tsx +0 -351
  332. package/src/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.tsx +0 -53
  333. package/src/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.tsx +0 -44
  334. package/src/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.tsx +0 -69
  335. package/src/LinearGenomeView/components/RefNameAutocomplete/index.tsx +0 -160
  336. package/src/LinearGenomeView/components/RefNameAutocomplete/util.ts +0 -65
  337. package/src/LinearGenomeView/components/Rubberband.tsx +0 -89
  338. package/src/LinearGenomeView/components/RubberbandSpan.tsx +0 -99
  339. package/src/LinearGenomeView/components/Scalebar.test.tsx +0 -145
  340. package/src/LinearGenomeView/components/Scalebar.tsx +0 -199
  341. package/src/LinearGenomeView/components/SearchBox.tsx +0 -123
  342. package/src/LinearGenomeView/components/SearchResultsDialog.tsx +0 -57
  343. package/src/LinearGenomeView/components/SearchResultsTable.tsx +0 -121
  344. package/src/LinearGenomeView/components/SequenceSearchDialog.tsx +0 -136
  345. package/src/LinearGenomeView/components/TrackContainer.tsx +0 -92
  346. package/src/LinearGenomeView/components/TrackLabel.tsx +0 -123
  347. package/src/LinearGenomeView/components/TrackLabelContainer.tsx +0 -48
  348. package/src/LinearGenomeView/components/TrackRenderingContainer.tsx +0 -96
  349. package/src/LinearGenomeView/components/TracksContainer.tsx +0 -114
  350. package/src/LinearGenomeView/components/VerticalGuide.tsx +0 -37
  351. package/src/LinearGenomeView/components/ZoomControls.tsx +0 -62
  352. package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.tsx.snap +0 -1520
  353. package/src/LinearGenomeView/components/hooks.ts +0 -306
  354. package/src/LinearGenomeView/components/util.ts +0 -76
  355. package/src/LinearGenomeView/hg38DisplayedRegions.json +0 -3187
  356. package/src/LinearGenomeView/index.test.ts +0 -993
  357. package/src/LinearGenomeView/index.ts +0 -17
  358. package/src/LinearGenomeView/model.ts +0 -1533
  359. package/src/LinearGenomeView/svgcomponents/SVGBackground.tsx +0 -21
  360. package/src/LinearGenomeView/svgcomponents/SVGHeader.tsx +0 -95
  361. package/src/LinearGenomeView/svgcomponents/SVGLinearGenomeView.tsx +0 -114
  362. package/src/LinearGenomeView/svgcomponents/SVGRegionSeparators.tsx +0 -31
  363. package/src/LinearGenomeView/svgcomponents/SVGRuler.tsx +0 -125
  364. package/src/LinearGenomeView/svgcomponents/SVGScalebar.tsx +0 -57
  365. package/src/LinearGenomeView/svgcomponents/SVGTrackLabel.tsx +0 -47
  366. package/src/LinearGenomeView/svgcomponents/SVGTracks.tsx +0 -67
  367. package/src/LinearGenomeView/util.test.ts +0 -33
  368. package/src/LinearGenomeView/util.ts +0 -182
  369. package/src/LinearGenomeView/volvoxDisplayedRegions.json +0 -16
  370. package/src/index.ts +0 -91
@@ -1,154 +0,0 @@
1
- import React from 'react'
2
- import { observer } from 'mobx-react'
3
-
4
- // core
5
- import { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel'
6
- import { ContentBlock } from '@jbrowse/core/util/blockTypes'
7
- import { Assembly } from '@jbrowse/core/assemblyManager/assembly'
8
-
9
- // locals
10
- import { HEADER_OVERVIEW_HEIGHT } from '..'
11
- import { getCytobands } from './util'
12
-
13
- // rounded rect from https://stackoverflow.com/a/45889603/2129219
14
- // prettier-ignore
15
- function rightRoundedRect(x: number, y: number, width: number, height: number, radius: number) {
16
- return "M" + x + "," + y
17
- + "h" + (width - radius)
18
- + "a" + radius + "," + radius + " 0 0 1 " + radius + "," + radius
19
- + "v" + (height - 2 * radius)
20
- + "a" + radius + "," + radius + " 0 0 1 " + -radius + "," + radius
21
- + "h" + (radius - width)
22
- + "z";
23
- }
24
-
25
- // prettier-ignore
26
- function leftRoundedRect(x: number, y: number, width: number, height: number, radius: number ) {
27
- return "M" + (x + radius) + "," + y
28
- + "h" + (width - radius)
29
- + "v" + height
30
- + "h" + (radius - width)
31
- + "a" + radius + "," + radius + " 0 0 1 " + (-radius) + "," + (-radius)
32
- + "v" + (2 * radius - height)
33
- + "a" + radius + "," + radius + " 0 0 1 " + radius + "," + (-radius)
34
- + "z";
35
- }
36
-
37
- const colorMap: { [key: string]: string | undefined } = {
38
- gneg: 'rgb(227,227,227)',
39
- gpos25: 'rgb(142,142,142)',
40
- gpos50: 'rgb(85,85,85)',
41
- gpos100: 'rgb(0,0,0)',
42
- gpos75: 'rgb(57,57,57)',
43
- gvar: 'rgb(0,0,0)',
44
- stalk: 'rgb(127,127,127)',
45
- acen: '#800',
46
- }
47
-
48
- export default observer(function Cytobands({
49
- overview,
50
- block,
51
- assembly,
52
- }: {
53
- overview: Base1DViewModel
54
- assembly?: Assembly
55
- block: ContentBlock
56
- }) {
57
- const { offsetPx, reversed } = block
58
- const cytobands = getCytobands(assembly, block.refName)
59
- const coords = cytobands.map(f => {
60
- const { refName, start, end, type } = f
61
- return [
62
- overview.bpToPx({
63
- refName,
64
- coord: start,
65
- }),
66
- overview.bpToPx({
67
- refName,
68
- coord: end,
69
- }),
70
- type,
71
- ]
72
- })
73
-
74
- const arr = cytobands || []
75
- const lcap = reversed ? arr.length - 1 : 0
76
- const rcap = reversed ? 0 : arr.length - 1
77
-
78
- let firstCent = true
79
- return (
80
- <g transform={`translate(-${offsetPx})`}>
81
- {coords.map(([start, end, type], index) => {
82
- const key = `${start}-${end}-${type}`
83
- if (type === 'acen' && firstCent) {
84
- firstCent = false
85
- return (
86
- <polygon
87
- key={key}
88
- points={[
89
- [start, 0],
90
- [end, HEADER_OVERVIEW_HEIGHT / 2],
91
- [start, HEADER_OVERVIEW_HEIGHT],
92
- ].toString()}
93
- fill={colorMap[type]}
94
- />
95
- )
96
- }
97
- if (type === 'acen' && !firstCent) {
98
- return (
99
- <polygon
100
- key={key}
101
- points={[
102
- [start, HEADER_OVERVIEW_HEIGHT / 2],
103
- [end, 0],
104
- [end, HEADER_OVERVIEW_HEIGHT],
105
- ].toString()}
106
- fill={colorMap[type]}
107
- />
108
- )
109
- }
110
-
111
- if (lcap === index) {
112
- return (
113
- <path
114
- key={key}
115
- d={leftRoundedRect(
116
- Math.min(start, end),
117
- 0,
118
- Math.abs(end - start),
119
- HEADER_OVERVIEW_HEIGHT,
120
- 8,
121
- )}
122
- fill={colorMap[type]}
123
- />
124
- )
125
- } else if (rcap === index) {
126
- return (
127
- <path
128
- key={key}
129
- d={rightRoundedRect(
130
- Math.min(start, end),
131
- 0,
132
- Math.abs(end - start) - 2,
133
- HEADER_OVERVIEW_HEIGHT,
134
- 8,
135
- )}
136
- fill={colorMap[type]}
137
- />
138
- )
139
- } else {
140
- return (
141
- <rect
142
- key={key}
143
- x={Math.min(start, end)}
144
- y={0}
145
- width={Math.abs(end - start)}
146
- height={HEADER_OVERVIEW_HEIGHT}
147
- fill={colorMap[type]}
148
- />
149
- )
150
- }
151
- })}
152
- </g>
153
- )
154
- })
@@ -1,149 +0,0 @@
1
- import React, { useState } from 'react'
2
- import {
3
- Button,
4
- Checkbox,
5
- CircularProgress,
6
- DialogActions,
7
- DialogContent,
8
- FormControlLabel,
9
- MenuItem,
10
- TextField,
11
- Typography,
12
- } from '@mui/material'
13
- import { Dialog, ErrorMessage } from '@jbrowse/core/ui'
14
- import { getSession, useLocalStorage } from '@jbrowse/core/util'
15
-
16
- // locals
17
- import { ExportSvgOptions } from '..'
18
-
19
- function LoadingMessage() {
20
- return (
21
- <div>
22
- <CircularProgress size={20} style={{ marginRight: 20 }} />
23
- <Typography display="inline">Creating SVG</Typography>
24
- </div>
25
- )
26
- }
27
-
28
- function useSvgLocal<T>(key: string, val: T) {
29
- return useLocalStorage('svg-' + key, val)
30
- }
31
-
32
- export default function ExportSvgDlg({
33
- model,
34
- handleClose,
35
- }: {
36
- model: { exportSvg(opts: ExportSvgOptions): Promise<void> }
37
- handleClose: () => void
38
- }) {
39
- const session = getSession(model)
40
- const offscreenCanvas = typeof OffscreenCanvas !== 'undefined'
41
- const [rasterizeLayers, setRasterizeLayers] = useState(offscreenCanvas)
42
- const [loading, setLoading] = useState(false)
43
- const [error, setError] = useState<unknown>()
44
- const [filename, setFilename] = useSvgLocal('file', 'jbrowse.svg')
45
- const [trackLabels, setTrackLabels] = useSvgLocal('tracklabels', 'offset')
46
- const [themeName, setThemeName] = useSvgLocal(
47
- 'theme',
48
- session.themeName || 'default',
49
- )
50
- return (
51
- <Dialog open onClose={handleClose} title="Export SVG">
52
- <DialogContent>
53
- {error ? (
54
- <ErrorMessage error={error} />
55
- ) : loading ? (
56
- <LoadingMessage />
57
- ) : null}
58
- <TextField
59
- helperText="filename"
60
- value={filename}
61
- onChange={event => setFilename(event.target.value)}
62
- />
63
- <br />
64
- <TextField
65
- select
66
- label="Track label positioning"
67
- variant="outlined"
68
- style={{ width: 150 }}
69
- value={trackLabels}
70
- onChange={event => setTrackLabels(event.target.value)}
71
- >
72
- <MenuItem value="offset">Offset</MenuItem>
73
- <MenuItem value="overlay">Overlay</MenuItem>
74
- <MenuItem value="left">Left</MenuItem>
75
- <MenuItem value="none">None</MenuItem>
76
- </TextField>
77
- <br />
78
- {session.allThemes ? (
79
- <TextField
80
- select
81
- label="Theme"
82
- variant="outlined"
83
- value={themeName}
84
- onChange={event => setThemeName(event.target.value)}
85
- >
86
- {Object.entries(session.allThemes()).map(([key, val]) => (
87
- <MenuItem key={key} value={key}>
88
- {
89
- // @ts-expect-error
90
- val.name || '(Unknown name)'
91
- }
92
- </MenuItem>
93
- ))}
94
- </TextField>
95
- ) : null}
96
-
97
- {offscreenCanvas ? (
98
- <FormControlLabel
99
- control={
100
- <Checkbox
101
- checked={rasterizeLayers}
102
- onChange={() => setRasterizeLayers(val => !val)}
103
- />
104
- }
105
- label="Rasterize canvas based tracks? File may be much larger if this is turned off"
106
- />
107
- ) : (
108
- <Typography>
109
- Note: rasterizing layers not yet supported in this browser, so SVG
110
- size may be large
111
- </Typography>
112
- )}
113
- </DialogContent>
114
- <DialogActions>
115
- <Button
116
- variant="contained"
117
- color="secondary"
118
- onClick={() => handleClose()}
119
- >
120
- Cancel
121
- </Button>
122
- <Button
123
- variant="contained"
124
- color="primary"
125
- type="submit"
126
- onClick={async () => {
127
- setLoading(true)
128
- setError(undefined)
129
- try {
130
- await model.exportSvg({
131
- rasterizeLayers,
132
- filename,
133
- trackLabels,
134
- themeName,
135
- })
136
- handleClose()
137
- } catch (e) {
138
- console.error(e)
139
- setError(e)
140
- setLoading(false)
141
- }
142
- }}
143
- >
144
- Submit
145
- </Button>
146
- </DialogActions>
147
- </Dialog>
148
- )
149
- }
@@ -1,269 +0,0 @@
1
- import React, { useEffect, useState } from 'react'
2
- import { makeStyles } from 'tss-react/mui'
3
- import {
4
- Button,
5
- Checkbox,
6
- CircularProgress,
7
- Container,
8
- DialogActions,
9
- DialogContent,
10
- FormGroup,
11
- FormControlLabel,
12
- TextField,
13
- Typography,
14
- } from '@mui/material'
15
- import { observer } from 'mobx-react'
16
- import { saveAs } from 'file-saver'
17
- import { getConf } from '@jbrowse/core/configuration'
18
- import copy from 'copy-to-clipboard'
19
- import { Dialog } from '@jbrowse/core/ui'
20
- import {
21
- getSession,
22
- reverse,
23
- complement,
24
- Feature,
25
- Region,
26
- } from '@jbrowse/core/util'
27
- import { formatSeqFasta } from '@jbrowse/core/util/formatFastaStrings'
28
-
29
- // icons
30
- import { ContentCopy as ContentCopyIcon } from '@jbrowse/core/ui/Icons'
31
- import GetAppIcon from '@mui/icons-material/GetApp'
32
-
33
- // locals
34
- import { LinearGenomeViewModel } from '..'
35
-
36
- const useStyles = makeStyles()({
37
- dialogContent: {
38
- width: '80em',
39
- },
40
- textAreaFont: {
41
- fontFamily: 'Courier New',
42
- },
43
- })
44
-
45
- type LGV = LinearGenomeViewModel
46
-
47
- /**
48
- * Fetches and returns a list features for a given list of regions
49
- */
50
- async function fetchSequence(
51
- model: LGV,
52
- regions: Region[],
53
- signal?: AbortSignal,
54
- ) {
55
- const session = getSession(model)
56
- const { leftOffset, rightOffset } = model
57
-
58
- if (!leftOffset || !rightOffset) {
59
- throw new Error('no offsets on model to use for range')
60
- }
61
-
62
- if (leftOffset.assemblyName !== rightOffset.assemblyName) {
63
- throw new Error('not able to fetch sequences from multiple assemblies')
64
- }
65
- const { rpcManager, assemblyManager } = session
66
- const assemblyName = leftOffset.assemblyName || rightOffset.assemblyName || ''
67
- const assembly = assemblyManager.get(assemblyName)
68
- if (!assembly) {
69
- throw new Error(`assembly ${assemblyName} not found`)
70
- }
71
- const adapterConfig = getConf(assembly, ['sequence', 'adapter'])
72
-
73
- const sessionId = 'getSequence'
74
- return rpcManager.call(sessionId, 'CoreGetFeatures', {
75
- adapterConfig,
76
- regions,
77
- sessionId,
78
- signal,
79
- }) as Promise<Feature[]>
80
- }
81
-
82
- function SequenceDialog({
83
- model,
84
- handleClose,
85
- }: {
86
- model: LGV
87
- handleClose: () => void
88
- }) {
89
- const { classes } = useStyles()
90
- const session = getSession(model)
91
- const [error, setError] = useState<unknown>()
92
- const [sequenceChunks, setSequenceChunks] = useState<Feature[]>()
93
- const [rev, setReverse] = useState(false)
94
- const [copied, setCopied] = useState(false)
95
- const [comp, setComplement] = useState(false)
96
- const { leftOffset, rightOffset } = model
97
- const loading = Boolean(sequenceChunks === undefined)
98
-
99
- useEffect(() => {
100
- let active = true
101
- const controller = new AbortController()
102
-
103
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
104
- ;(async () => {
105
- try {
106
- // random note: the current selected region can't be a computed because
107
- // it uses action on base1dview even though it's on the ephemeral
108
- // base1dview
109
- const selection = model.getSelectedRegions(leftOffset, rightOffset)
110
- if (selection.length === 0) {
111
- throw new Error('Selected region is out of bounds')
112
- }
113
- const chunks = await fetchSequence(model, selection, controller.signal)
114
- if (active) {
115
- setSequenceChunks(chunks)
116
- }
117
- } catch (e) {
118
- console.error(e)
119
- if (active) {
120
- setError(e)
121
- }
122
- }
123
- })()
124
-
125
- return () => {
126
- controller.abort()
127
- active = false
128
- }
129
- }, [model, session, leftOffset, rightOffset])
130
-
131
- const sequence = sequenceChunks
132
- ? formatSeqFasta(
133
- sequenceChunks
134
- .filter(f => !!f)
135
- .map(chunk => {
136
- let chunkSeq = chunk.get('seq')
137
- const chunkRefName = chunk.get('refName')
138
- const chunkStart = chunk.get('start') + 1
139
- const chunkEnd = chunk.get('end')
140
- const loc = `${chunkRefName}:${chunkStart}-${chunkEnd}`
141
- if (chunkSeq?.length !== chunkEnd - chunkStart + 1) {
142
- throw new Error(
143
- `${loc} returned ${chunkSeq.length.toLocaleString()} bases, but should have returned ${(
144
- chunkEnd - chunkStart
145
- ).toLocaleString()}`,
146
- )
147
- }
148
-
149
- if (rev) {
150
- chunkSeq = reverse(chunkSeq)
151
- }
152
- if (comp) {
153
- chunkSeq = complement(chunkSeq)
154
- }
155
- return {
156
- header: loc + (rev ? '-rev' : '') + (comp ? '-comp' : ''),
157
- seq: chunkSeq,
158
- }
159
- }),
160
- )
161
- : ''
162
-
163
- const sequenceTooLarge = sequence ? sequence.length > 1_000_000 : false
164
-
165
- return (
166
- <Dialog
167
- maxWidth="xl"
168
- open
169
- onClose={() => {
170
- handleClose()
171
- model.setOffsets()
172
- }}
173
- title="Reference sequence"
174
- >
175
- <DialogContent>
176
- {error ? (
177
- <Typography color="error">{`${error}`}</Typography>
178
- ) : loading ? (
179
- <Container>
180
- Retrieving reference sequence...
181
- <CircularProgress
182
- style={{ marginLeft: 10 }}
183
- size={20}
184
- disableShrink
185
- />
186
- </Container>
187
- ) : null}
188
- <TextField
189
- data-testid="rubberband-sequence"
190
- variant="outlined"
191
- multiline
192
- minRows={5}
193
- maxRows={10}
194
- disabled={sequenceTooLarge}
195
- className={classes.dialogContent}
196
- fullWidth
197
- value={
198
- sequenceTooLarge
199
- ? 'Reference sequence too large to display, use the download FASTA button'
200
- : sequence
201
- }
202
- InputProps={{
203
- readOnly: true,
204
- classes: {
205
- input: classes.textAreaFont,
206
- },
207
- }}
208
- />
209
- <FormGroup>
210
- <FormControlLabel
211
- control={
212
- <Checkbox
213
- value={rev}
214
- onChange={event => setReverse(event.target.checked)}
215
- />
216
- }
217
- label="Reverse sequence"
218
- />
219
- <FormControlLabel
220
- control={
221
- <Checkbox
222
- value={comp}
223
- onChange={event => setComplement(event.target.checked)}
224
- />
225
- }
226
- label="Complement sequence"
227
- />
228
- </FormGroup>
229
- <Typography style={{ margin: 10 }}>
230
- Note: Check both boxes for the "reverse complement"
231
- </Typography>
232
- </DialogContent>
233
- <DialogActions>
234
- <Button
235
- onClick={() => {
236
- copy(sequence)
237
- setCopied(true)
238
- setTimeout(() => setCopied(false), 500)
239
- }}
240
- disabled={loading || !!error || sequenceTooLarge}
241
- color="primary"
242
- startIcon={<ContentCopyIcon />}
243
- >
244
- {copied ? 'Copied' : 'Copy to clipboard'}
245
- </Button>
246
- <Button
247
- onClick={() => {
248
- saveAs(
249
- new Blob([sequence || ''], {
250
- type: 'text/x-fasta;charset=utf-8',
251
- }),
252
- 'jbrowse_ref_seq.fa',
253
- )
254
- }}
255
- disabled={loading || !!error}
256
- color="primary"
257
- startIcon={<GetAppIcon />}
258
- >
259
- Download FASTA
260
- </Button>
261
- <Button onClick={handleClose} variant="contained">
262
- Close
263
- </Button>
264
- </DialogActions>
265
- </Dialog>
266
- )
267
- }
268
-
269
- export default observer(SequenceDialog)
@@ -1,119 +0,0 @@
1
- import React from 'react'
2
- import {
3
- ContentBlock,
4
- ElidedBlock,
5
- InterRegionPaddingBlock,
6
- } from '@jbrowse/core/util/blockTypes'
7
- import { makeStyles } from 'tss-react/mui'
8
- import { observer } from 'mobx-react'
9
- import { LinearGenomeViewModel } from '..'
10
- import {
11
- ContentBlock as ContentBlockComponent,
12
- ElidedBlock as ElidedBlockComponent,
13
- InterRegionPaddingBlock as InterRegionPaddingBlockComponent,
14
- } from '../../BaseLinearDisplay/components/Block'
15
-
16
- import { makeTicks } from '../util'
17
-
18
- type LGV = LinearGenomeViewModel
19
-
20
- const useStyles = makeStyles()(theme => ({
21
- verticalGuidesZoomContainer: {
22
- position: 'absolute',
23
- height: '100%',
24
- width: '100%',
25
- zIndex: 1,
26
- pointerEvents: 'none',
27
- },
28
- verticalGuidesContainer: {
29
- position: 'absolute',
30
- height: '100%',
31
- zIndex: 1,
32
- pointerEvents: 'none',
33
- display: 'flex',
34
- },
35
- tick: {
36
- position: 'absolute',
37
- height: '100%',
38
- width: 1,
39
- },
40
- majorTick: {
41
- background: theme.palette.action.disabled,
42
- },
43
- minorTick: {
44
- background: theme.palette.divider,
45
- },
46
- }))
47
- const RenderedVerticalGuides = observer(({ model }: { model: LGV }) => {
48
- const { classes, cx } = useStyles()
49
- return (
50
- <>
51
- {model.staticBlocks.map((block, index) => {
52
- if (block instanceof ContentBlock) {
53
- const ticks = makeTicks(block.start, block.end, model.bpPerPx)
54
- return (
55
- <ContentBlockComponent key={`${block.key}-${index}`} block={block}>
56
- {ticks.map(tick => {
57
- const x =
58
- (block.reversed
59
- ? block.end - tick.base
60
- : tick.base - block.start) / model.bpPerPx
61
- return (
62
- <div
63
- key={tick.base}
64
- className={cx(
65
- classes.tick,
66
- tick.type === 'major' || tick.type === 'labeledMajor'
67
- ? classes.majorTick
68
- : classes.minorTick,
69
- )}
70
- style={{ left: x }}
71
- />
72
- )
73
- })}
74
- </ContentBlockComponent>
75
- )
76
- }
77
- if (block instanceof ElidedBlock) {
78
- return <ElidedBlockComponent key={block.key} width={block.widthPx} />
79
- }
80
- if (block instanceof InterRegionPaddingBlock) {
81
- return (
82
- <InterRegionPaddingBlockComponent
83
- key={block.key}
84
- width={block.widthPx}
85
- boundary={block.variant === 'boundary'}
86
- />
87
- )
88
- }
89
- return null
90
- })}
91
- </>
92
- )
93
- })
94
- function VerticalGuides({ model }: { model: LGV }) {
95
- const { classes } = useStyles()
96
- // find the block that needs pinning to the left side for context
97
- const offsetLeft = model.staticBlocks.offsetPx - model.offsetPx
98
- return (
99
- <div
100
- className={classes.verticalGuidesZoomContainer}
101
- style={{
102
- transform:
103
- model.scaleFactor !== 1 ? `scaleX(${model.scaleFactor})` : undefined,
104
- }}
105
- >
106
- <div
107
- className={classes.verticalGuidesContainer}
108
- style={{
109
- left: offsetLeft,
110
- width: model.staticBlocks.totalWidthPx,
111
- }}
112
- >
113
- <RenderedVerticalGuides model={model} />
114
- </div>
115
- </div>
116
- )
117
- }
118
-
119
- export default observer(VerticalGuides)