Class: Expression

Expression


new Expression(expressionStr)

Represents a transformation expression

Parameters:
Name Type Description
expressionStr string

a expression in string format

Methods


.aspectRatio()

Returns:

a new expression with the predefined variable "aspectRatio"


.currentPage()

Returns:

a new expression with the predefined variable "currentPage"


.faceCount()

Returns:

a new expression with the predefined variable "faceCount"


.height()

Returns:

a new expression with the predefined variable "height"


.initialAspectRatio()

Returns:

a new expression with the predefined variable "initialAspectRatio"


.initialHeight()

Returns:

a new expression with the predefined variable "initialHeight"


.initialWidth()

Returns:

a new expression with the predefined variable "initialWidth"


.new()

Convenience constructor method


.pageCount()

Returns:

a new expression with the predefined variable "pageCount"


.pageX()

Returns:

a new expression with the predefined variable "pageX"


.pageY()

Returns:

a new expression with the predefined variable "pageY"


.tags()

Returns:

a new expression with the predefined variable "tags"


.width()

Returns:

a new expression with the predefined variable "width"


#and()


#aspectRatio(operator, value)

Parameters:
Name Type Description
operator string

the comparison operator (e.g. "<", "lt")

value string | number

the right hand side value

Returns: Expression

this expression

Type
Expression

#faces(operator, value)

Parameters:
Name Type Description
operator string

the comparison operator (e.g. "<", "lt")

value string | number

the right hand side value

Returns: Expression

this expression

Type
Expression

#height(operator, value)

Parameters:
Name Type Description
operator string

the comparison operator (e.g. "<", "lt")

value string | number

the right hand side value

Returns: Expression

this expression

Type
Expression

#or()


#pages(operator, value)

Parameters:
Name Type Description
operator string

the comparison operator (e.g. "<", "lt")

value string | number

the right hand side value

Returns: Expression

this expression

Type
Expression

#predicate()

Add a expression


#then()

Conclude expression

Returns: Transformation

the transformation this expression is defined for

Type
Transformation

#width(operator, value)

Parameters:
Name Type Description
operator string

the comparison operator (e.g. "<", "lt")

value string | number

the right hand side value

Returns: Expression

this expression

Type
Expression