UNPKG

@antv/s2

Version:

effective spreadsheet render core lib

13 lines 405 B
/** * 获取当前node所有children的总高度 * @param node */ export const getAllChildrenNodeHeight = (node) => { let nodeAllCellHeight = 0; const nodes = node.children; nodes === null || nodes === void 0 ? void 0 : nodes.forEach((item) => { nodeAllCellHeight += item.height || 0; }); return nodeAllCellHeight; }; //# sourceMappingURL=get-all-children-node-height.js.map