UNPKG

@jbrowse/plugin-wiggle

Version:

JBrowse 2 wiggle adapters, tracks, etc.

19 lines (18 loc) 785 B
import { lazy } from 'react'; import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType'; import configSchemaFactory from './configSchema'; import modelFactory from './model'; export default function MultiLinearWiggleDisplayF(pluginManager) { pluginManager.addDisplayType(() => { const configSchema = configSchemaFactory(pluginManager); return new DisplayType({ name: 'MultiLinearWiggleDisplay', displayName: 'Multi-wiggle display', configSchema, stateModel: modelFactory(pluginManager, configSchema), trackType: 'MultiQuantitativeTrack', viewType: 'LinearGenomeView', ReactComponent: lazy(() => import('./components/WiggleDisplayComponent')), }); }); }