Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LengthViewPropertyConstraint<V>

Type parameters

Hierarchy

Callable

  • LengthViewPropertyConstraint(): undefined | null | Length
  • LengthViewPropertyConstraint(state: undefined | null | AnyLength, precedence?: number): V
  • Returns undefined | null | Length

  • Parameters

    • state: undefined | null | AnyLength
    • Optional precedence: number

    Returns V

Index

Constructors

constructor

  • Type parameters

    Parameters

    • owner: V
    • propertyName: undefined | string

    Returns LengthViewPropertyConstraint<V>

Properties

Readonly coefficient

coefficient: number

Readonly conditionCount

conditionCount: number

Readonly constant

constant: number

Readonly id

id: number

Readonly inherit

inherit: string | boolean

Readonly name

name: string

Readonly ownState

ownState: undefined | null | Length

Readonly owner

owner: V

Readonly precedence

precedence: number

propertyFlags

propertyFlags: number

Readonly state

state: undefined | null | Length

Readonly strength

strength: number

Readonly subProperties

subProperties: null | ViewProperty<View, undefined | null | Length, never>[]

Readonly superName

superName: undefined | string

Readonly superProperty

superProperty: null | ViewProperty<View, undefined | null | Length, never>

Readonly superState

superState: undefined | null | Length

Readonly terms

Optional updateFlags

updateFlags: number

Readonly updatedState

updatedState: undefined | null | Length

Readonly variable

variable: null | ConstraintVariable

Methods

addConstraintCondition

  • Parameters

    Returns void

addSubProperty

  • Parameters

    Returns void

bindSuperProperty

  • bindSuperProperty(): void
  • Returns void

change

  • change(): void
  • Returns void

constrain

  • Parameters

    • Optional constrained: boolean

    Returns LengthViewPropertyConstraint<V>

didMount

  • didMount(): void
  • Returns void

didSetPrecedence

  • didSetPrecedence(newPrecedence: number, oldPrecedence: number): void
  • Parameters

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

didSetState

  • didSetState(newState: undefined | null | Length, oldState: undefined | null | Length): void
  • Parameters

    • newState: undefined | null | Length
    • oldState: undefined | null | Length

    Returns void

didStartConstraining

  • didStartConstraining(): void
  • Returns void

didStopConstraining

  • didStopConstraining(): void
  • Returns void

didUnmount

  • didUnmount(): void
  • Returns void

divide

  • Parameters

    • scalar: number

    Returns ConstraintExpression

evaluateConstraintVariable

  • evaluateConstraintVariable(): void
  • Returns void

fromAny

  • Parameters

    Returns undefined | null | Length

getState

  • Returns Length

getStateOr

  • getStateOr<E>(elseState: E): Length | E
  • Type parameters

    • E

    Parameters

    • elseState: E

    Returns Length | E

isConstant

  • isConstant(): boolean
  • Returns boolean

isConstrained

  • isConstrained(): boolean
  • Returns boolean

isConstraining

  • isConstraining(): boolean
  • Returns boolean

isDummy

  • isDummy(): boolean
  • Returns boolean

isExternal

  • isExternal(): boolean
  • Returns boolean

isInherited

  • isInherited(): boolean
  • Returns boolean

isInvalid

  • isInvalid(): boolean
  • Returns boolean

isMounted

  • isMounted(): boolean
  • Returns boolean

isUpdated

  • isUpdated(): boolean
  • Returns boolean

minus

mount

  • mount(): void
  • Returns void

negative

  • Returns ConstraintTerm

onChange

  • onChange(): void
  • Returns void

onChangeInherited

  • onChangeInherited(): void
  • Returns void

onMount

  • onMount(): void
  • Returns void

onSetPrecedence

  • onSetPrecedence(newPrecedence: number, oldPrecedence: number): void
  • Parameters

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

onSetState

  • onSetState(newState: undefined | null | Length, oldState: undefined | null | Length): void
  • Parameters

    • newState: undefined | null | Length
    • oldState: undefined | null | Length

    Returns void

onStartConstraining

  • onStartConstraining(): void
  • Returns void

onStopConstraining

  • onStopConstraining(): void
  • Returns void

onUnmount

  • onUnmount(): void
  • Returns void

plus

removeConstraintCondition

  • Parameters

    Returns void

removeSubProperty

  • Parameters

    Returns void

setInherit

  • setInherit(inherit: string | boolean): void
  • Parameters

    • inherit: string | boolean

    Returns void

setInherited

  • setInherited(inherited: boolean): void
  • Parameters

    • inherited: boolean

    Returns void

setOwnState

  • setOwnState(state: undefined | null | AnyLength): void
  • Parameters

    Returns void

setPrecedence

  • setPrecedence(precedence: number): void
  • Parameters

    • precedence: number

    Returns void

setPropertyFlags

  • setPropertyFlags(propertyFlags: number): void
  • Parameters

    • propertyFlags: number

    Returns void

setState

  • setState(state: undefined | null | AnyLength, precedence?: number): void
  • Parameters

    • state: undefined | null | AnyLength
    • Optional precedence: number

    Returns void

startConstraining

  • startConstraining(): void
  • Returns void

stopConstraining

  • stopConstraining(): void
  • Returns void

takeState

  • takeState(): undefined | null | Length
  • Returns undefined | null | Length

takeUpdatedState

  • takeUpdatedState(): undefined | null | Length
  • Returns undefined | null | Length

takesPrecedence

  • takesPrecedence(precedence: number): boolean
  • Parameters

    • precedence: number

    Returns boolean

times

  • Parameters

    • scalar: number

    Returns ConstraintExpression

toNumber

  • toNumber(value: undefined | null | Length): number
  • Parameters

    • value: undefined | null | Length

    Returns number

toString

  • toString(): string
  • Returns string

unbindSuperProperty

  • unbindSuperProperty(): void
  • Returns void

unmount

  • unmount(): void
  • Returns void

updateConstraintSolution

  • updateConstraintSolution(value: number): void
  • Parameters

    • value: number

    Returns void

updateConstraintVariable

  • updateConstraintVariable(): void
  • Returns void

updateSubProperties

  • updateSubProperties(newState: undefined | null | Length, oldState: undefined | null | Length): void
  • Parameters

    • newState: undefined | null | Length
    • oldState: undefined | null | Length

    Returns void

willMount

  • willMount(): void
  • Returns void

willSetPrecedence

  • willSetPrecedence(newPrecedence: number, oldPrecedence: number): void
  • Parameters

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

willSetState

  • willSetState(newState: undefined | null | Length, oldState: undefined | null | Length): void
  • Parameters

    • newState: undefined | null | Length
    • oldState: undefined | null | Length

    Returns void

willStartConstraining

  • willStartConstraining(): void
  • Returns void

willStopConstraining

  • willStopConstraining(): void
  • Returns void

willUnmount

  • willUnmount(): void
  • Returns void

Static define

Static getClass

  • Parameters

    • type: unknown

    Returns null | ViewPropertyConstraintClass

Generated using TypeDoc