@univerjs/engine-formula v0.4.2 • Docs
Class: NullValueObject
Extends
Constructors
new NullValueObject()
new NullValueObject(_rawValue): NullValueObject
Parameters
Parameter | Type |
---|---|
_rawValue | string | number | boolean |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:36 (opens in a new tab)
Properties
Property | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|
pattern | string | '' | BaseValueObject .pattern | packages/engine-formula/src/basics/object-class-type.ts:18 (opens in a new tab) |
Methods
abs()
abs(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:188 (opens in a new tab)
acos()
acos(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:132 (opens in a new tab)
acosh()
acosh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:136 (opens in a new tab)
asin()
asin(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:148 (opens in a new tab)
asinh()
asinh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:152 (opens in a new tab)
atan()
atan(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:164 (opens in a new tab)
atan2()
atan2(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:168 (opens in a new tab)
atan2Inverse()
atan2Inverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:355 (opens in a new tab)
atanh()
atanh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:172 (opens in a new tab)
cbrt()
cbrt(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:120 (opens in a new tab)
ceil()
ceil(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:200 (opens in a new tab)
ceilInverse()
ceilInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:452 (opens in a new tab)
compare()
compare(valueObject, operator): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
operator | compareToken |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:62 (opens in a new tab)
compareBy()
compareBy(value, operator): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
operator | compareToken |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:102 (opens in a new tab)
concatenate()
concatenate(value, concatenateType): string
Parameters
Parameter | Type | Default value |
---|---|---|
value | string | number | boolean | undefined |
concatenateType | ConcatenateType | ConcatenateType.FRONT |
Returns
string
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:249 (opens in a new tab)
concatenateBack()
concatenateBack(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
BaseValueObject
.concatenateBack
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:79 (opens in a new tab)
concatenateFront()
concatenateFront(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
BaseValueObject
.concatenateFront
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:72 (opens in a new tab)
convertToBooleanObjectValue()
convertToBooleanObjectValue(): BooleanValueObject
Returns
Overrides
BaseValueObject
.convertToBooleanObjectValue
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:208 (opens in a new tab)
convertToNumberObjectValue()
convertToNumberObjectValue(): NumberValueObject
Returns
Overrides
BaseValueObject
.convertToNumberObjectValue
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:204 (opens in a new tab)
cos()
cos(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:124 (opens in a new tab)
cosh()
cosh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:128 (opens in a new tab)
count()
count(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:115 (opens in a new tab)
countA()
countA(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:119 (opens in a new tab)
countBlank()
countBlank(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:123 (opens in a new tab)
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
packages/engine-formula/src/basics/object-class-type.ts:20 (opens in a new tab)
divided()
divided(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:54 (opens in a new tab)
dividedBy()
dividedBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:98 (opens in a new tab)
exp()
exp(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:184 (opens in a new tab)
floor()
floor(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:196 (opens in a new tab)
floorInverse()
floorInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:442 (opens in a new tab)
getArrayValue()
getArrayValue(): Nullable<BaseValueObject>[][]
Returns
Nullable
<BaseValueObject
>[][]
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:62 (opens in a new tab)
getNegative()
getNegative(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:127 (opens in a new tab)
getPattern()
getPattern(): string
Returns
string
Inherited from
Defined in
packages/engine-formula/src/basics/object-class-type.ts:24 (opens in a new tab)
getReciprocal()
getReciprocal(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:131 (opens in a new tab)
getValue()
getValue(): string | number | boolean
Returns
string
| number
| boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:57 (opens in a new tab)
isArray()
isArray(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/basics/object-class-type.ts:52 (opens in a new tab)
isAsyncArrayObject()
isAsyncArrayObject(): boolean
Returns
boolean
Inherited from
BaseValueObject
.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
Defined in
packages/engine-formula/src/basics/object-class-type.ts:40 (opens in a new tab)
isBoolean()
isBoolean(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:87 (opens in a new tab)
isCube()
isCube(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:75 (opens in a new tab)
isEqual()
isEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:185 (opens in a new tab)
isEqualType()
isEqualType(object): boolean
Parameters
Parameter | Type |
---|---|
object | ObjectClassType |
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/basics/object-class-type.ts:60 (opens in a new tab)
isError()
isError(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:95 (opens in a new tab)
isGreaterThan()
isGreaterThan(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:205 (opens in a new tab)
isGreaterThanOrEqual()
isGreaterThanOrEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
BaseValueObject
.isGreaterThanOrEqual
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:193 (opens in a new tab)
isLambda()
isLambda(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:91 (opens in a new tab)
isLessThan()
isLessThan(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:201 (opens in a new tab)
isLessThanOrEqual()
isLessThanOrEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
BaseValueObject
.isLessThanOrEqual
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:197 (opens in a new tab)
isNotEqual()
isNotEqual(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:189 (opens in a new tab)
isNull()
isNull(): boolean
Returns
boolean
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:38 (opens in a new tab)
isNumber()
isNumber(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:83 (opens in a new tab)
isReferenceObject()
isReferenceObject(): boolean
Returns
boolean
Inherited from
BaseValueObject
.isReferenceObject
Defined in
packages/engine-formula/src/basics/object-class-type.ts:48 (opens in a new tab)
isString()
isString(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:79 (opens in a new tab)
isValueObject()
isValueObject(): boolean
Returns
boolean
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:40 (opens in a new tab)
log()
log(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:176 (opens in a new tab)
log10()
log10(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:180 (opens in a new tab)
map()
map(callbackFn): BaseValueObject
return every value in the array after the callback function, excluding the error value
Parameters
Parameter | Type |
---|---|
callbackFn | callbackMapFnType |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:165 (opens in a new tab)
mapValue()
mapValue(callbackFn): BaseValueObject
return every value in the array after the callback function
Parameters
Parameter | Type |
---|---|
callbackFn | callbackMapFnType |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:175 (opens in a new tab)
max()
max(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:107 (opens in a new tab)
mean()
mean(): BaseValueObject
Calculate the mean of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.mean.html#numpy.mean (opens in a new tab)
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:371 (opens in a new tab)
median()
median(): BaseValueObject
Calculate the median of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.median.html (opens in a new tab)
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:382 (opens in a new tab)
min()
min(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:111 (opens in a new tab)
minus()
minus(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:46 (opens in a new tab)
minusBy()
minusBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:90 (opens in a new tab)
mod()
mod(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:58 (opens in a new tab)
modInverse()
modInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:239 (opens in a new tab)
multiply()
multiply(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:50 (opens in a new tab)
multiplyBy()
multiplyBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:94 (opens in a new tab)
plus()
plus(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:42 (opens in a new tab)
plusBy()
plusBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:86 (opens in a new tab)
pow()
pow(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:112 (opens in a new tab)
powInverse()
powInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:280 (opens in a new tab)
round()
round(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:192 (opens in a new tab)
roundInverse()
roundInverse(valueObject): BaseValueObject
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:432 (opens in a new tab)
setArrayValue()
setArrayValue(value): void
Parameters
Parameter | Type |
---|---|
value | BaseValueObject [][] |
Returns
void
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:71 (opens in a new tab)
setPattern()
setPattern(pattern): void
Only used in NumberValueObject
Parameters
Parameter | Type |
---|---|
pattern | string |
Returns
void
Inherited from
Defined in
packages/engine-formula/src/basics/object-class-type.ts:32 (opens in a new tab)
setValue()
setValue(value): void
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
void
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:67 (opens in a new tab)
sin()
sin(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:140 (opens in a new tab)
sinh()
sinh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:144 (opens in a new tab)
sqrt()
sqrt(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:116 (opens in a new tab)
std()
std(): BaseValueObject
Calculate the standard deviation of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.std.html (opens in a new tab)
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:402 (opens in a new tab)
sum()
sum(): BaseValueObject
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:103 (opens in a new tab)
tan()
tan(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:156 (opens in a new tab)
tanh()
tanh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:160 (opens in a new tab)
toUnitRange()
toUnitRange(): {
range: {
endColumn: -1;
endRow: -1;
startColumn: -1;
startRow: -1;
};
sheetId: '';
unitId: '';
}
Returns
{
range: {
endColumn: -1;
endRow: -1;
startColumn: -1;
startRow: -1;
};
sheetId: '';
unitId: '';
}
Name | Type | Default value | Defined in |
---|---|---|---|
range | { endColumn : -1 ; endRow : -1 ; startColumn : -1 ; startRow : -1 ; } | - | packages/engine-formula/src/engine/value-object/base-value-object.ts:46 (opens in a new tab) |
range.endColumn | number | -1 | packages/engine-formula/src/engine/value-object/base-value-object.ts:50 (opens in a new tab) |
range.endRow | number | -1 | packages/engine-formula/src/engine/value-object/base-value-object.ts:49 (opens in a new tab) |
range.startColumn | number | -1 | packages/engine-formula/src/engine/value-object/base-value-object.ts:47 (opens in a new tab) |
range.startRow | number | -1 | packages/engine-formula/src/engine/value-object/base-value-object.ts:48 (opens in a new tab) |
sheetId | string | '' | packages/engine-formula/src/engine/value-object/base-value-object.ts:52 (opens in a new tab) |
unitId | string | '' | packages/engine-formula/src/engine/value-object/base-value-object.ts:53 (opens in a new tab) |
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:44 (opens in a new tab)
var()
var(): BaseValueObject
Calculate the variance of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.var.html (opens in a new tab)
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:392 (opens in a new tab)
create()
static create(): NullValueObject
Returns
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:33 (opens in a new tab)