@visactor/vtable
Version:
canvas table width high performance
15 lines (10 loc) • 622 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.getCustomMergeCellFunc = void 0;
const vutils_1 = require("@visactor/vutils");
function getCustomMergeCellFunc(customMergeCell) {
return (0, vutils_1.isFunction)(customMergeCell) ? customMergeCell : (0, vutils_1.isArray)(customMergeCell) ? (col, row) => customMergeCell.find((item => item.range.start.col <= col && item.range.end.col >= col && item.range.start.row <= row && item.range.end.row >= row)) : void 0;
}
exports.getCustomMergeCellFunc = getCustomMergeCellFunc;
//# sourceMappingURL=get-custom-merge-cell-func.js.map