@jbrowse/core
Version:
JBrowse 2 core libraries used by plugins
15 lines (14 loc) • 494 B
JavaScript
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
import { assembleLocString } from "../../util/index.js";
export default function Position(props) {
const { feature } = props;
const strand = feature.strand;
const strandMap = {
'-1': '-',
'0': '',
'1': '+',
};
const str = strandMap[strand] ? `(${strandMap[strand]})` : '';
const loc = assembleLocString(feature);
return _jsx(_Fragment, { children: `${loc} ${str}` });
}