UNPKG

@antv/s2

Version:

effective spreadsheet render core lib

17 lines 579 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAllChildrenNodeHeight = void 0; /** * 获取当前node所有children的总高度 * @param node */ 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; }; exports.getAllChildrenNodeHeight = getAllChildrenNodeHeight; //# sourceMappingURL=get-all-children-node-height.js.map