@jbrowse/plugin-alignments 2.17.0 → 2.18.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 (445) hide show
  1. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +1 -1
  2. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +6 -12
  3. package/dist/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -1
  4. package/dist/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -1
  5. package/dist/AlignmentsFeatureDetail/Flags.js +2 -2
  6. package/dist/AlignmentsFeatureDetail/Formatter.js +0 -3
  7. package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +3 -5
  8. package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +4 -9
  9. package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +3 -5
  10. package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +37 -36
  11. package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +2 -2
  12. package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.js +3 -4
  13. package/dist/AlignmentsFeatureDetail/PairLink.d.ts +1 -1
  14. package/dist/AlignmentsFeatureDetail/PairLink.js +0 -1
  15. package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +2 -2
  16. package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.js +5 -6
  17. package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +1 -1
  18. package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +1 -5
  19. package/dist/AlignmentsFeatureDetail/getSAFeatures.d.ts +2 -2
  20. package/dist/AlignmentsFeatureDetail/getSAFeatures.js +0 -4
  21. package/dist/AlignmentsFeatureDetail/index.d.ts +1 -1
  22. package/dist/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +2 -2
  23. package/dist/AlignmentsFeatureDetail/stateModelFactory.d.ts +2 -2
  24. package/dist/AlignmentsFeatureDetail/stateModelFactory.js +1 -1
  25. package/dist/AlignmentsFeatureDetail/tagInfo.js +1 -1
  26. package/dist/AlignmentsFeatureDetail/util.d.ts +1 -1
  27. package/dist/AlignmentsTrack/configSchemaF.d.ts +1 -1
  28. package/dist/AlignmentsTrack/configSchemaF.js +1 -8
  29. package/dist/AlignmentsTrack/index.d.ts +1 -1
  30. package/dist/AlignmentsTrack/index.js +0 -3
  31. package/dist/BamAdapter/BamAdapter.d.ts +6 -5
  32. package/dist/BamAdapter/BamAdapter.js +21 -39
  33. package/dist/BamAdapter/BamSlightlyLazyFeature.d.ts +3 -3
  34. package/dist/BamAdapter/BamSlightlyLazyFeature.js +0 -3
  35. package/dist/BamAdapter/configSchema.d.ts +0 -17
  36. package/dist/BamAdapter/configSchema.js +1 -22
  37. package/dist/BamAdapter/index.d.ts +1 -1
  38. package/dist/CramAdapter/CramAdapter.d.ts +6 -9
  39. package/dist/CramAdapter/CramAdapter.js +18 -41
  40. package/dist/CramAdapter/CramSlightlyLazyFeature.d.ts +3 -3
  41. package/dist/CramAdapter/CramSlightlyLazyFeature.js +0 -17
  42. package/dist/CramAdapter/CramTestAdapters.d.ts +3 -3
  43. package/dist/CramAdapter/CramTestAdapters.js +4 -5
  44. package/dist/CramAdapter/configSchema.d.ts +0 -14
  45. package/dist/CramAdapter/configSchema.js +1 -19
  46. package/dist/CramAdapter/index.d.ts +1 -1
  47. package/dist/CramAdapter/index.js +0 -1
  48. package/dist/CramAdapter/util.d.ts +2 -2
  49. package/dist/CramAdapter/util.js +1 -24
  50. package/dist/GuessAlignmentsTypes/index.d.ts +1 -1
  51. package/dist/HtsgetBamAdapter/HtsgetBamAdapter.d.ts +2 -2
  52. package/dist/HtsgetBamAdapter/configSchema.d.ts +0 -9
  53. package/dist/HtsgetBamAdapter/configSchema.js +1 -14
  54. package/dist/HtsgetBamAdapter/index.d.ts +1 -1
  55. package/dist/HtsgetBamAdapter/index.js +1 -1
  56. package/dist/LinearAlignmentsDisplay/alignmentsModel.d.ts +2 -5
  57. package/dist/LinearAlignmentsDisplay/alignmentsModel.js +1 -31
  58. package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -1
  59. package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +2 -2
  60. package/dist/LinearAlignmentsDisplay/configSchema.d.ts +2 -16
  61. package/dist/LinearAlignmentsDisplay/configSchema.js +3 -20
  62. package/dist/LinearAlignmentsDisplay/index.d.ts +1 -1
  63. package/dist/LinearAlignmentsDisplay/index.js +1 -2
  64. package/dist/LinearAlignmentsDisplay/model.d.ts +6 -75
  65. package/dist/LinearAlignmentsDisplay/model.js +5 -78
  66. package/dist/LinearAlignmentsDisplay/util.d.ts +1 -1
  67. package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +31 -157
  68. package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +34 -133
  69. package/dist/LinearPileupDisplay/components/ColorByTagDialog.js +2 -2
  70. package/dist/LinearPileupDisplay/components/GroupByDialog.d.ts +2 -2
  71. package/dist/LinearPileupDisplay/components/GroupByDialog.js +109 -56
  72. package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +2 -6
  73. package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +1 -1
  74. package/dist/LinearPileupDisplay/components/SetFeatureHeightDialog.js +2 -2
  75. package/dist/LinearPileupDisplay/components/SetMaxHeightDialog.js +2 -2
  76. package/dist/LinearPileupDisplay/components/SortByTagDialog.js +2 -2
  77. package/dist/LinearPileupDisplay/configSchema.d.ts +13 -16
  78. package/dist/LinearPileupDisplay/configSchema.js +12 -30
  79. package/dist/LinearPileupDisplay/index.d.ts +1 -1
  80. package/dist/LinearPileupDisplay/index.js +2 -2
  81. package/dist/LinearPileupDisplay/model.d.ts +103 -105
  82. package/dist/LinearPileupDisplay/model.js +10 -101
  83. package/dist/LinearReadArcsDisplay/components/ReactComponent.d.ts +1 -1
  84. package/dist/LinearReadArcsDisplay/components/ReactComponent.js +2 -6
  85. package/dist/LinearReadArcsDisplay/configSchema.d.ts +12 -20
  86. package/dist/LinearReadArcsDisplay/configSchema.js +8 -31
  87. package/dist/LinearReadArcsDisplay/drawFeats.d.ts +1 -1
  88. package/dist/LinearReadArcsDisplay/drawFeats.js +1 -9
  89. package/dist/LinearReadArcsDisplay/index.d.ts +1 -1
  90. package/dist/LinearReadArcsDisplay/index.js +1 -2
  91. package/dist/LinearReadArcsDisplay/model.d.ts +15 -93
  92. package/dist/LinearReadArcsDisplay/model.js +17 -104
  93. package/dist/LinearReadArcsDisplay/util.d.ts +1 -1
  94. package/dist/LinearReadCloudDisplay/components/ReactComponent.d.ts +1 -1
  95. package/dist/LinearReadCloudDisplay/components/ReactComponent.js +2 -6
  96. package/dist/LinearReadCloudDisplay/configSchema.d.ts +5 -17
  97. package/dist/LinearReadCloudDisplay/configSchema.js +3 -28
  98. package/dist/LinearReadCloudDisplay/drawFeats.d.ts +1 -1
  99. package/dist/LinearReadCloudDisplay/drawFeats.js +2 -2
  100. package/dist/LinearReadCloudDisplay/drawLongReadChains.d.ts +4 -4
  101. package/dist/LinearReadCloudDisplay/drawLongReadChains.js +1 -4
  102. package/dist/LinearReadCloudDisplay/drawPairChains.d.ts +4 -4
  103. package/dist/LinearReadCloudDisplay/drawPairChains.js +0 -3
  104. package/dist/LinearReadCloudDisplay/index.d.ts +1 -1
  105. package/dist/LinearReadCloudDisplay/index.js +1 -2
  106. package/dist/LinearReadCloudDisplay/model.d.ts +13 -55
  107. package/dist/LinearReadCloudDisplay/model.js +17 -68
  108. package/dist/LinearReadCloudDisplay/util.js +0 -1
  109. package/dist/LinearSNPCoverageDisplay/components/Tooltip.d.ts +1 -1
  110. package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +1 -1
  111. package/dist/LinearSNPCoverageDisplay/configSchema.d.ts +17 -22
  112. package/dist/LinearSNPCoverageDisplay/configSchema.js +16 -32
  113. package/dist/LinearSNPCoverageDisplay/index.d.ts +1 -1
  114. package/dist/LinearSNPCoverageDisplay/index.js +1 -2
  115. package/dist/LinearSNPCoverageDisplay/model.d.ts +9 -50
  116. package/dist/LinearSNPCoverageDisplay/model.js +20 -124
  117. package/dist/MismatchParser/cigarToMismatches.d.ts +1 -1
  118. package/dist/MismatchParser/cigarToMismatches.js +4 -7
  119. package/dist/MismatchParser/getNextRefPos.js +0 -2
  120. package/dist/MismatchParser/index.d.ts +2 -2
  121. package/dist/MismatchParser/index.js +1 -9
  122. package/dist/MismatchParser/mdToMismatches.d.ts +2 -2
  123. package/dist/MismatchParser/mdToMismatches.js +0 -6
  124. package/dist/ModificationParser/index.d.ts +1 -1
  125. package/dist/ModificationParser/index.js +1 -18
  126. package/dist/PileupRPC/base.d.ts +2 -2
  127. package/dist/PileupRPC/base.js +0 -1
  128. package/dist/PileupRPC/index.d.ts +1 -1
  129. package/dist/PileupRPC/methods/GetGlobalValueForTag.d.ts +2 -3
  130. package/dist/PileupRPC/methods/GetGlobalValueForTag.js +1 -2
  131. package/dist/PileupRPC/methods/GetReducedFeatures.d.ts +2 -3
  132. package/dist/PileupRPC/methods/GetReducedFeatures.js +3 -5
  133. package/dist/PileupRPC/methods/GetVisibleModifications.d.ts +3 -4
  134. package/dist/PileupRPC/methods/GetVisibleModifications.js +1 -1
  135. package/dist/PileupRPC/util.d.ts +1 -1
  136. package/dist/PileupRenderer/PileupLayoutSession.d.ts +5 -5
  137. package/dist/PileupRenderer/PileupLayoutSession.js +2 -5
  138. package/dist/PileupRenderer/PileupRenderer.d.ts +10 -20
  139. package/dist/PileupRenderer/PileupRenderer.js +11 -16
  140. package/dist/PileupRenderer/colorBy.d.ts +2 -2
  141. package/dist/PileupRenderer/colorBy.js +0 -6
  142. package/dist/PileupRenderer/components/PileupRendering.d.ts +1 -1
  143. package/dist/PileupRenderer/components/PileupRendering.js +0 -3
  144. package/dist/PileupRenderer/configSchema.d.ts +0 -31
  145. package/dist/PileupRenderer/configSchema.js +1 -35
  146. package/dist/PileupRenderer/getAlignmentShapeColor.d.ts +2 -2
  147. package/dist/PileupRenderer/getAlignmentShapeColor.js +1 -6
  148. package/dist/PileupRenderer/index.d.ts +1 -1
  149. package/dist/PileupRenderer/index.js +1 -1
  150. package/dist/PileupRenderer/layoutFeature.d.ts +2 -2
  151. package/dist/PileupRenderer/layoutFeature.js +0 -1
  152. package/dist/PileupRenderer/layoutFeatures.d.ts +5 -2
  153. package/dist/PileupRenderer/layoutFeatures.js +6 -4
  154. package/dist/PileupRenderer/makeImageData.d.ts +3 -4
  155. package/dist/PileupRenderer/makeImageData.js +8 -2
  156. package/dist/PileupRenderer/renderAlignment.d.ts +3 -3
  157. package/dist/PileupRenderer/renderAlignment.js +3 -5
  158. package/dist/PileupRenderer/renderAlignmentShape.d.ts +3 -3
  159. package/dist/PileupRenderer/renderAlignmentShape.js +1 -1
  160. package/dist/PileupRenderer/renderMethylation.d.ts +4 -4
  161. package/dist/PileupRenderer/renderMethylation.js +0 -4
  162. package/dist/PileupRenderer/renderMismatches.d.ts +3 -3
  163. package/dist/PileupRenderer/renderMismatches.js +1 -12
  164. package/dist/PileupRenderer/renderModifications.d.ts +3 -3
  165. package/dist/PileupRenderer/renderModifications.js +1 -3
  166. package/dist/PileupRenderer/renderPerBaseLettering.d.ts +2 -2
  167. package/dist/PileupRenderer/renderPerBaseLettering.js +0 -1
  168. package/dist/PileupRenderer/renderPerBaseQuality.d.ts +2 -2
  169. package/dist/PileupRenderer/renderPerBaseQuality.js +2 -2
  170. package/dist/PileupRenderer/renderSoftClipping.d.ts +5 -5
  171. package/dist/PileupRenderer/renderSoftClipping.js +0 -4
  172. package/dist/PileupRenderer/sortUtil.d.ts +2 -2
  173. package/dist/PileupRenderer/sortUtil.js +1 -4
  174. package/dist/PileupRenderer/types.d.ts +26 -0
  175. package/dist/PileupRenderer/types.js +2 -0
  176. package/dist/PileupRenderer/util.d.ts +2 -2
  177. package/dist/PileupRenderer/util.js +1 -3
  178. package/dist/SNPCoverageAdapter/SNPCoverageAdapter.d.ts +4 -3
  179. package/dist/SNPCoverageAdapter/SNPCoverageAdapter.js +4 -6
  180. package/dist/SNPCoverageAdapter/configSchema.d.ts +0 -4
  181. package/dist/SNPCoverageAdapter/configSchema.js +1 -8
  182. package/dist/SNPCoverageAdapter/generateCoverageBins.d.ts +4 -8
  183. package/dist/SNPCoverageAdapter/generateCoverageBins.js +25 -247
  184. package/dist/SNPCoverageAdapter/index.d.ts +1 -1
  185. package/dist/SNPCoverageAdapter/processDepth.d.ts +8 -0
  186. package/dist/SNPCoverageAdapter/processDepth.js +38 -0
  187. package/dist/SNPCoverageAdapter/processMismatches.d.ts +9 -0
  188. package/dist/SNPCoverageAdapter/processMismatches.js +58 -0
  189. package/dist/SNPCoverageAdapter/processModifications.d.ts +10 -0
  190. package/dist/SNPCoverageAdapter/processModifications.js +49 -0
  191. package/dist/SNPCoverageAdapter/processReferenceCpGs.d.ts +9 -0
  192. package/dist/SNPCoverageAdapter/processReferenceCpGs.js +63 -0
  193. package/dist/SNPCoverageAdapter/util.d.ts +10 -0
  194. package/dist/SNPCoverageAdapter/util.js +41 -0
  195. package/dist/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +5 -4
  196. package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js +14 -38
  197. package/dist/SNPCoverageRenderer/configSchema.d.ts +0 -15
  198. package/dist/SNPCoverageRenderer/configSchema.js +1 -19
  199. package/dist/SNPCoverageRenderer/index.d.ts +1 -1
  200. package/dist/SNPCoverageRenderer/index.js +2 -2
  201. package/dist/index.d.ts +2 -2
  202. package/dist/index.js +12 -12
  203. package/dist/shared/afterAttach.d.ts +1 -1
  204. package/dist/shared/afterAttach.js +0 -2
  205. package/dist/shared/color.d.ts +1 -1
  206. package/dist/shared/color.js +0 -8
  207. package/dist/shared/components/BaseDisplayComponent.d.ts +2 -2
  208. package/dist/shared/components/BaseDisplayComponent.js +12 -11
  209. package/dist/shared/components/FilterByTagDialog.d.ts +1 -1
  210. package/dist/shared/components/FilterByTagDialog.js +2 -2
  211. package/dist/shared/fetchChains.d.ts +2 -2
  212. package/dist/shared/fetchChains.js +1 -2
  213. package/dist/shared/getMaximumModificationAtEachPosition.d.ts +1 -1
  214. package/dist/shared/getMaximumModificationAtEachPosition.js +1 -2
  215. package/dist/shared/getUniqueModifications.d.ts +5 -5
  216. package/dist/shared/getUniqueTags.d.ts +4 -4
  217. package/dist/shared/renderSvgUtil.js +0 -2
  218. package/dist/shared/util.d.ts +11 -1
  219. package/dist/shared/util.js +27 -1
  220. package/dist/util.d.ts +4 -4
  221. package/dist/util.js +3 -9
  222. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +1 -1
  223. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +6 -12
  224. package/esm/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -1
  225. package/esm/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -1
  226. package/esm/AlignmentsFeatureDetail/Flags.js +2 -2
  227. package/esm/AlignmentsFeatureDetail/Formatter.js +0 -3
  228. package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +3 -5
  229. package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +5 -10
  230. package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +3 -5
  231. package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +37 -36
  232. package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +2 -2
  233. package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.js +3 -4
  234. package/esm/AlignmentsFeatureDetail/PairLink.d.ts +1 -1
  235. package/esm/AlignmentsFeatureDetail/PairLink.js +0 -1
  236. package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +2 -2
  237. package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.js +5 -6
  238. package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +1 -1
  239. package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +2 -6
  240. package/esm/AlignmentsFeatureDetail/getSAFeatures.d.ts +2 -2
  241. package/esm/AlignmentsFeatureDetail/getSAFeatures.js +0 -4
  242. package/esm/AlignmentsFeatureDetail/index.d.ts +1 -1
  243. package/esm/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +2 -2
  244. package/esm/AlignmentsFeatureDetail/stateModelFactory.d.ts +2 -2
  245. package/esm/AlignmentsFeatureDetail/stateModelFactory.js +1 -1
  246. package/esm/AlignmentsFeatureDetail/tagInfo.js +1 -1
  247. package/esm/AlignmentsFeatureDetail/util.d.ts +1 -1
  248. package/esm/AlignmentsTrack/configSchemaF.d.ts +1 -1
  249. package/esm/AlignmentsTrack/configSchemaF.js +1 -8
  250. package/esm/AlignmentsTrack/index.d.ts +1 -1
  251. package/esm/AlignmentsTrack/index.js +0 -3
  252. package/esm/BamAdapter/BamAdapter.d.ts +6 -5
  253. package/esm/BamAdapter/BamAdapter.js +19 -37
  254. package/esm/BamAdapter/BamSlightlyLazyFeature.d.ts +3 -3
  255. package/esm/BamAdapter/BamSlightlyLazyFeature.js +0 -3
  256. package/esm/BamAdapter/configSchema.d.ts +0 -17
  257. package/esm/BamAdapter/configSchema.js +1 -22
  258. package/esm/BamAdapter/index.d.ts +1 -1
  259. package/esm/CramAdapter/CramAdapter.d.ts +6 -9
  260. package/esm/CramAdapter/CramAdapter.js +17 -40
  261. package/esm/CramAdapter/CramSlightlyLazyFeature.d.ts +3 -3
  262. package/esm/CramAdapter/CramSlightlyLazyFeature.js +0 -17
  263. package/esm/CramAdapter/CramTestAdapters.d.ts +3 -3
  264. package/esm/CramAdapter/CramTestAdapters.js +4 -5
  265. package/esm/CramAdapter/configSchema.d.ts +0 -14
  266. package/esm/CramAdapter/configSchema.js +1 -19
  267. package/esm/CramAdapter/index.d.ts +1 -1
  268. package/esm/CramAdapter/index.js +0 -1
  269. package/esm/CramAdapter/util.d.ts +2 -2
  270. package/esm/CramAdapter/util.js +1 -24
  271. package/esm/GuessAlignmentsTypes/index.d.ts +1 -1
  272. package/esm/GuessAlignmentsTypes/index.js +1 -1
  273. package/esm/HtsgetBamAdapter/HtsgetBamAdapter.d.ts +2 -2
  274. package/esm/HtsgetBamAdapter/configSchema.d.ts +0 -9
  275. package/esm/HtsgetBamAdapter/configSchema.js +1 -14
  276. package/esm/HtsgetBamAdapter/index.d.ts +1 -1
  277. package/esm/HtsgetBamAdapter/index.js +1 -1
  278. package/esm/LinearAlignmentsDisplay/alignmentsModel.d.ts +2 -5
  279. package/esm/LinearAlignmentsDisplay/alignmentsModel.js +1 -31
  280. package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -1
  281. package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +2 -2
  282. package/esm/LinearAlignmentsDisplay/configSchema.d.ts +2 -16
  283. package/esm/LinearAlignmentsDisplay/configSchema.js +3 -20
  284. package/esm/LinearAlignmentsDisplay/index.d.ts +1 -1
  285. package/esm/LinearAlignmentsDisplay/index.js +1 -2
  286. package/esm/LinearAlignmentsDisplay/model.d.ts +6 -75
  287. package/esm/LinearAlignmentsDisplay/model.js +6 -79
  288. package/esm/LinearAlignmentsDisplay/util.d.ts +1 -1
  289. package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +31 -157
  290. package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +36 -135
  291. package/esm/LinearPileupDisplay/components/ColorByTagDialog.js +2 -2
  292. package/esm/LinearPileupDisplay/components/GroupByDialog.d.ts +2 -2
  293. package/esm/LinearPileupDisplay/components/GroupByDialog.js +109 -56
  294. package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +2 -6
  295. package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +1 -1
  296. package/esm/LinearPileupDisplay/components/SetFeatureHeightDialog.js +2 -2
  297. package/esm/LinearPileupDisplay/components/SetMaxHeightDialog.js +2 -2
  298. package/esm/LinearPileupDisplay/components/SortByTagDialog.js +2 -2
  299. package/esm/LinearPileupDisplay/configSchema.d.ts +13 -16
  300. package/esm/LinearPileupDisplay/configSchema.js +12 -30
  301. package/esm/LinearPileupDisplay/index.d.ts +1 -1
  302. package/esm/LinearPileupDisplay/index.js +2 -2
  303. package/esm/LinearPileupDisplay/model.d.ts +103 -105
  304. package/esm/LinearPileupDisplay/model.js +11 -102
  305. package/esm/LinearReadArcsDisplay/components/ReactComponent.d.ts +1 -1
  306. package/esm/LinearReadArcsDisplay/components/ReactComponent.js +2 -6
  307. package/esm/LinearReadArcsDisplay/configSchema.d.ts +12 -20
  308. package/esm/LinearReadArcsDisplay/configSchema.js +8 -31
  309. package/esm/LinearReadArcsDisplay/drawFeats.d.ts +1 -1
  310. package/esm/LinearReadArcsDisplay/drawFeats.js +1 -9
  311. package/esm/LinearReadArcsDisplay/index.d.ts +1 -1
  312. package/esm/LinearReadArcsDisplay/index.js +1 -2
  313. package/esm/LinearReadArcsDisplay/model.d.ts +15 -93
  314. package/esm/LinearReadArcsDisplay/model.js +18 -105
  315. package/esm/LinearReadArcsDisplay/util.d.ts +1 -1
  316. package/esm/LinearReadCloudDisplay/components/ReactComponent.d.ts +1 -1
  317. package/esm/LinearReadCloudDisplay/components/ReactComponent.js +2 -6
  318. package/esm/LinearReadCloudDisplay/configSchema.d.ts +5 -17
  319. package/esm/LinearReadCloudDisplay/configSchema.js +3 -28
  320. package/esm/LinearReadCloudDisplay/drawFeats.d.ts +1 -1
  321. package/esm/LinearReadCloudDisplay/drawFeats.js +2 -2
  322. package/esm/LinearReadCloudDisplay/drawLongReadChains.d.ts +4 -4
  323. package/esm/LinearReadCloudDisplay/drawLongReadChains.js +1 -4
  324. package/esm/LinearReadCloudDisplay/drawPairChains.d.ts +4 -4
  325. package/esm/LinearReadCloudDisplay/drawPairChains.js +0 -3
  326. package/esm/LinearReadCloudDisplay/index.d.ts +1 -1
  327. package/esm/LinearReadCloudDisplay/index.js +1 -2
  328. package/esm/LinearReadCloudDisplay/model.d.ts +13 -55
  329. package/esm/LinearReadCloudDisplay/model.js +17 -68
  330. package/esm/LinearReadCloudDisplay/util.js +0 -1
  331. package/esm/LinearSNPCoverageDisplay/components/Tooltip.d.ts +1 -1
  332. package/esm/LinearSNPCoverageDisplay/components/Tooltip.js +1 -1
  333. package/esm/LinearSNPCoverageDisplay/configSchema.d.ts +17 -22
  334. package/esm/LinearSNPCoverageDisplay/configSchema.js +16 -32
  335. package/esm/LinearSNPCoverageDisplay/index.d.ts +1 -1
  336. package/esm/LinearSNPCoverageDisplay/index.js +1 -2
  337. package/esm/LinearSNPCoverageDisplay/model.d.ts +9 -50
  338. package/esm/LinearSNPCoverageDisplay/model.js +21 -125
  339. package/esm/MismatchParser/cigarToMismatches.d.ts +1 -1
  340. package/esm/MismatchParser/cigarToMismatches.js +4 -7
  341. package/esm/MismatchParser/getNextRefPos.js +0 -2
  342. package/esm/MismatchParser/index.d.ts +2 -2
  343. package/esm/MismatchParser/index.js +1 -9
  344. package/esm/MismatchParser/mdToMismatches.d.ts +2 -2
  345. package/esm/MismatchParser/mdToMismatches.js +0 -6
  346. package/esm/ModificationParser/index.d.ts +1 -1
  347. package/esm/ModificationParser/index.js +1 -18
  348. package/esm/PileupRPC/base.d.ts +2 -2
  349. package/esm/PileupRPC/base.js +0 -1
  350. package/esm/PileupRPC/index.d.ts +1 -1
  351. package/esm/PileupRPC/index.js +1 -1
  352. package/esm/PileupRPC/methods/GetGlobalValueForTag.d.ts +2 -3
  353. package/esm/PileupRPC/methods/GetGlobalValueForTag.js +1 -2
  354. package/esm/PileupRPC/methods/GetReducedFeatures.d.ts +2 -3
  355. package/esm/PileupRPC/methods/GetReducedFeatures.js +3 -5
  356. package/esm/PileupRPC/methods/GetVisibleModifications.d.ts +3 -4
  357. package/esm/PileupRPC/methods/GetVisibleModifications.js +1 -1
  358. package/esm/PileupRPC/util.d.ts +1 -1
  359. package/esm/PileupRenderer/PileupLayoutSession.d.ts +5 -5
  360. package/esm/PileupRenderer/PileupLayoutSession.js +2 -5
  361. package/esm/PileupRenderer/PileupRenderer.d.ts +10 -20
  362. package/esm/PileupRenderer/PileupRenderer.js +12 -17
  363. package/esm/PileupRenderer/colorBy.d.ts +2 -2
  364. package/esm/PileupRenderer/colorBy.js +1 -7
  365. package/esm/PileupRenderer/components/PileupRendering.d.ts +1 -1
  366. package/esm/PileupRenderer/components/PileupRendering.js +1 -4
  367. package/esm/PileupRenderer/configSchema.d.ts +0 -31
  368. package/esm/PileupRenderer/configSchema.js +1 -35
  369. package/esm/PileupRenderer/getAlignmentShapeColor.d.ts +2 -2
  370. package/esm/PileupRenderer/getAlignmentShapeColor.js +2 -7
  371. package/esm/PileupRenderer/index.d.ts +1 -1
  372. package/esm/PileupRenderer/index.js +1 -1
  373. package/esm/PileupRenderer/layoutFeature.d.ts +2 -2
  374. package/esm/PileupRenderer/layoutFeature.js +0 -1
  375. package/esm/PileupRenderer/layoutFeatures.d.ts +5 -2
  376. package/esm/PileupRenderer/layoutFeatures.js +7 -5
  377. package/esm/PileupRenderer/makeImageData.d.ts +3 -4
  378. package/esm/PileupRenderer/makeImageData.js +8 -2
  379. package/esm/PileupRenderer/renderAlignment.d.ts +3 -3
  380. package/esm/PileupRenderer/renderAlignment.js +3 -5
  381. package/esm/PileupRenderer/renderAlignmentShape.d.ts +3 -3
  382. package/esm/PileupRenderer/renderAlignmentShape.js +1 -1
  383. package/esm/PileupRenderer/renderMethylation.d.ts +4 -4
  384. package/esm/PileupRenderer/renderMethylation.js +0 -4
  385. package/esm/PileupRenderer/renderMismatches.d.ts +3 -3
  386. package/esm/PileupRenderer/renderMismatches.js +1 -12
  387. package/esm/PileupRenderer/renderModifications.d.ts +3 -3
  388. package/esm/PileupRenderer/renderModifications.js +1 -3
  389. package/esm/PileupRenderer/renderPerBaseLettering.d.ts +2 -2
  390. package/esm/PileupRenderer/renderPerBaseLettering.js +0 -1
  391. package/esm/PileupRenderer/renderPerBaseQuality.d.ts +2 -2
  392. package/esm/PileupRenderer/renderPerBaseQuality.js +2 -2
  393. package/esm/PileupRenderer/renderSoftClipping.d.ts +5 -5
  394. package/esm/PileupRenderer/renderSoftClipping.js +1 -5
  395. package/esm/PileupRenderer/sortUtil.d.ts +2 -2
  396. package/esm/PileupRenderer/sortUtil.js +1 -4
  397. package/esm/PileupRenderer/types.d.ts +26 -0
  398. package/esm/PileupRenderer/types.js +1 -0
  399. package/esm/PileupRenderer/util.d.ts +2 -2
  400. package/esm/PileupRenderer/util.js +1 -3
  401. package/esm/SNPCoverageAdapter/SNPCoverageAdapter.d.ts +4 -3
  402. package/esm/SNPCoverageAdapter/SNPCoverageAdapter.js +5 -7
  403. package/esm/SNPCoverageAdapter/configSchema.d.ts +0 -4
  404. package/esm/SNPCoverageAdapter/configSchema.js +1 -8
  405. package/esm/SNPCoverageAdapter/generateCoverageBins.d.ts +4 -8
  406. package/esm/SNPCoverageAdapter/generateCoverageBins.js +24 -246
  407. package/esm/SNPCoverageAdapter/index.d.ts +1 -1
  408. package/esm/SNPCoverageAdapter/processDepth.d.ts +8 -0
  409. package/esm/SNPCoverageAdapter/processDepth.js +35 -0
  410. package/esm/SNPCoverageAdapter/processMismatches.d.ts +9 -0
  411. package/esm/SNPCoverageAdapter/processMismatches.js +55 -0
  412. package/esm/SNPCoverageAdapter/processModifications.d.ts +10 -0
  413. package/esm/SNPCoverageAdapter/processModifications.js +46 -0
  414. package/esm/SNPCoverageAdapter/processReferenceCpGs.d.ts +9 -0
  415. package/esm/SNPCoverageAdapter/processReferenceCpGs.js +60 -0
  416. package/esm/SNPCoverageAdapter/util.d.ts +10 -0
  417. package/esm/SNPCoverageAdapter/util.js +35 -0
  418. package/esm/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +5 -4
  419. package/esm/SNPCoverageRenderer/SNPCoverageRenderer.js +16 -40
  420. package/esm/SNPCoverageRenderer/configSchema.d.ts +0 -15
  421. package/esm/SNPCoverageRenderer/configSchema.js +1 -19
  422. package/esm/SNPCoverageRenderer/index.d.ts +1 -1
  423. package/esm/SNPCoverageRenderer/index.js +2 -2
  424. package/esm/index.d.ts +2 -2
  425. package/esm/index.js +10 -10
  426. package/esm/shared/afterAttach.d.ts +1 -1
  427. package/esm/shared/afterAttach.js +0 -2
  428. package/esm/shared/color.d.ts +1 -1
  429. package/esm/shared/color.js +0 -8
  430. package/esm/shared/components/BaseDisplayComponent.d.ts +2 -2
  431. package/esm/shared/components/BaseDisplayComponent.js +12 -11
  432. package/esm/shared/components/FilterByTagDialog.d.ts +1 -1
  433. package/esm/shared/components/FilterByTagDialog.js +2 -2
  434. package/esm/shared/fetchChains.d.ts +2 -2
  435. package/esm/shared/fetchChains.js +1 -2
  436. package/esm/shared/getMaximumModificationAtEachPosition.d.ts +1 -1
  437. package/esm/shared/getMaximumModificationAtEachPosition.js +1 -2
  438. package/esm/shared/getUniqueModifications.d.ts +5 -5
  439. package/esm/shared/getUniqueTags.d.ts +4 -4
  440. package/esm/shared/renderSvgUtil.js +0 -2
  441. package/esm/shared/util.d.ts +11 -1
  442. package/esm/shared/util.js +24 -0
  443. package/esm/util.d.ts +4 -4
  444. package/esm/util.js +3 -9
  445. package/package.json +3 -4
@@ -1,55 +1,32 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
2
  import { linearBasicDisplayConfigSchemaFactory } from '@jbrowse/plugin-linear-genome-view';
3
- import { types } from 'mobx-state-tree';
4
- /**
5
- * #config LinearReadArcsDisplay
6
- */
3
+ import { defaultFilterFlags } from '../shared/util';
7
4
  function configSchemaF(pluginManager) {
8
5
  return ConfigurationSchema('LinearReadArcsDisplay', {
9
- /**
10
- * #slot
11
- */
12
6
  maxFeatureScreenDensity: {
13
7
  type: 'number',
14
8
  description: 'maximum features per pixel that is displayed in the view',
15
9
  defaultValue: 5,
16
10
  },
17
- /**
18
- * #slot
19
- */
20
11
  lineWidth: {
21
12
  type: 'number',
22
13
  description: 'set arc line width',
23
14
  defaultValue: 1,
24
15
  },
25
- /**
26
- * #slot
27
- */
28
16
  jitter: {
29
17
  type: 'number',
30
18
  description: 'jitters the x position so e.g. if many reads map to exact same x position, jittering makes it easy to see that there are many of them',
31
19
  defaultValue: 0,
32
20
  },
33
- /**
34
- * #slot
35
- */
36
- colorScheme: {
37
- type: 'stringEnum',
38
- model: types.enumeration('colorScheme', [
39
- 'strand',
40
- 'normal',
41
- 'insertSize',
42
- 'insertSizeAndOrientation',
43
- 'mappingQuality',
44
- 'tag',
45
- ]),
46
- description: 'color scheme to use',
47
- defaultValue: 'normal',
21
+ colorBy: {
22
+ type: 'frozen',
23
+ defaultValue: { type: 'insertSizeAndOrientation' },
24
+ },
25
+ filterBy: {
26
+ type: 'frozen',
27
+ defaultValue: defaultFilterFlags,
48
28
  },
49
29
  }, {
50
- /**
51
- * #baseConfiguration
52
- */
53
30
  baseConfiguration: linearBasicDisplayConfigSchemaFactory(pluginManager),
54
31
  explicitlyTyped: true,
55
32
  });
@@ -1,2 +1,2 @@
1
- import { LinearReadArcsDisplayModel } from './model';
1
+ import type { LinearReadArcsDisplayModel } from './model';
2
2
  export declare function drawFeats(self: LinearReadArcsDisplayModel, ctx: CanvasRenderingContext2D, width: number, height: number): void;
@@ -1,13 +1,11 @@
1
1
  import { getContainingView, getSession } from '@jbrowse/core/util';
2
- // locals
3
- import { getPairedOrientationColor, getPairedInsertSizeColor, getPairedInsertSizeAndOrientationColor, } from '../shared/color';
4
2
  import { featurizeSA } from '../MismatchParser';
3
+ import { getPairedInsertSizeAndOrientationColor, getPairedInsertSizeColor, getPairedOrientationColor, } from '../shared/color';
5
4
  import { hasPairedReads } from '../shared/util';
6
5
  function jitter(n) {
7
6
  return Math.random() * 2 * n - n;
8
7
  }
9
8
  function drawLineAtOffset(ctx, offset, height, color) {
10
- // draws a vertical line off to middle of nowhere if the second end not found
11
9
  ctx.strokeStyle = color;
12
10
  ctx.beginPath();
13
11
  ctx.moveTo(offset, 0);
@@ -47,9 +45,6 @@ export function drawFeats(self, ctx, width, height) {
47
45
  const p = r1 - view.offsetPx;
48
46
  const p2 = r2 - view.offsetPx;
49
47
  const drawArcInsteadOfBezier = absrad > 10000;
50
- // bezier (used for non-long-range arcs) requires moveTo before beginPath
51
- // arc (used for long-range) requires moveTo after beginPath (or else a
52
- // unwanted line at y=0 is rendered along with the arc)
53
48
  if (longRange && drawArcInsteadOfBezier) {
54
49
  ctx.moveTo(p, 0);
55
50
  ctx.beginPath();
@@ -97,8 +92,6 @@ export function drawFeats(self, ctx, width, height) {
97
92
  const destX = p + radius * 2;
98
93
  const destY = Math.min(height + jitter(jitterVal), absrad);
99
94
  if (longRange) {
100
- // avoid drawing gigantic circles that glitch out the rendering,
101
- // instead draw vertical lines
102
95
  if (absrad > 100000) {
103
96
  drawLineAtOffset(ctx, p + jitter(jitterVal), height, 'red');
104
97
  drawLineAtOffset(ctx, p2 + jitter(jitterVal), height, 'red');
@@ -122,7 +115,6 @@ export function drawFeats(self, ctx, width, height) {
122
115
  }
123
116
  }
124
117
  for (const chain of chains) {
125
- // chain.length === 1, singleton (other pairs/mates not in view)
126
118
  if (chain.length === 1 && drawLongRange) {
127
119
  const f = chain[0];
128
120
  if (hasPaired && !(f.flags & 8)) {
@@ -1,2 +1,2 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function register(pluginManager: PluginManager): void;
@@ -1,8 +1,7 @@
1
+ import { lazy } from 'react';
1
2
  import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
2
- // locals
3
3
  import configSchemaF from './configSchema';
4
4
  import stateModelF from './model';
5
- import { lazy } from 'react';
6
5
  export default function register(pluginManager) {
7
6
  pluginManager.addDisplayType(() => {
8
7
  const configSchema = configSchemaF(pluginManager);
@@ -1,17 +1,8 @@
1
- import React from 'react';
2
- import { Instance } from 'mobx-state-tree';
3
- import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
4
- import { ColorBy, FilterBy } from '../shared/types';
5
- import { ChainData } from '../shared/fetchChains';
6
- /**
7
- * #stateModel LinearReadArcsDisplay
8
- * the arc display is a non-block-based track, so draws to a single canvas and
9
- * can connect multiple regions
10
- * extends
11
- * - [BaseDisplay](../basedisplay)
12
- * - [TrackHeightMixin](../trackheightmixin)
13
- * - [FeatureDensityMixin](../featuredensitymixin)
14
- */
1
+ import type React from 'react';
2
+ import type { ChainData } from '../shared/fetchChains';
3
+ import type { ColorBy, FilterBy } from '../shared/types';
4
+ import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
5
+ import type { Instance } from 'mobx-state-tree';
15
6
  declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
16
7
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
17
8
  type: import("mobx-state-tree").ISimpleType<string>;
@@ -24,10 +15,10 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
24
15
  } & {
25
16
  type: import("mobx-state-tree").ISimpleType<"LinearReadArcsDisplay">;
26
17
  configuration: AnyConfigurationSchemaType;
27
- filterBy: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<FilterBy, FilterBy, FilterBy>, [undefined]>;
28
18
  lineWidth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
29
19
  jitter: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
30
- colorBy: import("mobx-state-tree").IType<ColorBy | undefined, ColorBy | undefined, ColorBy | undefined>;
20
+ colorBySetting: import("mobx-state-tree").IType<ColorBy | undefined, ColorBy | undefined, ColorBy | undefined>;
21
+ filterBySetting: import("mobx-state-tree").IType<FilterBy | undefined, FilterBy | undefined, FilterBy | undefined>;
31
22
  drawInter: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
32
23
  drawLongRange: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
33
24
  }, {
@@ -54,17 +45,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
54
45
  message: string | undefined;
55
46
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
56
47
  onHorizontalScroll?: () => void;
57
- blockState? /**
58
- * #property
59
- */: Record<string, any>;
48
+ blockState?: Record<string, any>;
60
49
  }>;
61
- readonly DisplayBlurb: React.
62
- /**
63
- * #property
64
- */
65
- FC /**
66
- * #property
67
- */<{
50
+ readonly DisplayBlurb: React.FC<{
68
51
  model: {
69
52
  id: string;
70
53
  type: string;
@@ -75,9 +58,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
75
58
  message: string | undefined;
76
59
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
77
60
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
78
- type: import("mobx-state-tree" /**
79
- * #action
80
- */).ISimpleType<string>;
61
+ type: import("mobx-state-tree").ISimpleType<string>;
81
62
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
82
63
  }, {
83
64
  rendererTypeName: string;
@@ -89,10 +70,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
89
70
  readonly parentTrack: any;
90
71
  renderProps(): any;
91
72
  readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
92
- readonly DisplayMessageComponent: undefined | React.FC /**
93
- * #action
94
- * thin, bold, extrabold, etc
95
- */<any>;
73
+ readonly DisplayMessageComponent: undefined | React.FC<any>;
96
74
  trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
97
75
  readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
98
76
  regionCannotBeRendered(): null;
@@ -132,6 +110,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
132
110
  readonly regionTooLarge: boolean;
133
111
  readonly regionTooLargeReason: string;
134
112
  } & {
113
+ readonly statsReadyAndRegionNotTooLarge: boolean;
135
114
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
136
115
  regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): React.JSX.Element | null;
137
116
  } & {
@@ -141,83 +120,29 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
141
120
  lastDrawnBpPerPx: number;
142
121
  ref: HTMLCanvasElement | null;
143
122
  } & {
144
- /**
145
- * #action
146
- */
123
+ readonly colorBy: any;
124
+ readonly filterBy: any;
125
+ } & {
147
126
  setLastDrawnOffsetPx(n: number): void;
148
- /**
149
- * #action
150
- */
151
127
  setLastDrawnBpPerPx(n: number): void;
152
- /**
153
- * #action
154
- */
155
128
  setLoading(f: boolean): void;
156
- /**
157
- * #action
158
- */
159
129
  reload(): void;
160
- /**
161
- * #action
162
- * internal, a reference to a HTMLCanvas because we use a autorun to draw
163
- * the canvas
164
- */
165
130
  setRef(ref: HTMLCanvasElement | null): void;
166
- /**
167
- * #action
168
- */
169
131
  setColorScheme(colorBy: {
170
132
  type: string;
171
133
  }): void;
172
- /**
173
- * #action
174
- */
175
134
  setChainData(args: ChainData): void;
176
- /**
177
- * #action
178
- */
179
135
  setDrawInter(f: boolean): void;
180
- /**
181
- * #action
182
- */
183
136
  setDrawLongRange(f: boolean): void;
184
- /**
185
- * #action
186
- */
187
137
  setFilterBy(filter: FilterBy): void;
188
- /**
189
- * #action
190
- * thin, bold, extrabold, etc
191
- */
192
138
  setLineWidth(n: number): void;
193
- /**
194
- * #action
195
- * jitter val, helpful to jitter the x direction so you see better
196
- * evidence when e.g. 100 long reads map to same x position
197
- */
198
139
  setJitter(n: number): void;
199
140
  } & {
200
- /**
201
- * #getter
202
- */
203
141
  readonly drawn: boolean;
204
- /**
205
- * #getter
206
- */
207
142
  readonly lineWidthSetting: any;
208
- /**
209
- * #getter
210
- */
211
143
  readonly jitterVal: number;
212
144
  } & {
213
- /**
214
- * #method
215
- * only used to tell system it's ready for export
216
- */
217
145
  renderProps(): any;
218
- /**
219
- * #method
220
- */
221
146
  trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
222
147
  label: string;
223
148
  icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
@@ -260,9 +185,6 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
260
185
  checked?: undefined;
261
186
  })[];
262
187
  } & {
263
- /**
264
- * #method
265
- */
266
188
  renderSvg(opts: {
267
189
  rasterizeLayers?: boolean;
268
190
  }): Promise<React.ReactNode>;
@@ -1,58 +1,22 @@
1
1
  import { lazy } from 'react';
2
- import { types } from 'mobx-state-tree';
3
- import { ConfigurationReference, getConf, } from '@jbrowse/core/configuration';
4
- import { getSession } from '@jbrowse/core/util';
2
+ import { ConfigurationReference, getConf } from '@jbrowse/core/configuration';
5
3
  import { BaseDisplay } from '@jbrowse/core/pluggableElementTypes';
4
+ import { getSession } from '@jbrowse/core/util';
6
5
  import { FeatureDensityMixin, TrackHeightMixin, } from '@jbrowse/plugin-linear-genome-view';
7
- // icons
8
- import PaletteIcon from '@mui/icons-material/Palette';
9
6
  import FilterListIcon from '@mui/icons-material/ClearAll';
10
- import { defaultFilterFlags } from '../shared/util';
11
- // lazies
7
+ import PaletteIcon from '@mui/icons-material/Palette';
8
+ import { types } from 'mobx-state-tree';
12
9
  const FilterByTagDialog = lazy(() => import('../shared/components/FilterByTagDialog'));
13
- /**
14
- * #stateModel LinearReadArcsDisplay
15
- * the arc display is a non-block-based track, so draws to a single canvas and
16
- * can connect multiple regions
17
- * extends
18
- * - [BaseDisplay](../basedisplay)
19
- * - [TrackHeightMixin](../trackheightmixin)
20
- * - [FeatureDensityMixin](../featuredensitymixin)
21
- */
22
10
  function stateModelFactory(configSchema) {
23
11
  return types
24
12
  .compose('LinearReadArcsDisplay', BaseDisplay, TrackHeightMixin(), FeatureDensityMixin(), types.model({
25
- /**
26
- * #property
27
- */
28
13
  type: types.literal('LinearReadArcsDisplay'),
29
- /**
30
- * #property
31
- */
32
14
  configuration: ConfigurationReference(configSchema),
33
- /**
34
- * #property
35
- */
36
- filterBy: types.optional(types.frozen(), defaultFilterFlags),
37
- /**
38
- * #property
39
- */
40
15
  lineWidth: types.maybe(types.number),
41
- /**
42
- * #property
43
- */
44
16
  jitter: types.maybe(types.number),
45
- /**
46
- * #property
47
- */
48
- colorBy: types.frozen(),
49
- /**
50
- * #property
51
- */
17
+ colorBySetting: types.frozen(),
18
+ filterBySetting: types.frozen(),
52
19
  drawInter: true,
53
- /**
54
- * #property
55
- */
56
20
  drawLongRange: true,
57
21
  }))
58
22
  .volatile(() => ({
@@ -61,107 +25,67 @@ function stateModelFactory(configSchema) {
61
25
  lastDrawnOffsetPx: undefined,
62
26
  lastDrawnBpPerPx: 0,
63
27
  ref: null,
28
+ }))
29
+ .views(self => ({
30
+ get colorBy() {
31
+ var _a;
32
+ return (_a = self.colorBySetting) !== null && _a !== void 0 ? _a : getConf(self, 'colorBy');
33
+ },
34
+ get filterBy() {
35
+ var _a;
36
+ return (_a = self.filterBySetting) !== null && _a !== void 0 ? _a : getConf(self, 'filterBy');
37
+ },
64
38
  }))
65
39
  .actions(self => ({
66
- /**
67
- * #action
68
- */
69
40
  setLastDrawnOffsetPx(n) {
70
41
  self.lastDrawnOffsetPx = n;
71
42
  },
72
- /**
73
- * #action
74
- */
75
43
  setLastDrawnBpPerPx(n) {
76
44
  self.lastDrawnBpPerPx = n;
77
45
  },
78
- /**
79
- * #action
80
- */
81
46
  setLoading(f) {
82
47
  self.loading = f;
83
48
  },
84
- /**
85
- * #action
86
- */
87
49
  reload() {
88
50
  self.error = undefined;
89
51
  },
90
- /**
91
- * #action
92
- * internal, a reference to a HTMLCanvas because we use a autorun to draw
93
- * the canvas
94
- */
95
52
  setRef(ref) {
96
53
  self.ref = ref;
97
54
  },
98
- /**
99
- * #action
100
- */
101
55
  setColorScheme(colorBy) {
102
- self.colorBy = {
56
+ self.colorBySetting = {
103
57
  ...colorBy,
104
58
  };
105
59
  },
106
- /**
107
- * #action
108
- */
109
60
  setChainData(args) {
110
61
  self.chainData = args;
111
62
  },
112
- /**
113
- * #action
114
- */
115
63
  setDrawInter(f) {
116
64
  self.drawInter = f;
117
65
  },
118
- /**
119
- * #action
120
- */
121
66
  setDrawLongRange(f) {
122
67
  self.drawLongRange = f;
123
68
  },
124
- /**
125
- * #action
126
- */
127
69
  setFilterBy(filter) {
128
- self.filterBy = {
70
+ self.filterBySetting = {
129
71
  ...filter,
130
72
  };
131
73
  },
132
- /**
133
- * #action
134
- * thin, bold, extrabold, etc
135
- */
136
74
  setLineWidth(n) {
137
75
  self.lineWidth = n;
138
76
  },
139
- /**
140
- * #action
141
- * jitter val, helpful to jitter the x direction so you see better
142
- * evidence when e.g. 100 long reads map to same x position
143
- */
144
77
  setJitter(n) {
145
78
  self.jitter = n;
146
79
  },
147
80
  }))
148
81
  .views(self => ({
149
- /**
150
- * #getter
151
- */
152
82
  get drawn() {
153
83
  return self.lastDrawnOffsetPx !== undefined;
154
84
  },
155
- /**
156
- * #getter
157
- */
158
85
  get lineWidthSetting() {
159
86
  var _a;
160
87
  return (_a = self.lineWidth) !== null && _a !== void 0 ? _a : getConf(self, 'lineWidth');
161
88
  },
162
- /**
163
- * #getter
164
- */
165
89
  get jitterVal() {
166
90
  var _a;
167
91
  return (_a = self.jitter) !== null && _a !== void 0 ? _a : getConf(self, 'jitter');
@@ -170,19 +94,12 @@ function stateModelFactory(configSchema) {
170
94
  .views(self => {
171
95
  const { trackMenuItems: superTrackMenuItems, renderProps: superRenderProps, } = self;
172
96
  return {
173
- /**
174
- * #method
175
- * only used to tell system it's ready for export
176
- */
177
97
  renderProps() {
178
98
  return {
179
99
  ...superRenderProps(),
180
100
  notReady: !self.chainData,
181
101
  };
182
102
  },
183
- /**
184
- * #method
185
- */
186
103
  trackMenuItems() {
187
104
  return [
188
105
  ...superTrackMenuItems(),
@@ -299,9 +216,6 @@ function stateModelFactory(configSchema) {
299
216
  };
300
217
  })
301
218
  .views(self => ({
302
- /**
303
- * #method
304
- */
305
219
  async renderSvg(opts) {
306
220
  const { renderSvg } = await import('../shared/renderSvgUtil');
307
221
  const { drawFeats } = await import('./drawFeats');
@@ -310,7 +224,6 @@ function stateModelFactory(configSchema) {
310
224
  }))
311
225
  .actions(self => ({
312
226
  afterAttach() {
313
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
314
227
  ;
315
228
  (async () => {
316
229
  try {
@@ -1,2 +1,2 @@
1
- import { ChainData } from '../shared/fetchChains';
1
+ import type { ChainData } from '../shared/fetchChains';
2
2
  export declare function hasPairedReads(features: ChainData): boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { LinearReadCloudDisplayModel } from '../model';
2
+ import type { LinearReadCloudDisplayModel } from '../model';
3
3
  declare const LinearReadCloudReactComponent: ({ model, }: {
4
4
  model: LinearReadCloudDisplayModel;
5
5
  }) => React.JSX.Element;
@@ -1,18 +1,14 @@
1
1
  import React, { useCallback } from 'react';
2
- import { observer } from 'mobx-react';
3
2
  import { getContainingView } from '@jbrowse/core/util';
3
+ import { observer } from 'mobx-react';
4
4
  import BaseDisplayComponent from '../../shared/components/BaseDisplayComponent';
5
5
  const Cloud = observer(function ({ model, }) {
6
6
  const view = getContainingView(model);
7
7
  const width = Math.round(view.dynamicBlocks.totalWidthPx);
8
8
  const height = model.height;
9
- // biome-ignore lint/correctness/useExhaustiveDependencies:
10
9
  const cb = useCallback((ref) => {
11
10
  model.setRef(ref);
12
- },
13
- // eslint-disable-next-line react-hooks/exhaustive-deps
14
- [model, width, height]);
15
- // note: the position absolute below avoids scrollbar from appearing on track
11
+ }, [model, width, height]);
16
12
  return (React.createElement("canvas", { "data-testid": "cloud-canvas", ref: cb, style: { width, height, position: 'absolute' }, width: width * 2, height: height * 2 }));
17
13
  });
18
14
  const LinearReadCloudReactComponent = observer(function ({ model, }) {
@@ -1,31 +1,19 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
2
- /**
3
- * #config LinearReadCloudDisplay
4
- */
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
5
2
  declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
6
- /**
7
- * #slot
8
- */
9
3
  maxFeatureScreenDensity: {
10
4
  type: string;
11
5
  description: string;
12
6
  defaultValue: number;
13
7
  };
14
- /**
15
- * #slot
16
- */
17
8
  featureHeight: {
18
9
  type: string;
19
10
  defaultValue: number;
20
11
  };
21
- /**
22
- * #slot
23
- */
24
- colorScheme: {
12
+ colorBy: {
25
13
  type: string;
26
- model: import("mobx-state-tree").ISimpleType<string>;
27
- description: string;
28
- defaultValue: string;
14
+ defaultValue: {
15
+ type: string;
16
+ };
29
17
  };
30
18
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
31
19
  renderer: import("mobx-state-tree").IAnyModelType;
@@ -1,46 +1,21 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
2
  import { linearBasicDisplayConfigSchemaFactory } from '@jbrowse/plugin-linear-genome-view';
3
- import { types } from 'mobx-state-tree';
4
- /**
5
- * #config LinearReadCloudDisplay
6
- */
7
3
  function configSchemaF(pluginManager) {
8
4
  return ConfigurationSchema('LinearReadCloudDisplay', {
9
- /**
10
- * #slot
11
- */
12
5
  maxFeatureScreenDensity: {
13
6
  type: 'number',
14
7
  description: 'maximum features per pixel that is displayed in the view',
15
8
  defaultValue: 5,
16
9
  },
17
- /**
18
- * #slot
19
- */
20
10
  featureHeight: {
21
11
  type: 'number',
22
12
  defaultValue: 7,
23
13
  },
24
- /**
25
- * #slot
26
- */
27
- colorScheme: {
28
- type: 'stringEnum',
29
- model: types.enumeration('colorScheme', [
30
- 'strand',
31
- 'normal',
32
- 'insertSize',
33
- 'insertSizeAndOrientation',
34
- 'mappingQuality',
35
- 'tag',
36
- ]),
37
- description: 'color scheme to use',
38
- defaultValue: 'normal',
14
+ colorBy: {
15
+ type: 'frozen',
16
+ defaultValue: { type: 'insertSizeAndOrientation' },
39
17
  },
40
18
  }, {
41
- /**
42
- * #baseConfiguration
43
- */
44
19
  baseConfiguration: linearBasicDisplayConfigSchemaFactory(pluginManager),
45
20
  explicitlyTyped: true,
46
21
  });
@@ -1,2 +1,2 @@
1
- import { LinearReadCloudDisplayModel } from './model';
1
+ import type { LinearReadCloudDisplayModel } from './model';
2
2
  export declare function drawFeats(self: LinearReadCloudDisplayModel, ctx: CanvasRenderingContext2D): void;
@@ -1,7 +1,7 @@
1
1
  import { getContainingView, getSession } from '@jbrowse/core/util';
2
- import { hasPairedReads } from '../shared/util';
3
- import { drawPairChains } from './drawPairChains';
4
2
  import { drawLongReadChains } from './drawLongReadChains';
3
+ import { drawPairChains } from './drawPairChains';
4
+ import { hasPairedReads } from '../shared/util';
5
5
  export function drawFeats(self, ctx) {
6
6
  const { chainData } = self;
7
7
  if (!chainData) {