UNPKG

@jbrowse/plugin-linear-genome-view

Version:

JBrowse 2 linear genome view

9 lines (8 loc) 592 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = SVGRegionSeparators; const jsx_runtime_1 = require("react/jsx-runtime"); function SVGRegionSeparators({ model, height, }) { const { dynamicBlocks, offsetPx, interRegionPaddingWidth } = model; return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: dynamicBlocks.contentBlocks.slice(1).map(block => ((0, jsx_runtime_1.jsx)("rect", { x: block.offsetPx - offsetPx - interRegionPaddingWidth, width: interRegionPaddingWidth, y: 0, height: height, fill: "grey" }, block.key))) })); }