Выдение ячеек по клику

This commit is contained in:
2025-07-22 05:55:43 +03:00
parent faad68cdc0
commit 1b17638565
6 changed files with 215 additions and 9 deletions

View File

@@ -11,6 +11,22 @@ export function getColumnLabel(index: number): string {
return label
}
// Создает адрес ячейки из координат (например, A1, B2)
export function createCellAddress(row: number, col: number): string {
return getColumnLabel(col) + (row + 1)
}
// Создает квалифицированную ссылку на ячейку с указанием листа
export function createQualifiedCellReference(
sheetType: 'report' | 'calculations',
row: number,
col: number
): string {
const sheetName = sheetType === 'report' ? 'L' : 'R'
const cellAddress = createCellAddress(row, col)
return `${sheetName}!${cellAddress}`
}
export function findMergedCellInfo(
row: number,
col: number,