@jbrowse/plugin-wiggle
Version:
JBrowse 2 wiggle adapters, tracks, etc.
11 lines (10 loc) • 549 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { useTheme } from '@mui/material';
import { observer } from 'mobx-react';
import { Axis, LEFT, RIGHT } from 'react-d3-axis-mod';
const YScaleBar = observer(function ({ model, orientation, }) {
const { ticks } = model;
const theme = useTheme();
return ticks ? (_jsx(Axis, { ...ticks, shadow: 2, format: (n) => n, style: { orient: orientation === 'left' ? LEFT : RIGHT }, bg: theme.palette.background.default, fg: theme.palette.text.primary })) : null;
});
export default YScaleBar;