@univerjs-pro/engine-pivot v0.5.4


Class: PivotViewItem

Defined in: layout/pivot-view.ts:92

Extended by

Constructors

new PivotViewItem()

new PivotViewItem(): PivotViewItem

Returns

PivotViewItem

Properties

PropertyTypeDefault valueDescriptionDefined in
colCountnumber0- how many cols in the viewlayout/pivot-view.ts:100
dataIPivotViewItemData{}the data of the view, the key is the row index, the value is the column datalayout/pivot-view.ts:104
infoIPivotViewInfo[][]the info of the view, the index is the index of the view item, the value is the info of the view itemlayout/pivot-view.ts:108
lastColnumber-1-layout/pivot-view.ts:110
lastRownumber-1-layout/pivot-view.ts:111
rowCountnumber0- how many rows in the viewlayout/pivot-view.ts:96

Methods

buildPathMap()

buildPathMap(considerValue): Record<string, number>

Defined in: layout/pivot-view.ts:152

Parameters

ParameterType
considerValueboolean

Returns

Record<string, number>


fromJSON()

fromJSON(json): void

Defined in: layout/pivot-view.ts:205

Parameters

ParameterType
jsonIPivotViewItemJSON

Returns

void


getCell()

protected getCell(row, col): IPivotViewCellData

Defined in: layout/pivot-view.ts:138

Parameters

ParameterType
rownumber
colnumber

Returns

IPivotViewCellData


getColCount()

getColCount(): number

Defined in: layout/pivot-view.ts:175

Returns

number


getLastCol()

getLastCol(): number

Defined in: layout/pivot-view.ts:113

Returns

number


getLastRow()

getLastRow(): number

Defined in: layout/pivot-view.ts:117

Returns

number


getRowCount()

getRowCount(): number

Defined in: layout/pivot-view.ts:171

Returns

number


getStyle()

getStyle(row, col): 
  | undefined
  | PivotCellStyleTypeEnum

Defined in: layout/pivot-view.ts:183

Parameters

ParameterType
rownumber
colnumber

Returns

| undefined | PivotCellStyleTypeEnum


getValue()

getValue(row, col): IPivotViewValueType

Defined in: layout/pivot-view.ts:179

Parameters

ParameterType
rownumber
colnumber

Returns

IPivotViewValueType


setBlank()

setBlank(row, col): void

Defined in: layout/pivot-view.ts:133

Parameters

ParameterType
rownumber
colnumber

Returns

void


setColCount()

setColCount(colCount): void

Defined in: layout/pivot-view.ts:167

Parameters

ParameterType
colCountnumber

Returns

void


setInfo()

setInfo(index, info): void

Defined in: layout/pivot-view.ts:148

Parameters

ParameterType
indexnumber
infoIPivotViewInfo

Returns

void


setRowCount()

setRowCount(rowCount): void

Defined in: layout/pivot-view.ts:163

Parameters

ParameterType
rowCountnumber

Returns

void


setStyle()

setStyle(
   row, 
   col, 
   styleType): void

Defined in: layout/pivot-view.ts:128

Parameters

ParameterType
rownumber
colnumber
styleTypePivotCellStyleTypeEnum

Returns

void


setValue()

setValue(
   row, 
   col, 
   value): void

Defined in: layout/pivot-view.ts:121

Parameters

ParameterType
rownumber
colnumber
valueIPivotViewValueType

Returns

void


toJSON()

toJSON(): IPivotViewItemJSON

Defined in: layout/pivot-view.ts:187

Returns

IPivotViewItemJSON