@univerjs-prosheets-pivotindexclassesSheetspivottableconfigmodel

@univerjs-pro/sheets-pivot v0.5.4


Class: SheetsPivotTableConfigModel

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:10

Extends

Constructors

new SheetsPivotTableConfigModel()

new SheetsPivotTableConfigModel(
   _injector, 
   _commandService, 
   _univerInstanceService): SheetsPivotTableConfigModel

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:36

Parameters

ParameterType
_injectorInjector
_commandServiceICommandService
_univerInstanceServiceIUniverInstanceService

Returns

SheetsPivotTableConfigModel

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
configVersion$publicObservable<number>undefined-packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:34
pivotConfigChange$publicObservable<{ pivotTableConfig: Nullable<IPivotTableConfig>; pivotTableId: string; subUnitId: string; unitId: string; }>undefined-packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:31
pivotInitCompleted$publicObservable<boolean>undefined-packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:22

Methods

deleteUnitId()

deleteUnitId(unitId): void

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:221

Parameters

ParameterType
unitIdstring

Returns

void


dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getCollection()

getCollection(unitId, pivotTableId): 
  | undefined
  | IFieldsCollectionJSON

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:124

Parameters

ParameterType
unitIdstring
pivotTableIdstring

Returns

| undefined | IFieldsCollectionJSON


getPivotTableConfig()

getPivotTableConfig(
   unitId, 
   subUnitId, 
pivotTableId): Nullable<IPivotTableConfig>

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:77

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring

Returns

Nullable<IPivotTableConfig>


getPivotTableMatrixInfo()

getPivotTableMatrixInfo(
   unitId, 
   subUnitId, 
   pivotTableId): undefined | IPivotTableMatrixInfo

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:217

  • get the pivot table matrix info for sheet or calc engine

Parameters

ParameterTypeDescription
unitIdstringthe unit id
subUnitIdstringthe sub unit id
pivotTableIdstringthe pivot table id

Returns

undefined | IPivotTableMatrixInfo

  • the pivot table matrix info

getPivotTableRangeInfo()

getPivotTableRangeInfo(
   unitId, 
   subUnitId, 
   pivotTableId): undefined | IPivotTableRangeInfo

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:206

  • get the pivot table range info for sheet or calc engine

Parameters

ParameterTypeDescription
unitIdstringthe unit id
subUnitIdstringthe sub unit id
pivotTableIdstringthe pivot table id

Returns

undefined | IPivotTableRangeInfo

  • the pivot table range info

getSubUnitPivotConfigs()

getSubUnitPivotConfigs(unitId, subUnitId): 
  | undefined
| Map<string, IPivotTableConfig>

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:104

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

| undefined | Map<string, IPivotTableConfig>


getTargetByPivotId()

getTargetByPivotId(
   unitId, 
   subUnitId, 
pivotTableId): Nullable<IPivotCellPositionInfo>

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:99

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring

Returns

Nullable<IPivotCellPositionInfo>


getTargetByPivotTableId()

getTargetByPivotTableId(unitId, pivotTableId): 
  | undefined
  | IPivotCellPositionInfo

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:85

Parameters

ParameterType
unitIdstring
pivotTableIdstring

Returns

| undefined | IPivotCellPositionInfo


getTextInfo()

getTextInfo(): Record<string, string>

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:68

Returns

Record<string, string>


setPivotInitCompleted()

setPivotInitCompleted(): void

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:54

Returns

void


updateCollectionConfig()

updateCollectionConfig(unitId, collectionConfig): void

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:128

Parameters

ParameterType
unitIdstring
collectionConfigIDataFieldManagerJSON

Returns

void


updateConfigCache()

updateConfigCache(
   unitId, 
   subUnitId, 
   pivotTableId, 
   pivotTableConfig): void

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:108

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring
pivotTableConfigNullable<IPivotTableConfig>

Returns

void


updatePivotTableMatrixInfo()

updatePivotTableMatrixInfo(
   unitId, 
   subUnitId, 
   pivotTableId, 
   matrixInfo): void

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:188

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring
matrixInfoObjectMatrix<Nullable<IPivotTableCellData>>

Returns

void


updatePivotTableRangeInfo()

updatePivotTableRangeInfo(
   unitId, 
   subUnitId, 
   pivotTableId, 
   rangeInfo): void

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:178

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring
rangeInfoundefined | IPivotRangesInfo

Returns

void


updateViewInfo()

updateViewInfo(
   unitId, 
   subUnitId, 
   pivotTableId, 
   valueMatrix, 
   rangesCache): void

Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:72

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring
valueMatrixObjectMatrix<Nullable<IPivotTableCellData>>
rangesCacheundefined | IPivotRangesInfo

Returns

void