⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
table
/
dist
/
src
/
View File Name :
calculateSpanningCellWidth.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.calculateSpanningCellWidth = void 0; const utils_1 = require("./utils"); const calculateSpanningCellWidth = (rangeConfig, dependencies) => { const { columnsConfig, drawVerticalLine } = dependencies; const { topLeft, bottomRight } = rangeConfig; const totalWidth = (0, utils_1.sumArray)(columnsConfig.slice(topLeft.col, bottomRight.col + 1).map(({ width }) => { return width; })); const totalPadding = topLeft.col === bottomRight.col ? columnsConfig[topLeft.col].paddingRight + columnsConfig[bottomRight.col].paddingLeft : (0, utils_1.sumArray)(columnsConfig .slice(topLeft.col, bottomRight.col + 1) .map(({ paddingLeft, paddingRight }) => { return paddingLeft + paddingRight; })); const totalBorderWidths = bottomRight.col - topLeft.col; const totalHiddenVerticalBorders = (0, utils_1.sequence)(topLeft.col + 1, bottomRight.col).filter((verticalBorderIndex) => { return !drawVerticalLine(verticalBorderIndex, columnsConfig.length); }).length; return totalWidth + totalPadding + totalBorderWidths - totalHiddenVerticalBorders; }; exports.calculateSpanningCellWidth = calculateSpanningCellWidth; //# sourceMappingURL=calculateSpanningCellWidth.js.map