@antv/s2
Version:
effective spreadsheet render core lib
17 lines • 781 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PanelBBox = void 0;
const s2_1 = require("@antv/s2");
class PanelBBox extends s2_1.PanelBBox {
getPanelHeight() {
var _a;
const scrollBarSize = this.spreadsheet.theme.scrollBar.size;
const { height: canvasHeight } = this.spreadsheet.options;
const { axisColsHierarchy } = this.layoutResult;
const colAxisHeight = (_a = axisColsHierarchy === null || axisColsHierarchy === void 0 ? void 0 : axisColsHierarchy.height) !== null && _a !== void 0 ? _a : 0;
const panelHeight = Math.max(0, canvasHeight - this.y - scrollBarSize - colAxisHeight);
return panelHeight;
}
}
exports.PanelBBox = PanelBBox;
//# sourceMappingURL=panel-bbox.js.map