UNPKG

@jbrowse/plugin-wiggle

Version:

JBrowse 2 wiggle adapters, tracks, etc.

12 lines (11 loc) 806 B
import { jsx as _jsx } from "react/jsx-runtime"; import { observer } from 'mobx-react'; import FullHeightScaleBar from "./FullHeightScaleBar.js"; import IndividualScaleBars from "./IndividualScaleBars.js"; import YScaleBarsWrapper from "./YScaleBarsWrapper.js"; const YScaleBars = observer(function YScaleBars(props) { const { model, orientation, exportSVG } = props; const { showSidebar, stats, needsFullHeightScalebar, sources } = model; return stats && sources ? (_jsx(YScaleBarsWrapper, { ...props, children: showSidebar ? (needsFullHeightScalebar ? (_jsx(FullHeightScaleBar, { model: model, orientation: orientation, exportSVG: exportSVG })) : (_jsx(IndividualScaleBars, { model: model, orientation: orientation, exportSVG: exportSVG }))) : null })) : null; }); export default YScaleBars;