UNPKG

@antv/s2

Version:

effective spreadsheet render core lib

14 lines 664 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CornerBBox = void 0; const s2_1 = require("@antv/s2"); class CornerBBox extends s2_1.CornerBBox { calculateOriginWidth() { var _a; const { rowsHierarchy, axisRowsHierarchy } = this.layoutResult; const rowAxisWidth = (_a = axisRowsHierarchy === null || axisRowsHierarchy === void 0 ? void 0 : axisRowsHierarchy.width) !== null && _a !== void 0 ? _a : 0; this.originalWidth = (0, s2_1.floor)(this.facet.getSeriesNumberWidth() + rowsHierarchy.width + rowAxisWidth); } } exports.CornerBBox = CornerBBox; //# sourceMappingURL=corner-bbox.js.map