UNPKG

@jbrowse/plugin-wiggle

Version:

JBrowse 2 wiggle adapters, tracks, etc.

23 lines (22 loc) 982 B
import { lazy } from 'react'; import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType'; import configSchemaFactory from './configSchema'; import modelFactory from './model'; export default function LinearWiggleDisplayF(pluginManager) { pluginManager.addDisplayType(() => { const configSchema = configSchemaFactory(pluginManager); const stateModel = modelFactory(pluginManager, configSchema); return new DisplayType({ name: 'LinearWiggleDisplay', displayName: 'Wiggle display', configSchema, stateModel, trackType: 'QuantitativeTrack', viewType: 'LinearGenomeView', ReactComponent: lazy(() => import('./components/WiggleDisplayComponent')), }); }); } export { default as Tooltip } from './components/Tooltip'; export { default as ReactComponent } from './components/WiggleDisplayComponent'; export { default as modelFactory } from './model';