@jbrowse/core 3.7.0 → 4.0.1
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.
- package/esm/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.js +32 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/Attributes.d.ts +13 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/Attributes.js +43 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.d.ts +8 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.js +7 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCard.d.ts +2 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCard.js +17 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.d.ts +2 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.js +7 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/BasicValue.js +20 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.d.ts +2 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.js +24 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.js +57 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.d.ts +11 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.js +42 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/FieldName.js +24 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/Position.d.ts +2 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/Position.js +14 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/SimpleField.js +14 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/UriField.js +22 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/index.d.ts +7 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/index.js +24 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/types.d.ts +7 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/types.js +1 -0
- package/esm/BaseFeatureWidget/BaseFeatureDetail/util.js +26 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.d.ts +10 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.js +41 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.d.ts +7 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.js +44 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.d.ts +7 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.js +34 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.d.ts +8 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.js +26 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.d.ts +3 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.js +29 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/consts.js +6 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/HelpDialog.js +11 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.d.ts +8 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.js +40 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.d.ts +8 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.js +105 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.d.ts +5 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.js +64 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.d.ts +6 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.js +48 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/index.d.ts +1 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/index.js +1 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/model.d.ts +31 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/model.js +83 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.d.ts +16 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.js +83 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.d.ts +8 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.js +16 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.d.ts +10 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.js +52 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.d.ts +9 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.js +21 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.d.ts +10 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.js +22 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.d.ts +80 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.js +583 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.d.ts +141 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.js +1116 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/types.d.ts +8 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/types.js +1 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.d.ts +13 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.js +73 -0
- package/esm/BaseFeatureWidget/SequenceFeatureDetails/util.js +42 -0
- package/esm/BaseFeatureWidget/configSchema.d.ts +2 -0
- package/esm/BaseFeatureWidget/configSchema.js +3 -0
- package/esm/BaseFeatureWidget/index.d.ts +2 -0
- package/esm/BaseFeatureWidget/index.js +2 -0
- package/esm/BaseFeatureWidget/stateModelFactory.d.ts +101 -0
- package/esm/BaseFeatureWidget/stateModelFactory.js +96 -0
- package/esm/BaseFeatureWidget/types.d.ts +22 -0
- package/esm/BaseFeatureWidget/types.js +1 -0
- package/esm/BaseFeatureWidget/util.d.ts +51 -0
- package/esm/BaseFeatureWidget/util.js +95 -0
- package/esm/CorePlugin.d.ts +6 -0
- package/esm/CorePlugin.js +24 -0
- package/esm/PhasedScheduler.js +25 -0
- package/esm/Plugin.d.ts +13 -0
- package/esm/Plugin.js +9 -0
- package/esm/PluginLoader.d.ts +64 -0
- package/esm/PluginLoader.js +164 -0
- package/esm/PluginManager.d.ts +125 -0
- package/esm/PluginManager.js +414 -0
- package/esm/ReExports/BaseFeatureDetails.js +9 -0
- package/esm/ReExports/DataGrid.js +1 -0
- package/esm/ReExports/MuiDataGridReExports.js +131 -0
- package/esm/ReExports/MuiReExports.d.ts +134 -0
- package/esm/ReExports/MuiReExports.js +115 -0
- package/esm/ReExports/index.d.ts +1 -0
- package/esm/ReExports/index.js +1 -0
- package/esm/ReExports/lazify.js +10 -0
- package/esm/ReExports/list.js +275 -0
- package/esm/ReExports/modules.js +149 -0
- package/esm/TextSearch/BaseResults.d.ts +46 -0
- package/esm/TextSearch/BaseResults.js +67 -0
- package/esm/TextSearch/TextSearchManager.d.ts +48 -0
- package/esm/TextSearch/TextSearchManager.js +77 -0
- package/esm/assemblyManager/assembly.d.ts +75 -0
- package/esm/assemblyManager/assembly.js +328 -0
- package/esm/assemblyManager/assemblyConfigSchema.d.ts +27 -0
- package/esm/assemblyManager/assemblyConfigSchema.js +51 -0
- package/esm/assemblyManager/assemblyManager.d.ts +528 -0
- package/esm/assemblyManager/assemblyManager.js +131 -0
- package/esm/assemblyManager/index.d.ts +3 -0
- package/esm/assemblyManager/index.js +2 -0
- package/esm/configuration/configurationSchema.d.ts +37 -0
- package/esm/configuration/configurationSchema.js +230 -0
- package/esm/configuration/configurationSlot.d.ts +33 -0
- package/esm/configuration/configurationSlot.js +239 -0
- package/esm/configuration/index.d.ts +3 -0
- package/esm/configuration/index.js +2 -0
- package/esm/configuration/types.d.ts +14 -0
- package/esm/configuration/types.js +1 -0
- package/esm/configuration/util.d.ts +10 -0
- package/esm/configuration/util.js +123 -0
- package/esm/data_adapters/BaseAdapter/BaseAdapter.d.ts +16 -0
- package/esm/data_adapters/BaseAdapter/BaseAdapter.js +31 -0
- package/esm/data_adapters/BaseAdapter/BaseFeatureDataAdapter.d.ts +24 -0
- package/esm/data_adapters/BaseAdapter/BaseFeatureDataAdapter.js +68 -0
- package/esm/data_adapters/BaseAdapter/BaseOptions.d.ts +18 -0
- package/esm/data_adapters/BaseAdapter/BaseOptions.js +1 -0
- package/esm/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.d.ts +10 -0
- package/esm/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.js +1 -0
- package/esm/data_adapters/BaseAdapter/BaseSequenceAdapter.d.ts +11 -0
- package/esm/data_adapters/BaseAdapter/BaseSequenceAdapter.js +12 -0
- package/esm/data_adapters/BaseAdapter/BaseTextSearchAdapter.d.ts +6 -0
- package/esm/data_adapters/BaseAdapter/BaseTextSearchAdapter.js +1 -0
- package/esm/data_adapters/BaseAdapter/RegionsAdapter.d.ts +6 -0
- package/esm/data_adapters/BaseAdapter/RegionsAdapter.js +1 -0
- package/esm/data_adapters/BaseAdapter/index.d.ts +13 -0
- package/esm/data_adapters/BaseAdapter/index.js +5 -0
- package/esm/data_adapters/BaseAdapter/stats.d.ts +10 -0
- package/esm/data_adapters/BaseAdapter/stats.js +48 -0
- package/esm/data_adapters/BaseAdapter/types.d.ts +23 -0
- package/esm/data_adapters/BaseAdapter/types.js +1 -0
- package/esm/data_adapters/BaseAdapter/util.d.ts +12 -0
- package/esm/data_adapters/BaseAdapter/util.js +15 -0
- package/esm/data_adapters/CytobandAdapter/CytobandAdapter.d.ts +6 -0
- package/esm/data_adapters/CytobandAdapter/CytobandAdapter.js +28 -0
- package/esm/data_adapters/CytobandAdapter/configSchema.d.ts +9 -0
- package/esm/data_adapters/CytobandAdapter/configSchema.js +24 -0
- package/esm/data_adapters/CytobandAdapter/index.d.ts +2 -0
- package/esm/data_adapters/CytobandAdapter/index.js +12 -0
- package/esm/data_adapters/dataAdapterCache.d.ts +14 -0
- package/esm/data_adapters/dataAdapterCache.js +54 -0
- package/esm/data_adapters/util.js +4 -0
- package/esm/pluggableElementTypes/AdapterType.d.ts +25 -0
- package/esm/pluggableElementTypes/AdapterType.js +17 -0
- package/esm/pluggableElementTypes/AddTrackWorkflowType.d.ts +17 -0
- package/esm/pluggableElementTypes/AddTrackWorkflowType.js +10 -0
- package/esm/pluggableElementTypes/ConnectionType.d.ts +20 -0
- package/esm/pluggableElementTypes/ConnectionType.js +16 -0
- package/esm/pluggableElementTypes/DisplayType.d.ts +30 -0
- package/esm/pluggableElementTypes/DisplayType.js +20 -0
- package/esm/pluggableElementTypes/GlyphType.d.ts +43 -0
- package/esm/pluggableElementTypes/GlyphType.js +18 -0
- package/esm/pluggableElementTypes/InternetAccountType.d.ts +12 -0
- package/esm/pluggableElementTypes/InternetAccountType.js +10 -0
- package/esm/pluggableElementTypes/PluggableElementBase.js +11 -0
- package/esm/pluggableElementTypes/RpcMethodType.d.ts +19 -0
- package/esm/pluggableElementTypes/RpcMethodType.js +88 -0
- package/esm/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.d.ts +11 -0
- package/esm/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.js +28 -0
- package/esm/pluggableElementTypes/TextSearchAdapterType.d.ts +18 -0
- package/esm/pluggableElementTypes/TextSearchAdapterType.js +15 -0
- package/esm/pluggableElementTypes/TrackType.d.ts +16 -0
- package/esm/pluggableElementTypes/TrackType.js +14 -0
- package/esm/pluggableElementTypes/ViewType.d.ts +29 -0
- package/esm/pluggableElementTypes/ViewType.js +18 -0
- package/esm/pluggableElementTypes/WidgetType.d.ts +27 -0
- package/esm/pluggableElementTypes/WidgetType.js +18 -0
- package/esm/pluggableElementTypes/index.d.ts +27 -0
- package/esm/pluggableElementTypes/index.js +14 -0
- package/esm/pluggableElementTypes/models/BaseConnectionModelFactory.d.ts +29 -0
- package/esm/pluggableElementTypes/models/BaseConnectionModelFactory.js +35 -0
- package/esm/pluggableElementTypes/models/BaseDisplayModel.d.ts +180 -0
- package/esm/pluggableElementTypes/models/BaseDisplayModel.js +104 -0
- package/esm/pluggableElementTypes/models/BaseTrackModel.d.ts +74 -0
- package/esm/pluggableElementTypes/models/BaseTrackModel.js +203 -0
- package/esm/pluggableElementTypes/models/BaseViewModel.d.ts +52 -0
- package/esm/pluggableElementTypes/models/BaseViewModel.js +42 -0
- package/esm/pluggableElementTypes/models/InternetAccountModel.d.ts +86 -0
- package/esm/pluggableElementTypes/models/InternetAccountModel.js +151 -0
- package/esm/pluggableElementTypes/models/baseConnectionConfig.d.ts +16 -0
- package/esm/pluggableElementTypes/models/baseConnectionConfig.js +18 -0
- package/esm/pluggableElementTypes/models/baseInternetAccountConfig.d.ts +27 -0
- package/esm/pluggableElementTypes/models/baseInternetAccountConfig.js +32 -0
- package/esm/pluggableElementTypes/models/baseTrackConfig.d.ts +87 -0
- package/esm/pluggableElementTypes/models/baseTrackConfig.js +134 -0
- package/esm/pluggableElementTypes/models/components/SaveTrackData.d.ts +11 -0
- package/esm/pluggableElementTypes/models/components/SaveTrackData.js +158 -0
- package/esm/pluggableElementTypes/models/index.d.ts +14 -0
- package/esm/pluggableElementTypes/models/index.js +8 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/bed.d.ts +4 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/bed.js +9 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/fetchSequence.d.ts +5 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/fetchSequence.js +17 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/genbank.d.ts +7 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/genbank.js +108 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/gff3.d.ts +5 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/gff3.js +91 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/types.d.ts +11 -0
- package/esm/pluggableElementTypes/models/saveTrackFileTypes/types.js +1 -0
- package/esm/pluggableElementTypes/renderers/BoxRendererType.d.ts +52 -0
- package/esm/pluggableElementTypes/renderers/BoxRendererType.js +78 -0
- package/esm/pluggableElementTypes/renderers/CircularChordRendererType.d.ts +4 -0
- package/esm/pluggableElementTypes/renderers/CircularChordRendererType.js +4 -0
- package/esm/pluggableElementTypes/renderers/FeatureRendererType.d.ts +58 -0
- package/esm/pluggableElementTypes/renderers/FeatureRendererType.js +77 -0
- package/esm/pluggableElementTypes/renderers/LayoutSession.d.ts +31 -0
- package/esm/pluggableElementTypes/renderers/LayoutSession.js +37 -0
- package/esm/pluggableElementTypes/renderers/RendererType.d.ts +28 -0
- package/esm/pluggableElementTypes/renderers/RendererType.js +20 -0
- package/esm/pluggableElementTypes/renderers/ServerSideRendererType.d.ts +57 -0
- package/esm/pluggableElementTypes/renderers/ServerSideRendererType.js +113 -0
- package/esm/pluggableElementTypes/renderers/index.d.ts +6 -0
- package/esm/pluggableElementTypes/renderers/index.js +6 -0
- package/esm/pluggableElementTypes/renderers/util/serializableFilterChain.js +30 -0
- package/esm/pluggableElementTypes/renderers/util.d.ts +3 -0
- package/esm/pluggableElementTypes/renderers/util.js +14 -0
- package/esm/rpc/BaseRpcDriver.d.ts +40 -0
- package/esm/rpc/BaseRpcDriver.js +116 -0
- package/esm/rpc/MainThreadRpcDriver.d.ts +14 -0
- package/esm/rpc/MainThreadRpcDriver.js +33 -0
- package/esm/rpc/RpcManager.d.ts +35 -0
- package/esm/rpc/RpcManager.js +63 -0
- package/esm/rpc/WebWorkerRpcDriver.d.ts +31 -0
- package/esm/rpc/WebWorkerRpcDriver.js +77 -0
- package/esm/rpc/baseRpcConfig.d.ts +8 -0
- package/esm/rpc/baseRpcConfig.js +10 -0
- package/esm/rpc/configSchema.d.ts +9 -0
- package/esm/rpc/configSchema.js +22 -0
- package/esm/rpc/coreRpcMethods.d.ts +12 -0
- package/esm/rpc/coreRpcMethods.js +12 -0
- package/esm/rpc/mainThreadRpcConfig.d.ts +8 -0
- package/esm/rpc/mainThreadRpcConfig.js +8 -0
- package/esm/rpc/methods/CoreFreeResources.d.ts +6 -0
- package/esm/rpc/methods/CoreFreeResources.js +14 -0
- package/esm/rpc/methods/CoreGetExportData.d.ts +19 -0
- package/esm/rpc/methods/CoreGetExportData.js +18 -0
- package/esm/rpc/methods/CoreGetFeatureDensityStats.d.ts +17 -0
- package/esm/rpc/methods/CoreGetFeatureDensityStats.js +25 -0
- package/esm/rpc/methods/CoreGetFeatureDetails.d.ts +11 -0
- package/esm/rpc/methods/CoreGetFeatureDetails.js +24 -0
- package/esm/rpc/methods/CoreGetFeatures.d.ts +18 -0
- package/esm/rpc/methods/CoreGetFeatures.js +31 -0
- package/esm/rpc/methods/CoreGetFileInfo.d.ts +9 -0
- package/esm/rpc/methods/CoreGetFileInfo.js +15 -0
- package/esm/rpc/methods/CoreGetMetadata.d.ts +9 -0
- package/esm/rpc/methods/CoreGetMetadata.js +15 -0
- package/esm/rpc/methods/CoreGetRefNames.d.ts +10 -0
- package/esm/rpc/methods/CoreGetRefNames.js +19 -0
- package/esm/rpc/methods/CoreGetRegions.d.ts +8 -0
- package/esm/rpc/methods/CoreGetRegions.js +15 -0
- package/esm/rpc/methods/CoreGetSequence.d.ts +13 -0
- package/esm/rpc/methods/CoreGetSequence.js +17 -0
- package/esm/rpc/methods/CoreRender.d.ts +14 -0
- package/esm/rpc/methods/CoreRender.js +35 -0
- package/esm/rpc/methods/CoreSaveFeatureData.d.ts +16 -0
- package/esm/rpc/methods/CoreSaveFeatureData.js +32 -0
- package/esm/rpc/methods/util.d.ts +15 -0
- package/esm/rpc/methods/util.js +7 -0
- package/esm/rpc/webWorkerRpcConfig.d.ts +8 -0
- package/esm/rpc/webWorkerRpcConfig.js +8 -0
- package/esm/ui/AppLogo.d.ts +7 -0
- package/esm/ui/AppLogo.js +10 -0
- package/esm/ui/AssemblySelector.d.ts +13 -0
- package/esm/ui/AssemblySelector.js +39 -0
- package/esm/ui/BaseTooltip.js +42 -0
- package/esm/ui/CascadingMenu.d.ts +30 -0
- package/esm/ui/CascadingMenu.js +48 -0
- package/esm/ui/CascadingMenuButton.d.ts +26 -0
- package/esm/ui/CascadingMenuButton.js +24 -0
- package/esm/ui/CascadingMenuHelpDialog.d.ts +5 -0
- package/esm/ui/CascadingMenuHelpDialog.js +10 -0
- package/esm/ui/CascadingMenuHelpIconButton.d.ts +5 -0
- package/esm/ui/CascadingMenuHelpIconButton.js +15 -0
- package/esm/ui/ColorPicker.js +62 -0
- package/esm/ui/ConfirmDialog.js +13 -0
- package/esm/ui/DataGridFlexContainer.d.ts +5 -0
- package/esm/ui/DataGridFlexContainer.js +12 -0
- package/esm/ui/Dialog.d.ts +7 -0
- package/esm/ui/Dialog.js +45 -0
- package/esm/ui/DraggableDialog.js +27 -0
- package/esm/ui/DropDownMenu.d.ts +6 -0
- package/esm/ui/DropDownMenu.js +24 -0
- package/esm/ui/EditableTypography.js +60 -0
- package/esm/ui/ErrorBoundary.d.ts +17 -0
- package/esm/ui/ErrorBoundary.js +16 -0
- package/esm/ui/ErrorMessage.js +56 -0
- package/esm/ui/ErrorMessageStackTraceContents.d.ts +4 -0
- package/esm/ui/ErrorMessageStackTraceContents.js +25 -0
- package/esm/ui/ErrorMessageStackTraceDialog.js +108 -0
- package/esm/ui/ExternalLink.js +7 -0
- package/esm/ui/FactoryResetDialog.js +18 -0
- package/esm/ui/FatalErrorDialog.js +18 -0
- package/esm/ui/FileSelector/FileSelector.d.ts +11 -0
- package/esm/ui/FileSelector/FileSelector.js +52 -0
- package/esm/ui/FileSelector/LocalFileChooser.d.ts +6 -0
- package/esm/ui/FileSelector/LocalFileChooser.js +39 -0
- package/esm/ui/FileSelector/LocationInput.d.ts +9 -0
- package/esm/ui/FileSelector/LocationInput.js +15 -0
- package/esm/ui/FileSelector/SourceTypeSelector.d.ts +9 -0
- package/esm/ui/FileSelector/SourceTypeSelector.js +38 -0
- package/esm/ui/FileSelector/UrlChooser.d.ts +8 -0
- package/esm/ui/FileSelector/UrlChooser.js +17 -0
- package/esm/ui/FileSelector/index.d.ts +1 -0
- package/esm/ui/FileSelector/index.js +1 -0
- package/esm/ui/FileSelector/useInternetAccounts.d.ts +178 -0
- package/esm/ui/FileSelector/useInternetAccounts.js +18 -0
- package/esm/ui/HoverMenu.js +15 -0
- package/esm/ui/Icons.js +14 -0
- package/esm/ui/LoadingEllipses.js +31 -0
- package/esm/ui/Logo.js +42 -0
- package/esm/ui/Menu.d.ts +2 -0
- package/esm/ui/Menu.js +1 -0
- package/esm/ui/MenuButton.d.ts +1 -0
- package/esm/ui/MenuButton.js +1 -0
- package/esm/ui/MenuItems.d.ts +15 -0
- package/esm/ui/MenuItems.js +59 -0
- package/esm/ui/MenuTypes.d.ts +39 -0
- package/esm/ui/MenuTypes.js +1 -0
- package/esm/ui/PrerenderedCanvas.d.ts +10 -0
- package/esm/ui/PrerenderedCanvas.js +33 -0
- package/esm/ui/RedErrorMessageBox.js +16 -0
- package/esm/ui/ResizeHandle.js +67 -0
- package/esm/ui/ReturnToImportFormDialog.js +13 -0
- package/esm/ui/SanitizedHTML.js +61 -0
- package/esm/ui/Snackbar.d.ts +10 -0
- package/esm/ui/Snackbar.js +14 -0
- package/esm/ui/SnackbarContents.d.ts +5 -0
- package/esm/ui/SnackbarContents.js +11 -0
- package/esm/ui/SnackbarModel.d.ts +17 -0
- package/esm/ui/SnackbarModel.js +55 -0
- package/esm/ui/colors.js +67 -0
- package/esm/ui/index.d.ts +20 -0
- package/esm/ui/index.js +20 -0
- package/esm/ui/react-colorful.d.ts +3 -0
- package/esm/ui/react-colorful.js +416 -0
- package/esm/ui/theme.d.ts +58 -0
- package/esm/ui/theme.js +392 -0
- package/esm/ui/useEvent.js +10 -0
- package/esm/util/Base1DUtils.d.ts +38 -0
- package/esm/util/Base1DUtils.js +205 -0
- package/esm/util/Base1DViewModel.d.ts +61 -0
- package/esm/util/Base1DViewModel.js +129 -0
- package/esm/util/QuickLRU/index.d.ts +1 -0
- package/esm/util/QuickLRU/index.js +1 -0
- package/esm/util/TimeTraveller.d.ts +19 -0
- package/esm/util/TimeTraveller.js +94 -0
- package/esm/util/aborting.js +42 -0
- package/esm/util/analytics.js +80 -0
- package/esm/util/blobToDataURL.js +14 -0
- package/esm/util/blockTypes.d.ts +59 -0
- package/esm/util/blockTypes.js +119 -0
- package/esm/util/calculateDynamicBlocks.d.ts +3 -0
- package/esm/util/calculateDynamicBlocks.js +104 -0
- package/esm/util/calculateStaticBlocks.d.ts +13 -0
- package/esm/util/calculateStaticBlocks.js +106 -0
- package/esm/util/coarseStripHTML.d.ts +1 -0
- package/esm/util/coarseStripHTML.js +17 -0
- package/esm/util/color/cssColorsLevel4.js +156 -0
- package/esm/util/color/index.d.ts +5 -0
- package/esm/util/color/index.js +39 -0
- package/esm/util/colord.d.ts +9 -0
- package/esm/util/colord.js +14 -0
- package/esm/util/compositeMap.js +59 -0
- package/esm/util/convertCodingSequenceToPeptides.d.ts +6 -0
- package/esm/util/convertCodingSequenceToPeptides.js +9 -0
- package/esm/util/dedupe.js +12 -0
- package/esm/util/fetchSeq.d.ts +8 -0
- package/esm/util/fetchSeq.js +23 -0
- package/esm/util/flatbush/index.d.ts +25 -0
- package/esm/util/flatbush/index.js +423 -0
- package/esm/util/flatqueue/index.js +61 -0
- package/esm/util/formatFastaStrings.js +8 -0
- package/esm/util/idMaker.js +21 -0
- package/esm/util/index.d.ts +271 -0
- package/esm/util/index.js +873 -0
- package/esm/util/io/RemoteFileWithRangeCache.js +71 -0
- package/esm/util/io/index.d.ts +7 -0
- package/esm/util/io/index.js +92 -0
- package/esm/util/isWebWorker.d.ts +1 -0
- package/esm/util/isWebWorker.js +4 -0
- package/esm/util/jexl.d.ts +2 -0
- package/esm/util/jexl.js +49 -0
- package/esm/util/jexlStrings.js +17 -0
- package/esm/util/layouts/BaseLayout.d.ts +30 -0
- package/esm/util/layouts/BaseLayout.js +1 -0
- package/esm/util/layouts/GranularRectLayout.d.ts +37 -0
- package/esm/util/layouts/GranularRectLayout.js +418 -0
- package/esm/util/layouts/MultiLayout.d.ts +12 -0
- package/esm/util/layouts/MultiLayout.js +40 -0
- package/esm/util/layouts/PileupLayout.d.ts +41 -0
- package/esm/util/layouts/PileupLayout.js +202 -0
- package/esm/util/layouts/PrecomputedLayout.d.ts +30 -0
- package/esm/util/layouts/PrecomputedLayout.js +71 -0
- package/esm/util/layouts/SceneGraph.js +121 -0
- package/esm/util/layouts/index.d.ts +8 -0
- package/esm/util/layouts/index.js +6 -0
- package/esm/util/layouts/intervalUtils.d.ts +3 -0
- package/esm/util/layouts/intervalUtils.js +63 -0
- package/esm/util/librpc.d.ts +2 -0
- package/esm/util/librpc.js +1 -0
- package/esm/util/linkify.d.ts +1 -0
- package/esm/util/linkify.js +5 -0
- package/esm/util/locString.d.ts +9 -0
- package/esm/util/locString.js +62 -0
- package/esm/util/makeAbortableReaction.d.ts +3 -0
- package/esm/util/makeAbortableReaction.js +47 -0
- package/esm/util/map-obj/index.d.ts +13 -0
- package/esm/util/map-obj/index.js +92 -0
- package/esm/util/mst-reflection.d.ts +11 -0
- package/esm/util/mst-reflection.js +54 -0
- package/esm/util/nanoid.d.ts +5 -0
- package/esm/util/nanoid.js +36 -0
- package/esm/util/nextTick.js +3 -0
- package/esm/util/offscreenCanvasGetSerializingSvg.d.ts +5 -0
- package/esm/util/offscreenCanvasGetSerializingSvg.js +9 -0
- package/esm/util/offscreenCanvasPonyfill.d.ts +5 -0
- package/esm/util/offscreenCanvasPonyfill.js +57 -0
- package/esm/util/offscreenCanvasUtils.d.ts +12 -0
- package/esm/util/offscreenCanvasUtils.js +19 -0
- package/esm/util/parseLineByLine.js +22 -0
- package/esm/util/range.js +21 -0
- package/esm/util/renderToAbstractCanvas.d.ts +17 -0
- package/esm/util/renderToAbstractCanvas.js +53 -0
- package/esm/util/rpc.d.ts +2 -0
- package/esm/util/rpc.js +6 -0
- package/esm/util/rxjs.d.ts +4 -0
- package/esm/util/rxjs.js +16 -0
- package/esm/util/simpleFeature.d.ts +44 -0
- package/esm/util/simpleFeature.js +81 -0
- package/esm/util/stats.d.ts +23 -0
- package/esm/util/stats.js +72 -0
- package/esm/util/stopToken.d.ts +19 -0
- package/esm/util/stopToken.js +90 -0
- package/esm/util/tracks.d.ts +72 -0
- package/esm/util/tracks.js +214 -0
- package/esm/util/transferables.d.ts +2 -0
- package/esm/util/transferables.js +35 -0
- package/esm/util/tss-react/cssAndCx.d.ts +16 -0
- package/esm/util/tss-react/cssAndCx.js +97 -0
- package/esm/util/tss-react/index.d.ts +4 -0
- package/esm/util/tss-react/index.js +7 -0
- package/esm/util/tss-react/makeStyles.d.ts +15 -0
- package/esm/util/tss-react/makeStyles.js +38 -0
- package/esm/util/tss-react/mergeClasses.d.ts +2 -0
- package/esm/util/tss-react/mergeClasses.js +24 -0
- package/esm/util/tss-react/mui/index.d.ts +1 -0
- package/esm/util/tss-react/mui/index.js +1 -0
- package/esm/util/tss-react/mui/mui.d.ts +10 -0
- package/esm/util/tss-react/mui/mui.js +5 -0
- package/esm/util/tss-react/tools/classnames.d.ts +2 -0
- package/esm/util/tss-react/tools/classnames.js +44 -0
- package/esm/util/tss-react/tools/getDependencyArrayRef.d.ts +1 -0
- package/esm/util/tss-react/tools/getDependencyArrayRef.js +19 -0
- package/esm/util/tss-react/types.d.ts +13 -0
- package/esm/util/tss-react/types.js +6 -0
- package/esm/util/types/ElementId.d.ts +1 -0
- package/esm/util/types/ElementId.js +3 -0
- package/esm/util/types/index.d.ts +273 -0
- package/esm/util/types/index.js +131 -0
- package/esm/util/types/mst.d.ts +107 -0
- package/esm/util/types/mst.js +68 -0
- package/esm/util/types/util.d.ts +6 -0
- package/esm/util/types/util.js +1 -0
- package/esm/util/useFeatureSequence.d.ts +19 -0
- package/esm/util/useFeatureSequence.js +87 -0
- package/esm/util/useMeasure.js +30 -0
- package/esm/util/when.js +1 -0
- package/package.json +487 -38
- package/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.js +0 -38
- package/BaseFeatureWidget/BaseFeatureDetail/Attributes.d.ts +0 -13
- package/BaseFeatureWidget/BaseFeatureDetail/Attributes.js +0 -48
- package/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.d.ts +0 -8
- package/BaseFeatureWidget/BaseFeatureDetail/BaseAttributes.js +0 -13
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.d.ts +0 -2
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.js +0 -23
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.d.ts +0 -2
- package/BaseFeatureWidget/BaseFeatureDetail/BaseCoreDetails.js +0 -13
- package/BaseFeatureWidget/BaseFeatureDetail/BasicValue.js +0 -23
- package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.d.ts +0 -2
- package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.js +0 -30
- package/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.js +0 -63
- package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.d.ts +0 -11
- package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.js +0 -48
- package/BaseFeatureWidget/BaseFeatureDetail/FieldName.js +0 -27
- package/BaseFeatureWidget/BaseFeatureDetail/Position.d.ts +0 -2
- package/BaseFeatureWidget/BaseFeatureDetail/Position.js +0 -17
- package/BaseFeatureWidget/BaseFeatureDetail/SimpleField.js +0 -20
- package/BaseFeatureWidget/BaseFeatureDetail/UriField.js +0 -28
- package/BaseFeatureWidget/BaseFeatureDetail/index.d.ts +0 -7
- package/BaseFeatureWidget/BaseFeatureDetail/index.js +0 -34
- package/BaseFeatureWidget/BaseFeatureDetail/types.d.ts +0 -7
- package/BaseFeatureWidget/BaseFeatureDetail/types.js +0 -2
- package/BaseFeatureWidget/BaseFeatureDetail/util.js +0 -32
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.d.ts +0 -10
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceContents.js +0 -46
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.d.ts +0 -7
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.js +0 -82
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.d.ts +0 -7
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.js +0 -72
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.d.ts +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceName.js +0 -28
- package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.d.ts +0 -3
- package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.js +0 -34
- package/BaseFeatureWidget/SequenceFeatureDetails/consts.js +0 -9
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/HelpDialog.js +0 -17
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.d.ts +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.js +0 -50
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.d.ts +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.js +0 -141
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.d.ts +0 -5
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.js +0 -66
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.d.ts +0 -6
- package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.js +0 -50
- package/BaseFeatureWidget/SequenceFeatureDetails/index.d.ts +0 -1
- package/BaseFeatureWidget/SequenceFeatureDetails/index.js +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/model.d.ts +0 -31
- package/BaseFeatureWidget/SequenceFeatureDetails/model.js +0 -81
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.d.ts +0 -16
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.js +0 -89
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.d.ts +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.js +0 -21
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.d.ts +0 -10
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.js +0 -57
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.d.ts +0 -9
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.js +0 -26
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.d.ts +0 -10
- package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.js +0 -25
- package/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.d.ts +0 -80
- package/BaseFeatureWidget/SequenceFeatureDetails/test_data/DLGAP3.js +0 -585
- package/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.d.ts +0 -141
- package/BaseFeatureWidget/SequenceFeatureDetails/test_data/NCDN.js +0 -1118
- package/BaseFeatureWidget/SequenceFeatureDetails/types.d.ts +0 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/types.js +0 -2
- package/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.d.ts +0 -13
- package/BaseFeatureWidget/SequenceFeatureDetails/useSequenceData.js +0 -67
- package/BaseFeatureWidget/SequenceFeatureDetails/util.js +0 -46
- package/BaseFeatureWidget/configSchema.d.ts +0 -2
- package/BaseFeatureWidget/configSchema.js +0 -6
- package/BaseFeatureWidget/index.d.ts +0 -2
- package/BaseFeatureWidget/index.js +0 -7
- package/BaseFeatureWidget/stateModelFactory.d.ts +0 -101
- package/BaseFeatureWidget/stateModelFactory.js +0 -99
- package/BaseFeatureWidget/types.d.ts +0 -22
- package/BaseFeatureWidget/types.js +0 -2
- package/BaseFeatureWidget/util.d.ts +0 -51
- package/BaseFeatureWidget/util.js +0 -106
- package/CorePlugin.d.ts +0 -6
- package/CorePlugin.js +0 -66
- package/PhasedScheduler.js +0 -28
- package/Plugin.d.ts +0 -13
- package/Plugin.js +0 -7
- package/PluginLoader.d.ts +0 -64
- package/PluginLoader.js +0 -174
- package/PluginManager.d.ts +0 -139
- package/PluginManager.js +0 -405
- package/ReExports/BaseFeatureDetails.js +0 -45
- package/ReExports/DataGrid.js +0 -5
- package/ReExports/MuiDataGridReExports.js +0 -167
- package/ReExports/MuiReExports.d.ts +0 -133
- package/ReExports/MuiReExports.js +0 -150
- package/ReExports/index.d.ts +0 -1
- package/ReExports/index.js +0 -8
- package/ReExports/lazify.js +0 -14
- package/ReExports/list.js +0 -273
- package/ReExports/material-ui-colors.d.ts +0 -1
- package/ReExports/material-ui-colors.js +0 -17
- package/ReExports/modules.js +0 -179
- package/TextSearch/BaseResults.d.ts +0 -46
- package/TextSearch/BaseResults.js +0 -61
- package/TextSearch/TextSearchManager.d.ts +0 -48
- package/TextSearch/TextSearchManager.js +0 -85
- package/assemblyManager/assembly.d.ts +0 -72
- package/assemblyManager/assembly.js +0 -307
- package/assemblyManager/assemblyConfigSchema.d.ts +0 -27
- package/assemblyManager/assemblyConfigSchema.js +0 -53
- package/assemblyManager/assemblyManager.d.ts +0 -507
- package/assemblyManager/assemblyManager.js +0 -138
- package/assemblyManager/index.d.ts +0 -3
- package/assemblyManager/index.js +0 -10
- package/configuration/configurationSchema.d.ts +0 -35
- package/configuration/configurationSchema.js +0 -174
- package/configuration/configurationSlot.d.ts +0 -31
- package/configuration/configurationSlot.js +0 -241
- package/configuration/index.d.ts +0 -3
- package/configuration/index.js +0 -21
- package/configuration/types.d.ts +0 -14
- package/configuration/types.js +0 -2
- package/configuration/util.d.ts +0 -10
- package/configuration/util.js +0 -123
- package/data_adapters/BaseAdapter/BaseAdapter.d.ts +0 -14
- package/data_adapters/BaseAdapter/BaseAdapter.js +0 -30
- package/data_adapters/BaseAdapter/BaseFeatureDataAdapter.d.ts +0 -24
- package/data_adapters/BaseAdapter/BaseFeatureDataAdapter.js +0 -115
- package/data_adapters/BaseAdapter/BaseOptions.d.ts +0 -15
- package/data_adapters/BaseAdapter/BaseOptions.js +0 -2
- package/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.d.ts +0 -10
- package/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.js +0 -2
- package/data_adapters/BaseAdapter/BaseSequenceAdapter.d.ts +0 -10
- package/data_adapters/BaseAdapter/BaseSequenceAdapter.js +0 -10
- package/data_adapters/BaseAdapter/BaseTextSearchAdapter.d.ts +0 -6
- package/data_adapters/BaseAdapter/BaseTextSearchAdapter.js +0 -2
- package/data_adapters/BaseAdapter/RegionsAdapter.d.ts +0 -6
- package/data_adapters/BaseAdapter/RegionsAdapter.js +0 -2
- package/data_adapters/BaseAdapter/index.d.ts +0 -13
- package/data_adapters/BaseAdapter/index.js +0 -25
- package/data_adapters/BaseAdapter/types.d.ts +0 -21
- package/data_adapters/BaseAdapter/types.js +0 -2
- package/data_adapters/BaseAdapter/util.d.ts +0 -12
- package/data_adapters/BaseAdapter/util.js +0 -22
- package/data_adapters/CytobandAdapter/CytobandAdapter.d.ts +0 -6
- package/data_adapters/CytobandAdapter/CytobandAdapter.js +0 -31
- package/data_adapters/CytobandAdapter/configSchema.d.ts +0 -9
- package/data_adapters/CytobandAdapter/configSchema.js +0 -26
- package/data_adapters/CytobandAdapter/index.d.ts +0 -2
- package/data_adapters/CytobandAdapter/index.js +0 -51
- package/data_adapters/dataAdapterCache.d.ts +0 -14
- package/data_adapters/dataAdapterCache.js +0 -60
- package/data_adapters/util.js +0 -10
- package/pluggableElementTypes/AdapterType.d.ts +0 -25
- package/pluggableElementTypes/AdapterType.js +0 -19
- package/pluggableElementTypes/AddTrackWorkflowType.d.ts +0 -17
- package/pluggableElementTypes/AddTrackWorkflowType.js +0 -14
- package/pluggableElementTypes/ConnectionType.d.ts +0 -20
- package/pluggableElementTypes/ConnectionType.js +0 -17
- package/pluggableElementTypes/DisplayType.d.ts +0 -28
- package/pluggableElementTypes/DisplayType.js +0 -18
- package/pluggableElementTypes/InternetAccountType.d.ts +0 -12
- package/pluggableElementTypes/InternetAccountType.js +0 -14
- package/pluggableElementTypes/PluggableElementBase.js +0 -12
- package/pluggableElementTypes/RpcMethodType.d.ts +0 -17
- package/pluggableElementTypes/RpcMethodType.js +0 -69
- package/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.d.ts +0 -11
- package/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.js +0 -35
- package/pluggableElementTypes/TextSearchAdapterType.d.ts +0 -18
- package/pluggableElementTypes/TextSearchAdapterType.js +0 -18
- package/pluggableElementTypes/TrackType.d.ts +0 -16
- package/pluggableElementTypes/TrackType.js +0 -18
- package/pluggableElementTypes/ViewType.d.ts +0 -29
- package/pluggableElementTypes/ViewType.js +0 -21
- package/pluggableElementTypes/WidgetType.d.ts +0 -25
- package/pluggableElementTypes/WidgetType.js +0 -17
- package/pluggableElementTypes/index.d.ts +0 -26
- package/pluggableElementTypes/index.js +0 -44
- package/pluggableElementTypes/models/BaseConnectionModelFactory.d.ts +0 -29
- package/pluggableElementTypes/models/BaseConnectionModelFactory.js +0 -38
- package/pluggableElementTypes/models/BaseDisplayModel.d.ts +0 -68
- package/pluggableElementTypes/models/BaseDisplayModel.js +0 -81
- package/pluggableElementTypes/models/BaseTrackModel.d.ts +0 -53
- package/pluggableElementTypes/models/BaseTrackModel.js +0 -145
- package/pluggableElementTypes/models/BaseViewModel.d.ts +0 -42
- package/pluggableElementTypes/models/BaseViewModel.js +0 -35
- package/pluggableElementTypes/models/InternetAccountModel.d.ts +0 -86
- package/pluggableElementTypes/models/InternetAccountModel.js +0 -155
- package/pluggableElementTypes/models/baseConnectionConfig.d.ts +0 -16
- package/pluggableElementTypes/models/baseConnectionConfig.js +0 -20
- package/pluggableElementTypes/models/baseInternetAccountConfig.d.ts +0 -27
- package/pluggableElementTypes/models/baseInternetAccountConfig.js +0 -35
- package/pluggableElementTypes/models/baseTrackConfig.d.ts +0 -82
- package/pluggableElementTypes/models/baseTrackConfig.js +0 -135
- package/pluggableElementTypes/models/index.d.ts +0 -13
- package/pluggableElementTypes/models/index.js +0 -22
- package/pluggableElementTypes/renderers/BoxRendererType.d.ts +0 -60
- package/pluggableElementTypes/renderers/BoxRendererType.js +0 -102
- package/pluggableElementTypes/renderers/CircularChordRendererType.d.ts +0 -26
- package/pluggableElementTypes/renderers/CircularChordRendererType.js +0 -34
- package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.d.ts +0 -38
- package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.js +0 -65
- package/pluggableElementTypes/renderers/FeatureRendererType.d.ts +0 -51
- package/pluggableElementTypes/renderers/FeatureRendererType.js +0 -85
- package/pluggableElementTypes/renderers/LayoutSession.d.ts +0 -25
- package/pluggableElementTypes/renderers/LayoutSession.js +0 -42
- package/pluggableElementTypes/renderers/RendererType.d.ts +0 -25
- package/pluggableElementTypes/renderers/RendererType.js +0 -23
- package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.d.ts +0 -9
- package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.js +0 -9
- package/pluggableElementTypes/renderers/ServerSideRenderedContent.d.ts +0 -6
- package/pluggableElementTypes/renderers/ServerSideRenderedContent.js +0 -8
- package/pluggableElementTypes/renderers/ServerSideRendererType.d.ts +0 -49
- package/pluggableElementTypes/renderers/ServerSideRendererType.js +0 -81
- package/pluggableElementTypes/renderers/index.d.ts +0 -7
- package/pluggableElementTypes/renderers/index.js +0 -20
- package/pluggableElementTypes/renderers/util/serializableFilterChain.js +0 -32
- package/rpc/BaseRpcDriver.d.ts +0 -43
- package/rpc/BaseRpcDriver.js +0 -113
- package/rpc/MainThreadRpcDriver.d.ts +0 -14
- package/rpc/MainThreadRpcDriver.js +0 -32
- package/rpc/RpcManager.d.ts +0 -34
- package/rpc/RpcManager.js +0 -69
- package/rpc/WebWorkerRpcDriver.d.ts +0 -29
- package/rpc/WebWorkerRpcDriver.js +0 -65
- package/rpc/baseRpcConfig.d.ts +0 -8
- package/rpc/baseRpcConfig.js +0 -12
- package/rpc/configSchema.d.ts +0 -9
- package/rpc/configSchema.js +0 -27
- package/rpc/coreRpcMethods.d.ts +0 -9
- package/rpc/coreRpcMethods.js +0 -22
- package/rpc/mainThreadRpcConfig.d.ts +0 -8
- package/rpc/mainThreadRpcConfig.js +0 -13
- package/rpc/methods/CoreFreeResources.d.ts +0 -6
- package/rpc/methods/CoreFreeResources.js +0 -23
- package/rpc/methods/CoreGetFeatureDensityStats.d.ts +0 -17
- package/rpc/methods/CoreGetFeatureDensityStats.js +0 -36
- package/rpc/methods/CoreGetFeatureDetails.d.ts +0 -11
- package/rpc/methods/CoreGetFeatureDetails.js +0 -38
- package/rpc/methods/CoreGetFeatures.d.ts +0 -18
- package/rpc/methods/CoreGetFeatures.js +0 -40
- package/rpc/methods/CoreGetFileInfo.d.ts +0 -9
- package/rpc/methods/CoreGetFileInfo.js +0 -24
- package/rpc/methods/CoreGetMetadata.d.ts +0 -9
- package/rpc/methods/CoreGetMetadata.js +0 -24
- package/rpc/methods/CoreGetRefNames.d.ts +0 -9
- package/rpc/methods/CoreGetRefNames.js +0 -25
- package/rpc/methods/CoreRender.d.ts +0 -10
- package/rpc/methods/CoreRender.js +0 -46
- package/rpc/methods/util.d.ts +0 -15
- package/rpc/methods/util.js +0 -9
- package/rpc/webWorkerRpcConfig.d.ts +0 -8
- package/rpc/webWorkerRpcConfig.js +0 -13
- package/stories/JBrowseCore.stories.d.ts +0 -5
- package/stories/JBrowseCore.stories.js +0 -10
- package/stories/examples/WithSequencePanel.d.ts +0 -6
- package/stories/examples/WithSequencePanel.js +0 -42
- package/stories/examples/index.d.ts +0 -1
- package/stories/examples/index.js +0 -17
- package/stories/examples/util.d.ts +0 -33
- package/stories/examples/util.js +0 -235
- package/tsconfig.build.tsbuildinfo +0 -1
- package/ui/AppLogo.d.ts +0 -7
- package/ui/AppLogo.js +0 -12
- package/ui/AssemblySelector.d.ts +0 -13
- package/ui/AssemblySelector.js +0 -46
- package/ui/BaseTooltip.js +0 -46
- package/ui/CascadingMenu.d.ts +0 -9
- package/ui/CascadingMenu.js +0 -114
- package/ui/CascadingMenuButton.d.ts +0 -11
- package/ui/CascadingMenuButton.js +0 -29
- package/ui/ColorPicker.js +0 -101
- package/ui/ConfirmDialog.js +0 -18
- package/ui/DataGridFlexContainer.d.ts +0 -3
- package/ui/DataGridFlexContainer.js +0 -15
- package/ui/Dialog.d.ts +0 -7
- package/ui/Dialog.js +0 -50
- package/ui/DraggableDialog.js +0 -32
- package/ui/DropDownMenu.d.ts +0 -8
- package/ui/DropDownMenu.js +0 -37
- package/ui/EditableTypography.js +0 -65
- package/ui/ErrorBoundary.d.ts +0 -17
- package/ui/ErrorBoundary.js +0 -19
- package/ui/ErrorMessage.js +0 -94
- package/ui/ErrorMessageStackTraceDialog.js +0 -149
- package/ui/ExternalLink.js +0 -13
- package/ui/FactoryResetDialog.js +0 -24
- package/ui/FatalErrorDialog.js +0 -24
- package/ui/FileSelector/FileSelector.d.ts +0 -11
- package/ui/FileSelector/FileSelector.js +0 -102
- package/ui/FileSelector/LocalFileChooser.d.ts +0 -6
- package/ui/FileSelector/LocalFileChooser.js +0 -42
- package/ui/FileSelector/UrlChooser.d.ts +0 -8
- package/ui/FileSelector/UrlChooser.js +0 -19
- package/ui/FileSelector/index.d.ts +0 -1
- package/ui/FileSelector/index.js +0 -8
- package/ui/HoverMenu.js +0 -50
- package/ui/Icons.js +0 -23
- package/ui/LoadingEllipses.js +0 -35
- package/ui/Logo.js +0 -46
- package/ui/Menu.d.ts +0 -54
- package/ui/Menu.js +0 -233
- package/ui/MenuButton.d.ts +0 -10
- package/ui/MenuButton.js +0 -28
- package/ui/PrerenderedCanvas.d.ts +0 -10
- package/ui/PrerenderedCanvas.js +0 -34
- package/ui/RedErrorMessageBox.js +0 -19
- package/ui/ResizeHandle.js +0 -72
- package/ui/ReturnToImportFormDialog.js +0 -18
- package/ui/SanitizedHTML.js +0 -67
- package/ui/Snackbar.d.ts +0 -10
- package/ui/Snackbar.js +0 -49
- package/ui/SnackbarContents.d.ts +0 -5
- package/ui/SnackbarContents.js +0 -16
- package/ui/SnackbarModel.d.ts +0 -17
- package/ui/SnackbarModel.js +0 -96
- package/ui/colors.js +0 -78
- package/ui/hooks.d.ts +0 -66
- package/ui/hooks.js +0 -185
- package/ui/index.d.ts +0 -19
- package/ui/index.js +0 -56
- package/ui/react-colorful.d.ts +0 -17
- package/ui/react-colorful.js +0 -466
- package/ui/theme.d.ts +0 -59
- package/ui/theme.js +0 -381
- package/ui/useEvent.js +0 -47
- package/util/Base1DUtils.d.ts +0 -38
- package/util/Base1DUtils.js +0 -198
- package/util/Base1DViewModel.d.ts +0 -61
- package/util/Base1DViewModel.js +0 -135
- package/util/QuickLRU.d.ts +0 -32
- package/util/QuickLRU.js +0 -237
- package/util/TimeTraveller.d.ts +0 -19
- package/util/TimeTraveller.js +0 -90
- package/util/aborting.js +0 -48
- package/util/analytics.js +0 -86
- package/util/blobToDataURL.js +0 -17
- package/util/blockTypes.d.ts +0 -58
- package/util/blockTypes.js +0 -110
- package/util/calculateDynamicBlocks.d.ts +0 -3
- package/util/calculateDynamicBlocks.js +0 -100
- package/util/calculateStaticBlocks.d.ts +0 -13
- package/util/calculateStaticBlocks.js +0 -102
- package/util/cluster.d.ts +0 -17
- package/util/cluster.js +0 -102
- package/util/color/cssColorsLevel4.js +0 -160
- package/util/color/index.d.ts +0 -5
- package/util/color/index.js +0 -48
- package/util/colord.d.ts +0 -1
- package/util/colord.js +0 -13
- package/util/compositeMap.js +0 -61
- package/util/convertCodingSequenceToPeptides.d.ts +0 -6
- package/util/convertCodingSequenceToPeptides.js +0 -12
- package/util/dedupe.js +0 -15
- package/util/fetchSeq.d.ts +0 -8
- package/util/fetchSeq.js +0 -27
- package/util/flatbush/index.d.ts +0 -25
- package/util/flatbush/index.js +0 -362
- package/util/flatqueue/index.js +0 -66
- package/util/formatFastaStrings.js +0 -12
- package/util/idMaker.js +0 -24
- package/util/index.d.ts +0 -274
- package/util/index.js +0 -1052
- package/util/io/RemoteFileWithRangeCache.js +0 -76
- package/util/io/index.d.ts +0 -7
- package/util/io/index.js +0 -103
- package/util/jexl.d.ts +0 -4
- package/util/jexl.js +0 -55
- package/util/jexlStrings.js +0 -23
- package/util/layouts/BaseLayout.d.ts +0 -30
- package/util/layouts/BaseLayout.js +0 -2
- package/util/layouts/GranularRectLayout.d.ts +0 -37
- package/util/layouts/GranularRectLayout.js +0 -343
- package/util/layouts/MultiLayout.d.ts +0 -12
- package/util/layouts/MultiLayout.js +0 -42
- package/util/layouts/PrecomputedLayout.d.ts +0 -30
- package/util/layouts/PrecomputedLayout.js +0 -75
- package/util/layouts/PrecomputedMultiLayout.d.ts +0 -4
- package/util/layouts/PrecomputedMultiLayout.js +0 -21
- package/util/layouts/SceneGraph.js +0 -115
- package/util/layouts/index.d.ts +0 -7
- package/util/layouts/index.js +0 -31
- package/util/makeAbortableReaction.d.ts +0 -2
- package/util/makeAbortableReaction.js +0 -50
- package/util/map-obj.d.ts +0 -3
- package/util/map-obj.js +0 -37
- package/util/mst-reflection.d.ts +0 -11
- package/util/mst-reflection.js +0 -62
- package/util/nanoid.d.ts +0 -5
- package/util/nanoid.js +0 -43
- package/util/nextTick.js +0 -6
- package/util/offscreenCanvasPonyfill.d.ts +0 -7
- package/util/offscreenCanvasPonyfill.js +0 -65
- package/util/offscreenCanvasUtils.d.ts +0 -28
- package/util/offscreenCanvasUtils.js +0 -99
- package/util/parseLineByLine.js +0 -25
- package/util/range.js +0 -26
- package/util/rxjs.d.ts +0 -3
- package/util/rxjs.js +0 -21
- package/util/simpleFeature.d.ts +0 -44
- package/util/simpleFeature.js +0 -82
- package/util/stats.d.ts +0 -21
- package/util/stats.js +0 -78
- package/util/stopToken.d.ts +0 -3
- package/util/stopToken.js +0 -29
- package/util/tracks.d.ts +0 -55
- package/util/tracks.js +0 -168
- package/util/types/index.d.ts +0 -254
- package/util/types/index.js +0 -172
- package/util/types/mst.d.ts +0 -107
- package/util/types/mst.js +0 -72
- package/util/types/util.d.ts +0 -6
- package/util/types/util.js +0 -2
- package/util/useFeatureSequence.d.ts +0 -19
- package/util/useFeatureSequence.js +0 -90
- package/util/useMeasure.js +0 -33
- package/util/when.js +0 -5
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/ArrayValue.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/BasicValue.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/DataGridDetails.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/FieldName.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/SimpleField.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/UriField.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/BaseFeatureDetail/util.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/SequenceFeatureDetails/consts.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/SequenceFeatureDetails/dialogs/HelpDialog.d.ts +0 -0
- /package/{BaseFeatureWidget → esm/BaseFeatureWidget}/SequenceFeatureDetails/util.d.ts +0 -0
- /package/{PhasedScheduler.d.ts → esm/PhasedScheduler.d.ts} +0 -0
- /package/{ReExports → esm/ReExports}/BaseFeatureDetails.d.ts +0 -0
- /package/{ReExports → esm/ReExports}/DataGrid.d.ts +0 -0
- /package/{ReExports → esm/ReExports}/MuiDataGridReExports.d.ts +0 -0
- /package/{ReExports → esm/ReExports}/lazify.d.ts +0 -0
- /package/{ReExports → esm/ReExports}/list.d.ts +0 -0
- /package/{ReExports → esm/ReExports}/modules.d.ts +0 -0
- /package/{data_adapters → esm/data_adapters}/util.d.ts +0 -0
- /package/{pluggableElementTypes → esm/pluggableElementTypes}/PluggableElementBase.d.ts +0 -0
- /package/{pluggableElementTypes → esm/pluggableElementTypes}/renderers/util/serializableFilterChain.d.ts +0 -0
- /package/{ui → esm/ui}/BaseTooltip.d.ts +0 -0
- /package/{ui → esm/ui}/ColorPicker.d.ts +0 -0
- /package/{ui → esm/ui}/ConfirmDialog.d.ts +0 -0
- /package/{ui → esm/ui}/DraggableDialog.d.ts +0 -0
- /package/{ui → esm/ui}/EditableTypography.d.ts +0 -0
- /package/{ui → esm/ui}/ErrorMessage.d.ts +0 -0
- /package/{ui → esm/ui}/ErrorMessageStackTraceDialog.d.ts +0 -0
- /package/{ui → esm/ui}/ExternalLink.d.ts +0 -0
- /package/{ui → esm/ui}/FactoryResetDialog.d.ts +0 -0
- /package/{ui → esm/ui}/FatalErrorDialog.d.ts +0 -0
- /package/{ui → esm/ui}/HoverMenu.d.ts +0 -0
- /package/{ui → esm/ui}/Icons.d.ts +0 -0
- /package/{ui → esm/ui}/LoadingEllipses.d.ts +0 -0
- /package/{ui → esm/ui}/Logo.d.ts +0 -0
- /package/{ui → esm/ui}/RedErrorMessageBox.d.ts +0 -0
- /package/{ui → esm/ui}/ResizeHandle.d.ts +0 -0
- /package/{ui → esm/ui}/ReturnToImportFormDialog.d.ts +0 -0
- /package/{ui → esm/ui}/SanitizedHTML.d.ts +0 -0
- /package/{ui → esm/ui}/colors.d.ts +0 -0
- /package/{ui → esm/ui}/useEvent.d.ts +0 -0
- /package/{util → esm/util}/aborting.d.ts +0 -0
- /package/{util → esm/util}/analytics.d.ts +0 -0
- /package/{util → esm/util}/blobToDataURL.d.ts +0 -0
- /package/{util → esm/util}/color/cssColorsLevel4.d.ts +0 -0
- /package/{util → esm/util}/compositeMap.d.ts +0 -0
- /package/{util → esm/util}/dedupe.d.ts +0 -0
- /package/{util → esm/util}/flatqueue/index.d.ts +0 -0
- /package/{util → esm/util}/formatFastaStrings.d.ts +0 -0
- /package/{util → esm/util}/idMaker.d.ts +0 -0
- /package/{util → esm/util}/io/RemoteFileWithRangeCache.d.ts +0 -0
- /package/{util → esm/util}/jexlStrings.d.ts +0 -0
- /package/{util → esm/util}/layouts/SceneGraph.d.ts +0 -0
- /package/{util → esm/util}/nextTick.d.ts +0 -0
- /package/{util → esm/util}/parseLineByLine.d.ts +0 -0
- /package/{util → esm/util}/range.d.ts +0 -0
- /package/{util → esm/util}/useMeasure.d.ts +0 -0
- /package/{util → esm/util}/when.d.ts +0 -0
package/util/index.js
DELETED
|
@@ -1,1052 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.makeAbortableReaction = exports.blobToDataURL = exports.isFeature = exports.SimpleFeature = exports.defaultCodonTable = exports.defaultStops = exports.defaultStarts = exports.rIC = exports.complementTable = exports.isElectron = void 0;
|
|
21
|
-
exports.useDebounce = useDebounce;
|
|
22
|
-
exports.useWidthSetter = useWidthSetter;
|
|
23
|
-
exports.useDebouncedCallback = useDebouncedCallback;
|
|
24
|
-
exports.findParentThat = findParentThat;
|
|
25
|
-
exports.springAnimate = springAnimate;
|
|
26
|
-
exports.findParentThatIs = findParentThatIs;
|
|
27
|
-
exports.getSession = getSession;
|
|
28
|
-
exports.getContainingView = getContainingView;
|
|
29
|
-
exports.getContainingTrack = getContainingTrack;
|
|
30
|
-
exports.getContainingDisplay = getContainingDisplay;
|
|
31
|
-
exports.assembleLocString = assembleLocString;
|
|
32
|
-
exports.assembleLocStringFast = assembleLocStringFast;
|
|
33
|
-
exports.parseLocStringOneBased = parseLocStringOneBased;
|
|
34
|
-
exports.parseLocString = parseLocString;
|
|
35
|
-
exports.compareLocs = compareLocs;
|
|
36
|
-
exports.compareLocStrings = compareLocStrings;
|
|
37
|
-
exports.clamp = clamp;
|
|
38
|
-
exports.bpToPx = bpToPx;
|
|
39
|
-
exports.radToDeg = radToDeg;
|
|
40
|
-
exports.degToRad = degToRad;
|
|
41
|
-
exports.polarToCartesian = polarToCartesian;
|
|
42
|
-
exports.cartesianToPolar = cartesianToPolar;
|
|
43
|
-
exports.featureSpanPx = featureSpanPx;
|
|
44
|
-
exports.bpSpanPx = bpSpanPx;
|
|
45
|
-
exports.iterMap = iterMap;
|
|
46
|
-
exports.findLastIndex = findLastIndex;
|
|
47
|
-
exports.findLast = findLast;
|
|
48
|
-
exports.renameRegionIfNeeded = renameRegionIfNeeded;
|
|
49
|
-
exports.renameRegionsIfNeeded = renameRegionsIfNeeded;
|
|
50
|
-
exports.minmax = minmax;
|
|
51
|
-
exports.shorten = shorten;
|
|
52
|
-
exports.shorten2 = shorten2;
|
|
53
|
-
exports.stringify = stringify;
|
|
54
|
-
exports.revcom = revcom;
|
|
55
|
-
exports.reverse = reverse;
|
|
56
|
-
exports.complement = complement;
|
|
57
|
-
exports.measureText = measureText;
|
|
58
|
-
exports.getFrame = getFrame;
|
|
59
|
-
exports.generateCodonTable = generateCodonTable;
|
|
60
|
-
exports.updateStatus = updateStatus;
|
|
61
|
-
exports.updateStatus2 = updateStatus2;
|
|
62
|
-
exports.hashCode = hashCode;
|
|
63
|
-
exports.objectHash = objectHash;
|
|
64
|
-
exports.bytesForRegions = bytesForRegions;
|
|
65
|
-
exports.isSupportedIndexingAdapter = isSupportedIndexingAdapter;
|
|
66
|
-
exports.getBpDisplayStr = getBpDisplayStr;
|
|
67
|
-
exports.getProgressDisplayStr = getProgressDisplayStr;
|
|
68
|
-
exports.toLocale = toLocale;
|
|
69
|
-
exports.getTickDisplayStr = getTickDisplayStr;
|
|
70
|
-
exports.getViewParams = getViewParams;
|
|
71
|
-
exports.getLayoutId = getLayoutId;
|
|
72
|
-
exports.useLocalStorage = useLocalStorage;
|
|
73
|
-
exports.getUriLink = getUriLink;
|
|
74
|
-
exports.getStr = getStr;
|
|
75
|
-
exports.coarseStripHTML = coarseStripHTML;
|
|
76
|
-
exports.linkify = linkify;
|
|
77
|
-
exports.measureGridWidth = measureGridWidth;
|
|
78
|
-
exports.getEnv = getEnv;
|
|
79
|
-
exports.localStorageGetItem = localStorageGetItem;
|
|
80
|
-
exports.localStorageSetItem = localStorageSetItem;
|
|
81
|
-
exports.max = max;
|
|
82
|
-
exports.min = min;
|
|
83
|
-
exports.sum = sum;
|
|
84
|
-
exports.avg = avg;
|
|
85
|
-
exports.groupBy = groupBy;
|
|
86
|
-
exports.notEmpty = notEmpty;
|
|
87
|
-
exports.mergeIntervals = mergeIntervals;
|
|
88
|
-
exports.gatherOverlaps = gatherOverlaps;
|
|
89
|
-
exports.stripAlpha = stripAlpha;
|
|
90
|
-
exports.getStrokeProps = getStrokeProps;
|
|
91
|
-
exports.getFillProps = getFillProps;
|
|
92
|
-
exports.renderToStaticMarkup = renderToStaticMarkup;
|
|
93
|
-
exports.isGzip = isGzip;
|
|
94
|
-
exports.fetchAndMaybeUnzip = fetchAndMaybeUnzip;
|
|
95
|
-
exports.fetchAndMaybeUnzipText = fetchAndMaybeUnzipText;
|
|
96
|
-
exports.isObject = isObject;
|
|
97
|
-
exports.localStorageGetNumber = localStorageGetNumber;
|
|
98
|
-
exports.localStorageGetBoolean = localStorageGetBoolean;
|
|
99
|
-
exports.localStorageSetBoolean = localStorageSetBoolean;
|
|
100
|
-
exports.forEachWithStopTokenCheck = forEachWithStopTokenCheck;
|
|
101
|
-
exports.testAdapter = testAdapter;
|
|
102
|
-
const react_1 = require("react");
|
|
103
|
-
const bgzf_filehandle_1 = require("@gmod/bgzf-filehandle");
|
|
104
|
-
const useMeasure_1 = __importDefault(require("@jbrowse/core/util/useMeasure"));
|
|
105
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
106
|
-
const react_dom_1 = require("react-dom");
|
|
107
|
-
const client_1 = require("react-dom/client");
|
|
108
|
-
const colord_1 = require("./colord");
|
|
109
|
-
const stopToken_1 = require("./stopToken");
|
|
110
|
-
const types_1 = require("./types");
|
|
111
|
-
__exportStar(require("./types"), exports);
|
|
112
|
-
__exportStar(require("./when"), exports);
|
|
113
|
-
__exportStar(require("./range"), exports);
|
|
114
|
-
__exportStar(require("./dedupe"), exports);
|
|
115
|
-
__exportStar(require("./offscreenCanvasPonyfill"), exports);
|
|
116
|
-
__exportStar(require("./offscreenCanvasUtils"), exports);
|
|
117
|
-
function useDebounce(value, delay) {
|
|
118
|
-
const [debouncedValue, setDebouncedValue] = (0, react_1.useState)(value);
|
|
119
|
-
(0, react_1.useEffect)(() => {
|
|
120
|
-
const handle = setTimeout(() => {
|
|
121
|
-
setDebouncedValue(value);
|
|
122
|
-
}, delay);
|
|
123
|
-
return () => {
|
|
124
|
-
clearTimeout(handle);
|
|
125
|
-
};
|
|
126
|
-
}, [value, delay]);
|
|
127
|
-
return debouncedValue;
|
|
128
|
-
}
|
|
129
|
-
function useWidthSetter(view, padding) {
|
|
130
|
-
const [ref, { width }] = (0, useMeasure_1.default)();
|
|
131
|
-
(0, react_1.useEffect)(() => {
|
|
132
|
-
let token;
|
|
133
|
-
if (width && (0, mobx_state_tree_1.isAlive)(view)) {
|
|
134
|
-
token = requestAnimationFrame(() => {
|
|
135
|
-
view.setWidth(width);
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
return () => {
|
|
139
|
-
if (token) {
|
|
140
|
-
cancelAnimationFrame(token);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
}, [padding, view, width]);
|
|
144
|
-
return ref;
|
|
145
|
-
}
|
|
146
|
-
function useDebouncedCallback(callback, wait = 400) {
|
|
147
|
-
const argsRef = (0, react_1.useRef)(null);
|
|
148
|
-
const timeout = (0, react_1.useRef)(null);
|
|
149
|
-
(0, react_1.useEffect)(() => {
|
|
150
|
-
if (timeout.current) {
|
|
151
|
-
clearTimeout(timeout.current);
|
|
152
|
-
}
|
|
153
|
-
}, []);
|
|
154
|
-
return function debouncedCallback(...args) {
|
|
155
|
-
argsRef.current = args;
|
|
156
|
-
if (timeout.current) {
|
|
157
|
-
clearTimeout(timeout.current);
|
|
158
|
-
}
|
|
159
|
-
timeout.current = setTimeout(() => {
|
|
160
|
-
if (argsRef.current) {
|
|
161
|
-
callback(...argsRef.current);
|
|
162
|
-
}
|
|
163
|
-
}, wait);
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
function findParentThat(node, predicate) {
|
|
167
|
-
if (!(0, mobx_state_tree_1.hasParent)(node)) {
|
|
168
|
-
throw new Error('node does not have parent');
|
|
169
|
-
}
|
|
170
|
-
let currentNode = (0, mobx_state_tree_1.getParent)(node);
|
|
171
|
-
while (currentNode && (0, mobx_state_tree_1.isAlive)(currentNode)) {
|
|
172
|
-
if (predicate(currentNode)) {
|
|
173
|
-
return currentNode;
|
|
174
|
-
}
|
|
175
|
-
if ((0, mobx_state_tree_1.hasParent)(currentNode)) {
|
|
176
|
-
currentNode = (0, mobx_state_tree_1.getParent)(currentNode);
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
throw new Error('no matching node found');
|
|
183
|
-
}
|
|
184
|
-
function springAnimate(fromValue, toValue, setValue, onFinish = () => { }, precision = 0, tension = 400, friction = 20, clamp = true) {
|
|
185
|
-
const mass = 1;
|
|
186
|
-
if (!precision) {
|
|
187
|
-
precision = Math.abs(toValue - fromValue) / 1000;
|
|
188
|
-
}
|
|
189
|
-
let animationFrameId;
|
|
190
|
-
function update(animation) {
|
|
191
|
-
const time = Date.now();
|
|
192
|
-
let position = animation.lastPosition;
|
|
193
|
-
let lastTime = animation.lastTime || time;
|
|
194
|
-
let velocity = animation.lastVelocity || 0;
|
|
195
|
-
if (time > lastTime + 64) {
|
|
196
|
-
lastTime = time;
|
|
197
|
-
}
|
|
198
|
-
const numSteps = Math.floor(time - lastTime);
|
|
199
|
-
for (let i = 0; i < numSteps; ++i) {
|
|
200
|
-
const force = -tension * (position - toValue);
|
|
201
|
-
const damping = -friction * velocity;
|
|
202
|
-
const acceleration = (force + damping) / mass;
|
|
203
|
-
velocity += (acceleration * 1) / 1000;
|
|
204
|
-
position += (velocity * 1) / 1000;
|
|
205
|
-
}
|
|
206
|
-
const isVelocity = Math.abs(velocity) <= precision;
|
|
207
|
-
const isDisplacement = tension !== 0 ? Math.abs(toValue - position) <= precision : true;
|
|
208
|
-
const isOvershooting = clamp && tension !== 0
|
|
209
|
-
? fromValue < toValue
|
|
210
|
-
? position > toValue
|
|
211
|
-
: position < toValue
|
|
212
|
-
: false;
|
|
213
|
-
const endOfAnimation = isOvershooting || (isVelocity && isDisplacement);
|
|
214
|
-
if (endOfAnimation) {
|
|
215
|
-
setValue(toValue);
|
|
216
|
-
onFinish();
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
setValue(position);
|
|
220
|
-
animationFrameId = requestAnimationFrame(() => {
|
|
221
|
-
update({
|
|
222
|
-
lastPosition: position,
|
|
223
|
-
lastTime: time,
|
|
224
|
-
lastVelocity: velocity,
|
|
225
|
-
});
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
return [
|
|
230
|
-
() => {
|
|
231
|
-
update({ lastPosition: fromValue });
|
|
232
|
-
},
|
|
233
|
-
() => {
|
|
234
|
-
cancelAnimationFrame(animationFrameId);
|
|
235
|
-
},
|
|
236
|
-
];
|
|
237
|
-
}
|
|
238
|
-
function findParentThatIs(node, predicate) {
|
|
239
|
-
return findParentThat(node, predicate);
|
|
240
|
-
}
|
|
241
|
-
function getSession(node) {
|
|
242
|
-
try {
|
|
243
|
-
return findParentThatIs(node, types_1.isSessionModel);
|
|
244
|
-
}
|
|
245
|
-
catch (e) {
|
|
246
|
-
throw new Error('no session model found!');
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
function getContainingView(node) {
|
|
250
|
-
try {
|
|
251
|
-
return findParentThatIs(node, types_1.isViewModel);
|
|
252
|
-
}
|
|
253
|
-
catch (e) {
|
|
254
|
-
throw new Error('no containing view found');
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
function getContainingTrack(node) {
|
|
258
|
-
try {
|
|
259
|
-
return findParentThatIs(node, types_1.isTrackModel);
|
|
260
|
-
}
|
|
261
|
-
catch (e) {
|
|
262
|
-
throw new Error('no containing track found');
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
function getContainingDisplay(node) {
|
|
266
|
-
try {
|
|
267
|
-
return findParentThatIs(node, types_1.isDisplayModel);
|
|
268
|
-
}
|
|
269
|
-
catch (e) {
|
|
270
|
-
throw new Error('no containing display found');
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
function assembleLocString(region) {
|
|
274
|
-
return assembleLocStringFast(region, toLocale);
|
|
275
|
-
}
|
|
276
|
-
function assembleLocStringFast(region, cb = (n) => n) {
|
|
277
|
-
const { assemblyName, refName, start, end, reversed } = region;
|
|
278
|
-
const assemblyNameString = assemblyName ? `{${assemblyName}}` : '';
|
|
279
|
-
let startString;
|
|
280
|
-
if (start !== undefined) {
|
|
281
|
-
startString = `:${cb(start + 1)}`;
|
|
282
|
-
}
|
|
283
|
-
else if (end !== undefined) {
|
|
284
|
-
startString = ':1';
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
startString = '';
|
|
288
|
-
}
|
|
289
|
-
let endString;
|
|
290
|
-
if (end !== undefined) {
|
|
291
|
-
endString = start !== undefined && start + 1 === end ? '' : `..${cb(end)}`;
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
endString = start !== undefined ? '..' : '';
|
|
295
|
-
}
|
|
296
|
-
let rev = '';
|
|
297
|
-
if (reversed) {
|
|
298
|
-
rev = '[rev]';
|
|
299
|
-
}
|
|
300
|
-
return `${assemblyNameString}${refName}${startString}${endString}${rev}`;
|
|
301
|
-
}
|
|
302
|
-
function parseLocStringOneBased(locString, isValidRefName) {
|
|
303
|
-
if (!locString) {
|
|
304
|
-
throw new Error('no location string provided, could not parse');
|
|
305
|
-
}
|
|
306
|
-
let reversed = false;
|
|
307
|
-
if (locString.endsWith('[rev]')) {
|
|
308
|
-
reversed = true;
|
|
309
|
-
locString = locString.replace(/\[rev]$/, '');
|
|
310
|
-
}
|
|
311
|
-
locString = locString.replace(/\s/, '');
|
|
312
|
-
const assemblyMatch = /({(.+)})?(.+)/.exec(locString);
|
|
313
|
-
if (!assemblyMatch) {
|
|
314
|
-
throw new Error(`invalid location string: "${locString}"`);
|
|
315
|
-
}
|
|
316
|
-
const [, , assemblyName2, location2] = assemblyMatch;
|
|
317
|
-
const assemblyName = assemblyName2;
|
|
318
|
-
const location = location2;
|
|
319
|
-
if (!assemblyName && location.startsWith('{}')) {
|
|
320
|
-
throw new Error(`no assembly name was provided in location "${location}"`);
|
|
321
|
-
}
|
|
322
|
-
const lastColonIdx = location.lastIndexOf(':');
|
|
323
|
-
if (lastColonIdx === -1) {
|
|
324
|
-
if (isValidRefName(location, assemblyName)) {
|
|
325
|
-
return {
|
|
326
|
-
assemblyName,
|
|
327
|
-
refName: location,
|
|
328
|
-
reversed,
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
throw new Error(`Unknown reference sequence "${location}"`);
|
|
332
|
-
}
|
|
333
|
-
const prefix = location.slice(0, lastColonIdx);
|
|
334
|
-
const suffix = location.slice(lastColonIdx + 1);
|
|
335
|
-
if (isValidRefName(prefix, assemblyName) &&
|
|
336
|
-
isValidRefName(location, assemblyName)) {
|
|
337
|
-
throw new Error(`ambiguous location string: "${locString}"`);
|
|
338
|
-
}
|
|
339
|
-
else if (isValidRefName(prefix, assemblyName)) {
|
|
340
|
-
if (suffix) {
|
|
341
|
-
const rangeMatch = /^(-?(\d+|\d{1,3}(,\d{3})*))(\.\.|-)(-?(\d+|\d{1,3}(,\d{3})*))$/.exec(suffix);
|
|
342
|
-
const singleMatch = /^(-?(\d+|\d{1,3}(,\d{3})*))(\.\.|-)?$/.exec(suffix);
|
|
343
|
-
if (rangeMatch) {
|
|
344
|
-
const [, start, , , , end] = rangeMatch;
|
|
345
|
-
if (start !== undefined && end !== undefined) {
|
|
346
|
-
return {
|
|
347
|
-
assemblyName,
|
|
348
|
-
refName: prefix,
|
|
349
|
-
start: +start.replaceAll(',', ''),
|
|
350
|
-
end: +end.replaceAll(',', ''),
|
|
351
|
-
reversed,
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
else if (singleMatch) {
|
|
356
|
-
const [, start, , , separator] = singleMatch;
|
|
357
|
-
if (start !== undefined) {
|
|
358
|
-
if (separator) {
|
|
359
|
-
return {
|
|
360
|
-
assemblyName,
|
|
361
|
-
refName: prefix,
|
|
362
|
-
start: +start.replaceAll(',', ''),
|
|
363
|
-
reversed,
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
return {
|
|
367
|
-
assemblyName,
|
|
368
|
-
refName: prefix,
|
|
369
|
-
start: +start.replaceAll(',', ''),
|
|
370
|
-
end: +start.replaceAll(',', ''),
|
|
371
|
-
reversed,
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
throw new Error(`could not parse range "${suffix}" on location "${locString}"`);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
else {
|
|
380
|
-
return {
|
|
381
|
-
assemblyName,
|
|
382
|
-
refName: prefix,
|
|
383
|
-
reversed,
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
else if (isValidRefName(location, assemblyName)) {
|
|
388
|
-
return {
|
|
389
|
-
assemblyName,
|
|
390
|
-
refName: location,
|
|
391
|
-
reversed,
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
throw new Error(`unknown reference sequence name in location "${locString}"`);
|
|
395
|
-
}
|
|
396
|
-
function parseLocString(locString, isValidRefName) {
|
|
397
|
-
const parsed = parseLocStringOneBased(locString, isValidRefName);
|
|
398
|
-
if (typeof parsed.start === 'number') {
|
|
399
|
-
parsed.start -= 1;
|
|
400
|
-
}
|
|
401
|
-
return parsed;
|
|
402
|
-
}
|
|
403
|
-
function compareLocs(locA, locB) {
|
|
404
|
-
const assemblyComp = locA.assemblyName || locB.assemblyName
|
|
405
|
-
? (locA.assemblyName || '').localeCompare(locB.assemblyName || '')
|
|
406
|
-
: 0;
|
|
407
|
-
if (assemblyComp) {
|
|
408
|
-
return assemblyComp;
|
|
409
|
-
}
|
|
410
|
-
const refComp = locA.refName || locB.refName
|
|
411
|
-
? (locA.refName || '').localeCompare(locB.refName || '')
|
|
412
|
-
: 0;
|
|
413
|
-
if (refComp) {
|
|
414
|
-
return refComp;
|
|
415
|
-
}
|
|
416
|
-
if (locA.start !== undefined && locB.start !== undefined) {
|
|
417
|
-
const startComp = locA.start - locB.start;
|
|
418
|
-
if (startComp) {
|
|
419
|
-
return startComp;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
if (locA.end !== undefined && locB.end !== undefined) {
|
|
423
|
-
const endComp = locA.end - locB.end;
|
|
424
|
-
if (endComp) {
|
|
425
|
-
return endComp;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
return 0;
|
|
429
|
-
}
|
|
430
|
-
function compareLocStrings(a, b, isValidRefName) {
|
|
431
|
-
const locA = parseLocString(a, isValidRefName);
|
|
432
|
-
const locB = parseLocString(b, isValidRefName);
|
|
433
|
-
return compareLocs(locA, locB);
|
|
434
|
-
}
|
|
435
|
-
function clamp(num, min, max) {
|
|
436
|
-
if (num < min) {
|
|
437
|
-
return min;
|
|
438
|
-
}
|
|
439
|
-
if (num > max) {
|
|
440
|
-
return max;
|
|
441
|
-
}
|
|
442
|
-
return num;
|
|
443
|
-
}
|
|
444
|
-
function roundToNearestPointOne(num) {
|
|
445
|
-
return Math.round(num * 10) / 10;
|
|
446
|
-
}
|
|
447
|
-
function bpToPx(bp, { reversed, end = 0, start = 0, }, bpPerPx) {
|
|
448
|
-
return roundToNearestPointOne((reversed ? end - bp : bp - start) / bpPerPx);
|
|
449
|
-
}
|
|
450
|
-
const oneEightyOverPi = 180 / Math.PI;
|
|
451
|
-
const piOverOneEighty = Math.PI / 180;
|
|
452
|
-
function radToDeg(radians) {
|
|
453
|
-
return (radians * oneEightyOverPi) % 360;
|
|
454
|
-
}
|
|
455
|
-
function degToRad(degrees) {
|
|
456
|
-
return (degrees * piOverOneEighty) % (2 * Math.PI);
|
|
457
|
-
}
|
|
458
|
-
function polarToCartesian(rho, theta) {
|
|
459
|
-
return [rho * Math.cos(theta), rho * Math.sin(theta)];
|
|
460
|
-
}
|
|
461
|
-
function cartesianToPolar(x, y) {
|
|
462
|
-
const rho = Math.sqrt(x * x + y * y);
|
|
463
|
-
const theta = Math.atan(y / x);
|
|
464
|
-
return [rho, theta];
|
|
465
|
-
}
|
|
466
|
-
function featureSpanPx(feature, region, bpPerPx) {
|
|
467
|
-
return bpSpanPx(feature.get('start'), feature.get('end'), region, bpPerPx);
|
|
468
|
-
}
|
|
469
|
-
function bpSpanPx(leftBp, rightBp, region, bpPerPx) {
|
|
470
|
-
const start = bpToPx(leftBp, region, bpPerPx);
|
|
471
|
-
const end = bpToPx(rightBp, region, bpPerPx);
|
|
472
|
-
return region.reversed ? [end, start] : [start, end];
|
|
473
|
-
}
|
|
474
|
-
function iterMap(iter, func, sizeHint) {
|
|
475
|
-
const results = Array.from({ length: sizeHint || 0 });
|
|
476
|
-
let counter = 0;
|
|
477
|
-
for (const item of iter) {
|
|
478
|
-
results[counter] = func(item);
|
|
479
|
-
counter += 1;
|
|
480
|
-
}
|
|
481
|
-
return results;
|
|
482
|
-
}
|
|
483
|
-
function findLastIndex(array, predicate) {
|
|
484
|
-
let l = array.length;
|
|
485
|
-
while (l--) {
|
|
486
|
-
if (predicate(array[l], l, array)) {
|
|
487
|
-
return l;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
return -1;
|
|
491
|
-
}
|
|
492
|
-
function findLast(array, predicate) {
|
|
493
|
-
let l = array.length;
|
|
494
|
-
while (l--) {
|
|
495
|
-
if (predicate(array[l], l, array)) {
|
|
496
|
-
return array[l];
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
return undefined;
|
|
500
|
-
}
|
|
501
|
-
function renameRegionIfNeeded(refNameMap, region) {
|
|
502
|
-
if ((0, mobx_state_tree_1.isStateTreeNode)(region) && !(0, mobx_state_tree_1.isAlive)(region)) {
|
|
503
|
-
return region;
|
|
504
|
-
}
|
|
505
|
-
if (refNameMap === null || refNameMap === void 0 ? void 0 : refNameMap[region.refName]) {
|
|
506
|
-
region = (0, mobx_state_tree_1.isStateTreeNode)(region)
|
|
507
|
-
? { ...(0, mobx_state_tree_1.getSnapshot)(region) }
|
|
508
|
-
: { ...region };
|
|
509
|
-
const newRef = refNameMap[region.refName];
|
|
510
|
-
if (newRef) {
|
|
511
|
-
return { ...region, refName: newRef, originalRefName: region.refName };
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
return region;
|
|
515
|
-
}
|
|
516
|
-
async function renameRegionsIfNeeded(assemblyManager, args) {
|
|
517
|
-
const { regions = [], adapterConfig } = args;
|
|
518
|
-
if (!args.sessionId) {
|
|
519
|
-
throw new Error('sessionId is required');
|
|
520
|
-
}
|
|
521
|
-
const assemblyNames = regions.map(region => region.assemblyName);
|
|
522
|
-
const assemblyMaps = Object.fromEntries(await Promise.all([...new Set(assemblyNames)].map(async (assemblyName) => {
|
|
523
|
-
return [
|
|
524
|
-
assemblyName,
|
|
525
|
-
await assemblyManager.getRefNameMapForAdapter(adapterConfig, assemblyName, args),
|
|
526
|
-
];
|
|
527
|
-
})));
|
|
528
|
-
return {
|
|
529
|
-
...args,
|
|
530
|
-
regions: regions.map((region, i) => renameRegionIfNeeded(assemblyMaps[assemblyNames[i]], region)),
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
function minmax(a, b) {
|
|
534
|
-
return [Math.min(a, b), Math.max(a, b)];
|
|
535
|
-
}
|
|
536
|
-
function shorten(name, max = 70, short = 30) {
|
|
537
|
-
return name.length > max
|
|
538
|
-
? `${name.slice(0, short)}...${name.slice(-short)}`
|
|
539
|
-
: name;
|
|
540
|
-
}
|
|
541
|
-
function shorten2(name, max = 70) {
|
|
542
|
-
return name.length > max ? `${name.slice(0, max)}...` : name;
|
|
543
|
-
}
|
|
544
|
-
function stringify({ refName, coord, assemblyName, oob, }, useAssemblyName) {
|
|
545
|
-
return [
|
|
546
|
-
assemblyName && useAssemblyName ? `{${assemblyName}}` : '',
|
|
547
|
-
refName
|
|
548
|
-
? `${shorten(refName)}:${toLocale(coord)}${oob ? ' (out of bounds)' : ''}`
|
|
549
|
-
: '',
|
|
550
|
-
].join('');
|
|
551
|
-
}
|
|
552
|
-
exports.isElectron = /electron/i.test(typeof navigator !== 'undefined' ? navigator.userAgent : '');
|
|
553
|
-
exports.complementTable = {
|
|
554
|
-
S: 'S',
|
|
555
|
-
w: 'w',
|
|
556
|
-
T: 'A',
|
|
557
|
-
r: 'y',
|
|
558
|
-
a: 't',
|
|
559
|
-
N: 'N',
|
|
560
|
-
K: 'M',
|
|
561
|
-
x: 'x',
|
|
562
|
-
d: 'h',
|
|
563
|
-
Y: 'R',
|
|
564
|
-
V: 'B',
|
|
565
|
-
y: 'r',
|
|
566
|
-
M: 'K',
|
|
567
|
-
h: 'd',
|
|
568
|
-
k: 'm',
|
|
569
|
-
C: 'G',
|
|
570
|
-
g: 'c',
|
|
571
|
-
t: 'a',
|
|
572
|
-
A: 'T',
|
|
573
|
-
n: 'n',
|
|
574
|
-
W: 'W',
|
|
575
|
-
X: 'X',
|
|
576
|
-
m: 'k',
|
|
577
|
-
v: 'b',
|
|
578
|
-
B: 'V',
|
|
579
|
-
s: 's',
|
|
580
|
-
H: 'D',
|
|
581
|
-
c: 'g',
|
|
582
|
-
D: 'H',
|
|
583
|
-
b: 'v',
|
|
584
|
-
R: 'Y',
|
|
585
|
-
G: 'C',
|
|
586
|
-
};
|
|
587
|
-
function revcom(str) {
|
|
588
|
-
var _a;
|
|
589
|
-
const revcomped = [];
|
|
590
|
-
for (let i = str.length - 1; i >= 0; i--) {
|
|
591
|
-
revcomped.push((_a = exports.complementTable[str[i]]) !== null && _a !== void 0 ? _a : str[i]);
|
|
592
|
-
}
|
|
593
|
-
return revcomped.join('');
|
|
594
|
-
}
|
|
595
|
-
function reverse(str) {
|
|
596
|
-
const reversed = [];
|
|
597
|
-
for (let i = str.length - 1; i >= 0; i--) {
|
|
598
|
-
reversed.push(str[i]);
|
|
599
|
-
}
|
|
600
|
-
return reversed.join('');
|
|
601
|
-
}
|
|
602
|
-
function complement(str) {
|
|
603
|
-
var _a;
|
|
604
|
-
const comp = [];
|
|
605
|
-
for (let i = 0, l = str.length; i < l; i++) {
|
|
606
|
-
comp.push((_a = exports.complementTable[str[i]]) !== null && _a !== void 0 ? _a : str[i]);
|
|
607
|
-
}
|
|
608
|
-
return comp.join('');
|
|
609
|
-
}
|
|
610
|
-
exports.rIC = typeof jest === 'undefined'
|
|
611
|
-
?
|
|
612
|
-
typeof window !== 'undefined' && window.requestIdleCallback
|
|
613
|
-
? window.requestIdleCallback
|
|
614
|
-
: (cb) => setTimeout(() => {
|
|
615
|
-
cb();
|
|
616
|
-
}, 1)
|
|
617
|
-
: (cb) => {
|
|
618
|
-
cb();
|
|
619
|
-
};
|
|
620
|
-
const widths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2796875, 0.2765625, 0.3546875, 0.5546875, 0.5546875, 0.8890625, 0.665625, 0.190625, 0.3328125, 0.3328125, 0.3890625, 0.5828125, 0.2765625, 0.3328125, 0.2765625, 0.3015625, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.2765625, 0.2765625, 0.584375, 0.5828125, 0.584375, 0.5546875, 1.0140625, 0.665625, 0.665625, 0.721875, 0.721875, 0.665625, 0.609375, 0.7765625, 0.721875, 0.2765625, 0.5, 0.665625, 0.5546875, 0.8328125, 0.721875, 0.7765625, 0.665625, 0.7765625, 0.721875, 0.665625, 0.609375, 0.721875, 0.665625, 0.94375, 0.665625, 0.665625, 0.609375, 0.2765625, 0.3546875, 0.2765625, 0.4765625, 0.5546875, 0.3328125, 0.5546875, 0.5546875, 0.5, 0.5546875, 0.5546875, 0.2765625, 0.5546875, 0.5546875, 0.221875, 0.240625, 0.5, 0.221875, 0.8328125, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.3328125, 0.5, 0.2765625, 0.5546875, 0.5, 0.721875, 0.5, 0.5, 0.5, 0.3546875, 0.259375, 0.353125, 0.5890625];
|
|
621
|
-
function measureText(str, fontSize = 10) {
|
|
622
|
-
var _a;
|
|
623
|
-
const avg = 0.5279276315789471;
|
|
624
|
-
const s = String(str);
|
|
625
|
-
let total = 0;
|
|
626
|
-
for (let i = 0; i < s.length; i++) {
|
|
627
|
-
const code = s.charCodeAt(i);
|
|
628
|
-
total += (_a = widths[code]) !== null && _a !== void 0 ? _a : avg;
|
|
629
|
-
}
|
|
630
|
-
return total * fontSize;
|
|
631
|
-
}
|
|
632
|
-
function getFrame(start, end, strand, phase) {
|
|
633
|
-
return strand === 1
|
|
634
|
-
? (((start + phase) % 3) + 1)
|
|
635
|
-
: (-1 * ((end - phase) % 3) - 1);
|
|
636
|
-
}
|
|
637
|
-
exports.defaultStarts = ['ATG'];
|
|
638
|
-
exports.defaultStops = ['TAA', 'TAG', 'TGA'];
|
|
639
|
-
exports.defaultCodonTable = {
|
|
640
|
-
TCA: 'S',
|
|
641
|
-
TCC: 'S',
|
|
642
|
-
TCG: 'S',
|
|
643
|
-
TCT: 'S',
|
|
644
|
-
TTC: 'F',
|
|
645
|
-
TTT: 'F',
|
|
646
|
-
TTA: 'L',
|
|
647
|
-
TTG: 'L',
|
|
648
|
-
TAC: 'Y',
|
|
649
|
-
TAT: 'Y',
|
|
650
|
-
TAA: '*',
|
|
651
|
-
TAG: '*',
|
|
652
|
-
TGC: 'C',
|
|
653
|
-
TGT: 'C',
|
|
654
|
-
TGA: '*',
|
|
655
|
-
TGG: 'W',
|
|
656
|
-
CTA: 'L',
|
|
657
|
-
CTC: 'L',
|
|
658
|
-
CTG: 'L',
|
|
659
|
-
CTT: 'L',
|
|
660
|
-
CCA: 'P',
|
|
661
|
-
CCC: 'P',
|
|
662
|
-
CCG: 'P',
|
|
663
|
-
CCT: 'P',
|
|
664
|
-
CAC: 'H',
|
|
665
|
-
CAT: 'H',
|
|
666
|
-
CAA: 'Q',
|
|
667
|
-
CAG: 'Q',
|
|
668
|
-
CGA: 'R',
|
|
669
|
-
CGC: 'R',
|
|
670
|
-
CGG: 'R',
|
|
671
|
-
CGT: 'R',
|
|
672
|
-
ATA: 'I',
|
|
673
|
-
ATC: 'I',
|
|
674
|
-
ATT: 'I',
|
|
675
|
-
ATG: 'M',
|
|
676
|
-
ACA: 'T',
|
|
677
|
-
ACC: 'T',
|
|
678
|
-
ACG: 'T',
|
|
679
|
-
ACT: 'T',
|
|
680
|
-
AAC: 'N',
|
|
681
|
-
AAT: 'N',
|
|
682
|
-
AAA: 'K',
|
|
683
|
-
AAG: 'K',
|
|
684
|
-
AGC: 'S',
|
|
685
|
-
AGT: 'S',
|
|
686
|
-
AGA: 'R',
|
|
687
|
-
AGG: 'R',
|
|
688
|
-
GTA: 'V',
|
|
689
|
-
GTC: 'V',
|
|
690
|
-
GTG: 'V',
|
|
691
|
-
GTT: 'V',
|
|
692
|
-
GCA: 'A',
|
|
693
|
-
GCC: 'A',
|
|
694
|
-
GCG: 'A',
|
|
695
|
-
GCT: 'A',
|
|
696
|
-
GAC: 'D',
|
|
697
|
-
GAT: 'D',
|
|
698
|
-
GAA: 'E',
|
|
699
|
-
GAG: 'E',
|
|
700
|
-
GGA: 'G',
|
|
701
|
-
GGC: 'G',
|
|
702
|
-
GGG: 'G',
|
|
703
|
-
GGT: 'G',
|
|
704
|
-
};
|
|
705
|
-
function generateCodonTable(table) {
|
|
706
|
-
const tempCodonTable = {};
|
|
707
|
-
for (const codon of Object.keys(table)) {
|
|
708
|
-
const aa = table[codon];
|
|
709
|
-
const nucs = [];
|
|
710
|
-
for (let i = 0; i < 3; i++) {
|
|
711
|
-
const nuc = codon.charAt(i);
|
|
712
|
-
nucs[i] = [];
|
|
713
|
-
nucs[i][0] = nuc.toUpperCase();
|
|
714
|
-
nucs[i][1] = nuc.toLowerCase();
|
|
715
|
-
}
|
|
716
|
-
for (let i = 0; i < 2; i++) {
|
|
717
|
-
const n0 = nucs[0][i];
|
|
718
|
-
for (let j = 0; j < 2; j++) {
|
|
719
|
-
const n1 = nucs[1][j];
|
|
720
|
-
for (let k = 0; k < 2; k++) {
|
|
721
|
-
const n2 = nucs[2][k];
|
|
722
|
-
const triplet = n0 + n1 + n2;
|
|
723
|
-
tempCodonTable[triplet] = aa;
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
return tempCodonTable;
|
|
729
|
-
}
|
|
730
|
-
async function updateStatus(msg, cb, fn) {
|
|
731
|
-
cb(msg);
|
|
732
|
-
const res = await fn();
|
|
733
|
-
cb('');
|
|
734
|
-
return res;
|
|
735
|
-
}
|
|
736
|
-
async function updateStatus2(msg, cb, stopToken, fn) {
|
|
737
|
-
cb(msg);
|
|
738
|
-
const res = await fn();
|
|
739
|
-
(0, stopToken_1.checkStopToken)(stopToken);
|
|
740
|
-
cb('');
|
|
741
|
-
return res;
|
|
742
|
-
}
|
|
743
|
-
function hashCode(str) {
|
|
744
|
-
let hash = 0;
|
|
745
|
-
if (str.length === 0) {
|
|
746
|
-
return hash;
|
|
747
|
-
}
|
|
748
|
-
for (let i = 0; i < str.length; i++) {
|
|
749
|
-
const chr = str.charCodeAt(i);
|
|
750
|
-
hash = (hash << 5) - hash + chr;
|
|
751
|
-
hash |= 0;
|
|
752
|
-
}
|
|
753
|
-
return hash;
|
|
754
|
-
}
|
|
755
|
-
function objectHash(obj) {
|
|
756
|
-
return `${hashCode(JSON.stringify(obj))}`;
|
|
757
|
-
}
|
|
758
|
-
async function bytesForRegions(regions, index) {
|
|
759
|
-
const blockResults = await Promise.all(regions.map(r => index.blocksForRange(r.refName, r.start, r.end)));
|
|
760
|
-
return blockResults
|
|
761
|
-
.flat()
|
|
762
|
-
.map(block => ({
|
|
763
|
-
start: block.minv.blockPosition,
|
|
764
|
-
end: block.maxv.blockPosition + 65535,
|
|
765
|
-
}))
|
|
766
|
-
.reduce((a, b) => a + b.end - b.start, 0);
|
|
767
|
-
}
|
|
768
|
-
function isSupportedIndexingAdapter(type = '') {
|
|
769
|
-
return [
|
|
770
|
-
'Gff3TabixAdapter',
|
|
771
|
-
'VcfTabixAdapter',
|
|
772
|
-
'Gff3Adapter',
|
|
773
|
-
'VcfAdapter',
|
|
774
|
-
].includes(type);
|
|
775
|
-
}
|
|
776
|
-
function getBpDisplayStr(total) {
|
|
777
|
-
if (Math.floor(total / 1000000) > 0) {
|
|
778
|
-
return `${r(total / 1000000)}Mbp`;
|
|
779
|
-
}
|
|
780
|
-
else if (Math.floor(total / 1000) > 0) {
|
|
781
|
-
return `${r(total / 1000)}Kbp`;
|
|
782
|
-
}
|
|
783
|
-
else {
|
|
784
|
-
return `${Math.floor(total)}bp`;
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
function r(s) {
|
|
788
|
-
return toLocale(Number.parseFloat(s.toPrecision(3)));
|
|
789
|
-
}
|
|
790
|
-
function getProgressDisplayStr(current, total) {
|
|
791
|
-
if (Math.floor(total / 1000000) > 0) {
|
|
792
|
-
return `${r(current / 1000000)}/${r(total / 1000000)}Mb`;
|
|
793
|
-
}
|
|
794
|
-
else if (Math.floor(total / 1000) > 0) {
|
|
795
|
-
return `${r(current / 1000)}/${r(total / 1000)}Kb`;
|
|
796
|
-
}
|
|
797
|
-
else {
|
|
798
|
-
return `${r(current)}/${r(total)}}bytes`;
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
function toLocale(n) {
|
|
802
|
-
return n.toLocaleString('en-US');
|
|
803
|
-
}
|
|
804
|
-
function getTickDisplayStr(totalBp, bpPerPx) {
|
|
805
|
-
return Math.floor(bpPerPx / 1000) > 0
|
|
806
|
-
? `${toLocale(Number.parseFloat((totalBp / 1000000).toFixed(2)))}M`
|
|
807
|
-
: toLocale(Math.floor(totalBp));
|
|
808
|
-
}
|
|
809
|
-
function getViewParams(model, exportSVG) {
|
|
810
|
-
const { dynamicBlocks, staticBlocks, offsetPx } = getContainingView(model);
|
|
811
|
-
const b = (dynamicBlocks === null || dynamicBlocks === void 0 ? void 0 : dynamicBlocks.contentBlocks[0]) || {};
|
|
812
|
-
const staticblock = (staticBlocks === null || staticBlocks === void 0 ? void 0 : staticBlocks.contentBlocks[0]) || {};
|
|
813
|
-
const staticblock1 = (staticBlocks === null || staticBlocks === void 0 ? void 0 : staticBlocks.contentBlocks[1]) || {};
|
|
814
|
-
return {
|
|
815
|
-
offsetPx: exportSVG ? 0 : offsetPx - staticblock.offsetPx,
|
|
816
|
-
offsetPx1: exportSVG ? 0 : offsetPx - staticblock1.offsetPx,
|
|
817
|
-
start: b.start,
|
|
818
|
-
end: b.end,
|
|
819
|
-
};
|
|
820
|
-
}
|
|
821
|
-
function getLayoutId({ sessionId, layoutId, }) {
|
|
822
|
-
return `${sessionId}-${layoutId}`;
|
|
823
|
-
}
|
|
824
|
-
function useLocalStorage(key, initialValue) {
|
|
825
|
-
const [storedValue, setStoredValue] = (0, react_1.useState)(() => {
|
|
826
|
-
if (typeof window === 'undefined') {
|
|
827
|
-
return initialValue;
|
|
828
|
-
}
|
|
829
|
-
try {
|
|
830
|
-
const item = window.localStorage.getItem(key);
|
|
831
|
-
return item ? JSON.parse(item) : initialValue;
|
|
832
|
-
}
|
|
833
|
-
catch (error) {
|
|
834
|
-
console.error(error);
|
|
835
|
-
return initialValue;
|
|
836
|
-
}
|
|
837
|
-
});
|
|
838
|
-
const setValue = (value) => {
|
|
839
|
-
try {
|
|
840
|
-
const valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
841
|
-
setStoredValue(valueToStore);
|
|
842
|
-
if (typeof window !== 'undefined') {
|
|
843
|
-
window.localStorage.setItem(key, JSON.stringify(valueToStore));
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
catch (error) {
|
|
847
|
-
console.error(error);
|
|
848
|
-
}
|
|
849
|
-
};
|
|
850
|
-
return [storedValue, setValue];
|
|
851
|
-
}
|
|
852
|
-
function getUriLink(value) {
|
|
853
|
-
const { uri, baseUri = '' } = value;
|
|
854
|
-
let href;
|
|
855
|
-
try {
|
|
856
|
-
href = new URL(uri, baseUri).href;
|
|
857
|
-
}
|
|
858
|
-
catch (e) {
|
|
859
|
-
href = uri;
|
|
860
|
-
}
|
|
861
|
-
return href;
|
|
862
|
-
}
|
|
863
|
-
function getStr(obj) {
|
|
864
|
-
return isObject(obj)
|
|
865
|
-
? (0, types_1.isUriLocation)(obj)
|
|
866
|
-
? getUriLink(obj)
|
|
867
|
-
: JSON.stringify(obj)
|
|
868
|
-
: String(obj);
|
|
869
|
-
}
|
|
870
|
-
function coarseStripHTML(s) {
|
|
871
|
-
return s.replaceAll(/(<([^>]+)>)/gi, '');
|
|
872
|
-
}
|
|
873
|
-
function linkify(s) {
|
|
874
|
-
const pattern = /(^|[\s\n]|<[A-Za-z]*\/?>)((?:https?|ftp):\/\/[-A-Z0-9+\u0026\u2019@#/%?=()~_|!:,.;]*[-A-Z0-9+\u0026@#/%=~()_|])/gi;
|
|
875
|
-
return s.replaceAll(pattern, '$1<a href=\'$2\' target="_blank">$2</a>');
|
|
876
|
-
}
|
|
877
|
-
function measureGridWidth(elements, args) {
|
|
878
|
-
const { padding = 30, minWidth = 80, fontSize = 12, maxWidth = 1000, stripHTML = false, } = args || {};
|
|
879
|
-
return max(elements
|
|
880
|
-
.map(element => getStr(element))
|
|
881
|
-
.map(str => (stripHTML ? coarseStripHTML(str) : str))
|
|
882
|
-
.map(str => measureText(str, fontSize))
|
|
883
|
-
.map(n => Math.min(Math.max(n + padding, minWidth), maxWidth)));
|
|
884
|
-
}
|
|
885
|
-
function getEnv(obj) {
|
|
886
|
-
return (0, mobx_state_tree_1.getEnv)(obj);
|
|
887
|
-
}
|
|
888
|
-
function localStorageGetItem(item) {
|
|
889
|
-
return typeof localStorage !== 'undefined'
|
|
890
|
-
? localStorage.getItem(item)
|
|
891
|
-
: undefined;
|
|
892
|
-
}
|
|
893
|
-
function localStorageSetItem(str, item) {
|
|
894
|
-
if (typeof localStorage !== 'undefined') {
|
|
895
|
-
localStorage.setItem(str, item);
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
function max(arr, init = Number.NEGATIVE_INFINITY) {
|
|
899
|
-
let max = init;
|
|
900
|
-
for (const entry of arr) {
|
|
901
|
-
max = Math.max(entry, max);
|
|
902
|
-
}
|
|
903
|
-
return max;
|
|
904
|
-
}
|
|
905
|
-
function min(arr, init = Number.POSITIVE_INFINITY) {
|
|
906
|
-
let min = init;
|
|
907
|
-
for (const entry of arr) {
|
|
908
|
-
min = Math.min(entry, min);
|
|
909
|
-
}
|
|
910
|
-
return min;
|
|
911
|
-
}
|
|
912
|
-
function sum(arr) {
|
|
913
|
-
let sum = 0;
|
|
914
|
-
for (const entry of arr) {
|
|
915
|
-
sum += entry;
|
|
916
|
-
}
|
|
917
|
-
return sum;
|
|
918
|
-
}
|
|
919
|
-
function avg(arr) {
|
|
920
|
-
return sum(arr) / arr.length;
|
|
921
|
-
}
|
|
922
|
-
function groupBy(array, predicate) {
|
|
923
|
-
const result = {};
|
|
924
|
-
for (const value of array) {
|
|
925
|
-
const t = predicate(value);
|
|
926
|
-
if (!result[t]) {
|
|
927
|
-
result[t] = [];
|
|
928
|
-
}
|
|
929
|
-
result[t].push(value);
|
|
930
|
-
}
|
|
931
|
-
return result;
|
|
932
|
-
}
|
|
933
|
-
function notEmpty(value) {
|
|
934
|
-
return value !== null && value !== undefined;
|
|
935
|
-
}
|
|
936
|
-
function mergeIntervals(intervals, w = 5000) {
|
|
937
|
-
if (intervals.length <= 1) {
|
|
938
|
-
return intervals;
|
|
939
|
-
}
|
|
940
|
-
const stack = [];
|
|
941
|
-
let top = null;
|
|
942
|
-
intervals = intervals.sort((a, b) => a.start - b.start);
|
|
943
|
-
stack.push(intervals[0]);
|
|
944
|
-
for (let i = 1; i < intervals.length; i++) {
|
|
945
|
-
top = stack.at(-1);
|
|
946
|
-
if (top.end + w < intervals[i].start - w) {
|
|
947
|
-
stack.push(intervals[i]);
|
|
948
|
-
}
|
|
949
|
-
else if (top.end < intervals[i].end) {
|
|
950
|
-
top.end = Math.max(top.end, intervals[i].end);
|
|
951
|
-
stack.pop();
|
|
952
|
-
stack.push(top);
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
return stack;
|
|
956
|
-
}
|
|
957
|
-
function gatherOverlaps(regions, w = 5000) {
|
|
958
|
-
const memo = {};
|
|
959
|
-
for (const x of regions) {
|
|
960
|
-
if (!memo[x.refName]) {
|
|
961
|
-
memo[x.refName] = [];
|
|
962
|
-
}
|
|
963
|
-
memo[x.refName].push(x);
|
|
964
|
-
}
|
|
965
|
-
return Object.values(memo).flatMap(group => mergeIntervals(group.sort((a, b) => a.start - b.start), w));
|
|
966
|
-
}
|
|
967
|
-
function stripAlpha(str) {
|
|
968
|
-
return (0, colord_1.colord)(str).alpha(1).toHex();
|
|
969
|
-
}
|
|
970
|
-
function getStrokeProps(str) {
|
|
971
|
-
if (str) {
|
|
972
|
-
const c = (0, colord_1.colord)(str);
|
|
973
|
-
return {
|
|
974
|
-
strokeOpacity: c.alpha(),
|
|
975
|
-
stroke: c.alpha(1).toHex(),
|
|
976
|
-
};
|
|
977
|
-
}
|
|
978
|
-
else {
|
|
979
|
-
return {};
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
function getFillProps(str) {
|
|
983
|
-
if (str) {
|
|
984
|
-
const c = (0, colord_1.colord)(str);
|
|
985
|
-
return {
|
|
986
|
-
fillOpacity: c.alpha(),
|
|
987
|
-
fill: c.alpha(1).toHex(),
|
|
988
|
-
};
|
|
989
|
-
}
|
|
990
|
-
else {
|
|
991
|
-
return {};
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
function renderToStaticMarkup(node) {
|
|
995
|
-
const div = document.createElement('div');
|
|
996
|
-
(0, react_dom_1.flushSync)(() => {
|
|
997
|
-
(0, client_1.createRoot)(div).render(node);
|
|
998
|
-
});
|
|
999
|
-
return div.innerHTML.replaceAll(/\brgba\((.+?),[^,]+?\)/g, 'rgb($1)');
|
|
1000
|
-
}
|
|
1001
|
-
function isGzip(buf) {
|
|
1002
|
-
return buf[0] === 31 && buf[1] === 139 && buf[2] === 8;
|
|
1003
|
-
}
|
|
1004
|
-
async function fetchAndMaybeUnzip(loc, opts = {}) {
|
|
1005
|
-
const { statusCallback = () => { } } = opts;
|
|
1006
|
-
const buf = await updateStatus('Downloading file', statusCallback, () => loc.readFile(opts));
|
|
1007
|
-
return isGzip(buf)
|
|
1008
|
-
? await updateStatus('Unzipping', statusCallback, () => (0, bgzf_filehandle_1.unzip)(buf))
|
|
1009
|
-
: buf;
|
|
1010
|
-
}
|
|
1011
|
-
async function fetchAndMaybeUnzipText(loc, opts) {
|
|
1012
|
-
const buffer = await fetchAndMaybeUnzip(loc, opts);
|
|
1013
|
-
if (buffer.length > 536870888) {
|
|
1014
|
-
throw new Error('Data exceeds maximum string length (512MB)');
|
|
1015
|
-
}
|
|
1016
|
-
return new TextDecoder('utf8', { fatal: true }).decode(buffer);
|
|
1017
|
-
}
|
|
1018
|
-
function isObject(x) {
|
|
1019
|
-
return typeof x === 'object' && x !== null;
|
|
1020
|
-
}
|
|
1021
|
-
function localStorageGetNumber(key, defaultVal) {
|
|
1022
|
-
var _a;
|
|
1023
|
-
return +((_a = localStorageGetItem(key)) !== null && _a !== void 0 ? _a : defaultVal);
|
|
1024
|
-
}
|
|
1025
|
-
function localStorageGetBoolean(key, defaultVal) {
|
|
1026
|
-
return Boolean(JSON.parse(localStorageGetItem(key) || JSON.stringify(defaultVal)));
|
|
1027
|
-
}
|
|
1028
|
-
function localStorageSetBoolean(key, value) {
|
|
1029
|
-
localStorageSetItem(key, JSON.stringify(value));
|
|
1030
|
-
}
|
|
1031
|
-
function forEachWithStopTokenCheck(iter, stopToken, arg, durationMs = 400) {
|
|
1032
|
-
let start = performance.now();
|
|
1033
|
-
let i = 0;
|
|
1034
|
-
for (const t of iter) {
|
|
1035
|
-
if (performance.now() - start > durationMs) {
|
|
1036
|
-
(0, stopToken_1.checkStopToken)(stopToken);
|
|
1037
|
-
start = performance.now();
|
|
1038
|
-
}
|
|
1039
|
-
arg(t, i++);
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
function testAdapter(fileName, regex, adapterHint, expected) {
|
|
1043
|
-
return (regex.test(fileName) && !adapterHint) || adapterHint === expected;
|
|
1044
|
-
}
|
|
1045
|
-
var simpleFeature_1 = require("./simpleFeature");
|
|
1046
|
-
Object.defineProperty(exports, "SimpleFeature", { enumerable: true, get: function () { return __importDefault(simpleFeature_1).default; } });
|
|
1047
|
-
Object.defineProperty(exports, "isFeature", { enumerable: true, get: function () { return simpleFeature_1.isFeature; } });
|
|
1048
|
-
var blobToDataURL_1 = require("./blobToDataURL");
|
|
1049
|
-
Object.defineProperty(exports, "blobToDataURL", { enumerable: true, get: function () { return blobToDataURL_1.blobToDataURL; } });
|
|
1050
|
-
var makeAbortableReaction_1 = require("./makeAbortableReaction");
|
|
1051
|
-
Object.defineProperty(exports, "makeAbortableReaction", { enumerable: true, get: function () { return makeAbortableReaction_1.makeAbortableReaction; } });
|
|
1052
|
-
__exportStar(require("./aborting"), exports);
|