Sheets sub-types
Composite types referenced by workbook, worksheet, cell, and style snapshots.
Composite types referenced by workbook, worksheet, cell, and style snapshots. Supporting IWorkbookData, IWorksheetData, ICellData, IStyleData. Types are ordered from direct top-level fields to deeper nested structures and enums.
Overview
| Type | Kind | Used by |
|---|---|---|
AbsoluteRefType | enum | IRange |
CustomData | type | ICellData, IWorkbookData, IWorksheetData, IRowData |
DateSystem | enum | IWorkbookData |
FormulaType | enum | ICellData |
IColumnData | interface | IWorksheetData |
IColumnRange | interface | IRange |
IFreeze | interface | IWorksheetData |
IObjectArrayPrimitiveType | interface | IWorksheetData, IObjectMatrixPrimitiveType |
IObjectMatrixPrimitiveType | interface | IWorksheetData |
IPaddingData | interface | IStyleData |
IRowData | interface | IWorksheetData |
IRowRange | interface | IRange |
ITextRotation | interface | IStyleData |
IWorkbookCalculationSettings | interface | IWorkbookData |
IWorksheetBackgroundImage | interface | IWorksheetData |
RANGE_TYPE | enum | IRange |
SheetTypes | enum | IWorksheetData |
WorksheetHiddenState | enum | IWorksheetData |
IRangeLocation | interface | IRowRange, IColumnRange |
AbsoluteRefType
import { AbsoluteRefType } from '@univerjs/core' · Used by IRange
none: A1 row: A$1 column: $A1 all: $A$1
enum AbsoluteRefType { NONE = 0, ROW = 1, COLUMN = 2, ALL = 3,}CustomData
import type { CustomData } from '@univerjs/core' · Used by ICellData · IWorkbookData · IWorksheetData · IRowData · IColumnData
type CustomData = Nullable<Record<string, any>>Related types: Nullable
DateSystem
import { DateSystem } from '@univerjs/core' · Used by IWorkbookData
Workbook date serial systems supported by Univer.
enum DateSystem { Date1900 = 'date1900', Date1904 = 'date1904',}FormulaType
import { FormulaType } from '@univerjs/core' · Used by ICellData
Formula kinds from SpreadsheetML ST_CellFormulaType.
enum FormulaType { NORMAL = 0, SHARED = 1, ARRAY = 2, DATA_TABLE = 3,}IColumnData
import type { IColumnData } from '@univerjs/core' · Used by IWorksheetData
Properties of column data
interface IColumnData { w?: number hd?: BooleanNumber s?: Nullable<IStyleData | string> custom?: CustomData}Related types: BooleanNumber · IStyleData · Nullable · CustomData
IColumnRange
import type { IColumnRange } from '@univerjs/core' · Used by IRange
interface IColumnRange extends IRangeLocation { startColumn: number endColumn: number}Related types: IRangeLocation
IFreeze
import type { IFreeze } from '@univerjs/core' · Used by IWorksheetData
interface IFreeze { xSplit: number ySplit: number startRow: number startColumn: number}IObjectArrayPrimitiveType
import type { IObjectArrayPrimitiveType } from '@univerjs/core' · Used by IWorksheetData · IObjectMatrixPrimitiveType
interface IObjectArrayPrimitiveType<T> { [key: number]: T}IObjectMatrixPrimitiveType
import type { IObjectMatrixPrimitiveType } from '@univerjs/core' · Used by IWorksheetData
Object Matrix Primitive Type
interface IObjectMatrixPrimitiveType<T> { [key: number]: IObjectArrayPrimitiveType<T>}Related types: IObjectArrayPrimitiveType
IPaddingData
import type { IPaddingData } from '@univerjs/core' · Used by IStyleData
Top,right,bottom,left padding
interface IPaddingData { t?: number r?: number b?: number l?: number}IRowData
import type { IRowData } from '@univerjs/core' · Used by IWorksheetData
Properties of row data
interface IRowData { h?: number ia?: BooleanNumber ah?: number hd?: BooleanNumber s?: Nullable<IStyleData | string> custom?: CustomData}Related types: BooleanNumber · IStyleData · Nullable · CustomData
IRowRange
import type { IRowRange } from '@univerjs/core' · Used by IRange
interface IRowRange extends IRangeLocation { startRow: number endRow: number}Related types: IRangeLocation
ITextRotation
import type { ITextRotation } from '@univerjs/core' · Used by IStyleData
interface ITextRotation { a: number v?: BooleanNumber}Related types: BooleanNumber
IWorkbookCalculationSettings
import type { IWorkbookCalculationSettings } from '@univerjs/core' · Used by IWorkbookData
interface IWorkbookCalculationSettings { iterativeCalculation: boolean maxIterations: number maxChange: number}IWorksheetBackgroundImage
import type { IWorksheetBackgroundImage } from '@univerjs/core' · Used by IWorksheetData
Image displayed behind the worksheet grid.
interface IWorksheetBackgroundImage { source: string imageSourceType: ImageSourceType scaleX?: number scaleY?: number}Related types: ImageSourceType
RANGE_TYPE
import { RANGE_TYPE } from '@univerjs/core' · Used by IRange
enum RANGE_TYPE { NORMAL = 0, ROW = 1, COLUMN = 2, ALL = 3,}SheetTypes
import { SheetTypes } from '@univerjs/core' · Used by IWorksheetData
enum SheetTypes { GRID = 0, KANBAN = 1, GANTT = 2, CHART = 3,}WorksheetHiddenState
import { WorksheetHiddenState } from '@univerjs/core' · Used by IWorksheetData
Worksheet-only hiding states; row/column and cell flags still use BooleanNumber.
enum WorksheetHiddenState { VISIBLE = 0, HIDDEN = 1, VERY_HIDDEN = 2,}IRangeLocation
Nested type in @univerjs/core · Used by IRowRange · IColumnRange
interface IRangeLocation { unitId?: string sheetId?: string}How is this guide?