Dense row-major mutation payload. Primitive arrays keep large paste/fill
operations JSON-safe without allocating one operation object per cell.
Formula/reference tuples are sparse exceptions keyed by row-major offset.
Package
@sheetwrite/core
Source
packages/core/src/types/document.ts#L257
Members 7
rowCount
rowCount: number;
colCount
colCount: number;
values
values: CellScalartype CellScalar = string | number | boolean | null;typeCellScalar=string|number|boolean|null;typeCellScalar=|string|number|boolean|null;A scalar that can be displayed directly.API reference →[];
refs?: Array<[offset: number, target: CellAddressinterface CellAddress {
sheet: SheetId;
row: number;
col: number;
}interfaceCellAddress {sheet:SheetId;row:number;col:number;}interfaceCellAddress {sheet:SheetId;row:number;col:number;}Zero-based address of one cell on a stable sheet ID.API reference →]>;
styleTable
styleTable?:CellStyleinterface CellStyle {
bold?: boolean;
italic?: boolean;
underline?: boolean;
strikethrough?: boolean;
fontSize?: number;
color?: string;
backgroundColor?: string;
align?: CellAlign;
wrap?: boolean;
border?: CellBorders;
}interfaceCellStyle {bold?:boolean;italic?:boolean;underline?:boolean;strikethrough?:boolean;fontSize?:number;color?:string;backgroundColor?:string;align?:CellAlign;wrap?:boolean;border?:CellBorders;}interfaceCellStyle {bold?:boolean;italic?:boolean;underline?:boolean;strikethrough?:boolean;fontSize?:number;color?:string;backgroundColor?:string;align?:CellAlign;wrap?:boolean;border?:CellBorders;}Serializable formatting applied to a cell or used as a column default.API reference →[];
styleIds
styleIds?: number[];
Declaration
View full TypeScript declaration
exportinterfacePackedCellBlock {
rowCount:number;
colCount:number;
values:CellScalartype CellScalar = string | number | boolean | null;typeCellScalar=string|number|boolean|null;typeCellScalar=|string|number|boolean|null;A scalar that can be displayed directly.API reference →[];