{#each Array(cols) as _, j} setColWidth(j, width)} direction="col" val={colToStr(j)} active={active_cell !== null && active_cell[1] === j} /> {/each}
{#each Array(rows) as _, i}
setRowHeight(i, height)} val={(i + 1).toString()} active={active_cell !== null && active_cell[0] === i} />
{#each Array(cols) as _, j} startEditing(i, j)} stopediting={stopEditing} onmousedown={(e) => { handleCellInteraction(i, j, e); }} bind:cell={() => getCell(i, j), (v) => setCell(i, j, v)} active={active_cell !== null && active_cell[0] === i && active_cell[1] === j} /> {/each}
{/each}