@univerjs-pro/engine-formula v0.5.4
Class: BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:35
Extends
ObjectClassType
Extended by
ArrayValueObject
ErrorValueObject
BooleanValueObject
NullValueObject
NumberValueObject
StringValueObject
LambdaValueObjectObject
Constructors
new BaseValueObject()
new BaseValueObject(_rawValue): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:36
Parameters
Parameter | Type |
---|---|
_rawValue | string | number | boolean |
Returns
Overrides
ObjectClassType.constructor
Properties
Property | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|
pattern | string | '' | ObjectClassType.pattern | submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:18 |
Methods
abs()
abs(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:422
Returns
acos()
acos(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:305
Returns
acosh()
acosh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:310
Returns
asin()
asin(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:325
Returns
asinh()
asinh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:330
Returns
atan()
atan(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:345
Returns
atan2()
atan2(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:350
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
atan2Inverse()
atan2Inverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:355
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
atanh()
atanh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:360
Returns
cbrt()
cbrt(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:290
Returns
ceil()
ceil(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:447
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
ceilInverse()
ceilInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:452
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
compare()
compare(
valueObject,
operator,
isCaseSensitive): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:180
Parameters
Parameter | Type | Default value |
---|---|---|
valueObject | BaseValueObject | undefined |
operator | compareToken | undefined |
isCaseSensitive | boolean | false |
Returns
compareBy()
compareBy(value, operator): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:244
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
operator | compareToken |
Returns
concatenate()
concatenate(value, concatenateType): string
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:249
Parameters
Parameter | Type | Default value |
---|---|---|
value | string | number | boolean | undefined |
concatenateType | ConcatenateType | ConcatenateType.FRONT |
Returns
string
concatenateBack()
concatenateBack(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:214
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
concatenateFront()
concatenateFront(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:209
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
convertToBooleanObjectValue()
convertToBooleanObjectValue(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:462
Returns
convertToNumberObjectValue()
convertToNumberObjectValue(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:457
Returns
cos()
cos(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:295
Returns
cosh()
cosh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:300
Returns
count()
count(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:115
Returns
countA()
countA(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:119
Returns
countBlank()
countBlank(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:123
Returns
dispose()
dispose(): void
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:20
Returns
void
Inherited from
ObjectClassType.dispose
divided()
divided(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:150
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
dividedBy()
dividedBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:234
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
exp()
exp(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:417
Returns
floor()
floor(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:437
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
floorInverse()
floorInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:442
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
getArrayValue()
getArrayValue(): Nullable<BaseValueObject>[][]
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:62
Returns
Nullable
<BaseValueObject
>[][]
getNegative()
getNegative(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:127
Returns
getPattern()
getPattern(): string
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:24
Returns
string
Inherited from
ObjectClassType.getPattern
getReciprocal()
getReciprocal(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:131
Returns
getValue()
getValue(): string | number | boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:57
Returns
string
| number
| boolean
isArray()
isArray(): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:52
Returns
boolean
Inherited from
ObjectClassType.isArray
isAsyncArrayObject()
isAsyncArrayObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:44
Returns
boolean
Inherited from
ObjectClassType.isAsyncArrayObject
isAsyncObject()
isAsyncObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:40
Returns
boolean
Inherited from
ObjectClassType.isAsyncObject
isBoolean()
isBoolean(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:87
Returns
boolean
isCube()
isCube(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:75
Returns
boolean
isEqual()
isEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:185
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
isEqualType()
isEqualType(object): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:60
Parameters
Parameter | Type |
---|---|
object | ObjectClassType |
Returns
boolean
Inherited from
ObjectClassType.isEqualType
isError()
isError(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:95
Returns
boolean
Overrides
ObjectClassType.isError
isGreaterThan()
isGreaterThan(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:205
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
isGreaterThanOrEqual()
isGreaterThanOrEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:193
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
isLambda()
isLambda(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:91
Returns
boolean
isLessThan()
isLessThan(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:201
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
isLessThanOrEqual()
isLessThanOrEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:197
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
isNotEqual()
isNotEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:189
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
isNull()
isNull(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:99
Returns
boolean
isNumber()
isNumber(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:83
Returns
boolean
isReferenceObject()
isReferenceObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:48
Returns
boolean
Inherited from
ObjectClassType.isReferenceObject
isString()
isString(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:79
Returns
boolean
isValueObject()
isValueObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:40
Returns
boolean
Overrides
ObjectClassType.isValueObject
log()
log(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:407
Returns
log10()
log10(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:412
Returns
map()
map(callbackFn): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:165
return every value in the array after the callback function, excluding the error value
Parameters
Parameter | Type |
---|---|
callbackFn | callbackMapFnType |
Returns
mapValue()
mapValue(callbackFn): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:175
return every value in the array after the callback function
Parameters
Parameter | Type |
---|---|
callbackFn | callbackMapFnType |
Returns
max()
max(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:107
Returns
mean()
mean(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:371
Calculate the mean of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.mean.html#numpy.mean
Returns
median()
median(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:382
Calculate the median of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.median.html
Returns
min()
min(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:111
Returns
minus()
minus(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:140
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
minusBy()
minusBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:224
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
mod()
mod(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:155
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
modInverse()
modInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:239
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
multiply()
multiply(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:145
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
multiplyBy()
multiplyBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:229
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
plus()
plus(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:135
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
plusBy()
plusBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:219
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
pow()
pow(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:275
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
powInverse()
powInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:280
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
round()
round(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:427
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
roundInverse()
roundInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:432
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
setArrayValue()
setArrayValue(value): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:71
Parameters
Parameter | Type |
---|---|
value | BaseValueObject [][] |
Returns
void
setPattern()
setPattern(pattern): void
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:32
Only used in NumberValueObject
Parameters
Parameter | Type |
---|---|
pattern | string |
Returns
void
Inherited from
ObjectClassType.setPattern
setValue()
setValue(value): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:67
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
void
sin()
sin(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:315
Returns
sinh()
sinh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:320
Returns
sqrt()
sqrt(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:285
Returns
std()
std(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:402
Calculate the standard deviation of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.std.html
Returns
sum()
sum(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:103
Returns
tan()
tan(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:335
Returns
tanh()
tanh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:340
Returns
toUnitRange()
toUnitRange(): {
range: {
endColumn: number;
endRow: number;
startColumn: number;
startRow: number;
};
sheetId: string;
unitId: string;
}
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:44
Returns
{
range: {
endColumn: number;
endRow: number;
startColumn: number;
startRow: number;
};
sheetId: string;
unitId: string;
}
var()
var(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:392
Calculate the variance of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.var.html