@univerjs-proengine-pivotReadme

@univerjs-pro/engine-pivot v0.5.4


@univerjs-pro/engine-pivot

Enumerations

EnumerationDescription
PivotCellStyleTypeEnumRepresents the pivot cell style type enum
PivotDataFieldDataTypeEnumEnum for pivot table data field types.
PivotDataFieldSortOperatorEnumEnum for pivot table data field sort types.
PivotDataFieldSortTypeEnumRepresents the sort types for pivot data fields.
PivotErrorTypeEnumEnum for pivot table error types.
PivotFilterTypeEnumEnum for pivot table data field types.
PivotLayoutTypeEnumEnum for pivot table layout types.
PivotShowAsTypeEnumEnum for pivot table show as types.
PivotSubtotalTypeEnumEnum for pivot table subtotal types.
PivotTableChangeTypeEnumRepresents the change type of the pivot table.
PivotTableFiledAreaEnumEnum for pivot table field types.
PivotTableValuePositionEnumEnum for pivot table value field position types. in the pivot table, the value field can be placed in the column or row field.
PivotViewCellValueTypeEnum-
ST_PivotFilterOperatorEnumEnum for IST_PivotFilter Operator

Classes

ClassDescription
DataFieldRepresents a data field in a pivot table , it match the excel pivot cache field data structure.
DataFieldManager-
FieldsCollectionRepresents the collection of fields in the pivot table. which one to one with a pivot table.
LabelViewItem-
PageViewItem-
PivotModelPivotModel represents a config model for a pivot table.
PivotTablePivotTable - represents the wrapper class pivot table.
PivotTableFieldBaseRepresents a base class for the field in a pivot table.
PivotTableLabelFieldRepresents a label field in a pivot table.
PivotTableValueFieldRepresents a base class for the field in a pivot table.
PivotTuplePivotTuple
PivotViewPivotView
PivotViewItem-
SummaryManager-

Interfaces

InterfaceDescription
IColumnNodeSizeInfo-
IDataFieldInfo-
IDataFieldJSONRepresents the data field serialized to JSON data structure.
IDataFieldManagerBaseJSON-
IDateValue-
IDimensionMapItem-
IFieldsCollectionJSON-
ILabelViewHeaderMapItem-
ILabelViewItemJSON-
IMeasuresMapItem-
IMeasureTupleItem-
INodeSizeInfo-
IPageViewItemJSON-
IPageViewItemRange-
IPivotField-
IPivotLayoutCtx-
IPivotSummaryLevelPool-
IPivotSummaryLevelPoolItem-
IPivotTableAddFieldChangeThe change of adding field to the pivot table.
IPivotTableCustomFilter-
IPivotTableLabelFieldJSON-
IPivotTableLabelFieldQueryDataRepresents the query data for a label field in a pivot table.
IPivotTableLabelSortInfo-
IPivotTableManualFilterRepresents the Pivot Table Manual Filter info
IPivotTableMeasureDataRepresents the query data for a measure field in a pivot table.
IPivotTableOptionsRepresents the data structure for a pivot table config, which is match CT_pivotTableDefinition
IPivotTableQueryDataRepresents the data structure for a pivot table query.
IPivotTableRemoveFieldChangeThe change of removing field from the pivot table.
IPivotTableRenameFieldChangeThe change of renaming the field in the pivot table.
IPivotTableSetCollapseChangeThe change of setting collapse to the field in the pivot table.
IPivotTableSetFilterInfoChangeThe change of setting filter information to the field in the pivot table.
IPivotTableSetFormatChangeThe change of setting format to the field in the pivot table.
IPivotTableSetOptionsChangeThe change of setting options to the pivot table.
IPivotTableSetSortInfoChangeThe change of setting sort information to the field in the pivot table.
IPivotTableSetSubtotalTypeChangeThe change of setting subtotal type to the field in the pivot table.
IPivotTableShowDataAsInfo-
IPivotTableSnapshotRepresents a snapshot of a pivot table.
IPivotTableUpdatePositionChangeThe change of updating field position in the pivot table.
IPivotTableUpdateValuePositionChangeThe change of updating value position in the pivot table.
IPivotTableValueFieldJSON-
IPivotTableValueFieldQueryDataRepresents the query data for a value field in a pivot table.
IPivotTableValueFilter-
IPivotTableValueSortInfo-
IPivotTuple-
IPivotUpdateSourceChangeThe change of updating source of the field in the pivot table.
IPivotViewCellData-
IPivotViewErrorValue-
IPivotViewInfoRepresents the pivot view info data structure, which is used to store row /col path and value index
IPivotViewItemData-
IPivotViewItemJSON-
IPivotViewJSON-
IPivotViewPrefixValue-
IRowNodeSizeInfo-
ITPivotTupleInfo-
ITupleItem-

Type Aliases

Type aliasDescription
IDataFieldValueRepresents the value of a data field in a pivot table data field
IPivotTableChangeSet-
IPivotTableFilterInfo-
IPivotTableSortInfo-
IPivotViewValueType-
ITupleItemSummary-

Functions

FunctionDescription
cloneLabelFieldToValueFieldClone the label field to a value field.
cloneValueFieldToLabelFieldClone the value field to a label field.
createLabelField- Create a label field from the JSON data.
createValueField- Create a value field from the JSON data.
generateHexNumber- Generate a random hex number text with specified length
getAutoDisplayName- Get the auto display name of the value field.
isCustomFilter-judge the filter info is customFilter filter
isDateValue- judge the value is date like type
isErrorValuejudge the value is the error value, it will be a error value when the show data as or the product bigger than the max value of number in javascript
isManualFilter-judge the filter info is manual filter
isPrefixValuejudge the value is the prefix value, once when the value is a subtotal and there are multiple value field, the value will be the prefix value
isValueFilter-judge the filter info is customFilter filter