@univerjs-pro/sheets-pivot v0.5.4
Class: SheetsPivotTableAdaptorModel
Defined in: packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:11
Extends
Constructors
new SheetsPivotTableAdaptorModel()
new SheetsPivotTableAdaptorModel(
_localeService,
_injector,
_sheetsPivotTableConfigModel,
_univerInstanceService,
_exclusiveRangeService): SheetsPivotTableAdaptorModel
Defined in: packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:24
Parameters
Parameter | Type |
---|---|
_localeService | LocaleService |
_injector | Injector |
_sheetsPivotTableConfigModel | SheetsPivotTableConfigModel |
_univerInstanceService | IUniverInstanceService |
_exclusiveRangeService | IExclusiveRangeService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
markDirty$ | public | Observable <{ subUnitId : string ; unitId : string ; }> | undefined | - | packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:17 |
viewUpdate$ | public | Observable <IPivotViewUpdateInfo > | undefined | - | packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:20 |
Methods
clearRenderCache()
clearRenderCache(config): void
Defined in: packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:148
Parameters
Parameter | Type |
---|---|
config | IPivotTableConfigChangeInfo |
Returns
void
deleteUnitId()
deleteUnitId(unitId): void
Defined in: packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:267
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getIntersectsPivotTable()
getIntersectsPivotTable(
unitId,
subUnitId,
range): string[]
Defined in: packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:230
Get pivot table ids that intersect with the range
Parameters
Parameter | Type | Description |
---|---|---|
unitId | string | The test unit id of range |
subUnitId | string | The sub unit id of range |
range | IRange | The range to check |
Returns
string
[]
The pivot table ids that intersect with the range
getPivotItemRenderInfoCache()
getPivotItemRenderInfoCache(
unitId,
subUnitId,
pivotTableId): Nullable<IPivotRenderCache>
Defined in: packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:263
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
pivotTableId | string |
Returns
getPivotTableCellData()
getPivotTableCellData(
unitId,
subUnitId,
row,
col):
| undefined
| IPivotTableCellData
Defined in: packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:197
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
Returns
| undefined
| IPivotTableCellData
getPivotTableIdByCell()
getPivotTableIdByCell(
unitId,
subUnitId,
row,
col): Nullable<string>
Defined in: packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:205
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
Returns
Nullable
<string
>
getSubUnitPivotMatrix()
getSubUnitPivotMatrix(unitId, subUnitId): ObjectMatrix<Nullable<IPivotTableCellData>>
Defined in: packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:259
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
ObjectMatrix
<Nullable
<IPivotTableCellData
>>
markDirty()
markDirty(unitId, subUnitId): void
Defined in: packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:272
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
void
updateRenderCache()
updateRenderCache(config):
| undefined
| {
matrix: ObjectMatrix<Nullable<IPivotTableCellData>>;
rangeCache: undefined | IPivotRangesInfo;
}
Defined in: packages/sheets-pivot/src/models/sheets-pivot-table-adaptor-model.ts:48
Parameters
Parameter | Type |
---|---|
config | IPivotTableConfigChangeInfo |
Returns
| undefined
| {
matrix
: ObjectMatrix
<Nullable
<IPivotTableCellData
>>;
rangeCache
: undefined
| IPivotRangesInfo
;
}