@rcsb/rcsb-saguaro
Version:
RCSB 1D Feature Viewer
18 lines (17 loc) • 1.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AxisRow = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = tslib_1.__importDefault(require("react"));
const RcsbFvRow_1 = require("../../RcsbFvRow/RcsbFvRow");
const RowConfigFactory_1 = require("../Utils/RowConfigFactory");
const uniqid_1 = tslib_1.__importDefault(require("uniqid"));
class AxisRow extends react_1.default.Component {
render() {
const rowId = (0, uniqid_1.default)("rcsbFvAxis_");
const rowConfig = { displayType: "axis" /* RcsbFvDisplayTypes.AXIS */, trackId: rowId, boardId: this.props.boardId };
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RcsbFvRow_1.RcsbFvRow, { id: rowId, boardId: this.props.boardId, rowNumber: 0, rowConfigData: RowConfigFactory_1.RowConfigFactory.getConfig(rowId, this.props.boardId, rowConfig, this.props.boardConfigData), xScale: this.props.xScale, selection: this.props.selection, contextManager: this.props.contextManager, renderSchedule: "fixed" }) }, rowId));
}
}
exports.AxisRow = AxisRow;