@antv/s2
Version:
effective spreadsheet render core lib
13 lines • 676 B
JavaScript
import { PanelBBox as OriginPanelBBox } from '@antv/s2';
export class PanelBBox extends OriginPanelBBox {
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;
}
}
//# sourceMappingURL=panel-bbox.js.map