import { DisplayType } from '@jbrowse/core/pluggableElementTypes' import { configSchemaFactory } from './configSchemaFactory' import { stateModelFactory } from './stateModelFactory' import type PluginManager from '@jbrowse/core/PluginManager' import type WigglePlugin from '@jbrowse/plugin-wiggle' export default function LinearManhattanDisplayF(pluginManager: PluginManager) { const WigglePlugin = pluginManager.getPlugin('WigglePlugin') as WigglePlugin const { LinearWiggleDisplayReactComponent } = WigglePlugin.exports pluginManager.addDisplayType(() => { const configSchema = configSchemaFactory(pluginManager) return new DisplayType({ name: 'LinearManhattanDisplay', configSchema, stateModel: stateModelFactory(pluginManager, configSchema), trackType: 'GWASTrack', viewType: 'LinearGenomeView', ReactComponent: LinearWiggleDisplayReactComponent, }) }) }