⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.32
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 :
drawContent.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.drawContent = void 0; const drawContent = (parameters) => { const { contents, separatorGetter, drawSeparator, spanningCellManager, rowIndex, elementType } = parameters; const contentSize = contents.length; const result = []; if (drawSeparator(0, contentSize)) { result.push(separatorGetter(0, contentSize)); } contents.forEach((content, contentIndex) => { if (!elementType || elementType === 'border' || elementType === 'row') { result.push(content); } if (elementType === 'cell' && rowIndex === undefined) { result.push(content); } if (elementType === 'cell' && rowIndex !== undefined) { /* istanbul ignore next */ const containingRange = spanningCellManager === null || spanningCellManager === void 0 ? void 0 : spanningCellManager.getContainingRange({ col: contentIndex, row: rowIndex }); // when drawing content row, just add a cell when it is a normal cell // or belongs to first column of spanning cell if (!containingRange || contentIndex === containingRange.topLeft.col) { result.push(content); } } // Only append the middle separator if the content is not the last if (contentIndex + 1 < contentSize && drawSeparator(contentIndex + 1, contentSize)) { const separator = separatorGetter(contentIndex + 1, contentSize); if (elementType === 'cell' && rowIndex !== undefined) { const currentCell = { col: contentIndex + 1, row: rowIndex }; /* istanbul ignore next */ const containingRange = spanningCellManager === null || spanningCellManager === void 0 ? void 0 : spanningCellManager.getContainingRange(currentCell); if (!containingRange || containingRange.topLeft.col === currentCell.col) { result.push(separator); } } else { result.push(separator); } } }); if (drawSeparator(contentSize, contentSize)) { result.push(separatorGetter(contentSize, contentSize)); } return result.join(''); }; exports.drawContent = drawContent; //# sourceMappingURL=drawContent.js.map