@jbrowse/core 3.7.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export const mapObjectSkip = Symbol('mapObjectSkip');
|
|
2
|
+
const isObject = (value) => typeof value === 'object' && value !== null;
|
|
3
|
+
const isObjectCustom = (value) => {
|
|
4
|
+
if (!isObject(value)) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
if (value instanceof RegExp ||
|
|
8
|
+
value instanceof Error ||
|
|
9
|
+
value instanceof Date ||
|
|
10
|
+
value instanceof Map ||
|
|
11
|
+
value instanceof Set ||
|
|
12
|
+
value instanceof WeakMap ||
|
|
13
|
+
value instanceof WeakSet ||
|
|
14
|
+
value instanceof Promise ||
|
|
15
|
+
value instanceof ArrayBuffer ||
|
|
16
|
+
value instanceof DataView ||
|
|
17
|
+
ArrayBuffer.isView(value) ||
|
|
18
|
+
(globalThis.Blob && value instanceof globalThis.Blob)) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
const v = value;
|
|
22
|
+
if (typeof v.$$typeof === 'symbol' ||
|
|
23
|
+
typeof v.asymmetricMatch === 'function') {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
};
|
|
28
|
+
const getEnumerableKeys = (object, includeSymbols) => {
|
|
29
|
+
if (includeSymbols) {
|
|
30
|
+
const stringKeys = Object.keys(object);
|
|
31
|
+
const symbolKeys = Object.getOwnPropertySymbols(object).filter(symbol => Object.getOwnPropertyDescriptor(object, symbol)?.enumerable);
|
|
32
|
+
return [...stringKeys, ...symbolKeys];
|
|
33
|
+
}
|
|
34
|
+
return Object.keys(object);
|
|
35
|
+
};
|
|
36
|
+
const _mapObject = (object, mapper, options, isSeen = new WeakMap()) => {
|
|
37
|
+
const { target = {}, deep = false, includeSymbols = false } = options ?? {};
|
|
38
|
+
const processOptions = { deep, includeSymbols };
|
|
39
|
+
if (isSeen.has(object)) {
|
|
40
|
+
return isSeen.get(object);
|
|
41
|
+
}
|
|
42
|
+
isSeen.set(object, target);
|
|
43
|
+
const mapArray = (array) => array.map(element => isObjectCustom(element)
|
|
44
|
+
? _mapObject(element, mapper, processOptions, isSeen)
|
|
45
|
+
: element);
|
|
46
|
+
if (Array.isArray(object)) {
|
|
47
|
+
return mapArray(object);
|
|
48
|
+
}
|
|
49
|
+
for (const key of getEnumerableKeys(object, processOptions.includeSymbols)) {
|
|
50
|
+
const value = object[key];
|
|
51
|
+
const mapResult = mapper(key, value, object);
|
|
52
|
+
if (mapResult === mapObjectSkip) {
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
if (!Array.isArray(mapResult)) {
|
|
56
|
+
throw new TypeError(`Mapper must return an array or mapObjectSkip, got ${mapResult === null ? 'null' : typeof mapResult}`);
|
|
57
|
+
}
|
|
58
|
+
if (mapResult.length < 2) {
|
|
59
|
+
throw new TypeError(`Mapper must return an array with at least 2 elements [key, value], got ${mapResult.length} elements`);
|
|
60
|
+
}
|
|
61
|
+
let [newKey, newValue, { shouldRecurse = true } = {}] = mapResult;
|
|
62
|
+
if (newKey === '__proto__') {
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
if (processOptions.deep && shouldRecurse && isObjectCustom(newValue)) {
|
|
66
|
+
newValue = (Array.isArray(newValue)
|
|
67
|
+
? mapArray(newValue)
|
|
68
|
+
: _mapObject(newValue, mapper, processOptions, isSeen));
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
;
|
|
72
|
+
target[newKey] = newValue;
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
if (error instanceof TypeError && error.message.includes('read only')) {
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
throw error;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return target;
|
|
82
|
+
};
|
|
83
|
+
export default function mapObject(object, mapper, options) {
|
|
84
|
+
if (!isObject(object)) {
|
|
85
|
+
throw new TypeError(`Expected an object, got \`${object}\` (${typeof object})`);
|
|
86
|
+
}
|
|
87
|
+
if (Array.isArray(object)) {
|
|
88
|
+
throw new TypeError('Expected an object, got an array');
|
|
89
|
+
}
|
|
90
|
+
const mapperWithRoot = (key, value) => mapper(key, value, object);
|
|
91
|
+
return _mapObject(object, mapperWithRoot, options);
|
|
92
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IAnyComplexType, IAnyType, IModelReflectionPropertiesData, ISimpleType, UnionStringArray } from '@jbrowse/mobx-state-tree';
|
|
2
|
+
export interface ILiteralType<T> extends ISimpleType<T> {
|
|
3
|
+
value: T;
|
|
4
|
+
}
|
|
5
|
+
export declare function getSubType(type: IAnyType): IAnyType;
|
|
6
|
+
export declare function getUnionSubTypes(unionType: IAnyType): IAnyType[];
|
|
7
|
+
export declare function getPropertyType(type: IModelReflectionPropertiesData, propertyName: string): IAnyType;
|
|
8
|
+
export declare function getDefaultValue(type: IAnyType): any;
|
|
9
|
+
export type IEnumerationType<T extends string> = ISimpleType<UnionStringArray<T[]>>;
|
|
10
|
+
export declare function getEnumerationValues(type: IAnyComplexType): string[];
|
|
11
|
+
export declare function resolveLateType(maybeLate: IAnyType): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { isArrayType, isLateType, isMapType, isOptionalType, isUnionType, } from '@jbrowse/mobx-state-tree';
|
|
2
|
+
export function getSubType(type) {
|
|
3
|
+
let t;
|
|
4
|
+
if (isOptionalType(type)) {
|
|
5
|
+
t = type._subtype || type.type;
|
|
6
|
+
}
|
|
7
|
+
else if (isArrayType(type) || isMapType(type)) {
|
|
8
|
+
t = type._subtype || type._subType || type.subType;
|
|
9
|
+
}
|
|
10
|
+
else if (typeof type.getSubType === 'function') {
|
|
11
|
+
return type.getSubType();
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
throw new TypeError('unsupported mst type');
|
|
15
|
+
}
|
|
16
|
+
if (!t) {
|
|
17
|
+
throw new Error('failed to get subtype');
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
}
|
|
21
|
+
export function getUnionSubTypes(unionType) {
|
|
22
|
+
if (!isUnionType(unionType)) {
|
|
23
|
+
throw new TypeError('not an MST union type');
|
|
24
|
+
}
|
|
25
|
+
const t = unionType._types ||
|
|
26
|
+
unionType.types ||
|
|
27
|
+
getSubType(unionType)._types ||
|
|
28
|
+
getSubType(unionType).types;
|
|
29
|
+
if (!t) {
|
|
30
|
+
throw new Error('failed to extract subtypes from mst union');
|
|
31
|
+
}
|
|
32
|
+
return t;
|
|
33
|
+
}
|
|
34
|
+
export function getPropertyType(type, propertyName) {
|
|
35
|
+
return type.properties[propertyName];
|
|
36
|
+
}
|
|
37
|
+
export function getDefaultValue(type) {
|
|
38
|
+
if (!isOptionalType(type)) {
|
|
39
|
+
throw new TypeError('type must be an optional type');
|
|
40
|
+
}
|
|
41
|
+
return type._defaultValue || type.defaultValue;
|
|
42
|
+
}
|
|
43
|
+
export function getEnumerationValues(type) {
|
|
44
|
+
const subtypes = getUnionSubTypes(type);
|
|
45
|
+
return subtypes.map(t => t.value);
|
|
46
|
+
}
|
|
47
|
+
export function resolveLateType(maybeLate) {
|
|
48
|
+
if (!isUnionType(maybeLate) &&
|
|
49
|
+
!isArrayType(maybeLate) &&
|
|
50
|
+
isLateType(maybeLate)) {
|
|
51
|
+
return maybeLate.getSubType();
|
|
52
|
+
}
|
|
53
|
+
return maybeLate;
|
|
54
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
2
|
+
export declare const random: (bytes: number) => Uint8Array<ArrayBuffer>;
|
|
3
|
+
export declare const customRandom: (alphabet: string, defaultSize: number, getRandom: (bytes: number) => Uint8Array) => (size?: number) => string;
|
|
4
|
+
export declare const customAlphabet: (alphabet: string, size?: number) => (size?: number) => string;
|
|
5
|
+
export declare const nanoid: (size?: number) => string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const urlAlphabet = 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
2
|
+
export const random = (bytes) => crypto.getRandomValues(new Uint8Array(bytes));
|
|
3
|
+
export const customRandom = (alphabet, defaultSize, getRandom) => {
|
|
4
|
+
const mask = (2 << (Math.log(alphabet.length - 1) / Math.LN2)) - 1;
|
|
5
|
+
const step = -~((1.6 * mask * defaultSize) / alphabet.length);
|
|
6
|
+
return (size = defaultSize) => {
|
|
7
|
+
let id = '';
|
|
8
|
+
while (true) {
|
|
9
|
+
const bytes = getRandom(step);
|
|
10
|
+
let j = step;
|
|
11
|
+
while (j--) {
|
|
12
|
+
id += alphabet[bytes[j] & mask] || '';
|
|
13
|
+
if (id.length === size) {
|
|
14
|
+
return id;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export const customAlphabet = (alphabet, size = 21) => customRandom(alphabet, size, random);
|
|
21
|
+
export const nanoid = (size = 21) => crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {
|
|
22
|
+
byte &= 63;
|
|
23
|
+
if (byte < 36) {
|
|
24
|
+
id += byte.toString(36);
|
|
25
|
+
}
|
|
26
|
+
else if (byte < 62) {
|
|
27
|
+
id += (byte - 26).toString(36).toUpperCase();
|
|
28
|
+
}
|
|
29
|
+
else if (byte > 62) {
|
|
30
|
+
id += '-';
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
id += '_';
|
|
34
|
+
}
|
|
35
|
+
return id;
|
|
36
|
+
}, '');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CanvasSequence } from 'canvas-sequencer-ts';
|
|
2
|
+
export async function getSerializedSvg(results) {
|
|
3
|
+
const { width, height, canvasRecordedData } = results;
|
|
4
|
+
const C2S = await import('canvas2svg');
|
|
5
|
+
const ctx = new C2S.default(width, height);
|
|
6
|
+
const seq = new CanvasSequence(canvasRecordedData);
|
|
7
|
+
seq.execute(ctx);
|
|
8
|
+
return ctx.getSvg().innerHTML;
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { collectTransferables, isDetachedBuffer } from './transferables.ts';
|
|
2
|
+
export declare function isImageBitmap(value: unknown): value is ImageBitmap;
|
|
3
|
+
export declare function drawImageOntoCanvasContext(imageData: any, context: CanvasRenderingContext2D): void;
|
|
4
|
+
export declare function createCanvas(width: number, height: number): any;
|
|
5
|
+
export declare function createImageBitmap(canvas: any): Promise<unknown>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { CanvasSequence } from 'canvas-sequencer-ts';
|
|
2
|
+
import isNode from 'detect-node';
|
|
3
|
+
export { collectTransferables, isDetachedBuffer } from "./transferables.js";
|
|
4
|
+
export function isImageBitmap(value) {
|
|
5
|
+
return typeof ImageBitmap !== 'undefined' && value instanceof ImageBitmap;
|
|
6
|
+
}
|
|
7
|
+
export function drawImageOntoCanvasContext(imageData, context) {
|
|
8
|
+
if (imageData.serializedCommands) {
|
|
9
|
+
const seq = new CanvasSequence(imageData.serializedCommands);
|
|
10
|
+
seq.execute(context);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
context.drawImage(imageData, 0, 0);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export function createCanvas(width, height) {
|
|
17
|
+
if (typeof OffscreenCanvas === 'function') {
|
|
18
|
+
return new OffscreenCanvas(width, height);
|
|
19
|
+
}
|
|
20
|
+
else if (isNode) {
|
|
21
|
+
return nodeCreateCanvas(width, height);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
const context = new CanvasSequence();
|
|
25
|
+
return {
|
|
26
|
+
width,
|
|
27
|
+
height,
|
|
28
|
+
getContext() {
|
|
29
|
+
return context;
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export async function createImageBitmap(canvas) {
|
|
35
|
+
if (typeof OffscreenCanvas === 'function') {
|
|
36
|
+
return canvas.transferToImageBitmap();
|
|
37
|
+
}
|
|
38
|
+
else if (isNode) {
|
|
39
|
+
const dataUri = canvas.toDataURL();
|
|
40
|
+
const img = new nodeImage();
|
|
41
|
+
return new Promise((resolve, reject) => {
|
|
42
|
+
img.onload = () => {
|
|
43
|
+
resolve(img);
|
|
44
|
+
};
|
|
45
|
+
img.onerror = reject;
|
|
46
|
+
img.src = dataUri;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
const ctx = canvas.getContext('2d');
|
|
51
|
+
return {
|
|
52
|
+
height: canvas.height,
|
|
53
|
+
width: canvas.width,
|
|
54
|
+
serializedCommands: ctx.toJSON(),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { renderToAbstractCanvas } from './renderToAbstractCanvas.ts';
|
|
2
|
+
export declare function ReactRendering({ rendering, }: {
|
|
3
|
+
rendering: {
|
|
4
|
+
reactElement?: React.ReactNode;
|
|
5
|
+
html?: string;
|
|
6
|
+
};
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { getSerializedSvg } from './offscreenCanvasGetSerializingSvg.ts';
|
|
9
|
+
export declare function renderingToSvg<T extends {
|
|
10
|
+
canvasRecordedData?: unknown;
|
|
11
|
+
html?: string;
|
|
12
|
+
}>(rendering: T, width: number, height: number): Promise<T>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { isValidElement } from 'react';
|
|
3
|
+
export { renderToAbstractCanvas } from "./renderToAbstractCanvas.js";
|
|
4
|
+
export function ReactRendering({ rendering, }) {
|
|
5
|
+
return isValidElement(rendering.reactElement) ? (rendering.reactElement) : (_jsx("g", { dangerouslySetInnerHTML: { __html: rendering.html || '' } }));
|
|
6
|
+
}
|
|
7
|
+
export { getSerializedSvg } from "./offscreenCanvasGetSerializingSvg.js";
|
|
8
|
+
export async function renderingToSvg(rendering, width, height) {
|
|
9
|
+
if (rendering.canvasRecordedData && !rendering.html) {
|
|
10
|
+
const { getSerializedSvg } = await import("./offscreenCanvasGetSerializingSvg.js");
|
|
11
|
+
const html = await getSerializedSvg({
|
|
12
|
+
width,
|
|
13
|
+
height,
|
|
14
|
+
canvasRecordedData: rendering.canvasRecordedData,
|
|
15
|
+
});
|
|
16
|
+
return { ...rendering, html };
|
|
17
|
+
}
|
|
18
|
+
return rendering;
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getProgressDisplayStr } from "./index.js";
|
|
2
|
+
export function parseLineByLine(buffer, lineCallback, statusCallback = () => { }) {
|
|
3
|
+
const decoder = new TextDecoder('utf8');
|
|
4
|
+
let blockStart = 0;
|
|
5
|
+
let i = 0;
|
|
6
|
+
while (blockStart < buffer.length) {
|
|
7
|
+
const n = buffer.indexOf(10, blockStart);
|
|
8
|
+
const lineEnd = n === -1 ? buffer.length : n;
|
|
9
|
+
const b = buffer.subarray(blockStart, lineEnd);
|
|
10
|
+
const line = decoder.decode(b).trim();
|
|
11
|
+
if (line) {
|
|
12
|
+
const shouldContinue = lineCallback(line, i);
|
|
13
|
+
if (shouldContinue === false) {
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
if (i++ % 10_000 === 0) {
|
|
18
|
+
statusCallback(`Loading ${getProgressDisplayStr(blockStart, buffer.length)}`);
|
|
19
|
+
}
|
|
20
|
+
blockStart = lineEnd + 1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function intersection2(left1, right1, left2, right2) {
|
|
2
|
+
if (right1 > left2 && left1 < right2 && right2 - left2 && right1 - left1) {
|
|
3
|
+
if (left1 > left2) {
|
|
4
|
+
if (right1 < right2) {
|
|
5
|
+
return [left1, right1];
|
|
6
|
+
}
|
|
7
|
+
return [left1, right2];
|
|
8
|
+
}
|
|
9
|
+
if (right1 < right2) {
|
|
10
|
+
return [left2, right1];
|
|
11
|
+
}
|
|
12
|
+
return [left2, right2];
|
|
13
|
+
}
|
|
14
|
+
return [];
|
|
15
|
+
}
|
|
16
|
+
export function doesIntersect2(left1, right1, left2, right2) {
|
|
17
|
+
return right1 > left2 && left1 < right2;
|
|
18
|
+
}
|
|
19
|
+
export function isContainedWithin(left1, right1, left2, right2) {
|
|
20
|
+
return left2 <= left1 && right2 >= right1;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface ExportSVGOptions {
|
|
2
|
+
rasterizeLayers?: boolean;
|
|
3
|
+
scale?: number;
|
|
4
|
+
}
|
|
5
|
+
interface RenderToAbstractCanvasOptions {
|
|
6
|
+
exportSVG?: ExportSVGOptions;
|
|
7
|
+
highResolutionScaling?: number;
|
|
8
|
+
}
|
|
9
|
+
type RenderResult = {
|
|
10
|
+
canvasRecordedData: Record<string, unknown>;
|
|
11
|
+
} | {
|
|
12
|
+
imageData: ImageBitmap;
|
|
13
|
+
} | {
|
|
14
|
+
html: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function renderToAbstractCanvas<T extends object | undefined>(width: number, height: number, opts: RenderToAbstractCanvasOptions, cb: (ctx: CanvasRenderingContext2D) => Promise<T> | T): Promise<(T extends undefined ? object : T) & RenderResult>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { CanvasSequence } from 'canvas-sequencer-ts';
|
|
2
|
+
import { blobToDataURL } from "./blobToDataURL.js";
|
|
3
|
+
import { createCanvas, createImageBitmap } from "./offscreenCanvasPonyfill.js";
|
|
4
|
+
export async function renderToAbstractCanvas(width, height, opts, cb) {
|
|
5
|
+
const { exportSVG, highResolutionScaling = 1 } = opts;
|
|
6
|
+
const safeWidth = Math.max(1, width);
|
|
7
|
+
const safeHeight = Math.max(1, height);
|
|
8
|
+
if (exportSVG) {
|
|
9
|
+
if (!exportSVG.rasterizeLayers) {
|
|
10
|
+
const fakeCtx = new CanvasSequence();
|
|
11
|
+
const callbackResult = await cb(fakeCtx);
|
|
12
|
+
return {
|
|
13
|
+
...callbackResult,
|
|
14
|
+
canvasRecordedData: fakeCtx.toJSON(),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
const s = exportSVG.scale || highResolutionScaling;
|
|
19
|
+
const canvas = createCanvas(Math.ceil(safeWidth * s), Math.ceil(safeHeight * s));
|
|
20
|
+
const ctx = canvas.getContext('2d');
|
|
21
|
+
if (!ctx) {
|
|
22
|
+
throw new Error('2d canvas rendering not supported on this platform');
|
|
23
|
+
}
|
|
24
|
+
if (s !== 1) {
|
|
25
|
+
ctx.scale(s, s);
|
|
26
|
+
}
|
|
27
|
+
const callbackResult = await cb(ctx);
|
|
28
|
+
return {
|
|
29
|
+
...callbackResult,
|
|
30
|
+
html: `<image width="${width}" height="${height}" href="${'convertToBlob' in canvas
|
|
31
|
+
? await blobToDataURL(await canvas.convertToBlob({
|
|
32
|
+
type: 'image/png',
|
|
33
|
+
}))
|
|
34
|
+
: canvas.toDataURL('image/png')}" />`,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
const canvas = createCanvas(Math.ceil(safeWidth * highResolutionScaling), Math.ceil(safeHeight * highResolutionScaling));
|
|
40
|
+
const ctx = canvas.getContext('2d');
|
|
41
|
+
if (!ctx) {
|
|
42
|
+
throw new Error('2d canvas rendering not supported on this platform');
|
|
43
|
+
}
|
|
44
|
+
if (highResolutionScaling !== 1) {
|
|
45
|
+
ctx.scale(highResolutionScaling, highResolutionScaling);
|
|
46
|
+
}
|
|
47
|
+
const callbackResult = await cb(ctx);
|
|
48
|
+
return {
|
|
49
|
+
...callbackResult,
|
|
50
|
+
imageData: await createImageBitmap(canvas),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
package/esm/util/rpc.js
ADDED
package/esm/util/rxjs.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export function ObservableCreate(func, _stopToken) {
|
|
3
|
+
return new Observable((observer) => {
|
|
4
|
+
try {
|
|
5
|
+
const ret = func(observer);
|
|
6
|
+
if (ret?.catch) {
|
|
7
|
+
ret.catch((error) => {
|
|
8
|
+
observer.error(error);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
catch (error) {
|
|
13
|
+
observer.error(error);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface Feature {
|
|
2
|
+
get(name: 'refName'): string;
|
|
3
|
+
get(name: 'start' | 'end'): number;
|
|
4
|
+
get(name: 'subfeatures'): Feature[] | undefined;
|
|
5
|
+
get(name: string): any;
|
|
6
|
+
id(): string;
|
|
7
|
+
parent?: () => Feature | undefined;
|
|
8
|
+
children?: () => Feature[] | undefined;
|
|
9
|
+
toJSON(): SimpleFeatureSerialized;
|
|
10
|
+
}
|
|
11
|
+
export declare function isFeature(thing: unknown): thing is Feature;
|
|
12
|
+
export interface SimpleFeatureArgs {
|
|
13
|
+
data: Record<string, unknown>;
|
|
14
|
+
parent?: Feature;
|
|
15
|
+
id: string | number;
|
|
16
|
+
}
|
|
17
|
+
export interface SimpleFeatureSerializedNoId {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
parentId?: string;
|
|
20
|
+
start: number;
|
|
21
|
+
end: number;
|
|
22
|
+
refName: string;
|
|
23
|
+
type?: string;
|
|
24
|
+
subfeatures?: SimpleFeatureSerializedNoId[];
|
|
25
|
+
}
|
|
26
|
+
export interface SimpleFeatureSerialized extends SimpleFeatureSerializedNoId {
|
|
27
|
+
subfeatures?: SimpleFeatureSerializedNoId[];
|
|
28
|
+
uniqueId: string;
|
|
29
|
+
}
|
|
30
|
+
export default class SimpleFeature implements Feature {
|
|
31
|
+
private data;
|
|
32
|
+
private subfeatures?;
|
|
33
|
+
private parentHandle?;
|
|
34
|
+
private uniqueId;
|
|
35
|
+
constructor(args: SimpleFeatureArgs | SimpleFeatureSerialized);
|
|
36
|
+
get(name: string): any;
|
|
37
|
+
set(name: string, val: any): void;
|
|
38
|
+
tags(): string[];
|
|
39
|
+
id(): string;
|
|
40
|
+
parent(): Feature | undefined;
|
|
41
|
+
children(): Feature[] | undefined;
|
|
42
|
+
toJSON(): SimpleFeatureSerialized;
|
|
43
|
+
static fromJSON(json: SimpleFeatureSerialized): SimpleFeature;
|
|
44
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export function isFeature(thing) {
|
|
2
|
+
return (typeof thing === 'object' &&
|
|
3
|
+
thing !== null &&
|
|
4
|
+
typeof thing.get === 'function' &&
|
|
5
|
+
typeof thing.id === 'function');
|
|
6
|
+
}
|
|
7
|
+
function isSimpleFeatureSerialized(args) {
|
|
8
|
+
return 'uniqueId' in args && typeof args.data !== 'object';
|
|
9
|
+
}
|
|
10
|
+
export default class SimpleFeature {
|
|
11
|
+
data;
|
|
12
|
+
subfeatures;
|
|
13
|
+
parentHandle;
|
|
14
|
+
uniqueId;
|
|
15
|
+
constructor(args) {
|
|
16
|
+
if (isSimpleFeatureSerialized(args)) {
|
|
17
|
+
this.data = args;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
this.data = args.data;
|
|
21
|
+
this.parentHandle = args.parent;
|
|
22
|
+
}
|
|
23
|
+
const id = isSimpleFeatureSerialized(args) ? args.uniqueId : args.id;
|
|
24
|
+
if (id === undefined || id === null) {
|
|
25
|
+
throw new Error('SimpleFeature requires a unique `id` or `data.uniqueId` attribute');
|
|
26
|
+
}
|
|
27
|
+
this.uniqueId = String(id);
|
|
28
|
+
if (!(this.data.aliases || this.data.end - this.data.start >= 0)) {
|
|
29
|
+
throw new Error(`invalid feature data, end less than start. end: ${this.data.end} start: ${this.data.start}`);
|
|
30
|
+
}
|
|
31
|
+
if (this.data.subfeatures) {
|
|
32
|
+
this.subfeatures = this.data.subfeatures?.map((f, i) => typeof f.get !== 'function'
|
|
33
|
+
? new SimpleFeature({
|
|
34
|
+
id: f.uniqueId || `${id}-${i}`,
|
|
35
|
+
data: {
|
|
36
|
+
strand: this.data.strand,
|
|
37
|
+
...f,
|
|
38
|
+
},
|
|
39
|
+
parent: this,
|
|
40
|
+
})
|
|
41
|
+
: f);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
get(name) {
|
|
45
|
+
return name === 'subfeatures'
|
|
46
|
+
? this.subfeatures
|
|
47
|
+
: name === 'parent'
|
|
48
|
+
? this.parent()
|
|
49
|
+
: this.data[name];
|
|
50
|
+
}
|
|
51
|
+
set(name, val) {
|
|
52
|
+
this.data[name] = val;
|
|
53
|
+
}
|
|
54
|
+
tags() {
|
|
55
|
+
return Object.keys(this.data);
|
|
56
|
+
}
|
|
57
|
+
id() {
|
|
58
|
+
return this.uniqueId;
|
|
59
|
+
}
|
|
60
|
+
parent() {
|
|
61
|
+
return this.parentHandle;
|
|
62
|
+
}
|
|
63
|
+
children() {
|
|
64
|
+
return this.get('subfeatures');
|
|
65
|
+
}
|
|
66
|
+
toJSON() {
|
|
67
|
+
const d = { ...this.data, uniqueId: this.id() };
|
|
68
|
+
const p = this.parent();
|
|
69
|
+
if (p) {
|
|
70
|
+
d.parentId = p.id();
|
|
71
|
+
}
|
|
72
|
+
const c = this.children();
|
|
73
|
+
if (c) {
|
|
74
|
+
d.subfeatures = c.map(child => child.toJSON());
|
|
75
|
+
}
|
|
76
|
+
return d;
|
|
77
|
+
}
|
|
78
|
+
static fromJSON(json) {
|
|
79
|
+
return new SimpleFeature({ ...json });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Feature } from './simpleFeature.ts';
|
|
2
|
+
import type { NoAssemblyRegion } from './types/index.ts';
|
|
3
|
+
import type { Observable } from 'rxjs';
|
|
4
|
+
export interface UnrectifiedQuantitativeStats {
|
|
5
|
+
scoreMin: number;
|
|
6
|
+
scoreMax: number;
|
|
7
|
+
scoreSum: number;
|
|
8
|
+
scoreSumSquares: number;
|
|
9
|
+
featureCount: number;
|
|
10
|
+
basesCovered: number;
|
|
11
|
+
}
|
|
12
|
+
export interface RectifiedQuantitativeStats extends UnrectifiedQuantitativeStats {
|
|
13
|
+
featureDensity: number;
|
|
14
|
+
scoreMean: number;
|
|
15
|
+
scoreStdDev: number;
|
|
16
|
+
}
|
|
17
|
+
export interface QuantitativeStats extends RectifiedQuantitativeStats {
|
|
18
|
+
currStatsBpPerPx: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function calcStdFromSums(sum: number, sumSquares: number, n: number, population?: boolean): number;
|
|
21
|
+
export declare function rectifyStats(s: UnrectifiedQuantitativeStats): RectifiedQuantitativeStats;
|
|
22
|
+
export declare function scoresToStats(region: NoAssemblyRegion, feats: Observable<Feature>): Promise<RectifiedQuantitativeStats>;
|
|
23
|
+
export declare function blankStats(): RectifiedQuantitativeStats;
|