@univerjs/engine-formula v0.5.0-beta.1Docs


Class: BooleanValueObject

Extends

Constructors

new BooleanValueObject()

new BooleanValueObject(rawValue): BooleanValueObject

Parameters

ParameterType
rawValueboolean

Returns

BooleanValueObject

Overrides

BaseValueObject.constructor

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:229

Properties

PropertyTypeDefault valueInherited fromDefined in
patternstring''BaseValueObject.patternsubmodules/univer/packages/engine-formula/src/basics/object-class-type.ts:18

Methods

abs()

abs(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.abs

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:410


acos()

acos(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.acos

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:354


acosh()

acosh(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.acosh

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:358


asin()

asin(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.asin

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:370


asinh()

asinh(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.asinh

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:374


atan()

atan(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.atan

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:386


atan2()

atan2(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.atan2

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:390


atan2Inverse()

atan2Inverse(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.atan2Inverse

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:355


atanh()

atanh(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.atanh

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:394


cbrt()

cbrt(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.cbrt

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:342


ceil()

ceil(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.ceil

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:422


ceilInverse()

ceilInverse(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.ceilInverse

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:452


compare()

compare(valueObject, operator): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject
operatorcompareToken

Returns

BaseValueObject

Overrides

BaseValueObject.compare

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:280


compareBy()

compareBy(value, operator): BaseValueObject

Parameters

ParameterType
valuestring | number | boolean
operatorcompareToken

Returns

BaseValueObject

Overrides

BaseValueObject.compareBy

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:291


concatenate()

concatenate(value, concatenateType): string

Parameters

ParameterTypeDefault value
valuestring | number | booleanundefined
concatenateTypeConcatenateTypeConcatenateType.FRONT

Returns

string

Inherited from

BaseValueObject.concatenate

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:249


concatenateBack()

concatenateBack(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.concatenateBack

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:321


concatenateFront()

concatenateFront(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.concatenateFront

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:317


convertToBooleanObjectValue()

convertToBooleanObjectValue(): BooleanValueObject

Returns

BooleanValueObject

Overrides

BaseValueObject.convertToBooleanObjectValue

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:430


convertToNumberObjectValue()

convertToNumberObjectValue(): ErrorValueObject | NumberValueObject

Returns

ErrorValueObject | NumberValueObject

Overrides

BaseValueObject.convertToNumberObjectValue

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:426


cos()

cos(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.cos

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:346


cosh()

cosh(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.cosh

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:350


count()

count(): BaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.count

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:115


countA()

countA(): BaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.countA

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:119


countBlank()

countBlank(): BaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.countBlank

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:123


dispose()

dispose(): void

Returns

void

Inherited from

BaseValueObject.dispose

Defined in

submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:20


divided()

divided(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.divided

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:272


dividedBy()

dividedBy(value): BaseValueObject

Parameters

ParameterType
valuestring | number | boolean

Returns

BaseValueObject

Inherited from

BaseValueObject.dividedBy

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:234


exp()

exp(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.exp

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:406


floor()

floor(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.floor

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:418


floorInverse()

floorInverse(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.floorInverse

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:442


getArrayValue()

getArrayValue(): Nullable<BaseValueObject>[][]

Returns

Nullable<BaseValueObject>[][]

Inherited from

BaseValueObject.getArrayValue

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:62


getNegative()

getNegative(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.getNegative

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:243


getPattern()

getPattern(): string

Returns

string

Inherited from

BaseValueObject.getPattern

Defined in

submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:24


getReciprocal()

getReciprocal(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.getReciprocal

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:252


getValue()

getValue(): boolean

Returns

boolean

Overrides

BaseValueObject.getValue

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:235


isArray()

isArray(): boolean

Returns

boolean

Inherited from

BaseValueObject.isArray

Defined in

submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:52


isAsyncArrayObject()

isAsyncArrayObject(): boolean

Returns

boolean

Inherited from

BaseValueObject.isAsyncArrayObject

Defined in

submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:44


isAsyncObject()

isAsyncObject(): boolean

Returns

boolean

Inherited from

BaseValueObject.isAsyncObject

Defined in

submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:40


isBoolean()

isBoolean(): boolean

Returns

boolean

Overrides

BaseValueObject.isBoolean

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:239


isCube()

isCube(): boolean

Returns

boolean

Inherited from

BaseValueObject.isCube

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:75


isEqual()

isEqual(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.isEqual

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:185


isEqualType()

isEqualType(object): boolean

Parameters

ParameterType
objectObjectClassType

Returns

boolean

Inherited from

BaseValueObject.isEqualType

Defined in

submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:60


isError()

isError(): boolean

Returns

boolean

Inherited from

BaseValueObject.isError

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:95


isGreaterThan()

isGreaterThan(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.isGreaterThan

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:205


isGreaterThanOrEqual()

isGreaterThanOrEqual(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.isGreaterThanOrEqual

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:193


isLambda()

isLambda(): boolean

Returns

boolean

Inherited from

BaseValueObject.isLambda

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:91


isLessThan()

isLessThan(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.isLessThan

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:201


isLessThanOrEqual()

isLessThanOrEqual(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.isLessThanOrEqual

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:197


isNotEqual()

isNotEqual(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.isNotEqual

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:189


isNull()

isNull(): boolean

Returns

boolean

Inherited from

BaseValueObject.isNull

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:99


isNumber()

isNumber(): boolean

Returns

boolean

Inherited from

BaseValueObject.isNumber

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:83


isReferenceObject()

isReferenceObject(): boolean

Returns

boolean

Inherited from

BaseValueObject.isReferenceObject

Defined in

submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:48


isString()

isString(): boolean

Returns

boolean

Inherited from

BaseValueObject.isString

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:79


isValueObject()

isValueObject(): boolean

Returns

boolean

Inherited from

BaseValueObject.isValueObject

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:40


log()

log(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.log

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:398


log10()

log10(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.log10

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:402


map()

map(callbackFn): BaseValueObject

return every value in the array after the callback function, excluding the error value

Parameters

ParameterType
callbackFncallbackMapFnType

Returns

BaseValueObject

Inherited from

BaseValueObject.map

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:165


mapValue()

mapValue(callbackFn): BaseValueObject

return every value in the array after the callback function

Parameters

ParameterType
callbackFncallbackMapFnType

Returns

BaseValueObject

Inherited from

BaseValueObject.mapValue

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:175


max()

max(): BaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.max

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:107


mean()

mean(): BaseValueObject

Calculate the mean of the entire array.

reference https://numpy.org/doc/stable/reference/generated/numpy.mean.html#numpy.mean

Returns

BaseValueObject

Inherited from

BaseValueObject.mean

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:371


median()

median(): BaseValueObject

Calculate the median of the entire array.

reference https://numpy.org/doc/stable/reference/generated/numpy.median.html

Returns

BaseValueObject

Inherited from

BaseValueObject.median

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:382


min()

min(): BaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.min

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:111


minus()

minus(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.minus

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:264


minusBy()

minusBy(value): BaseValueObject

Parameters

ParameterType
valuestring | number | boolean

Returns

BaseValueObject

Inherited from

BaseValueObject.minusBy

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:224


mod()

mod(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.mod

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:276


modInverse()

modInverse(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.modInverse

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:239


multiply()

multiply(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.multiply

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:268


multiplyBy()

multiplyBy(value): BaseValueObject

Parameters

ParameterType
valuestring | number | boolean

Returns

BaseValueObject

Inherited from

BaseValueObject.multiplyBy

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:229


plus()

plus(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.plus

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:260


plusBy()

plusBy(value): BaseValueObject

Parameters

ParameterType
valuestring | number | boolean

Returns

BaseValueObject

Inherited from

BaseValueObject.plusBy

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:219


pow()

pow(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.pow

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:334


powInverse()

powInverse(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.powInverse

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:280


round()

round(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.round

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:414


roundInverse()

roundInverse(valueObject): BaseValueObject

Parameters

ParameterType
valueObjectBaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.roundInverse

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:432


setArrayValue()

setArrayValue(value): void

Parameters

ParameterType
valueBaseValueObject[][]

Returns

void

Inherited from

BaseValueObject.setArrayValue

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:71


setPattern()

setPattern(pattern): void

Only used in NumberValueObject

Parameters

ParameterType
patternstring

Returns

void

Inherited from

BaseValueObject.setPattern

Defined in

submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:32


setValue()

setValue(value): void

Parameters

ParameterType
valuestring | number | boolean

Returns

void

Inherited from

BaseValueObject.setValue

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:67


sin()

sin(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.sin

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:362


sinh()

sinh(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.sinh

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:366


sqrt()

sqrt(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.sqrt

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:338


std()

std(): BaseValueObject

Calculate the standard deviation of the entire array.

reference https://numpy.org/doc/stable/reference/generated/numpy.std.html

Returns

BaseValueObject

Inherited from

BaseValueObject.std

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:402


sum()

sum(): BaseValueObject

Returns

BaseValueObject

Inherited from

BaseValueObject.sum

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:103


tan()

tan(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.tan

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:378


tanh()

tanh(): BaseValueObject

Returns

BaseValueObject

Overrides

BaseValueObject.tanh

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:382


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: '';
}
NameTypeDefault valueDefined in
range{ endColumn: -1; endRow: -1; startColumn: -1; startRow: -1; }-submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:46
range.endColumnnumber-1submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:50
range.endRownumber-1submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:49
range.startColumnnumber-1submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:47
range.startRownumber-1submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:48
sheetIdstringsubmodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:52
unitIdstringsubmodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:53

Inherited from

BaseValueObject.toUnitRange

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:44


var()

var(): BaseValueObject

Calculate the variance of the entire array.

reference https://numpy.org/doc/stable/reference/generated/numpy.var.html

Returns

BaseValueObject

Inherited from

BaseValueObject.var

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:392


create()

static create(value): BooleanValueObject

Parameters

ParameterType
valueboolean

Returns

BooleanValueObject

Defined in

submodules/univer/packages/engine-formula/src/engine/value-object/primitive-object.ts:220