UNPKG

@visactor/vtable

Version:

canvas table width high performance

12 lines (9 loc) 872 B
"use strict"; function isSameRange(range1, range2) { var _a, _b, _c, _d, _e, _f, _g, _h; return !range1 && !range2 || !(!range1 || !range2) && ((null === (_a = range1.start) || void 0 === _a ? void 0 : _a.col) === (null === (_b = range2.start) || void 0 === _b ? void 0 : _b.col) && (null === (_c = range1.start) || void 0 === _c ? void 0 : _c.row) === (null === (_d = range2.start) || void 0 === _d ? void 0 : _d.row) && (null === (_e = range1.end) || void 0 === _e ? void 0 : _e.col) === (null === (_f = range2.end) || void 0 === _f ? void 0 : _f.col) && (null === (_g = range1.end) || void 0 === _g ? void 0 : _g.row) === (null === (_h = range2.end) || void 0 === _h ? void 0 : _h.row)); } Object.defineProperty(exports, "__esModule", { value: !0 }), exports.isSameRange = void 0, exports.isSameRange = isSameRange; //# sourceMappingURL=cell-range.js.map