import { ConfigurationSchema } from '@jbrowse/core/configuration' ; import { baseLinearDisplayConfigSchema } from '@jbrowse/plugin-linear-genome-view' ; import { Instance } from 'mobx-state-tree' ; import PluginManager from '@jbrowse/core/PluginManager' ; const HicTrackConfigFactory = ( pluginManager ) => { const HicRendererConfigSchema = pluginManager . getRendererType ( 'HicRenderer' ) . configSchema ; return ConfigurationSchema ( 'LinearHicDisplay' , { renderer : HicRendererConfigSchema } , { baseConfiguration : baseLinearDisplayConfigSchema , explicitlyTyped : true } ) ; } ; export type HicTrackConfigModel = ReturnType < typeof HicTrackConfigFactory > ; export type HicTrackConfig = Instance < HicTrackConfigModel > ; export default HicTrackConfigFactory ;