@univerjs/engine-formula v0.4.2 • Docs
Class: BaseReferenceObject
Extends
ObjectClassType
Extended by
Constructors
new BaseReferenceObject()
new BaseReferenceObject(_token): BaseReferenceObject
Parameters
Parameter | Type |
---|---|
_token | string |
Returns
Overrides
ObjectClassType.constructor
Defined in
packages/engine-formula/src/engine/reference-object/base-reference-object.ts:77 (opens in a new tab)
Properties
Property | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|
pattern | string | '' | ObjectClassType.pattern | packages/engine-formula/src/basics/object-class-type.ts:18 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Overrides
ObjectClassType.dispose
Defined in
packages/engine-formula/src/engine/reference-object/base-reference-object.ts:81 (opens in a new tab)
getActiveSheetColumnCount()
getActiveSheetColumnCount(): number
Returns
number
Defined in
getActiveSheetRowCount()
getActiveSheetRowCount(): number
Returns
number
Defined in
getArrayFormulaCellData()
getArrayFormulaCellData(): IRuntimeUnitDataType
Returns
Defined in
getCellByColumn()
getCellByColumn(column):
| ErrorValueObject
| NullValueObject
| NumberValueObject
| BooleanValueObject
| StringValueObject
| ArrayValueObject
Parameters
Parameter | Type |
---|---|
column | number |
Returns
| ErrorValueObject
| NullValueObject
| NumberValueObject
| BooleanValueObject
| StringValueObject
| ArrayValueObject
Defined in
getCellByPosition()
getCellByPosition(rowRaw?, columnRaw?):
| ErrorValueObject
| NullValueObject
| NumberValueObject
| BooleanValueObject
| StringValueObject
| ArrayValueObject
Parameters
Parameter | Type |
---|---|
rowRaw ? | number |
columnRaw ? | number |
Returns
| ErrorValueObject
| NullValueObject
| NumberValueObject
| BooleanValueObject
| StringValueObject
| ArrayValueObject
Defined in
getCellByRow()
getCellByRow(row):
| ErrorValueObject
| NullValueObject
| NumberValueObject
| BooleanValueObject
| StringValueObject
| ArrayValueObject
Parameters
Parameter | Type |
---|---|
row | number |
Returns
| ErrorValueObject
| NullValueObject
| NumberValueObject
| BooleanValueObject
| StringValueObject
| ArrayValueObject
Defined in
getCellData()
getCellData(row, column): Nullable<ICellData>
Parameters
Parameter | Type |
---|---|
row | number |
column | number |
Returns
Defined in
getCellPattern()
getCellPattern(
unitId,
sheetId,
row,
column): string
Get the pattern of the cell
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
row | number |
column | number |
Returns
string
Defined in
getCellValueObject()
getCellValueObject(cell):
| ErrorValueObject
| NullValueObject
| NumberValueObject
| BooleanValueObject
| StringValueObject
| ArrayValueObject
Parameters
Parameter | Type |
---|---|
cell | ICellData |
Returns
| ErrorValueObject
| NullValueObject
| NumberValueObject
| BooleanValueObject
| StringValueObject
| ArrayValueObject
Defined in
getColumnCount()
getColumnCount(): number
Returns
number
Defined in
getColumnData()
getColumnData(): IObjectArrayPrimitiveType<Partial<IColumnData>>
Returns
IObjectArrayPrimitiveType
<Partial
<IColumnData
>>
Defined in
getCurrentActiveArrayFormulaCellData()
getCurrentActiveArrayFormulaCellData(): undefined | ObjectMatrix<Nullable<ICellData>>
Returns
undefined
| ObjectMatrix
<Nullable
<ICellData
>>
Defined in
getCurrentActiveSheetData()
getCurrentActiveSheetData(): ISheetItem
Returns
ISheetItem
Defined in
getCurrentRuntimeActiveArrayFormulaCellData()
getCurrentRuntimeActiveArrayFormulaCellData(): undefined | ObjectMatrix<Nullable<ICellData>>
Returns
undefined
| ObjectMatrix
<Nullable
<ICellData
>>
Defined in
getCurrentRuntimeSheetData()
getCurrentRuntimeSheetData(): undefined | ObjectMatrix<Nullable<ICellData>>
Returns
undefined
| ObjectMatrix
<Nullable
<ICellData
>>
Defined in
getCurrentStylesData()
getCurrentStylesData(): Styles
Returns
Defined in
getDefaultSheetId()
getDefaultSheetId(): string
Returns
string
Defined in
getDefaultUnitId()
getDefaultUnitId(): string
Returns
string
Defined in
getFirstCell()
getFirstCell():
| ErrorValueObject
| NullValueObject
| NumberValueObject
| BooleanValueObject
| StringValueObject
| ArrayValueObject
Returns
| ErrorValueObject
| NullValueObject
| NumberValueObject
| BooleanValueObject
| StringValueObject
| ArrayValueObject
Defined in
getForcedSheetId()
getForcedSheetId(): Nullable<string>
Returns
Nullable
<string
>
Defined in
getForcedSheetName()
getForcedSheetName(): string
Returns
string
Defined in
getForcedUnitId()
getForcedUnitId(): string
Returns
string
Defined in
getPattern()
getPattern(): string
Returns
string
Inherited from
ObjectClassType.getPattern
Defined in
packages/engine-formula/src/basics/object-class-type.ts:24 (opens in a new tab)
getRangeData()
getRangeData(): IRange
Returns
Defined in
getRangePosition()
getRangePosition(): {
endAbsoluteRefType: AbsoluteRefType;
endColumn: number;
endRow: number;
rangeType: RANGE_TYPE;
sheetId: string;
startAbsoluteRefType: AbsoluteRefType;
startColumn: number;
startRow: number;
unitId: string;
}
Returns
{
endAbsoluteRefType: AbsoluteRefType;
endColumn: number;
endRow: number;
rangeType: RANGE_TYPE;
sheetId: string;
startAbsoluteRefType: AbsoluteRefType;
startColumn: number;
startRow: number;
unitId: string;
}
Defined in
getRefOffset()
getRefOffset(): {
x: number;
y: number;
}
Returns
{
x: number;
y: number;
}
Defined in
getRowCount()
getRowCount(): number
Returns
number
Defined in
getRowData()
getRowData(): IObjectArrayPrimitiveType<Partial<IRowData>>
Returns
IObjectArrayPrimitiveType
<Partial
<IRowData
>>
Defined in
getRuntimeArrayFormulaCellData()
getRuntimeArrayFormulaCellData(): IRuntimeUnitDataType
Returns
Defined in
getRuntimeData()
getRuntimeData(): IRuntimeUnitDataType
Returns
Defined in
getRuntimeFeatureCellData()
getRuntimeFeatureCellData(): {}
Returns
{}
Defined in
getRuntimeFeatureCellValue()
getRuntimeFeatureCellValue(row, column): undefined | ICellData
Parameters
Parameter | Type |
---|---|
row | number |
column | number |
Returns
undefined
| ICellData
Defined in
getSheetId()
getSheetId(): string
Returns
string
Defined in
getToken()
getToken(): string
Returns
string
Defined in
packages/engine-formula/src/engine/reference-object/base-reference-object.ts:89 (opens in a new tab)
getUnitData()
getUnitData(): IUnitData
Returns
Defined in
getUnitId()
getUnitId(): string
Returns
string
Defined in
getUnitStylesData()
getUnitStylesData(): IUnitStylesData
Returns
IUnitStylesData
Defined in
isArray()
isArray(): boolean
Returns
boolean
Inherited from
ObjectClassType.isArray
Defined in
packages/engine-formula/src/basics/object-class-type.ts:52 (opens in a new tab)
isAsyncArrayObject()
isAsyncArrayObject(): boolean
Returns
boolean
Inherited from
ObjectClassType.isAsyncArrayObject
Defined in
packages/engine-formula/src/basics/object-class-type.ts:44 (opens in a new tab)
isAsyncObject()
isAsyncObject(): boolean
Returns
boolean
Inherited from
ObjectClassType.isAsyncObject
Defined in
packages/engine-formula/src/basics/object-class-type.ts:40 (opens in a new tab)
isCell()
isCell(): boolean
Returns
boolean
Defined in
isColumn()
isColumn(): boolean
Returns
boolean
Defined in
isEqualType()
isEqualType(object): boolean
Parameters
Parameter | Type |
---|---|
object | ObjectClassType |
Returns
boolean
Inherited from
ObjectClassType.isEqualType
Defined in
packages/engine-formula/src/basics/object-class-type.ts:60 (opens in a new tab)
isError()
isError(): boolean
Returns
boolean
Inherited from
ObjectClassType.isError
Defined in
packages/engine-formula/src/basics/object-class-type.ts:36 (opens in a new tab)
isExceedRange()
isExceedRange(): boolean
Returns
boolean
Defined in
packages/engine-formula/src/engine/reference-object/base-reference-object.ts:97 (opens in a new tab)
isRange()
isRange(): boolean
Returns
boolean
Defined in
isReferenceObject()
isReferenceObject(): boolean
Returns
boolean
Overrides
ObjectClassType.isReferenceObject
Defined in
isRow()
isRow(): boolean
Returns
boolean
Defined in
isTable()
isTable(): boolean
Returns
boolean
Defined in
isValueObject()
isValueObject(): boolean
Returns
boolean
Inherited from
ObjectClassType.isValueObject
Defined in
packages/engine-formula/src/basics/object-class-type.ts:56 (opens in a new tab)
iterator()
iterator(callback): Nullable<boolean>
Parameters
Parameter | Type |
---|---|
callback | (valueObject , rowIndex , columnIndex ) => Nullable <boolean > |
Returns
Nullable
<boolean
>
Defined in
setArrayFormulaCellData()
setArrayFormulaCellData(unitData): void
Parameters
Parameter | Type |
---|---|
unitData | IRuntimeUnitDataType |
Returns
void
Defined in
setDefaultSheetId()
setDefaultSheetId(sheetId): void
Parameters
Parameter | Type |
---|---|
sheetId | string |
Returns
void
Defined in
setDefaultUnitId()
setDefaultUnitId(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Defined in
setForcedSheetId()
setForcedSheetId(sheetNameMap): void
Parameters
Parameter | Type |
---|---|
sheetNameMap | IUnitSheetNameMap |
Returns
void
Defined in
setForcedSheetIdDirect()
setForcedSheetIdDirect(sheetId): void
Parameters
Parameter | Type |
---|---|
sheetId | string |
Returns
void
Defined in
setForcedSheetName()
setForcedSheetName(sheetName): void
Parameters
Parameter | Type |
---|---|
sheetName | string |
Returns
void
Defined in
setForcedUnitIdDirect()
setForcedUnitIdDirect(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Defined in
setPattern()
setPattern(pattern): void
Only used in NumberValueObject
Parameters
Parameter | Type |
---|---|
pattern | string |
Returns
void
Inherited from
ObjectClassType.setPattern
Defined in
packages/engine-formula/src/basics/object-class-type.ts:32 (opens in a new tab)
setRangeData()
setRangeData(range): void
Parameters
Parameter | Type |
---|---|
range | IRange |
Returns
void
Defined in
setRefOffset()
setRefOffset(x, y): void
Parameters
Parameter | Type | Default value |
---|---|---|
x | number | 0 |
y | number | 0 |
Returns
void
Defined in
setRuntimeArrayFormulaCellData()
setRuntimeArrayFormulaCellData(unitData): void
Parameters
Parameter | Type |
---|---|
unitData | IRuntimeUnitDataType |
Returns
void
Defined in
setRuntimeData()
setRuntimeData(runtimeData): void
Parameters
Parameter | Type |
---|---|
runtimeData | IRuntimeUnitDataType |
Returns
void
Defined in
setRuntimeFeatureCellData()
setRuntimeFeatureCellData(unitData): void
Parameters
Parameter | Type |
---|---|
unitData | object |
Returns
void
Defined in
setToken()
setToken(token): void
Parameters
Parameter | Type |
---|---|
token | string |
Returns
void
Defined in
packages/engine-formula/src/engine/reference-object/base-reference-object.ts:93 (opens in a new tab)
setUnitData()
setUnitData(unitData): void
Parameters
Parameter | Type |
---|---|
unitData | IUnitData |
Returns
void
Defined in
setUnitStylesData()
setUnitStylesData(unitStylesData): void
Parameters
Parameter | Type |
---|---|
unitStylesData | IUnitStylesData |
Returns
void
Defined in
toArrayValueObject()
toArrayValueObject(useCache): ArrayValueObject
Parameters
Parameter | Type | Default value |
---|---|---|
useCache | boolean | true |
Returns
Defined in
toUnitRange()
toUnitRange(): {
range: {
endAbsoluteRefType: AbsoluteRefType;
endColumn: number;
endRow: number;
rangeType: RANGE_TYPE;
sheetId: string;
startAbsoluteRefType: AbsoluteRefType;
startColumn: number;
startRow: number;
unitId: string;
};
sheetId: string;
unitId: string;
}
Returns
{
range: {
endAbsoluteRefType: AbsoluteRefType;
endColumn: number;
endRow: number;
rangeType: RANGE_TYPE;
sheetId: string;
startAbsoluteRefType: AbsoluteRefType;
startColumn: number;
startRow: number;
unitId: string;
};
sheetId: string;
unitId: string;
}
Defined in
unionBy()
unionBy(referenceObject): NodeValueType
Parameters
Parameter | Type |
---|---|
referenceObject | BaseReferenceObject |
Returns
NodeValueType
Defined in
unionRange()
unionRange(rangeData1, rangeData2): IRange
Parameters
Parameter | Type |
---|---|
rangeData1 | IRange |
rangeData2 | IRange |