@jbrowse/plugin-wiggle
Version:
JBrowse 2 wiggle adapters, tracks, etc.
16 lines (15 loc) • 585 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { getContainingView } from '@jbrowse/core/util';
import { observer } from 'mobx-react';
const YScaleBarsWrapper = observer(function YScaleBarsWrapper({ children, model, exportSVG, }) {
const { height } = model;
return exportSVG ? (children) : (_jsx("svg", { style: {
position: 'absolute',
top: 0,
left: 0,
pointerEvents: 'none',
height,
width: getContainingView(model).width,
}, children: children }));
});
export default YScaleBarsWrapper;