Skip to content
Sheetwrite

@sheetwrite/wasm

CellBlockinterface

Report a problem

On this page

One rectangle of cells, every cell in it, for setBlockCells and setColumnBlockCells. Each array holds one entry per cell, in the order the function names: row by row, or column by column.

Members

Properties

row: number;

The first row of the block, from 0.

col: number;

The first column of the block, from 0.

rows: number;

The rows in the block.

cols: number;

The columns in the block.

kinds: Uint8Array;

The kind of each cell: 0 blank, 1 number, 2 text, 3 boolean.

numbers?: Float64Array;

optional

The number of each number cell, and 1 or 0 for a boolean. Omitted, every number is 0.

texts?: readonly (string | undefined)[];

optional

The text of each text cell; entries of other cells are not read.

styles?: Uint32Array;

optional

The style id of each cell. Omitted, every cell takes style 0.

formulaOffsets?: Uint32Array;

optional

The offset in the block of each formula cell.

formulaSources?: string[];

optional

The formula of each cell in formulaOffsets, with its =.

referenceOffsets?: Uint32Array;

optional

The offset in the block of each cell that is a reference to another cell.

referenceTargets?: Uint32Array;

optional

Three numbers for each cell in referenceOffsets: the sheet, row and column it refers to.

Declaration

View full TypeScript declaration
export interface CellBlock {
row: number;
col: number;
rows: number;
cols: number;
kinds: Uint8Array;
numbers?: Float64Array;
texts?: readonly (string | undefined)[];
styles?: Uint32Array;
formulaOffsets?: Uint32Array;
formulaSources?: string[];
referenceOffsets?: Uint32Array;
referenceTargets?: Uint32Array;
}

Referenced by

Public exports naming CellBlock