@univerjs/engine-formula v0.4.2 • Docs
Class: BooleanValueObject
Extends
Constructors
new BooleanValueObject()
new BooleanValueObject(rawValue): BooleanValueObject
Parameters
Parameter | Type |
---|---|
rawValue | boolean |
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:229 (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:410 (opens in a new tab)
acos()
acos(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:354 (opens in a new tab)
acosh()
acosh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:358 (opens in a new tab)
asin()
asin(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:370 (opens in a new tab)
asinh()
asinh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:374 (opens in a new tab)
atan()
atan(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:386 (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:390 (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:394 (opens in a new tab)
cbrt()
cbrt(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:342 (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:422 (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:280 (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:291 (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:321 (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:317 (opens in a new tab)
convertToBooleanObjectValue()
convertToBooleanObjectValue(): BooleanValueObject
Returns
Overrides
BaseValueObject
.convertToBooleanObjectValue
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:430 (opens in a new tab)
convertToNumberObjectValue()
convertToNumberObjectValue(): ErrorValueObject | NumberValueObject
Returns
ErrorValueObject
| NumberValueObject
Overrides
BaseValueObject
.convertToNumberObjectValue
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:426 (opens in a new tab)
cos()
cos(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:346 (opens in a new tab)
cosh()
cosh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:350 (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:272 (opens in a new tab)
dividedBy()
dividedBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:234 (opens in a new tab)
exp()
exp(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:406 (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:418 (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
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:243 (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
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:252 (opens in a new tab)
getValue()
getValue(): boolean
Returns
boolean
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:235 (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
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:239 (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
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:99 (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:398 (opens in a new tab)
log10()
log10(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:402 (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:264 (opens in a new tab)
minusBy()
minusBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:224 (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:276 (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:268 (opens in a new tab)
multiplyBy()
multiplyBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:229 (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:260 (opens in a new tab)
plusBy()
plusBy(value): BaseValueObject
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Inherited from
Defined in
packages/engine-formula/src/engine/value-object/base-value-object.ts:219 (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:334 (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:414 (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:362 (opens in a new tab)
sinh()
sinh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:366 (opens in a new tab)
sqrt()
sqrt(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:338 (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:378 (opens in a new tab)
tanh()
tanh(): BaseValueObject
Returns
Overrides
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:382 (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(value): BooleanValueObject
Parameters
Parameter | Type |
---|---|
value | boolean |
Returns
Defined in
packages/engine-formula/src/engine/value-object/primitive-object.ts:220 (opens in a new tab)