@jbrowse/core
Version:
JBrowse 2 core libraries used by plugins
18 lines (17 loc) • 588 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = Position;
const jsx_runtime_1 = require("react/jsx-runtime");
const util_1 = require("../../util");
function Position(props) {
const { feature } = props;
const strand = feature.strand;
const strandMap = {
'-1': '-',
'0': '',
'1': '+',
};
const str = strandMap[strand] ? `(${strandMap[strand]})` : '';
const loc = (0, util_1.assembleLocString)(feature);
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: `${loc} ${str}` });
}