Выдение ячеек по клику
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user