@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,21 +0,0 @@
1
- import React from 'react'
2
- import { useTheme } from '@mui/material'
3
-
4
- export default function SVGBackground({
5
- width,
6
- height,
7
- shift,
8
- }: {
9
- width: number
10
- height: number
11
- shift: number
12
- }) {
13
- const theme = useTheme()
14
- return (
15
- <rect
16
- width={width + shift * 2}
17
- height={height}
18
- fill={theme.palette.background.default}
19
- />
20
- )
21
- }
@@ -1,95 +0,0 @@
1
- import React from 'react'
2
- import { getSession } from '@jbrowse/core/util'
3
- import Base1DView from '@jbrowse/core/util/Base1DViewModel'
4
- import { useTheme } from '@mui/material'
5
-
6
- // locals
7
- import { LinearGenomeViewModel, HEADER_OVERVIEW_HEIGHT } from '..'
8
- import Cytobands from '../components/Cytobands'
9
- import { Polygon } from '../components/OverviewScalebar'
10
- import SVGRuler from './SVGRuler'
11
- import SVGScalebar from './SVGScalebar'
12
-
13
- export default function SVGHeader({
14
- model,
15
- fontSize,
16
- cytobandHeight,
17
- rulerHeight,
18
- }: {
19
- model: LinearGenomeViewModel
20
- rulerHeight: number
21
- fontSize: number
22
- cytobandHeight: number
23
- }) {
24
- const { width, assemblyNames, showCytobands, displayedRegions } = model
25
- const { assemblyManager } = getSession(model)
26
- const assemblyName = assemblyNames.length > 1 ? '' : assemblyNames[0]
27
- const assembly = assemblyManager.get(assemblyName)
28
- const theme = useTheme()
29
-
30
- const overview = Base1DView.create({
31
- displayedRegions: JSON.parse(JSON.stringify(displayedRegions)),
32
- interRegionPaddingWidth: 0,
33
- minimumBlockWidth: model.minimumBlockWidth,
34
- })
35
- const visibleRegions = model.dynamicBlocks.contentBlocks
36
- if (!visibleRegions.length) {
37
- return null
38
- }
39
-
40
- overview.setVolatileWidth(width)
41
- overview.showAllRegions()
42
- const block = overview.dynamicBlocks.contentBlocks[0]
43
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
44
- const first = visibleRegions.at(0)!
45
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
46
- const last = visibleRegions.at(-1)!
47
- const firstOverviewPx =
48
- overview.bpToPx({
49
- ...first,
50
- coord: first.reversed ? first.end : first.start,
51
- }) || 0
52
-
53
- const lastOverviewPx =
54
- overview.bpToPx({
55
- ...last,
56
- coord: last.reversed ? last.start : last.end,
57
- }) || 0
58
- const c = +showCytobands * cytobandHeight
59
- return (
60
- <g id="header">
61
- <text
62
- x={0}
63
- y={fontSize}
64
- fontSize={fontSize}
65
- fill={theme.palette.text.primary}
66
- >
67
- {assemblyName}
68
- </text>
69
-
70
- {showCytobands ? (
71
- <g transform={`translate(0 ${rulerHeight})`}>
72
- <Cytobands overview={overview} assembly={assembly} block={block} />
73
- <rect
74
- stroke="red"
75
- fill="rgb(255,0,0,0.1)"
76
- width={Math.max(lastOverviewPx - firstOverviewPx, 0.5)}
77
- height={HEADER_OVERVIEW_HEIGHT - 1}
78
- x={firstOverviewPx}
79
- y={0.5}
80
- />
81
- <g transform={`translate(0,${HEADER_OVERVIEW_HEIGHT})`}>
82
- <Polygon overview={overview} model={model} useOffset={false} />
83
- </g>
84
- </g>
85
- ) : null}
86
-
87
- <g transform={`translate(0 ${fontSize + c})`}>
88
- <SVGScalebar model={model} fontSize={fontSize} />
89
- </g>
90
- <g transform={`translate(0 ${rulerHeight + c})`}>
91
- <SVGRuler model={model} fontSize={fontSize} />
92
- </g>
93
- </g>
94
- )
95
- }
@@ -1,114 +0,0 @@
1
- import React from 'react'
2
- import { renderToStaticMarkup } from 'react-dom/server'
3
- import { when } from 'mobx'
4
- import { getSession, max, measureText, sum } from '@jbrowse/core/util'
5
- import { ThemeProvider } from '@mui/material'
6
- import { createJBrowseTheme } from '@jbrowse/core/ui'
7
-
8
- // locals
9
- import { LinearGenomeViewModel, ExportSvgOptions } from '..'
10
- import SVGBackground from './SVGBackground'
11
- import SVGTracks from './SVGTracks'
12
- import SVGHeader from './SVGHeader'
13
-
14
- import { getTrackName } from '@jbrowse/core/util/tracks'
15
-
16
- type LGV = LinearGenomeViewModel
17
-
18
- interface Display {
19
- height: number
20
- }
21
- interface Track {
22
- displays: Display[]
23
- }
24
-
25
- export function totalHeight(
26
- tracks: Track[],
27
- textHeight: number,
28
- trackLabels: string,
29
- ) {
30
- return sum(
31
- tracks.map(
32
- t =>
33
- t.displays[0].height +
34
- (['none', 'left'].includes(trackLabels) ? 0 : textHeight),
35
- ),
36
- )
37
- }
38
-
39
- // render LGV to SVG
40
- export async function renderToSvg(model: LGV, opts: ExportSvgOptions) {
41
- await when(() => model.initialized)
42
- const {
43
- textHeight = 18,
44
- headerHeight = 40,
45
- rulerHeight = 50,
46
- fontSize = 13,
47
- cytobandHeight = 100,
48
- trackLabels = 'offset',
49
- themeName = 'default',
50
- Wrapper = ({ children }) => <>{children}</>,
51
- } = opts
52
- const session = getSession(model)
53
- const theme = session.allThemes?.()[themeName]
54
- const { width, tracks, showCytobands } = model
55
- const shift = 50
56
- const c = +showCytobands * cytobandHeight
57
- const offset = headerHeight + rulerHeight + c + 10
58
- const height = totalHeight(tracks, textHeight, trackLabels) + offset + 100
59
- const displayResults = await Promise.all(
60
- tracks.map(async track => {
61
- const display = track.displays[0]
62
- await when(() => !display.renderProps().notReady)
63
- return { track, result: await display.renderSvg({ ...opts, theme }) }
64
- }),
65
- )
66
- const trackLabelMaxLen =
67
- max(
68
- tracks.map(t =>
69
- measureText(getTrackName(t.configuration, session), fontSize),
70
- ),
71
- 0,
72
- ) + 40
73
- const trackLabelOffset = trackLabels === 'left' ? trackLabelMaxLen : 0
74
- const w = width + trackLabelOffset
75
-
76
- // the xlink namespace is used for rendering <image> tag
77
- return renderToStaticMarkup(
78
- <ThemeProvider theme={createJBrowseTheme(theme)}>
79
- <Wrapper>
80
- <svg
81
- width={w}
82
- height={height}
83
- xmlns="http://www.w3.org/2000/svg"
84
- xmlnsXlink="http://www.w3.org/1999/xlink"
85
- viewBox={[0, 0, w + shift * 2, height].toString()}
86
- >
87
- <SVGBackground width={w} height={height} shift={shift} />
88
- <g transform={`translate(${shift} 0)`}>
89
- <g transform={`translate(${trackLabelOffset})`}>
90
- <SVGHeader
91
- model={model}
92
- fontSize={fontSize}
93
- rulerHeight={rulerHeight}
94
- cytobandHeight={cytobandHeight}
95
- />
96
- </g>
97
- <SVGTracks
98
- textHeight={textHeight}
99
- fontSize={fontSize}
100
- model={model}
101
- displayResults={displayResults}
102
- offset={offset}
103
- trackLabels={trackLabels}
104
- trackLabelOffset={trackLabelOffset}
105
- />
106
- </g>
107
- </svg>
108
- </Wrapper>
109
- </ThemeProvider>,
110
- )
111
- }
112
-
113
- export { default as SVGRuler } from './SVGRuler'
114
- export { default as SVGTracks } from './SVGTracks'
@@ -1,31 +0,0 @@
1
- import React from 'react'
2
-
3
- // locals
4
- import { LinearGenomeViewModel } from '..'
5
-
6
- type LGV = LinearGenomeViewModel
7
-
8
- // SVG component, region separator
9
- export default function SVGRegionSeparators({
10
- model,
11
- height,
12
- }: {
13
- height: number
14
- model: LGV
15
- }) {
16
- const { dynamicBlocks, offsetPx, interRegionPaddingWidth } = model
17
- return (
18
- <>
19
- {dynamicBlocks.contentBlocks.slice(1).map(block => (
20
- <rect
21
- key={block.key}
22
- x={block.offsetPx - offsetPx - interRegionPaddingWidth}
23
- width={interRegionPaddingWidth}
24
- y={0}
25
- height={height}
26
- fill="grey"
27
- />
28
- ))}
29
- </>
30
- )
31
- }
@@ -1,125 +0,0 @@
1
- import React from 'react'
2
- import { getTickDisplayStr } from '@jbrowse/core/util'
3
- import { useTheme } from '@mui/material'
4
-
5
- // locals
6
- import { makeTicks } from '../util'
7
-
8
- import { LinearGenomeViewModel } from '..'
9
- import SVGRegionSeparators from './SVGRegionSeparators'
10
-
11
- type LGV = LinearGenomeViewModel
12
-
13
- function Ruler({
14
- start,
15
- end,
16
- bpPerPx,
17
- reversed = false,
18
- major = true,
19
- minor = true,
20
- hideText = false,
21
- }: {
22
- start: number
23
- end: number
24
- bpPerPx: number
25
- reversed?: boolean
26
- major?: boolean
27
- minor?: boolean
28
- hideText?: boolean
29
- }) {
30
- const ticks = makeTicks(start, end, bpPerPx, major, minor)
31
- const theme = useTheme()
32
- return (
33
- <>
34
- {ticks.map(tick => {
35
- const x = (reversed ? end - tick.base : tick.base - start) / bpPerPx
36
- return (
37
- <line
38
- key={tick.base}
39
- x1={x}
40
- x2={x}
41
- y1={0}
42
- y2={tick.type === 'major' ? 6 : 4}
43
- strokeWidth={1}
44
- stroke={theme.palette.text.secondary}
45
- />
46
- )
47
- })}
48
- {!hideText
49
- ? ticks
50
- .filter(tick => tick.type === 'major')
51
- .map(tick => {
52
- const x =
53
- (reversed ? end - tick.base : tick.base - start) / bpPerPx
54
- return (
55
- <text
56
- x={x - 3}
57
- y={7 + 11}
58
- key={`label-${tick.base}`}
59
- fontSize={11}
60
- fill={theme.palette.text.primary}
61
- >
62
- {getTickDisplayStr(tick.base + 1, bpPerPx)}
63
- </text>
64
- )
65
- })
66
- : null}
67
- </>
68
- )
69
- }
70
-
71
- export default function SVGRuler({
72
- model,
73
- fontSize,
74
- }: {
75
- model: LGV
76
- fontSize: number
77
- }) {
78
- const {
79
- dynamicBlocks: { contentBlocks },
80
- offsetPx: viewOffsetPx,
81
- bpPerPx,
82
- } = model
83
- const renderRuler = contentBlocks.length < 5
84
- const theme = useTheme()
85
- return (
86
- <>
87
- <SVGRegionSeparators model={model} height={30} />
88
- {contentBlocks.map(block => {
89
- const { start, end, key, reversed, offsetPx, refName, widthPx } = block
90
- const offset = offsetPx - viewOffsetPx
91
- const clipid = `clip-${key}`
92
- return (
93
- <g key={key}>
94
- <defs>
95
- <clipPath id={clipid}>
96
- <rect x={0} y={0} width={widthPx} height={100} />
97
- </clipPath>
98
- </defs>
99
- <g transform={`translate(${offset} 0)`}>
100
- <g clipPath={`url(#${clipid})`}>
101
- <text
102
- x={4}
103
- y={fontSize}
104
- fontSize={fontSize}
105
- fill={theme.palette.text.primary}
106
- >
107
- {refName}
108
- </text>
109
- <g transform="translate(0 20)">
110
- <Ruler
111
- hideText={!renderRuler}
112
- start={start}
113
- end={end}
114
- bpPerPx={bpPerPx}
115
- reversed={reversed}
116
- />
117
- </g>
118
- </g>
119
- </g>
120
- </g>
121
- )
122
- })}
123
- </>
124
- )
125
- }
@@ -1,57 +0,0 @@
1
- import React from 'react'
2
- import { getBpDisplayStr } from '@jbrowse/core/util'
3
- import { useTheme } from '@mui/material'
4
- import { LinearGenomeViewModel } from '..'
5
-
6
- type LGV = LinearGenomeViewModel
7
-
8
- export default function SVGScalebar({
9
- model,
10
- fontSize,
11
- }: {
12
- model: LGV
13
- fontSize: number
14
- }) {
15
- const {
16
- offsetPx,
17
- dynamicBlocks: { totalWidthPxWithoutBorders: totalWidthPx, totalBp },
18
- } = model
19
- const theme = useTheme()
20
- const displayBp = getBpDisplayStr(totalBp)
21
- const x0 = Math.max(-offsetPx, 0)
22
- const x1 = x0 + totalWidthPx
23
- return (
24
- <>
25
- <line
26
- x1={x0}
27
- x2={x1}
28
- y1={10}
29
- y2={10}
30
- stroke={theme.palette.text.secondary}
31
- />
32
- <line
33
- x1={x0}
34
- x2={x0}
35
- y1={5}
36
- y2={15}
37
- stroke={theme.palette.text.secondary}
38
- />
39
- <line
40
- x1={x1}
41
- x2={x1}
42
- y1={5}
43
- y2={15}
44
- stroke={theme.palette.text.secondary}
45
- />
46
- <text
47
- x={x0 + (x1 - x0) / 2}
48
- y={fontSize * 2}
49
- textAnchor="middle"
50
- fontSize={fontSize}
51
- fill={theme.palette.text.primary}
52
- >
53
- {displayBp}
54
- </text>
55
- </>
56
- )
57
- }
@@ -1,47 +0,0 @@
1
- import React from 'react'
2
- import { useTheme } from '@mui/material'
3
-
4
- export default function SVGTrackLabel({
5
- trackLabels,
6
- trackName,
7
- fontSize,
8
- trackLabelOffset,
9
- x,
10
- }: {
11
- trackName: string
12
- trackLabels: string
13
- fontSize: number
14
- trackLabelOffset: number
15
- x: number
16
- }) {
17
- const theme = useTheme()
18
- const fill = theme.palette.text.primary
19
- const xoff = trackLabels === 'overlay' ? 5 : 0
20
- const yoff = trackLabels === 'offset' ? 5 : 0
21
- return trackLabels !== 'none' ? (
22
- <g>
23
- {trackLabels === 'left' ? (
24
- <text
25
- x={trackLabelOffset - 40}
26
- y={20}
27
- fill={fill}
28
- fontSize={fontSize}
29
- dominantBaseline="hanging"
30
- textAnchor="end"
31
- >
32
- {trackName}
33
- </text>
34
- ) : (
35
- <text
36
- x={x + xoff}
37
- y={yoff}
38
- fill={fill}
39
- fontSize={fontSize}
40
- dominantBaseline="hanging"
41
- >
42
- {trackName}
43
- </text>
44
- )}
45
- </g>
46
- ) : null
47
- }
@@ -1,67 +0,0 @@
1
- import React from 'react'
2
- import { AnyConfigurationModel } from '@jbrowse/core/configuration'
3
- import { getTrackName } from '@jbrowse/core/util/tracks'
4
- import { getSession } from '@jbrowse/core/util'
5
- // locals
6
- import { LinearGenomeViewModel } from '..'
7
- import SVGRegionSeparators from './SVGRegionSeparators'
8
- import SVGTrackLabel from './SVGTrackLabel'
9
-
10
- type LGV = LinearGenomeViewModel
11
-
12
- interface DisplayResult {
13
- track: {
14
- configuration: AnyConfigurationModel
15
- displays: { height: number }[]
16
- }
17
- result: string
18
- }
19
-
20
- // SVG component, tracks
21
- export default function SVGTracks({
22
- displayResults,
23
- model,
24
- offset,
25
- textHeight,
26
- fontSize,
27
- trackLabels = 'offset',
28
- trackLabelOffset = 0,
29
- }: {
30
- displayResults: DisplayResult[]
31
- model: LGV
32
- offset: number
33
- textHeight: number
34
- fontSize: number
35
- trackLabels?: string
36
- trackLabelOffset?: number
37
- }) {
38
- const session = getSession(model)
39
- const textOffset = trackLabels === 'offset' ? textHeight : 0
40
- return (
41
- <>
42
- {displayResults.map(({ track, result }) => {
43
- const current = offset
44
- const conf = track.configuration
45
- const trackName = getTrackName(conf, session)
46
- const display = track.displays[0]
47
- const x = Math.max(-model.offsetPx, 0)
48
- offset += display.height + textOffset
49
- return (
50
- <g key={conf.trackId} transform={`translate(0 ${current})`}>
51
- <g transform={`translate(${trackLabelOffset} ${textOffset})`}>
52
- <SVGRegionSeparators model={model} height={display.height} />
53
- {result}
54
- </g>
55
- <SVGTrackLabel
56
- trackName={trackName}
57
- fontSize={fontSize}
58
- trackLabels={trackLabels}
59
- trackLabelOffset={trackLabelOffset}
60
- x={x}
61
- />
62
- </g>
63
- )
64
- })}
65
- </>
66
- )
67
- }
@@ -1,33 +0,0 @@
1
- import { makeTicks } from './util'
2
-
3
- describe('tick calculation', () => {
4
- test('one', () => {
5
- const result = Array.from(makeTicks(0, 10, 0.05))
6
- expect(result).toEqual([
7
- { type: 'major', base: -1, index: 0 },
8
- { type: 'minor', base: 0, index: 1 },
9
- { type: 'minor', base: 1, index: 2 },
10
- { type: 'minor', base: 2, index: 3 },
11
- { type: 'minor', base: 3, index: 4 },
12
- { type: 'minor', base: 4, index: 5 },
13
- { type: 'minor', base: 5, index: 6 },
14
- { type: 'minor', base: 6, index: 7 },
15
- { type: 'minor', base: 7, index: 8 },
16
- { type: 'minor', base: 8, index: 9 },
17
- { type: 'major', base: 9, index: 10 },
18
- { type: 'minor', base: 10, index: 11 },
19
- { type: 'minor', base: 11, index: 12 },
20
- ])
21
- })
22
- test('two', () => {
23
- const result = Array.from(makeTicks(0, 50, 1))
24
- expect(result).toEqual([
25
- { type: 'minor', base: -21, index: 0 },
26
- { type: 'major', base: -1, index: 1 },
27
- { type: 'minor', base: 19, index: 2 },
28
- { type: 'minor', base: 39, index: 3 },
29
- { type: 'minor', base: 59, index: 4 },
30
- { type: 'minor', base: 79, index: 5 },
31
- ])
32
- })
33
- })