@jbrowse/core 3.7.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (947) hide show
  1. package/esm/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.js +32 -0
  2. package/esm/BaseFeatureWidget/BaseFeatureDetail/Attributes.d.ts +13 -0
  3. package/esm/BaseFeatureWidget/BaseFeatureDetail/Attributes.js +43 -0
  4. package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.d.ts +8 -0
  5. package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.js +7 -0
  6. package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCard.d.ts +2 -0
  7. package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCard.js +17 -0
  8. package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.d.ts +2 -0
  9. package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.js +7 -0
  10. package/esm/BaseFeatureWidget/BaseFeatureDetail/BasicValue.js +20 -0
  11. package/esm/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.d.ts +2 -0
  12. package/esm/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.js +24 -0
  13. package/esm/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.js +57 -0
  14. package/esm/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.d.ts +11 -0
  15. package/esm/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.js +42 -0
  16. package/esm/BaseFeatureWidget/BaseFeatureDetail/FieldName.js +24 -0
  17. package/esm/BaseFeatureWidget/BaseFeatureDetail/Position.d.ts +2 -0
  18. package/esm/BaseFeatureWidget/BaseFeatureDetail/Position.js +14 -0
  19. package/esm/BaseFeatureWidget/BaseFeatureDetail/SimpleField.js +14 -0
  20. package/esm/BaseFeatureWidget/BaseFeatureDetail/UriField.js +22 -0
  21. package/esm/BaseFeatureWidget/BaseFeatureDetail/index.d.ts +7 -0
  22. package/esm/BaseFeatureWidget/BaseFeatureDetail/index.js +24 -0
  23. package/esm/BaseFeatureWidget/BaseFeatureDetail/types.d.ts +7 -0
  24. package/esm/BaseFeatureWidget/BaseFeatureDetail/types.js +1 -0
  25. package/esm/BaseFeatureWidget/BaseFeatureDetail/util.js +26 -0
  26. package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.d.ts +10 -0
  27. package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.js +41 -0
  28. package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.d.ts +7 -0
  29. package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.js +44 -0
  30. package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.d.ts +7 -0
  31. package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.js +34 -0
  32. package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.d.ts +8 -0
  33. package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.js +26 -0
  34. package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.d.ts +3 -0
  35. package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.js +29 -0
  36. package/esm/BaseFeatureWidget/SequenceFeatureDetails/consts.js +6 -0
  37. package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/HelpDialog.js +11 -0
  38. package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.d.ts +8 -0
  39. package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.js +40 -0
  40. package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.d.ts +8 -0
  41. package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.js +105 -0
  42. package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.d.ts +5 -0
  43. package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.js +64 -0
  44. package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.d.ts +6 -0
  45. package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.js +48 -0
  46. package/esm/BaseFeatureWidget/SequenceFeatureDetails/index.d.ts +1 -0
  47. package/esm/BaseFeatureWidget/SequenceFeatureDetails/index.js +1 -0
  48. package/esm/BaseFeatureWidget/SequenceFeatureDetails/model.d.ts +31 -0
  49. package/esm/BaseFeatureWidget/SequenceFeatureDetails/model.js +83 -0
  50. package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.d.ts +16 -0
  51. package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.js +83 -0
  52. package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.d.ts +8 -0
  53. package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.js +16 -0
  54. package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.d.ts +10 -0
  55. package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.js +52 -0
  56. package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.d.ts +9 -0
  57. package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.js +21 -0
  58. package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.d.ts +10 -0
  59. package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.js +22 -0
  60. package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.d.ts +80 -0
  61. package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.js +583 -0
  62. package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.d.ts +141 -0
  63. package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.js +1116 -0
  64. package/esm/BaseFeatureWidget/SequenceFeatureDetails/types.d.ts +8 -0
  65. package/esm/BaseFeatureWidget/SequenceFeatureDetails/types.js +1 -0
  66. package/esm/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.d.ts +13 -0
  67. package/esm/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.js +73 -0
  68. package/esm/BaseFeatureWidget/SequenceFeatureDetails/util.js +42 -0
  69. package/esm/BaseFeatureWidget/configSchema.d.ts +2 -0
  70. package/esm/BaseFeatureWidget/configSchema.js +3 -0
  71. package/esm/BaseFeatureWidget/index.d.ts +2 -0
  72. package/esm/BaseFeatureWidget/index.js +2 -0
  73. package/esm/BaseFeatureWidget/stateModelFactory.d.ts +101 -0
  74. package/esm/BaseFeatureWidget/stateModelFactory.js +96 -0
  75. package/esm/BaseFeatureWidget/types.d.ts +22 -0
  76. package/esm/BaseFeatureWidget/types.js +1 -0
  77. package/esm/BaseFeatureWidget/util.d.ts +51 -0
  78. package/esm/BaseFeatureWidget/util.js +95 -0
  79. package/esm/CorePlugin.d.ts +6 -0
  80. package/esm/CorePlugin.js +24 -0
  81. package/esm/PhasedScheduler.js +25 -0
  82. package/esm/Plugin.d.ts +13 -0
  83. package/esm/Plugin.js +9 -0
  84. package/esm/PluginLoader.d.ts +64 -0
  85. package/esm/PluginLoader.js +164 -0
  86. package/esm/PluginManager.d.ts +125 -0
  87. package/esm/PluginManager.js +414 -0
  88. package/esm/ReExports/BaseFeatureDetails.js +9 -0
  89. package/esm/ReExports/DataGrid.js +1 -0
  90. package/esm/ReExports/MuiDataGridReExports.js +131 -0
  91. package/esm/ReExports/MuiReExports.d.ts +134 -0
  92. package/esm/ReExports/MuiReExports.js +115 -0
  93. package/esm/ReExports/index.d.ts +1 -0
  94. package/esm/ReExports/index.js +1 -0
  95. package/esm/ReExports/lazify.js +10 -0
  96. package/esm/ReExports/list.js +275 -0
  97. package/esm/ReExports/modules.js +149 -0
  98. package/esm/TextSearch/BaseResults.d.ts +46 -0
  99. package/esm/TextSearch/BaseResults.js +67 -0
  100. package/esm/TextSearch/TextSearchManager.d.ts +48 -0
  101. package/esm/TextSearch/TextSearchManager.js +77 -0
  102. package/esm/assemblyManager/assembly.d.ts +75 -0
  103. package/esm/assemblyManager/assembly.js +328 -0
  104. package/esm/assemblyManager/assemblyConfigSchema.d.ts +27 -0
  105. package/esm/assemblyManager/assemblyConfigSchema.js +51 -0
  106. package/esm/assemblyManager/assemblyManager.d.ts +528 -0
  107. package/esm/assemblyManager/assemblyManager.js +131 -0
  108. package/esm/assemblyManager/index.d.ts +3 -0
  109. package/esm/assemblyManager/index.js +2 -0
  110. package/esm/configuration/configurationSchema.d.ts +37 -0
  111. package/esm/configuration/configurationSchema.js +230 -0
  112. package/esm/configuration/configurationSlot.d.ts +33 -0
  113. package/esm/configuration/configurationSlot.js +239 -0
  114. package/esm/configuration/index.d.ts +3 -0
  115. package/esm/configuration/index.js +2 -0
  116. package/esm/configuration/types.d.ts +14 -0
  117. package/esm/configuration/types.js +1 -0
  118. package/esm/configuration/util.d.ts +10 -0
  119. package/esm/configuration/util.js +123 -0
  120. package/esm/data_adapters/BaseAdapter/BaseAdapter.d.ts +16 -0
  121. package/esm/data_adapters/BaseAdapter/BaseAdapter.js +31 -0
  122. package/esm/data_adapters/BaseAdapter/BaseFeatureDataAdapter.d.ts +24 -0
  123. package/esm/data_adapters/BaseAdapter/BaseFeatureDataAdapter.js +68 -0
  124. package/esm/data_adapters/BaseAdapter/BaseOptions.d.ts +18 -0
  125. package/esm/data_adapters/BaseAdapter/BaseOptions.js +1 -0
  126. package/esm/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.d.ts +10 -0
  127. package/esm/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.js +1 -0
  128. package/esm/data_adapters/BaseAdapter/BaseSequenceAdapter.d.ts +11 -0
  129. package/esm/data_adapters/BaseAdapter/BaseSequenceAdapter.js +12 -0
  130. package/esm/data_adapters/BaseAdapter/BaseTextSearchAdapter.d.ts +6 -0
  131. package/esm/data_adapters/BaseAdapter/BaseTextSearchAdapter.js +1 -0
  132. package/esm/data_adapters/BaseAdapter/RegionsAdapter.d.ts +6 -0
  133. package/esm/data_adapters/BaseAdapter/RegionsAdapter.js +1 -0
  134. package/esm/data_adapters/BaseAdapter/index.d.ts +13 -0
  135. package/esm/data_adapters/BaseAdapter/index.js +5 -0
  136. package/esm/data_adapters/BaseAdapter/stats.d.ts +10 -0
  137. package/esm/data_adapters/BaseAdapter/stats.js +48 -0
  138. package/esm/data_adapters/BaseAdapter/types.d.ts +23 -0
  139. package/esm/data_adapters/BaseAdapter/types.js +1 -0
  140. package/esm/data_adapters/BaseAdapter/util.d.ts +12 -0
  141. package/esm/data_adapters/BaseAdapter/util.js +15 -0
  142. package/esm/data_adapters/CytobandAdapter/CytobandAdapter.d.ts +6 -0
  143. package/esm/data_adapters/CytobandAdapter/CytobandAdapter.js +28 -0
  144. package/esm/data_adapters/CytobandAdapter/configSchema.d.ts +9 -0
  145. package/esm/data_adapters/CytobandAdapter/configSchema.js +24 -0
  146. package/esm/data_adapters/CytobandAdapter/index.d.ts +2 -0
  147. package/esm/data_adapters/CytobandAdapter/index.js +12 -0
  148. package/esm/data_adapters/dataAdapterCache.d.ts +14 -0
  149. package/esm/data_adapters/dataAdapterCache.js +54 -0
  150. package/esm/data_adapters/util.js +4 -0
  151. package/esm/pluggableElementTypes/AdapterType.d.ts +25 -0
  152. package/esm/pluggableElementTypes/AdapterType.js +17 -0
  153. package/esm/pluggableElementTypes/AddTrackWorkflowType.d.ts +17 -0
  154. package/esm/pluggableElementTypes/AddTrackWorkflowType.js +10 -0
  155. package/esm/pluggableElementTypes/ConnectionType.d.ts +20 -0
  156. package/esm/pluggableElementTypes/ConnectionType.js +16 -0
  157. package/esm/pluggableElementTypes/DisplayType.d.ts +30 -0
  158. package/esm/pluggableElementTypes/DisplayType.js +20 -0
  159. package/esm/pluggableElementTypes/GlyphType.d.ts +43 -0
  160. package/esm/pluggableElementTypes/GlyphType.js +18 -0
  161. package/esm/pluggableElementTypes/InternetAccountType.d.ts +12 -0
  162. package/esm/pluggableElementTypes/InternetAccountType.js +10 -0
  163. package/esm/pluggableElementTypes/PluggableElementBase.js +11 -0
  164. package/esm/pluggableElementTypes/RpcMethodType.d.ts +19 -0
  165. package/esm/pluggableElementTypes/RpcMethodType.js +88 -0
  166. package/esm/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.d.ts +11 -0
  167. package/esm/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.js +28 -0
  168. package/esm/pluggableElementTypes/TextSearchAdapterType.d.ts +18 -0
  169. package/esm/pluggableElementTypes/TextSearchAdapterType.js +15 -0
  170. package/esm/pluggableElementTypes/TrackType.d.ts +16 -0
  171. package/esm/pluggableElementTypes/TrackType.js +14 -0
  172. package/esm/pluggableElementTypes/ViewType.d.ts +29 -0
  173. package/esm/pluggableElementTypes/ViewType.js +18 -0
  174. package/esm/pluggableElementTypes/WidgetType.d.ts +27 -0
  175. package/esm/pluggableElementTypes/WidgetType.js +18 -0
  176. package/esm/pluggableElementTypes/index.d.ts +27 -0
  177. package/esm/pluggableElementTypes/index.js +14 -0
  178. package/esm/pluggableElementTypes/models/BaseConnectionModelFactory.d.ts +29 -0
  179. package/esm/pluggableElementTypes/models/BaseConnectionModelFactory.js +35 -0
  180. package/esm/pluggableElementTypes/models/BaseDisplayModel.d.ts +180 -0
  181. package/esm/pluggableElementTypes/models/BaseDisplayModel.js +104 -0
  182. package/esm/pluggableElementTypes/models/BaseTrackModel.d.ts +74 -0
  183. package/esm/pluggableElementTypes/models/BaseTrackModel.js +203 -0
  184. package/esm/pluggableElementTypes/models/BaseViewModel.d.ts +52 -0
  185. package/esm/pluggableElementTypes/models/BaseViewModel.js +42 -0
  186. package/esm/pluggableElementTypes/models/InternetAccountModel.d.ts +86 -0
  187. package/esm/pluggableElementTypes/models/InternetAccountModel.js +151 -0
  188. package/esm/pluggableElementTypes/models/baseConnectionConfig.d.ts +16 -0
  189. package/esm/pluggableElementTypes/models/baseConnectionConfig.js +18 -0
  190. package/esm/pluggableElementTypes/models/baseInternetAccountConfig.d.ts +27 -0
  191. package/esm/pluggableElementTypes/models/baseInternetAccountConfig.js +32 -0
  192. package/esm/pluggableElementTypes/models/baseTrackConfig.d.ts +87 -0
  193. package/esm/pluggableElementTypes/models/baseTrackConfig.js +134 -0
  194. package/esm/pluggableElementTypes/models/components/SaveTrackData.d.ts +11 -0
  195. package/esm/pluggableElementTypes/models/components/SaveTrackData.js +158 -0
  196. package/esm/pluggableElementTypes/models/index.d.ts +14 -0
  197. package/esm/pluggableElementTypes/models/index.js +8 -0
  198. package/esm/pluggableElementTypes/models/saveTrackFileTypes/bed.d.ts +4 -0
  199. package/esm/pluggableElementTypes/models/saveTrackFileTypes/bed.js +9 -0
  200. package/esm/pluggableElementTypes/models/saveTrackFileTypes/fetchSequence.d.ts +5 -0
  201. package/esm/pluggableElementTypes/models/saveTrackFileTypes/fetchSequence.js +17 -0
  202. package/esm/pluggableElementTypes/models/saveTrackFileTypes/genbank.d.ts +7 -0
  203. package/esm/pluggableElementTypes/models/saveTrackFileTypes/genbank.js +108 -0
  204. package/esm/pluggableElementTypes/models/saveTrackFileTypes/gff3.d.ts +5 -0
  205. package/esm/pluggableElementTypes/models/saveTrackFileTypes/gff3.js +91 -0
  206. package/esm/pluggableElementTypes/models/saveTrackFileTypes/types.d.ts +11 -0
  207. package/esm/pluggableElementTypes/models/saveTrackFileTypes/types.js +1 -0
  208. package/esm/pluggableElementTypes/renderers/BoxRendererType.d.ts +52 -0
  209. package/esm/pluggableElementTypes/renderers/BoxRendererType.js +78 -0
  210. package/esm/pluggableElementTypes/renderers/CircularChordRendererType.d.ts +4 -0
  211. package/esm/pluggableElementTypes/renderers/CircularChordRendererType.js +4 -0
  212. package/esm/pluggableElementTypes/renderers/FeatureRendererType.d.ts +58 -0
  213. package/esm/pluggableElementTypes/renderers/FeatureRendererType.js +77 -0
  214. package/esm/pluggableElementTypes/renderers/LayoutSession.d.ts +31 -0
  215. package/esm/pluggableElementTypes/renderers/LayoutSession.js +37 -0
  216. package/esm/pluggableElementTypes/renderers/RendererType.d.ts +28 -0
  217. package/esm/pluggableElementTypes/renderers/RendererType.js +20 -0
  218. package/esm/pluggableElementTypes/renderers/ServerSideRendererType.d.ts +57 -0
  219. package/esm/pluggableElementTypes/renderers/ServerSideRendererType.js +113 -0
  220. package/esm/pluggableElementTypes/renderers/index.d.ts +6 -0
  221. package/esm/pluggableElementTypes/renderers/index.js +6 -0
  222. package/esm/pluggableElementTypes/renderers/util/serializableFilterChain.js +30 -0
  223. package/esm/pluggableElementTypes/renderers/util.d.ts +3 -0
  224. package/esm/pluggableElementTypes/renderers/util.js +14 -0
  225. package/esm/rpc/BaseRpcDriver.d.ts +40 -0
  226. package/esm/rpc/BaseRpcDriver.js +116 -0
  227. package/esm/rpc/MainThreadRpcDriver.d.ts +14 -0
  228. package/esm/rpc/MainThreadRpcDriver.js +33 -0
  229. package/esm/rpc/RpcManager.d.ts +35 -0
  230. package/esm/rpc/RpcManager.js +63 -0
  231. package/esm/rpc/WebWorkerRpcDriver.d.ts +31 -0
  232. package/esm/rpc/WebWorkerRpcDriver.js +77 -0
  233. package/esm/rpc/baseRpcConfig.d.ts +8 -0
  234. package/esm/rpc/baseRpcConfig.js +10 -0
  235. package/esm/rpc/configSchema.d.ts +9 -0
  236. package/esm/rpc/configSchema.js +22 -0
  237. package/esm/rpc/coreRpcMethods.d.ts +12 -0
  238. package/esm/rpc/coreRpcMethods.js +12 -0
  239. package/esm/rpc/mainThreadRpcConfig.d.ts +8 -0
  240. package/esm/rpc/mainThreadRpcConfig.js +8 -0
  241. package/esm/rpc/methods/CoreFreeResources.d.ts +6 -0
  242. package/esm/rpc/methods/CoreFreeResources.js +14 -0
  243. package/esm/rpc/methods/CoreGetExportData.d.ts +19 -0
  244. package/esm/rpc/methods/CoreGetExportData.js +18 -0
  245. package/esm/rpc/methods/CoreGetFeatureDensityStats.d.ts +17 -0
  246. package/esm/rpc/methods/CoreGetFeatureDensityStats.js +25 -0
  247. package/esm/rpc/methods/CoreGetFeatureDetails.d.ts +11 -0
  248. package/esm/rpc/methods/CoreGetFeatureDetails.js +24 -0
  249. package/esm/rpc/methods/CoreGetFeatures.d.ts +18 -0
  250. package/esm/rpc/methods/CoreGetFeatures.js +31 -0
  251. package/esm/rpc/methods/CoreGetFileInfo.d.ts +9 -0
  252. package/esm/rpc/methods/CoreGetFileInfo.js +15 -0
  253. package/esm/rpc/methods/CoreGetMetadata.d.ts +9 -0
  254. package/esm/rpc/methods/CoreGetMetadata.js +15 -0
  255. package/esm/rpc/methods/CoreGetRefNames.d.ts +10 -0
  256. package/esm/rpc/methods/CoreGetRefNames.js +19 -0
  257. package/esm/rpc/methods/CoreGetRegions.d.ts +8 -0
  258. package/esm/rpc/methods/CoreGetRegions.js +15 -0
  259. package/esm/rpc/methods/CoreGetSequence.d.ts +13 -0
  260. package/esm/rpc/methods/CoreGetSequence.js +17 -0
  261. package/esm/rpc/methods/CoreRender.d.ts +14 -0
  262. package/esm/rpc/methods/CoreRender.js +35 -0
  263. package/esm/rpc/methods/CoreSaveFeatureData.d.ts +16 -0
  264. package/esm/rpc/methods/CoreSaveFeatureData.js +32 -0
  265. package/esm/rpc/methods/util.d.ts +15 -0
  266. package/esm/rpc/methods/util.js +7 -0
  267. package/esm/rpc/webWorkerRpcConfig.d.ts +8 -0
  268. package/esm/rpc/webWorkerRpcConfig.js +8 -0
  269. package/esm/ui/AppLogo.d.ts +7 -0
  270. package/esm/ui/AppLogo.js +10 -0
  271. package/esm/ui/AssemblySelector.d.ts +13 -0
  272. package/esm/ui/AssemblySelector.js +39 -0
  273. package/esm/ui/BaseTooltip.js +42 -0
  274. package/esm/ui/CascadingMenu.d.ts +30 -0
  275. package/esm/ui/CascadingMenu.js +48 -0
  276. package/esm/ui/CascadingMenuButton.d.ts +26 -0
  277. package/esm/ui/CascadingMenuButton.js +24 -0
  278. package/esm/ui/CascadingMenuHelpDialog.d.ts +5 -0
  279. package/esm/ui/CascadingMenuHelpDialog.js +10 -0
  280. package/esm/ui/CascadingMenuHelpIconButton.d.ts +5 -0
  281. package/esm/ui/CascadingMenuHelpIconButton.js +15 -0
  282. package/esm/ui/ColorPicker.js +62 -0
  283. package/esm/ui/ConfirmDialog.js +13 -0
  284. package/esm/ui/DataGridFlexContainer.d.ts +5 -0
  285. package/esm/ui/DataGridFlexContainer.js +12 -0
  286. package/esm/ui/Dialog.d.ts +7 -0
  287. package/esm/ui/Dialog.js +45 -0
  288. package/esm/ui/DraggableDialog.js +27 -0
  289. package/esm/ui/DropDownMenu.d.ts +6 -0
  290. package/esm/ui/DropDownMenu.js +24 -0
  291. package/esm/ui/EditableTypography.js +60 -0
  292. package/esm/ui/ErrorBoundary.d.ts +17 -0
  293. package/esm/ui/ErrorBoundary.js +16 -0
  294. package/esm/ui/ErrorMessage.js +56 -0
  295. package/esm/ui/ErrorMessageStackTraceContents.d.ts +4 -0
  296. package/esm/ui/ErrorMessageStackTraceContents.js +25 -0
  297. package/esm/ui/ErrorMessageStackTraceDialog.js +108 -0
  298. package/esm/ui/ExternalLink.js +7 -0
  299. package/esm/ui/FactoryResetDialog.js +18 -0
  300. package/esm/ui/FatalErrorDialog.js +18 -0
  301. package/esm/ui/FileSelector/FileSelector.d.ts +11 -0
  302. package/esm/ui/FileSelector/FileSelector.js +52 -0
  303. package/esm/ui/FileSelector/LocalFileChooser.d.ts +6 -0
  304. package/esm/ui/FileSelector/LocalFileChooser.js +39 -0
  305. package/esm/ui/FileSelector/LocationInput.d.ts +9 -0
  306. package/esm/ui/FileSelector/LocationInput.js +15 -0
  307. package/esm/ui/FileSelector/SourceTypeSelector.d.ts +9 -0
  308. package/esm/ui/FileSelector/SourceTypeSelector.js +38 -0
  309. package/esm/ui/FileSelector/UrlChooser.d.ts +8 -0
  310. package/esm/ui/FileSelector/UrlChooser.js +17 -0
  311. package/esm/ui/FileSelector/index.d.ts +1 -0
  312. package/esm/ui/FileSelector/index.js +1 -0
  313. package/esm/ui/FileSelector/useInternetAccounts.d.ts +178 -0
  314. package/esm/ui/FileSelector/useInternetAccounts.js +18 -0
  315. package/esm/ui/HoverMenu.js +15 -0
  316. package/esm/ui/Icons.js +14 -0
  317. package/esm/ui/LoadingEllipses.js +31 -0
  318. package/esm/ui/Logo.js +42 -0
  319. package/esm/ui/Menu.d.ts +2 -0
  320. package/esm/ui/Menu.js +1 -0
  321. package/esm/ui/MenuButton.d.ts +1 -0
  322. package/esm/ui/MenuButton.js +1 -0
  323. package/esm/ui/MenuItems.d.ts +15 -0
  324. package/esm/ui/MenuItems.js +59 -0
  325. package/esm/ui/MenuTypes.d.ts +39 -0
  326. package/esm/ui/MenuTypes.js +1 -0
  327. package/esm/ui/PrerenderedCanvas.d.ts +10 -0
  328. package/esm/ui/PrerenderedCanvas.js +33 -0
  329. package/esm/ui/RedErrorMessageBox.js +16 -0
  330. package/esm/ui/ResizeHandle.js +67 -0
  331. package/esm/ui/ReturnToImportFormDialog.js +13 -0
  332. package/esm/ui/SanitizedHTML.js +61 -0
  333. package/esm/ui/Snackbar.d.ts +10 -0
  334. package/esm/ui/Snackbar.js +14 -0
  335. package/esm/ui/SnackbarContents.d.ts +5 -0
  336. package/esm/ui/SnackbarContents.js +11 -0
  337. package/esm/ui/SnackbarModel.d.ts +17 -0
  338. package/esm/ui/SnackbarModel.js +55 -0
  339. package/esm/ui/colors.js +67 -0
  340. package/esm/ui/index.d.ts +20 -0
  341. package/esm/ui/index.js +20 -0
  342. package/esm/ui/react-colorful.d.ts +3 -0
  343. package/esm/ui/react-colorful.js +416 -0
  344. package/esm/ui/theme.d.ts +58 -0
  345. package/esm/ui/theme.js +392 -0
  346. package/esm/ui/useEvent.js +10 -0
  347. package/esm/util/Base1DUtils.d.ts +38 -0
  348. package/esm/util/Base1DUtils.js +205 -0
  349. package/esm/util/Base1DViewModel.d.ts +61 -0
  350. package/esm/util/Base1DViewModel.js +129 -0
  351. package/esm/util/QuickLRU/index.d.ts +1 -0
  352. package/esm/util/QuickLRU/index.js +1 -0
  353. package/esm/util/TimeTraveller.d.ts +19 -0
  354. package/esm/util/TimeTraveller.js +94 -0
  355. package/esm/util/aborting.js +42 -0
  356. package/esm/util/analytics.js +80 -0
  357. package/esm/util/blobToDataURL.js +14 -0
  358. package/esm/util/blockTypes.d.ts +59 -0
  359. package/esm/util/blockTypes.js +119 -0
  360. package/esm/util/calculateDynamicBlocks.d.ts +3 -0
  361. package/esm/util/calculateDynamicBlocks.js +104 -0
  362. package/esm/util/calculateStaticBlocks.d.ts +13 -0
  363. package/esm/util/calculateStaticBlocks.js +106 -0
  364. package/esm/util/coarseStripHTML.d.ts +1 -0
  365. package/esm/util/coarseStripHTML.js +17 -0
  366. package/esm/util/color/cssColorsLevel4.js +156 -0
  367. package/esm/util/color/index.d.ts +5 -0
  368. package/esm/util/color/index.js +39 -0
  369. package/esm/util/colord.d.ts +9 -0
  370. package/esm/util/colord.js +14 -0
  371. package/esm/util/compositeMap.js +59 -0
  372. package/esm/util/convertCodingSequenceToPeptides.d.ts +6 -0
  373. package/esm/util/convertCodingSequenceToPeptides.js +9 -0
  374. package/esm/util/dedupe.js +12 -0
  375. package/esm/util/fetchSeq.d.ts +8 -0
  376. package/esm/util/fetchSeq.js +23 -0
  377. package/esm/util/flatbush/index.d.ts +25 -0
  378. package/esm/util/flatbush/index.js +423 -0
  379. package/esm/util/flatqueue/index.js +61 -0
  380. package/esm/util/formatFastaStrings.js +8 -0
  381. package/esm/util/idMaker.js +21 -0
  382. package/esm/util/index.d.ts +271 -0
  383. package/esm/util/index.js +873 -0
  384. package/esm/util/io/RemoteFileWithRangeCache.js +71 -0
  385. package/esm/util/io/index.d.ts +7 -0
  386. package/esm/util/io/index.js +92 -0
  387. package/esm/util/isWebWorker.d.ts +1 -0
  388. package/esm/util/isWebWorker.js +4 -0
  389. package/esm/util/jexl.d.ts +2 -0
  390. package/esm/util/jexl.js +49 -0
  391. package/esm/util/jexlStrings.js +17 -0
  392. package/esm/util/layouts/BaseLayout.d.ts +30 -0
  393. package/esm/util/layouts/BaseLayout.js +1 -0
  394. package/esm/util/layouts/GranularRectLayout.d.ts +37 -0
  395. package/esm/util/layouts/GranularRectLayout.js +418 -0
  396. package/esm/util/layouts/MultiLayout.d.ts +12 -0
  397. package/esm/util/layouts/MultiLayout.js +40 -0
  398. package/esm/util/layouts/PileupLayout.d.ts +41 -0
  399. package/esm/util/layouts/PileupLayout.js +202 -0
  400. package/esm/util/layouts/PrecomputedLayout.d.ts +30 -0
  401. package/esm/util/layouts/PrecomputedLayout.js +71 -0
  402. package/esm/util/layouts/SceneGraph.js +121 -0
  403. package/esm/util/layouts/index.d.ts +8 -0
  404. package/esm/util/layouts/index.js +6 -0
  405. package/esm/util/layouts/intervalUtils.d.ts +3 -0
  406. package/esm/util/layouts/intervalUtils.js +63 -0
  407. package/esm/util/librpc.d.ts +2 -0
  408. package/esm/util/librpc.js +1 -0
  409. package/esm/util/linkify.d.ts +1 -0
  410. package/esm/util/linkify.js +5 -0
  411. package/esm/util/locString.d.ts +9 -0
  412. package/esm/util/locString.js +62 -0
  413. package/esm/util/makeAbortableReaction.d.ts +3 -0
  414. package/esm/util/makeAbortableReaction.js +47 -0
  415. package/esm/util/map-obj/index.d.ts +13 -0
  416. package/esm/util/map-obj/index.js +92 -0
  417. package/esm/util/mst-reflection.d.ts +11 -0
  418. package/esm/util/mst-reflection.js +54 -0
  419. package/esm/util/nanoid.d.ts +5 -0
  420. package/esm/util/nanoid.js +36 -0
  421. package/esm/util/nextTick.js +3 -0
  422. package/esm/util/offscreenCanvasGetSerializingSvg.d.ts +5 -0
  423. package/esm/util/offscreenCanvasGetSerializingSvg.js +9 -0
  424. package/esm/util/offscreenCanvasPonyfill.d.ts +5 -0
  425. package/esm/util/offscreenCanvasPonyfill.js +57 -0
  426. package/esm/util/offscreenCanvasUtils.d.ts +12 -0
  427. package/esm/util/offscreenCanvasUtils.js +19 -0
  428. package/esm/util/parseLineByLine.js +22 -0
  429. package/esm/util/range.js +21 -0
  430. package/esm/util/renderToAbstractCanvas.d.ts +17 -0
  431. package/esm/util/renderToAbstractCanvas.js +53 -0
  432. package/esm/util/rpc.d.ts +2 -0
  433. package/esm/util/rpc.js +6 -0
  434. package/esm/util/rxjs.d.ts +4 -0
  435. package/esm/util/rxjs.js +16 -0
  436. package/esm/util/simpleFeature.d.ts +44 -0
  437. package/esm/util/simpleFeature.js +81 -0
  438. package/esm/util/stats.d.ts +23 -0
  439. package/esm/util/stats.js +72 -0
  440. package/esm/util/stopToken.d.ts +19 -0
  441. package/esm/util/stopToken.js +90 -0
  442. package/esm/util/tracks.d.ts +72 -0
  443. package/esm/util/tracks.js +214 -0
  444. package/esm/util/transferables.d.ts +2 -0
  445. package/esm/util/transferables.js +35 -0
  446. package/esm/util/tss-react/cssAndCx.d.ts +16 -0
  447. package/esm/util/tss-react/cssAndCx.js +97 -0
  448. package/esm/util/tss-react/index.d.ts +4 -0
  449. package/esm/util/tss-react/index.js +7 -0
  450. package/esm/util/tss-react/makeStyles.d.ts +15 -0
  451. package/esm/util/tss-react/makeStyles.js +38 -0
  452. package/esm/util/tss-react/mergeClasses.d.ts +2 -0
  453. package/esm/util/tss-react/mergeClasses.js +24 -0
  454. package/esm/util/tss-react/mui/index.d.ts +1 -0
  455. package/esm/util/tss-react/mui/index.js +1 -0
  456. package/esm/util/tss-react/mui/mui.d.ts +10 -0
  457. package/esm/util/tss-react/mui/mui.js +5 -0
  458. package/esm/util/tss-react/tools/classnames.d.ts +2 -0
  459. package/esm/util/tss-react/tools/classnames.js +44 -0
  460. package/esm/util/tss-react/tools/getDependencyArrayRef.d.ts +1 -0
  461. package/esm/util/tss-react/tools/getDependencyArrayRef.js +19 -0
  462. package/esm/util/tss-react/types.d.ts +13 -0
  463. package/esm/util/tss-react/types.js +6 -0
  464. package/esm/util/types/ElementId.d.ts +1 -0
  465. package/esm/util/types/ElementId.js +3 -0
  466. package/esm/util/types/index.d.ts +273 -0
  467. package/esm/util/types/index.js +131 -0
  468. package/esm/util/types/mst.d.ts +107 -0
  469. package/esm/util/types/mst.js +68 -0
  470. package/esm/util/types/util.d.ts +6 -0
  471. package/esm/util/types/util.js +1 -0
  472. package/esm/util/useFeatureSequence.d.ts +19 -0
  473. package/esm/util/useFeatureSequence.js +87 -0
  474. package/esm/util/useMeasure.js +30 -0
  475. package/esm/util/when.js +1 -0
  476. package/package.json +487 -38
  477. package/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.js +0 -38
  478. package/BaseFeatureWidget/BaseFeatureDetail/Attributes.d.ts +0 -13
  479. package/BaseFeatureWidget/BaseFeatureDetail/Attributes.js +0 -48
  480. package/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.d.ts +0 -8
  481. package/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.js +0 -13
  482. package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.d.ts +0 -2
  483. package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.js +0 -23
  484. package/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.d.ts +0 -2
  485. package/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.js +0 -13
  486. package/BaseFeatureWidget/BaseFeatureDetail/BasicValue.js +0 -23
  487. package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.d.ts +0 -2
  488. package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.js +0 -30
  489. package/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.js +0 -63
  490. package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.d.ts +0 -11
  491. package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.js +0 -48
  492. package/BaseFeatureWidget/BaseFeatureDetail/FieldName.js +0 -27
  493. package/BaseFeatureWidget/BaseFeatureDetail/Position.d.ts +0 -2
  494. package/BaseFeatureWidget/BaseFeatureDetail/Position.js +0 -17
  495. package/BaseFeatureWidget/BaseFeatureDetail/SimpleField.js +0 -20
  496. package/BaseFeatureWidget/BaseFeatureDetail/UriField.js +0 -28
  497. package/BaseFeatureWidget/BaseFeatureDetail/index.d.ts +0 -7
  498. package/BaseFeatureWidget/BaseFeatureDetail/index.js +0 -34
  499. package/BaseFeatureWidget/BaseFeatureDetail/types.d.ts +0 -7
  500. package/BaseFeatureWidget/BaseFeatureDetail/types.js +0 -2
  501. package/BaseFeatureWidget/BaseFeatureDetail/util.js +0 -32
  502. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.d.ts +0 -10
  503. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.js +0 -46
  504. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.d.ts +0 -7
  505. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.js +0 -82
  506. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.d.ts +0 -7
  507. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.js +0 -72
  508. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.d.ts +0 -8
  509. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.js +0 -28
  510. package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.d.ts +0 -3
  511. package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.js +0 -34
  512. package/BaseFeatureWidget/SequenceFeatureDetails/consts.js +0 -9
  513. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/HelpDialog.js +0 -17
  514. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.d.ts +0 -8
  515. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.js +0 -50
  516. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.d.ts +0 -8
  517. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.js +0 -141
  518. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.d.ts +0 -5
  519. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.js +0 -66
  520. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.d.ts +0 -6
  521. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.js +0 -50
  522. package/BaseFeatureWidget/SequenceFeatureDetails/index.d.ts +0 -1
  523. package/BaseFeatureWidget/SequenceFeatureDetails/index.js +0 -8
  524. package/BaseFeatureWidget/SequenceFeatureDetails/model.d.ts +0 -31
  525. package/BaseFeatureWidget/SequenceFeatureDetails/model.js +0 -81
  526. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.d.ts +0 -16
  527. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.js +0 -89
  528. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.d.ts +0 -8
  529. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.js +0 -21
  530. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.d.ts +0 -10
  531. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.js +0 -57
  532. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.d.ts +0 -9
  533. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.js +0 -26
  534. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.d.ts +0 -10
  535. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.js +0 -25
  536. package/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.d.ts +0 -80
  537. package/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.js +0 -585
  538. package/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.d.ts +0 -141
  539. package/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.js +0 -1118
  540. package/BaseFeatureWidget/SequenceFeatureDetails/types.d.ts +0 -8
  541. package/BaseFeatureWidget/SequenceFeatureDetails/types.js +0 -2
  542. package/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.d.ts +0 -13
  543. package/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.js +0 -67
  544. package/BaseFeatureWidget/SequenceFeatureDetails/util.js +0 -46
  545. package/BaseFeatureWidget/configSchema.d.ts +0 -2
  546. package/BaseFeatureWidget/configSchema.js +0 -6
  547. package/BaseFeatureWidget/index.d.ts +0 -2
  548. package/BaseFeatureWidget/index.js +0 -7
  549. package/BaseFeatureWidget/stateModelFactory.d.ts +0 -101
  550. package/BaseFeatureWidget/stateModelFactory.js +0 -99
  551. package/BaseFeatureWidget/types.d.ts +0 -22
  552. package/BaseFeatureWidget/types.js +0 -2
  553. package/BaseFeatureWidget/util.d.ts +0 -51
  554. package/BaseFeatureWidget/util.js +0 -106
  555. package/CorePlugin.d.ts +0 -6
  556. package/CorePlugin.js +0 -66
  557. package/PhasedScheduler.js +0 -28
  558. package/Plugin.d.ts +0 -13
  559. package/Plugin.js +0 -7
  560. package/PluginLoader.d.ts +0 -64
  561. package/PluginLoader.js +0 -174
  562. package/PluginManager.d.ts +0 -139
  563. package/PluginManager.js +0 -405
  564. package/ReExports/BaseFeatureDetails.js +0 -45
  565. package/ReExports/DataGrid.js +0 -5
  566. package/ReExports/MuiDataGridReExports.js +0 -167
  567. package/ReExports/MuiReExports.d.ts +0 -133
  568. package/ReExports/MuiReExports.js +0 -150
  569. package/ReExports/index.d.ts +0 -1
  570. package/ReExports/index.js +0 -8
  571. package/ReExports/lazify.js +0 -14
  572. package/ReExports/list.js +0 -273
  573. package/ReExports/material-ui-colors.d.ts +0 -1
  574. package/ReExports/material-ui-colors.js +0 -17
  575. package/ReExports/modules.js +0 -179
  576. package/TextSearch/BaseResults.d.ts +0 -46
  577. package/TextSearch/BaseResults.js +0 -61
  578. package/TextSearch/TextSearchManager.d.ts +0 -48
  579. package/TextSearch/TextSearchManager.js +0 -85
  580. package/assemblyManager/assembly.d.ts +0 -72
  581. package/assemblyManager/assembly.js +0 -307
  582. package/assemblyManager/assemblyConfigSchema.d.ts +0 -27
  583. package/assemblyManager/assemblyConfigSchema.js +0 -53
  584. package/assemblyManager/assemblyManager.d.ts +0 -507
  585. package/assemblyManager/assemblyManager.js +0 -138
  586. package/assemblyManager/index.d.ts +0 -3
  587. package/assemblyManager/index.js +0 -10
  588. package/configuration/configurationSchema.d.ts +0 -35
  589. package/configuration/configurationSchema.js +0 -174
  590. package/configuration/configurationSlot.d.ts +0 -31
  591. package/configuration/configurationSlot.js +0 -241
  592. package/configuration/index.d.ts +0 -3
  593. package/configuration/index.js +0 -21
  594. package/configuration/types.d.ts +0 -14
  595. package/configuration/types.js +0 -2
  596. package/configuration/util.d.ts +0 -10
  597. package/configuration/util.js +0 -123
  598. package/data_adapters/BaseAdapter/BaseAdapter.d.ts +0 -14
  599. package/data_adapters/BaseAdapter/BaseAdapter.js +0 -30
  600. package/data_adapters/BaseAdapter/BaseFeatureDataAdapter.d.ts +0 -24
  601. package/data_adapters/BaseAdapter/BaseFeatureDataAdapter.js +0 -115
  602. package/data_adapters/BaseAdapter/BaseOptions.d.ts +0 -15
  603. package/data_adapters/BaseAdapter/BaseOptions.js +0 -2
  604. package/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.d.ts +0 -10
  605. package/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.js +0 -2
  606. package/data_adapters/BaseAdapter/BaseSequenceAdapter.d.ts +0 -10
  607. package/data_adapters/BaseAdapter/BaseSequenceAdapter.js +0 -10
  608. package/data_adapters/BaseAdapter/BaseTextSearchAdapter.d.ts +0 -6
  609. package/data_adapters/BaseAdapter/BaseTextSearchAdapter.js +0 -2
  610. package/data_adapters/BaseAdapter/RegionsAdapter.d.ts +0 -6
  611. package/data_adapters/BaseAdapter/RegionsAdapter.js +0 -2
  612. package/data_adapters/BaseAdapter/index.d.ts +0 -13
  613. package/data_adapters/BaseAdapter/index.js +0 -25
  614. package/data_adapters/BaseAdapter/types.d.ts +0 -21
  615. package/data_adapters/BaseAdapter/types.js +0 -2
  616. package/data_adapters/BaseAdapter/util.d.ts +0 -12
  617. package/data_adapters/BaseAdapter/util.js +0 -22
  618. package/data_adapters/CytobandAdapter/CytobandAdapter.d.ts +0 -6
  619. package/data_adapters/CytobandAdapter/CytobandAdapter.js +0 -31
  620. package/data_adapters/CytobandAdapter/configSchema.d.ts +0 -9
  621. package/data_adapters/CytobandAdapter/configSchema.js +0 -26
  622. package/data_adapters/CytobandAdapter/index.d.ts +0 -2
  623. package/data_adapters/CytobandAdapter/index.js +0 -51
  624. package/data_adapters/dataAdapterCache.d.ts +0 -14
  625. package/data_adapters/dataAdapterCache.js +0 -60
  626. package/data_adapters/util.js +0 -10
  627. package/pluggableElementTypes/AdapterType.d.ts +0 -25
  628. package/pluggableElementTypes/AdapterType.js +0 -19
  629. package/pluggableElementTypes/AddTrackWorkflowType.d.ts +0 -17
  630. package/pluggableElementTypes/AddTrackWorkflowType.js +0 -14
  631. package/pluggableElementTypes/ConnectionType.d.ts +0 -20
  632. package/pluggableElementTypes/ConnectionType.js +0 -17
  633. package/pluggableElementTypes/DisplayType.d.ts +0 -28
  634. package/pluggableElementTypes/DisplayType.js +0 -18
  635. package/pluggableElementTypes/InternetAccountType.d.ts +0 -12
  636. package/pluggableElementTypes/InternetAccountType.js +0 -14
  637. package/pluggableElementTypes/PluggableElementBase.js +0 -12
  638. package/pluggableElementTypes/RpcMethodType.d.ts +0 -17
  639. package/pluggableElementTypes/RpcMethodType.js +0 -69
  640. package/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.d.ts +0 -11
  641. package/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.js +0 -35
  642. package/pluggableElementTypes/TextSearchAdapterType.d.ts +0 -18
  643. package/pluggableElementTypes/TextSearchAdapterType.js +0 -18
  644. package/pluggableElementTypes/TrackType.d.ts +0 -16
  645. package/pluggableElementTypes/TrackType.js +0 -18
  646. package/pluggableElementTypes/ViewType.d.ts +0 -29
  647. package/pluggableElementTypes/ViewType.js +0 -21
  648. package/pluggableElementTypes/WidgetType.d.ts +0 -25
  649. package/pluggableElementTypes/WidgetType.js +0 -17
  650. package/pluggableElementTypes/index.d.ts +0 -26
  651. package/pluggableElementTypes/index.js +0 -44
  652. package/pluggableElementTypes/models/BaseConnectionModelFactory.d.ts +0 -29
  653. package/pluggableElementTypes/models/BaseConnectionModelFactory.js +0 -38
  654. package/pluggableElementTypes/models/BaseDisplayModel.d.ts +0 -68
  655. package/pluggableElementTypes/models/BaseDisplayModel.js +0 -81
  656. package/pluggableElementTypes/models/BaseTrackModel.d.ts +0 -53
  657. package/pluggableElementTypes/models/BaseTrackModel.js +0 -145
  658. package/pluggableElementTypes/models/BaseViewModel.d.ts +0 -42
  659. package/pluggableElementTypes/models/BaseViewModel.js +0 -35
  660. package/pluggableElementTypes/models/InternetAccountModel.d.ts +0 -86
  661. package/pluggableElementTypes/models/InternetAccountModel.js +0 -155
  662. package/pluggableElementTypes/models/baseConnectionConfig.d.ts +0 -16
  663. package/pluggableElementTypes/models/baseConnectionConfig.js +0 -20
  664. package/pluggableElementTypes/models/baseInternetAccountConfig.d.ts +0 -27
  665. package/pluggableElementTypes/models/baseInternetAccountConfig.js +0 -35
  666. package/pluggableElementTypes/models/baseTrackConfig.d.ts +0 -82
  667. package/pluggableElementTypes/models/baseTrackConfig.js +0 -135
  668. package/pluggableElementTypes/models/index.d.ts +0 -13
  669. package/pluggableElementTypes/models/index.js +0 -22
  670. package/pluggableElementTypes/renderers/BoxRendererType.d.ts +0 -60
  671. package/pluggableElementTypes/renderers/BoxRendererType.js +0 -102
  672. package/pluggableElementTypes/renderers/CircularChordRendererType.d.ts +0 -26
  673. package/pluggableElementTypes/renderers/CircularChordRendererType.js +0 -34
  674. package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.d.ts +0 -38
  675. package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.js +0 -65
  676. package/pluggableElementTypes/renderers/FeatureRendererType.d.ts +0 -51
  677. package/pluggableElementTypes/renderers/FeatureRendererType.js +0 -85
  678. package/pluggableElementTypes/renderers/LayoutSession.d.ts +0 -25
  679. package/pluggableElementTypes/renderers/LayoutSession.js +0 -42
  680. package/pluggableElementTypes/renderers/RendererType.d.ts +0 -25
  681. package/pluggableElementTypes/renderers/RendererType.js +0 -23
  682. package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.d.ts +0 -9
  683. package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.js +0 -9
  684. package/pluggableElementTypes/renderers/ServerSideRenderedContent.d.ts +0 -6
  685. package/pluggableElementTypes/renderers/ServerSideRenderedContent.js +0 -8
  686. package/pluggableElementTypes/renderers/ServerSideRendererType.d.ts +0 -49
  687. package/pluggableElementTypes/renderers/ServerSideRendererType.js +0 -81
  688. package/pluggableElementTypes/renderers/index.d.ts +0 -7
  689. package/pluggableElementTypes/renderers/index.js +0 -20
  690. package/pluggableElementTypes/renderers/util/serializableFilterChain.js +0 -32
  691. package/rpc/BaseRpcDriver.d.ts +0 -43
  692. package/rpc/BaseRpcDriver.js +0 -113
  693. package/rpc/MainThreadRpcDriver.d.ts +0 -14
  694. package/rpc/MainThreadRpcDriver.js +0 -32
  695. package/rpc/RpcManager.d.ts +0 -34
  696. package/rpc/RpcManager.js +0 -69
  697. package/rpc/WebWorkerRpcDriver.d.ts +0 -29
  698. package/rpc/WebWorkerRpcDriver.js +0 -65
  699. package/rpc/baseRpcConfig.d.ts +0 -8
  700. package/rpc/baseRpcConfig.js +0 -12
  701. package/rpc/configSchema.d.ts +0 -9
  702. package/rpc/configSchema.js +0 -27
  703. package/rpc/coreRpcMethods.d.ts +0 -9
  704. package/rpc/coreRpcMethods.js +0 -22
  705. package/rpc/mainThreadRpcConfig.d.ts +0 -8
  706. package/rpc/mainThreadRpcConfig.js +0 -13
  707. package/rpc/methods/CoreFreeResources.d.ts +0 -6
  708. package/rpc/methods/CoreFreeResources.js +0 -23
  709. package/rpc/methods/CoreGetFeatureDensityStats.d.ts +0 -17
  710. package/rpc/methods/CoreGetFeatureDensityStats.js +0 -36
  711. package/rpc/methods/CoreGetFeatureDetails.d.ts +0 -11
  712. package/rpc/methods/CoreGetFeatureDetails.js +0 -38
  713. package/rpc/methods/CoreGetFeatures.d.ts +0 -18
  714. package/rpc/methods/CoreGetFeatures.js +0 -40
  715. package/rpc/methods/CoreGetFileInfo.d.ts +0 -9
  716. package/rpc/methods/CoreGetFileInfo.js +0 -24
  717. package/rpc/methods/CoreGetMetadata.d.ts +0 -9
  718. package/rpc/methods/CoreGetMetadata.js +0 -24
  719. package/rpc/methods/CoreGetRefNames.d.ts +0 -9
  720. package/rpc/methods/CoreGetRefNames.js +0 -25
  721. package/rpc/methods/CoreRender.d.ts +0 -10
  722. package/rpc/methods/CoreRender.js +0 -46
  723. package/rpc/methods/util.d.ts +0 -15
  724. package/rpc/methods/util.js +0 -9
  725. package/rpc/webWorkerRpcConfig.d.ts +0 -8
  726. package/rpc/webWorkerRpcConfig.js +0 -13
  727. package/stories/JBrowseCore.stories.d.ts +0 -5
  728. package/stories/JBrowseCore.stories.js +0 -10
  729. package/stories/examples/WithSequencePanel.d.ts +0 -6
  730. package/stories/examples/WithSequencePanel.js +0 -42
  731. package/stories/examples/index.d.ts +0 -1
  732. package/stories/examples/index.js +0 -17
  733. package/stories/examples/util.d.ts +0 -33
  734. package/stories/examples/util.js +0 -235
  735. package/tsconfig.build.tsbuildinfo +0 -1
  736. package/ui/AppLogo.d.ts +0 -7
  737. package/ui/AppLogo.js +0 -12
  738. package/ui/AssemblySelector.d.ts +0 -13
  739. package/ui/AssemblySelector.js +0 -46
  740. package/ui/BaseTooltip.js +0 -46
  741. package/ui/CascadingMenu.d.ts +0 -9
  742. package/ui/CascadingMenu.js +0 -114
  743. package/ui/CascadingMenuButton.d.ts +0 -11
  744. package/ui/CascadingMenuButton.js +0 -29
  745. package/ui/ColorPicker.js +0 -101
  746. package/ui/ConfirmDialog.js +0 -18
  747. package/ui/DataGridFlexContainer.d.ts +0 -3
  748. package/ui/DataGridFlexContainer.js +0 -15
  749. package/ui/Dialog.d.ts +0 -7
  750. package/ui/Dialog.js +0 -50
  751. package/ui/DraggableDialog.js +0 -32
  752. package/ui/DropDownMenu.d.ts +0 -8
  753. package/ui/DropDownMenu.js +0 -37
  754. package/ui/EditableTypography.js +0 -65
  755. package/ui/ErrorBoundary.d.ts +0 -17
  756. package/ui/ErrorBoundary.js +0 -19
  757. package/ui/ErrorMessage.js +0 -94
  758. package/ui/ErrorMessageStackTraceDialog.js +0 -149
  759. package/ui/ExternalLink.js +0 -13
  760. package/ui/FactoryResetDialog.js +0 -24
  761. package/ui/FatalErrorDialog.js +0 -24
  762. package/ui/FileSelector/FileSelector.d.ts +0 -11
  763. package/ui/FileSelector/FileSelector.js +0 -102
  764. package/ui/FileSelector/LocalFileChooser.d.ts +0 -6
  765. package/ui/FileSelector/LocalFileChooser.js +0 -42
  766. package/ui/FileSelector/UrlChooser.d.ts +0 -8
  767. package/ui/FileSelector/UrlChooser.js +0 -19
  768. package/ui/FileSelector/index.d.ts +0 -1
  769. package/ui/FileSelector/index.js +0 -8
  770. package/ui/HoverMenu.js +0 -50
  771. package/ui/Icons.js +0 -23
  772. package/ui/LoadingEllipses.js +0 -35
  773. package/ui/Logo.js +0 -46
  774. package/ui/Menu.d.ts +0 -54
  775. package/ui/Menu.js +0 -233
  776. package/ui/MenuButton.d.ts +0 -10
  777. package/ui/MenuButton.js +0 -28
  778. package/ui/PrerenderedCanvas.d.ts +0 -10
  779. package/ui/PrerenderedCanvas.js +0 -34
  780. package/ui/RedErrorMessageBox.js +0 -19
  781. package/ui/ResizeHandle.js +0 -72
  782. package/ui/ReturnToImportFormDialog.js +0 -18
  783. package/ui/SanitizedHTML.js +0 -67
  784. package/ui/Snackbar.d.ts +0 -10
  785. package/ui/Snackbar.js +0 -49
  786. package/ui/SnackbarContents.d.ts +0 -5
  787. package/ui/SnackbarContents.js +0 -16
  788. package/ui/SnackbarModel.d.ts +0 -17
  789. package/ui/SnackbarModel.js +0 -96
  790. package/ui/colors.js +0 -78
  791. package/ui/hooks.d.ts +0 -66
  792. package/ui/hooks.js +0 -185
  793. package/ui/index.d.ts +0 -19
  794. package/ui/index.js +0 -56
  795. package/ui/react-colorful.d.ts +0 -17
  796. package/ui/react-colorful.js +0 -466
  797. package/ui/theme.d.ts +0 -59
  798. package/ui/theme.js +0 -381
  799. package/ui/useEvent.js +0 -47
  800. package/util/Base1DUtils.d.ts +0 -38
  801. package/util/Base1DUtils.js +0 -198
  802. package/util/Base1DViewModel.d.ts +0 -61
  803. package/util/Base1DViewModel.js +0 -135
  804. package/util/QuickLRU.d.ts +0 -32
  805. package/util/QuickLRU.js +0 -237
  806. package/util/TimeTraveller.d.ts +0 -19
  807. package/util/TimeTraveller.js +0 -90
  808. package/util/aborting.js +0 -48
  809. package/util/analytics.js +0 -86
  810. package/util/blobToDataURL.js +0 -17
  811. package/util/blockTypes.d.ts +0 -58
  812. package/util/blockTypes.js +0 -110
  813. package/util/calculateDynamicBlocks.d.ts +0 -3
  814. package/util/calculateDynamicBlocks.js +0 -100
  815. package/util/calculateStaticBlocks.d.ts +0 -13
  816. package/util/calculateStaticBlocks.js +0 -102
  817. package/util/cluster.d.ts +0 -17
  818. package/util/cluster.js +0 -102
  819. package/util/color/cssColorsLevel4.js +0 -160
  820. package/util/color/index.d.ts +0 -5
  821. package/util/color/index.js +0 -48
  822. package/util/colord.d.ts +0 -1
  823. package/util/colord.js +0 -13
  824. package/util/compositeMap.js +0 -61
  825. package/util/convertCodingSequenceToPeptides.d.ts +0 -6
  826. package/util/convertCodingSequenceToPeptides.js +0 -12
  827. package/util/dedupe.js +0 -15
  828. package/util/fetchSeq.d.ts +0 -8
  829. package/util/fetchSeq.js +0 -27
  830. package/util/flatbush/index.d.ts +0 -25
  831. package/util/flatbush/index.js +0 -362
  832. package/util/flatqueue/index.js +0 -66
  833. package/util/formatFastaStrings.js +0 -12
  834. package/util/idMaker.js +0 -24
  835. package/util/index.d.ts +0 -274
  836. package/util/index.js +0 -1052
  837. package/util/io/RemoteFileWithRangeCache.js +0 -76
  838. package/util/io/index.d.ts +0 -7
  839. package/util/io/index.js +0 -103
  840. package/util/jexl.d.ts +0 -4
  841. package/util/jexl.js +0 -55
  842. package/util/jexlStrings.js +0 -23
  843. package/util/layouts/BaseLayout.d.ts +0 -30
  844. package/util/layouts/BaseLayout.js +0 -2
  845. package/util/layouts/GranularRectLayout.d.ts +0 -37
  846. package/util/layouts/GranularRectLayout.js +0 -343
  847. package/util/layouts/MultiLayout.d.ts +0 -12
  848. package/util/layouts/MultiLayout.js +0 -42
  849. package/util/layouts/PrecomputedLayout.d.ts +0 -30
  850. package/util/layouts/PrecomputedLayout.js +0 -75
  851. package/util/layouts/PrecomputedMultiLayout.d.ts +0 -4
  852. package/util/layouts/PrecomputedMultiLayout.js +0 -21
  853. package/util/layouts/SceneGraph.js +0 -115
  854. package/util/layouts/index.d.ts +0 -7
  855. package/util/layouts/index.js +0 -31
  856. package/util/makeAbortableReaction.d.ts +0 -2
  857. package/util/makeAbortableReaction.js +0 -50
  858. package/util/map-obj.d.ts +0 -3
  859. package/util/map-obj.js +0 -37
  860. package/util/mst-reflection.d.ts +0 -11
  861. package/util/mst-reflection.js +0 -62
  862. package/util/nanoid.d.ts +0 -5
  863. package/util/nanoid.js +0 -43
  864. package/util/nextTick.js +0 -6
  865. package/util/offscreenCanvasPonyfill.d.ts +0 -7
  866. package/util/offscreenCanvasPonyfill.js +0 -65
  867. package/util/offscreenCanvasUtils.d.ts +0 -28
  868. package/util/offscreenCanvasUtils.js +0 -99
  869. package/util/parseLineByLine.js +0 -25
  870. package/util/range.js +0 -26
  871. package/util/rxjs.d.ts +0 -3
  872. package/util/rxjs.js +0 -21
  873. package/util/simpleFeature.d.ts +0 -44
  874. package/util/simpleFeature.js +0 -82
  875. package/util/stats.d.ts +0 -21
  876. package/util/stats.js +0 -78
  877. package/util/stopToken.d.ts +0 -3
  878. package/util/stopToken.js +0 -29
  879. package/util/tracks.d.ts +0 -55
  880. package/util/tracks.js +0 -168
  881. package/util/types/index.d.ts +0 -254
  882. package/util/types/index.js +0 -172
  883. package/util/types/mst.d.ts +0 -107
  884. package/util/types/mst.js +0 -72
  885. package/util/types/util.d.ts +0 -6
  886. package/util/types/util.js +0 -2
  887. package/util/useFeatureSequence.d.ts +0 -19
  888. package/util/useFeatureSequence.js +0 -90
  889. package/util/useMeasure.js +0 -33
  890. package/util/when.js +0 -5
  891. /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/ArrayValue.d.ts +0 -0
  892. /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/BasicValue.d.ts +0 -0
  893. /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/DataGridDetails.d.ts +0 -0
  894. /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/FieldName.d.ts +0 -0
  895. /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/SimpleField.d.ts +0 -0
  896. /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/UriField.d.ts +0 -0
  897. /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/util.d.ts +0 -0
  898. /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/SequenceFeatureDetails/consts.d.ts +0 -0
  899. /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/SequenceFeatureDetails/dialogs/HelpDialog.d.ts +0 -0
  900. /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/SequenceFeatureDetails/util.d.ts +0 -0
  901. /package/{PhasedScheduler.d.ts → esm/PhasedScheduler.d.ts} +0 -0
  902. /package/{ReExports → esm/ReExports}/BaseFeatureDetails.d.ts +0 -0
  903. /package/{ReExports → esm/ReExports}/DataGrid.d.ts +0 -0
  904. /package/{ReExports → esm/ReExports}/MuiDataGridReExports.d.ts +0 -0
  905. /package/{ReExports → esm/ReExports}/lazify.d.ts +0 -0
  906. /package/{ReExports → esm/ReExports}/list.d.ts +0 -0
  907. /package/{ReExports → esm/ReExports}/modules.d.ts +0 -0
  908. /package/{data_adapters → esm/data_adapters}/util.d.ts +0 -0
  909. /package/{pluggableElementTypes → esm/pluggableElementTypes}/PluggableElementBase.d.ts +0 -0
  910. /package/{pluggableElementTypes → esm/pluggableElementTypes}/renderers/util/serializableFilterChain.d.ts +0 -0
  911. /package/{ui → esm/ui}/BaseTooltip.d.ts +0 -0
  912. /package/{ui → esm/ui}/ColorPicker.d.ts +0 -0
  913. /package/{ui → esm/ui}/ConfirmDialog.d.ts +0 -0
  914. /package/{ui → esm/ui}/DraggableDialog.d.ts +0 -0
  915. /package/{ui → esm/ui}/EditableTypography.d.ts +0 -0
  916. /package/{ui → esm/ui}/ErrorMessage.d.ts +0 -0
  917. /package/{ui → esm/ui}/ErrorMessageStackTraceDialog.d.ts +0 -0
  918. /package/{ui → esm/ui}/ExternalLink.d.ts +0 -0
  919. /package/{ui → esm/ui}/FactoryResetDialog.d.ts +0 -0
  920. /package/{ui → esm/ui}/FatalErrorDialog.d.ts +0 -0
  921. /package/{ui → esm/ui}/HoverMenu.d.ts +0 -0
  922. /package/{ui → esm/ui}/Icons.d.ts +0 -0
  923. /package/{ui → esm/ui}/LoadingEllipses.d.ts +0 -0
  924. /package/{ui → esm/ui}/Logo.d.ts +0 -0
  925. /package/{ui → esm/ui}/RedErrorMessageBox.d.ts +0 -0
  926. /package/{ui → esm/ui}/ResizeHandle.d.ts +0 -0
  927. /package/{ui → esm/ui}/ReturnToImportFormDialog.d.ts +0 -0
  928. /package/{ui → esm/ui}/SanitizedHTML.d.ts +0 -0
  929. /package/{ui → esm/ui}/colors.d.ts +0 -0
  930. /package/{ui → esm/ui}/useEvent.d.ts +0 -0
  931. /package/{util → esm/util}/aborting.d.ts +0 -0
  932. /package/{util → esm/util}/analytics.d.ts +0 -0
  933. /package/{util → esm/util}/blobToDataURL.d.ts +0 -0
  934. /package/{util → esm/util}/color/cssColorsLevel4.d.ts +0 -0
  935. /package/{util → esm/util}/compositeMap.d.ts +0 -0
  936. /package/{util → esm/util}/dedupe.d.ts +0 -0
  937. /package/{util → esm/util}/flatqueue/index.d.ts +0 -0
  938. /package/{util → esm/util}/formatFastaStrings.d.ts +0 -0
  939. /package/{util → esm/util}/idMaker.d.ts +0 -0
  940. /package/{util → esm/util}/io/RemoteFileWithRangeCache.d.ts +0 -0
  941. /package/{util → esm/util}/jexlStrings.d.ts +0 -0
  942. /package/{util → esm/util}/layouts/SceneGraph.d.ts +0 -0
  943. /package/{util → esm/util}/nextTick.d.ts +0 -0
  944. /package/{util → esm/util}/parseLineByLine.d.ts +0 -0
  945. /package/{util → esm/util}/range.d.ts +0 -0
  946. /package/{util → esm/util}/useMeasure.d.ts +0 -0
  947. /package/{util → esm/util}/when.d.ts +0 -0
@@ -1,76 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RemoteFileWithRangeCache = void 0;
4
- exports.clearCache = clearCache;
5
- const http_range_fetcher_1 = require("@gmod/http-range-fetcher");
6
- const generic_filehandle2_1 = require("generic-filehandle2");
7
- const fetchers = {};
8
- function binaryRangeFetch(url, start, end, options = {}) {
9
- const fetcher = fetchers[url];
10
- if (!fetcher) {
11
- throw new Error(`fetch not registered for ${url}`);
12
- }
13
- return fetcher(url, start, end, options);
14
- }
15
- const globalRangeCache = new http_range_fetcher_1.HttpRangeFetcher({
16
- fetch: binaryRangeFetch,
17
- size: 500 * 1024 ** 2,
18
- chunkSize: 128 * 1024,
19
- maxFetchSize: 100 * 1024 ** 2,
20
- minimumTTL: 24 * 60 * 60 * 1000,
21
- });
22
- function clearCache() {
23
- globalRangeCache.reset();
24
- }
25
- class RemoteFileWithRangeCache extends generic_filehandle2_1.RemoteFile {
26
- async fetch(url, init) {
27
- const str = String(url);
28
- if (!fetchers[str]) {
29
- fetchers[str] = this.fetchBinaryRange.bind(this);
30
- }
31
- const range = new Headers(init === null || init === void 0 ? void 0 : init.headers).get('range');
32
- if (range) {
33
- const rangeParse = /bytes=(\d+)-(\d+)/.exec(range);
34
- if (rangeParse) {
35
- const [, start, end] = rangeParse;
36
- const s = Number.parseInt(start, 10);
37
- const e = Number.parseInt(end, 10);
38
- const len = e - s;
39
- const { buffer, headers } = (await globalRangeCache.getRange(`${url}`, s, len + 1));
40
- return new Response(buffer, {
41
- status: 206,
42
- headers,
43
- });
44
- }
45
- }
46
- return super.fetch(url, init);
47
- }
48
- async fetchBinaryRange(url, start, end, options = {}) {
49
- const requestDate = new Date();
50
- const res = await super.fetch(url, {
51
- ...options,
52
- headers: {
53
- ...options.headers,
54
- range: `bytes=${start}-${end}`,
55
- },
56
- });
57
- const responseDate = new Date();
58
- if (!res.ok) {
59
- const errorMessage = `HTTP ${res.status} fetching ${url} bytes ${start}-${end}`;
60
- const hint = ' (should be 206 for range requests)';
61
- throw new Error(`${errorMessage}${res.status === 200 ? hint : ''}`);
62
- }
63
- const headers = {};
64
- for (const [k, v] of res.headers.entries()) {
65
- headers[k] = v;
66
- }
67
- const arrayBuffer = await res.arrayBuffer();
68
- return {
69
- headers,
70
- requestDate,
71
- responseDate,
72
- buffer: new Uint8Array(arrayBuffer),
73
- };
74
- }
75
- }
76
- exports.RemoteFileWithRangeCache = RemoteFileWithRangeCache;
@@ -1,7 +0,0 @@
1
- import type PluginManager from '../../PluginManager';
2
- import type { FileLocation, UriLocation } from '../types';
3
- import type { Fetcher, GenericFilehandle } from 'generic-filehandle2';
4
- export declare function resolveUriLocation(location: UriLocation): UriLocation;
5
- export declare function openLocation(location: FileLocation, pluginManager?: PluginManager): GenericFilehandle;
6
- export declare function getFetcher(location: FileLocation, pluginManager?: PluginManager): Fetcher;
7
- export { RemoteFileWithRangeCache } from './RemoteFileWithRangeCache';
package/util/io/index.js DELETED
@@ -1,103 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.RemoteFileWithRangeCache = void 0;
7
- exports.resolveUriLocation = resolveUriLocation;
8
- exports.openLocation = openLocation;
9
- exports.getFetcher = getFetcher;
10
- const detect_node_1 = __importDefault(require("detect-node"));
11
- const generic_filehandle2_1 = require("generic-filehandle2");
12
- const RemoteFileWithRangeCache_1 = require("./RemoteFileWithRangeCache");
13
- const __1 = require("../");
14
- const tracks_1 = require("../tracks");
15
- const types_1 = require("../types");
16
- function isLocalPathLocation(location) {
17
- return 'localPath' in location;
18
- }
19
- function isBlobLocation(location) {
20
- return 'blobId' in location;
21
- }
22
- function resolveUriLocation(location) {
23
- return location.baseUri
24
- ? { ...location, uri: new URL(location.uri, location.baseUri).href }
25
- : location;
26
- }
27
- function openLocation(location, pluginManager) {
28
- if (isLocalPathLocation(location)) {
29
- if (!location.localPath) {
30
- throw new Error('No local path provided');
31
- }
32
- if (detect_node_1.default || __1.isElectron) {
33
- return new generic_filehandle2_1.LocalFile(location.localPath);
34
- }
35
- else {
36
- throw new Error("can't use local files in the browser");
37
- }
38
- }
39
- if (isBlobLocation(location)) {
40
- const blob = (0, tracks_1.getBlob)(location.blobId);
41
- if (!blob) {
42
- throw new Error(`file ("${location.name}") was opened locally from a previous session. To restore it, go to track settings and reopen the file`);
43
- }
44
- return new generic_filehandle2_1.BlobFile(blob);
45
- }
46
- if ((0, types_1.isUriLocation)(location)) {
47
- if (!location.uri) {
48
- throw new Error('No URI provided');
49
- }
50
- const absoluteLocation = resolveUriLocation(location);
51
- if (pluginManager) {
52
- const internetAccount = getInternetAccount(location, pluginManager);
53
- if (internetAccount) {
54
- return internetAccount.openLocation(absoluteLocation);
55
- }
56
- }
57
- return new RemoteFileWithRangeCache_1.RemoteFileWithRangeCache(absoluteLocation.uri, {
58
- fetch: checkAuthNeededFetch,
59
- });
60
- }
61
- throw new Error('invalid fileLocation');
62
- }
63
- function getFetcher(location, pluginManager) {
64
- if (!(0, types_1.isUriLocation)(location)) {
65
- throw new Error(`Not a valid UriLocation: ${JSON.stringify(location)}`);
66
- }
67
- if (pluginManager) {
68
- const internetAccount = getInternetAccount(location, pluginManager);
69
- if (internetAccount) {
70
- return internetAccount.getFetcher(location);
71
- }
72
- }
73
- return checkAuthNeededFetch;
74
- }
75
- function getInternetAccount(location, pluginManager) {
76
- const { rootModel } = pluginManager;
77
- if (rootModel && (0, types_1.isRootModelWithInternetAccounts)(rootModel)) {
78
- return rootModel.findAppropriateInternetAccount(location);
79
- }
80
- if (location.internetAccountPreAuthorization) {
81
- if (!location.internetAccountPreAuthorization.authInfo.token) {
82
- throw new Error('Failed to obtain token from internet account. Try reloading the page');
83
- }
84
- return pluginManager
85
- .getInternetAccountType(location.internetAccountPreAuthorization.internetAccountType)
86
- .stateModel.create({
87
- type: location.internetAccountPreAuthorization.internetAccountType,
88
- configuration: location.internetAccountPreAuthorization.authInfo.configuration,
89
- });
90
- }
91
- return undefined;
92
- }
93
- async function checkAuthNeededFetch(url, opts) {
94
- var _a;
95
- const response = await fetch(url, opts);
96
- if (response.status === 401 &&
97
- ((_a = response.headers.get('WWW-Authenticate')) === null || _a === void 0 ? void 0 : _a.includes('Basic'))) {
98
- throw new types_1.AuthNeededError('Accessing HTTPBasic resource without authentication', url.toString());
99
- }
100
- return response;
101
- }
102
- var RemoteFileWithRangeCache_2 = require("./RemoteFileWithRangeCache");
103
- Object.defineProperty(exports, "RemoteFileWithRangeCache", { enumerable: true, get: function () { return RemoteFileWithRangeCache_2.RemoteFileWithRangeCache; } });
package/util/jexl.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import jexl from 'jexl';
2
- type JexlNonBuildable = Omit<typeof jexl, 'Jexl'>;
3
- export default function JexlF(): JexlNonBuildable;
4
- export {};
package/util/jexl.js DELETED
@@ -1,55 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = JexlF;
7
- const jexl_1 = __importDefault(require("jexl"));
8
- function JexlF() {
9
- const j = new jexl_1.default.Jexl();
10
- j.addFunction('get', (feature, data) => feature.get(data));
11
- j.addFunction('parent', (feature) => feature.parent());
12
- j.addFunction('id', (feature) => feature.id());
13
- j.addFunction('cast', (arg) => arg);
14
- j.addFunction('log', (thing) => {
15
- console.log(thing);
16
- return thing;
17
- });
18
- j.addFunction('max', Math.max);
19
- j.addFunction('min', Math.min);
20
- j.addFunction('sqrt', Math.sqrt);
21
- j.addFunction('ceil', Math.ceil);
22
- j.addFunction('floor', Math.floor);
23
- j.addFunction('round', Math.round);
24
- j.addFunction('abs', Math.abs);
25
- j.addFunction('log10', Math.log10);
26
- j.addFunction('parseInt', Number.parseInt);
27
- j.addFunction('parseFloat', Number.parseFloat);
28
- j.addFunction('split', (s, char) => s.split(char));
29
- j.addFunction('join', (k, ...args) => [...args].filter(f => !!f).join(k));
30
- j.addFunction('charAt', (s, index) => s.charAt(index));
31
- j.addFunction('charCodeAt', (s, index) => s.charCodeAt(index));
32
- j.addFunction('codePointAt', (s, pos) => s.codePointAt(pos));
33
- j.addFunction('startsWith', (s, search, len) => s.startsWith(search, len));
34
- j.addFunction('endsWith', (s, search, len) => s.endsWith(search, len));
35
- j.addFunction('padEnd', (s, len, pad) => s.padEnd(len, pad));
36
- j.addFunction('padStart', (s, len, fill) => s.padStart(len, fill));
37
- j.addFunction('repeat', (s, count) => s.repeat(count));
38
- j.addFunction('replace', (s, match, sub) => s.replace(match, sub));
39
- j.addFunction('replaceAll', (s, match, sub) => s.replaceAll(match, sub));
40
- j.addFunction('slice', (s, start, end) => s.slice(start, end));
41
- j.addFunction('startsWith', (s, search, pos) => s.startsWith(search, pos));
42
- j.addFunction('substring', (s, start, end) => s.substring(start, end));
43
- j.addFunction('toLowerCase', (s) => s.toLowerCase());
44
- j.addFunction('toUpperCase', (s) => s.toUpperCase());
45
- j.addFunction('jsonParse', (s) => JSON.parse(s));
46
- j.addFunction('trim', (s) => s.trim());
47
- j.addFunction('trimEnd', (s) => s.trimEnd());
48
- j.addFunction('trimStart', (s) => s.trimStart());
49
- j.addFunction('getTag', (feature, s) => {
50
- const tags = feature.get('tags');
51
- return tags ? tags[s] : feature.get(s);
52
- });
53
- j.addBinaryOp('&', 15, (a, b) => a & b);
54
- return j;
55
- }
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.stringToJexlExpression = stringToJexlExpression;
7
- const jexl_1 = __importDefault(require("./jexl"));
8
- const compilationCache = {};
9
- function stringToJexlExpression(str, jexl) {
10
- const cacheKey = `nosig|${str}`;
11
- if (!compilationCache[cacheKey]) {
12
- const match = str.startsWith('jexl:');
13
- if (!match) {
14
- throw new Error('string does not appear to be in jexl format');
15
- }
16
- const code = str.split('jexl:')[1];
17
- const compiled = jexl
18
- ? jexl.compile(code)
19
- : (0, jexl_1.default)().compile(code);
20
- compilationCache[cacheKey] = compiled;
21
- }
22
- return compilationCache[cacheKey];
23
- }
@@ -1,30 +0,0 @@
1
- export type RectTuple = [number, number, number, number];
2
- export interface SerializedLayout {
3
- rectangles: Record<string, RectTuple>;
4
- totalHeight: number;
5
- containsNoTransferables?: true;
6
- maxHeightReached: boolean;
7
- }
8
- export interface Rectangle<T> {
9
- id: string;
10
- l: number;
11
- r: number;
12
- top: number | null;
13
- h: number;
14
- originalHeight: number;
15
- data?: T;
16
- }
17
- export interface BaseLayout<T> {
18
- addRect(id: string, left: number, right: number, height: number, data?: unknown): number | null;
19
- collides(rect: Rectangle<T>, top: number): boolean;
20
- addRectToBitmap(rect: Rectangle<T>, data: unknown): void;
21
- getRectangles(): Map<string, RectTuple>;
22
- discardRange(left: number, right: number): void;
23
- serializeRegion(region: {
24
- start: number;
25
- end: number;
26
- }): SerializedLayout;
27
- getTotalHeight(): number;
28
- maxHeightReached: boolean;
29
- toJSON(): SerializedLayout;
30
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,37 +0,0 @@
1
- import type { BaseLayout, RectTuple, Rectangle, SerializedLayout } from './BaseLayout';
2
- export default class GranularRectLayout<T> implements BaseLayout<T> {
3
- private pitchX;
4
- private pitchY;
5
- private hardRowLimit;
6
- private bitmap;
7
- private rectangles;
8
- maxHeightReached: boolean;
9
- private maxHeight;
10
- private displayMode;
11
- private pTotalHeight;
12
- constructor({ pitchX, pitchY, maxHeight, hardRowLimit, displayMode, }?: {
13
- pitchX?: number;
14
- pitchY?: number;
15
- maxHeight?: number;
16
- displayMode?: string;
17
- hardRowLimit?: number;
18
- });
19
- addRect(id: string, left: number, right: number, height: number, data?: T): number | null;
20
- collides(rect: Rectangle<T>, top: number): boolean;
21
- private autovivifyRow;
22
- addRectToBitmap(rect: Rectangle<T>): void;
23
- discardRange(left: number, right: number): void;
24
- hasSeen(id: string): boolean;
25
- getByCoord(x: number, y: number): string | Record<string, T> | undefined;
26
- getByID(id: string): RectTuple | undefined;
27
- getDataByID(id: string): T | undefined;
28
- cleanup(): void;
29
- getTotalHeight(): number;
30
- get totalHeight(): number;
31
- getRectangles(): Map<string, RectTuple>;
32
- serializeRegion(region: {
33
- start: number;
34
- end: number;
35
- }): SerializedLayout;
36
- toJSON(): SerializedLayout;
37
- }
@@ -1,343 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const minSizeToBotherWith = 10000;
4
- const maxFeaturePitchWidth = 20000;
5
- function segmentsIntersect(x1, x2, y1, y2) {
6
- return x2 >= y1 && y2 >= x1;
7
- }
8
- class LayoutRow {
9
- constructor() {
10
- this.padding = 1;
11
- this.widthLimit = 1000000;
12
- }
13
- setAllFilled(data) {
14
- this.allFilled = data;
15
- }
16
- getItemAt(x) {
17
- var _a;
18
- if (this.allFilled) {
19
- return this.allFilled;
20
- }
21
- if (((_a = this.rowState) === null || _a === void 0 ? void 0 : _a.min) === undefined ||
22
- x < this.rowState.min ||
23
- x >= this.rowState.max) {
24
- return undefined;
25
- }
26
- return this.rowState.bits[x - this.rowState.offset];
27
- }
28
- isRangeClear(left, right) {
29
- if (this.allFilled) {
30
- return false;
31
- }
32
- if (this.rowState === undefined ||
33
- right <= this.rowState.min ||
34
- left >= this.rowState.max) {
35
- return true;
36
- }
37
- const { min, max, offset, bits } = this.rowState;
38
- const maxX = Math.min(max, right) - offset;
39
- let flag = true;
40
- for (let x = Math.max(min, left) - offset; x < maxX && flag; x++) {
41
- flag = bits[x] === undefined;
42
- }
43
- return flag;
44
- }
45
- initialize(left, right) {
46
- const rectWidth = right - left;
47
- return {
48
- offset: left - rectWidth,
49
- min: left,
50
- max: right,
51
- bits: Array.from({ length: 3 * rectWidth }),
52
- };
53
- }
54
- addRect(rect, data) {
55
- const left = rect.l;
56
- const right = rect.r + this.padding;
57
- if (!this.rowState) {
58
- this.rowState = this.initialize(left, right);
59
- }
60
- let oLeft = left - this.rowState.offset;
61
- let oRight = right - this.rowState.offset;
62
- const currLength = this.rowState.bits.length;
63
- if (oRight >= this.rowState.bits.length) {
64
- const additionalLength = oRight + 1;
65
- if (this.rowState.bits.length + additionalLength > this.widthLimit) {
66
- console.warn('Layout width limit exceeded, discarding old layout. Please be more careful about discarding unused blocks.');
67
- this.rowState = this.initialize(left, right);
68
- }
69
- else if (additionalLength > 0) {
70
- this.rowState.bits = [
71
- ...this.rowState.bits,
72
- ...Array.from({ length: additionalLength }),
73
- ];
74
- }
75
- }
76
- if (left < this.rowState.offset) {
77
- const additionalLength = Math.min(currLength - oLeft, this.rowState.offset);
78
- if (this.rowState.bits.length + additionalLength > this.widthLimit) {
79
- console.warn('Layout width limit exceeded, discarding old layout. Please be more careful about discarding unused blocks.');
80
- this.rowState = this.initialize(left, right);
81
- }
82
- else {
83
- this.rowState.bits = [
84
- ...Array.from({ length: additionalLength }),
85
- ...this.rowState.bits,
86
- ];
87
- this.rowState.offset -= additionalLength;
88
- }
89
- }
90
- oRight = right - this.rowState.offset;
91
- oLeft = left - this.rowState.offset;
92
- const w = oRight - oLeft;
93
- if (w > maxFeaturePitchWidth) {
94
- console.warn(`Layout X pitch set too low, feature spans ${w} bits in a single row.`, rect, data);
95
- }
96
- for (let x = oLeft; x < oRight; x += 1) {
97
- this.rowState.bits[x] = data;
98
- }
99
- if (left < this.rowState.min) {
100
- this.rowState.min = left;
101
- }
102
- if (right > this.rowState.max) {
103
- this.rowState.max = right;
104
- }
105
- }
106
- discardRange(left, right) {
107
- if (this.allFilled) {
108
- return;
109
- }
110
- if (!this.rowState) {
111
- return;
112
- }
113
- if (right <= this.rowState.min || left >= this.rowState.max) {
114
- return;
115
- }
116
- if (left <= this.rowState.min && right >= this.rowState.max) {
117
- this.rowState = undefined;
118
- return;
119
- }
120
- if (right > this.rowState.min && left <= this.rowState.min) {
121
- this.rowState.min = right;
122
- }
123
- if (left < this.rowState.max && right >= this.rowState.max) {
124
- this.rowState.max = left;
125
- }
126
- if (this.rowState.offset < this.rowState.min - minSizeToBotherWith &&
127
- this.rowState.bits.length >
128
- this.rowState.max + minSizeToBotherWith - this.rowState.offset) {
129
- const leftTrimAmount = this.rowState.min - this.rowState.offset;
130
- const rightTrimAmount = this.rowState.bits.length -
131
- 1 -
132
- (this.rowState.max - this.rowState.offset);
133
- this.rowState.bits = this.rowState.bits.slice(leftTrimAmount, this.rowState.bits.length - rightTrimAmount);
134
- this.rowState.offset += leftTrimAmount;
135
- }
136
- else if (this.rowState.offset < this.rowState.min - minSizeToBotherWith) {
137
- const desiredOffset = this.rowState.min - Math.floor(minSizeToBotherWith / 2);
138
- const trimAmount = desiredOffset - this.rowState.offset;
139
- this.rowState.bits.splice(0, trimAmount);
140
- this.rowState.offset += trimAmount;
141
- }
142
- else if (this.rowState.bits.length >
143
- this.rowState.max - this.rowState.offset + minSizeToBotherWith) {
144
- const desiredLength = this.rowState.max -
145
- this.rowState.offset +
146
- 1 +
147
- Math.floor(minSizeToBotherWith / 2);
148
- this.rowState.bits.length = desiredLength;
149
- }
150
- const oLeft = Math.max(this.rowState.min, left) - this.rowState.offset;
151
- const oRight = Math.min(right, this.rowState.max) - this.rowState.offset;
152
- for (let x = oLeft; x >= 0 && x < oRight; x += 1) {
153
- this.rowState.bits[x] = undefined;
154
- }
155
- }
156
- }
157
- class GranularRectLayout {
158
- constructor({ pitchX = 10, pitchY = 10, maxHeight = 10000, hardRowLimit = 10000, displayMode = 'normal', } = {}) {
159
- this.pitchX = pitchX;
160
- this.pitchY = pitchY;
161
- this.hardRowLimit = hardRowLimit;
162
- this.maxHeightReached = false;
163
- this.displayMode = displayMode;
164
- if (this.displayMode === 'compact') {
165
- this.pitchY = Math.round(this.pitchY / 4) || 1;
166
- this.pitchX = Math.round(this.pitchX / 4) || 1;
167
- }
168
- this.bitmap = [];
169
- this.rectangles = new Map();
170
- this.maxHeight = Math.ceil(maxHeight / this.pitchY);
171
- this.pTotalHeight = 0;
172
- }
173
- addRect(id, left, right, height, data) {
174
- const storedRec = this.rectangles.get(id);
175
- if (storedRec) {
176
- if (storedRec.top === null) {
177
- return null;
178
- }
179
- this.addRectToBitmap(storedRec);
180
- return storedRec.top * this.pitchY;
181
- }
182
- const pLeft = Math.floor(left / this.pitchX);
183
- const pRight = Math.floor(right / this.pitchX);
184
- const pHeight = Math.ceil(height / this.pitchY);
185
- const rectangle = {
186
- id,
187
- l: pLeft,
188
- r: pRight,
189
- top: null,
190
- h: pHeight,
191
- originalHeight: height,
192
- data,
193
- };
194
- const maxTop = this.maxHeight - pHeight;
195
- let top = 0;
196
- if (this.displayMode !== 'collapse') {
197
- for (; top <= maxTop; top += 1) {
198
- if (!this.collides(rectangle, top)) {
199
- break;
200
- }
201
- }
202
- if (top > maxTop) {
203
- rectangle.top = null;
204
- this.rectangles.set(id, rectangle);
205
- this.maxHeightReached = true;
206
- return null;
207
- }
208
- }
209
- rectangle.top = top;
210
- this.addRectToBitmap(rectangle);
211
- this.rectangles.set(id, rectangle);
212
- this.pTotalHeight = Math.max(this.pTotalHeight || 0, top + pHeight);
213
- return top * this.pitchY;
214
- }
215
- collides(rect, top) {
216
- const { bitmap } = this;
217
- const maxY = top + rect.h;
218
- for (let y = top; y < maxY; y += 1) {
219
- const row = bitmap[y];
220
- if (row !== undefined && !row.isRangeClear(rect.l, rect.r)) {
221
- return true;
222
- }
223
- }
224
- return false;
225
- }
226
- autovivifyRow(bitmap, y) {
227
- let row = bitmap[y];
228
- if (!row) {
229
- if (y > this.hardRowLimit) {
230
- throw new Error(`layout hard limit (${this.hardRowLimit * this.pitchY}px) exceeded, aborting layout`);
231
- }
232
- row = new LayoutRow();
233
- bitmap[y] = row;
234
- }
235
- return row;
236
- }
237
- addRectToBitmap(rect) {
238
- if (rect.top === null) {
239
- return;
240
- }
241
- const data = rect.id;
242
- const yEnd = rect.top + rect.h;
243
- if (rect.r - rect.l > maxFeaturePitchWidth) {
244
- for (let y = rect.top; y < yEnd; y += 1) {
245
- this.autovivifyRow(this.bitmap, y).setAllFilled(data);
246
- }
247
- }
248
- else {
249
- for (let y = rect.top; y < yEnd; y += 1) {
250
- this.autovivifyRow(this.bitmap, y).addRect(rect, data);
251
- }
252
- }
253
- }
254
- discardRange(left, right) {
255
- const pLeft = Math.floor(left / this.pitchX);
256
- const pRight = Math.floor(right / this.pitchX);
257
- const { bitmap } = this;
258
- for (const row of bitmap) {
259
- row.discardRange(pLeft, pRight);
260
- }
261
- }
262
- hasSeen(id) {
263
- return this.rectangles.has(id);
264
- }
265
- getByCoord(x, y) {
266
- const pY = Math.floor(y / this.pitchY);
267
- const row = this.bitmap[pY];
268
- if (!row) {
269
- return undefined;
270
- }
271
- const pX = Math.floor(x / this.pitchX);
272
- return row.getItemAt(pX);
273
- }
274
- getByID(id) {
275
- const r = this.rectangles.get(id);
276
- if (r) {
277
- const t = r.top * this.pitchY;
278
- return [
279
- r.l * this.pitchX,
280
- t,
281
- r.r * this.pitchX,
282
- t + r.originalHeight,
283
- ];
284
- }
285
- return undefined;
286
- }
287
- getDataByID(id) {
288
- var _a;
289
- return (_a = this.rectangles.get(id)) === null || _a === void 0 ? void 0 : _a.data;
290
- }
291
- cleanup() { }
292
- getTotalHeight() {
293
- return this.pTotalHeight * this.pitchY;
294
- }
295
- get totalHeight() {
296
- return this.getTotalHeight();
297
- }
298
- getRectangles() {
299
- return new Map([...this.rectangles.entries()].map(([id, rect]) => {
300
- const { l, r, originalHeight, top } = rect;
301
- const t = (top || 0) * this.pitchY;
302
- const b = t + originalHeight;
303
- return [id, [l * this.pitchX, t, r * this.pitchX, b]];
304
- }));
305
- }
306
- serializeRegion(region) {
307
- const regionRectangles = {};
308
- let maxHeightReached = false;
309
- for (const [id, rect] of this.rectangles.entries()) {
310
- const { l, r, originalHeight, top } = rect;
311
- if (rect.top === null) {
312
- maxHeightReached = true;
313
- }
314
- else {
315
- const t = (top || 0) * this.pitchY;
316
- const b = t + originalHeight;
317
- const y1 = l * this.pitchX;
318
- const y2 = r * this.pitchX;
319
- const x1 = region.start;
320
- const x2 = region.end;
321
- if (segmentsIntersect(x1, x2, y1 - this.pitchX, y2 + this.pitchX)) {
322
- regionRectangles[id] = [y1, t, y2, b];
323
- }
324
- }
325
- }
326
- return {
327
- rectangles: regionRectangles,
328
- containsNoTransferables: true,
329
- totalHeight: this.getTotalHeight(),
330
- maxHeightReached,
331
- };
332
- }
333
- toJSON() {
334
- const rectangles = Object.fromEntries(this.getRectangles());
335
- return {
336
- rectangles,
337
- containsNoTransferables: true,
338
- totalHeight: this.getTotalHeight(),
339
- maxHeightReached: this.maxHeightReached,
340
- };
341
- }
342
- }
343
- exports.default = GranularRectLayout;