@jbrowse/plugin-wiggle
Version:
JBrowse 2 wiggle adapters, tracks, etc.
11 lines (10 loc) • 521 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { getFillProps } from '@jbrowse/core/util';
import { alpha, useTheme } from '@mui/material';
import { SIDEBAR_BACKGROUND_OPACITY } from "./constants.js";
const RectBg = ({ x, y, width, height, color, }) => {
const theme = useTheme();
return (_jsx("rect", { pointerEvents: "auto", x: x, y: y, width: width, height: height, ...getFillProps(color ||
alpha(theme.palette.background.paper, SIDEBAR_BACKGROUND_OPACITY)) }));
};
export default RectBg;