UNPKG

@antv/s2

Version:

effective spreadsheet render core lib

10 lines 555 B
import { CornerBBox as OriginCornerBBox, floor } from '@antv/s2'; export class CornerBBox extends OriginCornerBBox { 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 = floor(this.facet.getSeriesNumberWidth() + rowsHierarchy.width + rowAxisWidth); } } //# sourceMappingURL=corner-bbox.js.map