Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NumberViewAnimatorConstraint<V>

Type parameters

Hierarchy

  • ViewAnimatorConstraint<V, number | null | undefined, number | string | null | undefined>
    • NumberViewAnimatorConstraint

Callable

  • NumberViewAnimatorConstraint(): undefined | null | number
  • NumberViewAnimatorConstraint(newState: undefined | null | string | number, precedenceOrTiming: undefined | number | boolean | AnyTiming): V
  • NumberViewAnimatorConstraint(newState: undefined | null | string | number, timing?: boolean | AnyTiming, precedence?: number): V
  • Returns undefined | null | number

  • Parameters

    • newState: undefined | null | string | number
    • precedenceOrTiming: undefined | number | boolean | AnyTiming

    Returns V

  • Parameters

    • newState: undefined | null | string | number
    • Optional timing: boolean | AnyTiming
    • Optional precedence: number

    Returns V

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Type parameters

    Parameters

    • owner: V
    • animatorName: string

    Returns NumberViewAnimatorConstraint<V>

Properties

Readonly animatorFlags

animatorFlags: number

Readonly coefficient

coefficient: number

Readonly conditionCount

conditionCount: number

Readonly constant

constant: number

Readonly id

id: number

Readonly inherit

inherit: string | boolean

Readonly interpolator

interpolator: null | Interpolator<undefined | null | number>

Readonly name

name: string

Readonly ownLook

ownLook: null | Look<undefined | null | number, never>

Readonly ownState

ownState: undefined | null | number

Readonly ownValue

ownValue: undefined | null | number

Readonly owner

owner: V

Readonly precedence

precedence: number

Readonly strength

strength: number

subAnimators

subAnimators: null | ViewAnimator<View, undefined | null | number, never>[]

Readonly superAnimator

superAnimator: null | ViewAnimator<View, undefined | null | number, never>

Readonly superLook

superLook: null | Look<undefined | null | number, never>

Readonly superName

superName: undefined | string

Readonly superState

superState: undefined | null | number

Readonly superValue

superValue: undefined | null | number

Readonly terms

Readonly timing

timing: null | Timing

Optional updateFlags

updateFlags: number

Readonly variable

variable: null | ConstraintVariable

Accessors

look

  • get look(): null | Look<T, never>
  • Returns null | Look<T, never>

state

  • get state(): T
  • Returns T

updatedValue

  • get updatedValue(): undefined | T
  • Returns undefined | T

value

  • get value(): T
  • Returns T

Methods

addConstraintCondition

  • Parameters

    Returns void

addSubAnimator

  • addSubAnimator(subAnimator: ViewAnimator<View, undefined | null | number, never>): void
  • Parameters

    Returns void

applyLook

  • applyLook(look: Look<undefined | null | number, never>, timing: boolean | Timing): void
  • Parameters

    • look: Look<undefined | null | number, never>
    • timing: boolean | Timing

    Returns void

applyTheme

  • Parameters

    Returns void

bindSuperAnimator

  • bindSuperAnimator(): void
  • Returns void

constrain

  • Parameters

    • Optional constrained: boolean

    Returns NumberViewAnimatorConstraint<V>

didMount

  • didMount(): void
  • Returns void

didSetLook

  • didSetLook(newLook: null | Look<undefined | null | number, never>, oldLook: null | Look<undefined | null | number, never>, timing: boolean | Timing): void
  • Parameters

    • newLook: null | Look<undefined | null | number, never>
    • oldLook: null | Look<undefined | null | number, never>
    • timing: boolean | Timing

    Returns void

didSetPrecedence

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

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

Protected didSetState

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

    • newState: undefined | null | number
    • oldState: undefined | null | number

    Returns void

didSetValue

  • didSetValue(newValue: undefined | null | number, oldValue: undefined | null | number): void
  • Parameters

    • newValue: undefined | null | number
    • oldValue: undefined | null | number

    Returns void

didStartAnimating

  • didStartAnimating(): void
  • Returns void

didStartConstraining

  • didStartConstraining(): void
  • Returns void

didStopAnimating

  • didStopAnimating(): void
  • Returns void

didStopConstraining

  • didStopConstraining(): void
  • Returns void

didUnmount

  • didUnmount(): void
  • Returns void

divide

  • Parameters

    • scalar: number

    Returns ConstraintExpression

equalState

  • equalState(newState: undefined | null | number, oldState: undefined | null | number): boolean
  • Parameters

    • newState: undefined | null | number
    • oldState: undefined | null | number

    Returns boolean

evaluateConstraintVariable

  • evaluateConstraintVariable(): void
  • Returns void

fromAny

  • fromAny(value: string | number): number
  • Parameters

    • value: string | number

    Returns number

getState

  • getState(): number
  • Returns number

getStateOr

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

    • E

    Parameters

    • elseState: E

    Returns number | E

getValue

  • getValue(): number
  • Returns number

getValueOr

  • getValueOr<E>(elseValue: E): number | E
  • Type parameters

    • E

    Parameters

    • elseValue: E

    Returns number | E

isAnimating

  • isAnimating(): boolean
  • Returns boolean

isConstant

  • isConstant(): boolean
  • Returns boolean

isConstrained

  • isConstrained(): boolean
  • Returns boolean

isConstraining

  • isConstraining(): boolean
  • Returns boolean

isDefined

  • isDefined(value: undefined | null | number): boolean
  • Parameters

    • value: undefined | null | number

    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

onAnimate

  • onAnimate(t: number): void
  • Parameters

    • t: number

    Returns void

onAnimateInherited

  • onAnimateInherited(t: number): void
  • Parameters

    • t: number

    Returns void

onBegin

  • onBegin(value: undefined | null | number): void
  • Parameters

    • value: undefined | null | number

    Returns void

onEnd

  • onEnd(value: undefined | null | number): void
  • Parameters

    • value: undefined | null | number

    Returns void

onInterrupt

  • onInterrupt(value: undefined | null | number): void
  • Parameters

    • value: undefined | null | number

    Returns void

onMount

  • onMount(): void
  • Returns void

onSetLook

  • onSetLook(newLook: null | Look<undefined | null | number, never>, oldLook: null | Look<undefined | null | number, never>, timing: boolean | Timing): void
  • Parameters

    • newLook: null | Look<undefined | null | number, never>
    • oldLook: null | Look<undefined | null | number, never>
    • timing: boolean | Timing

    Returns void

onSetPrecedence

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

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

Protected onSetState

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

    • newState: undefined | null | number
    • oldState: undefined | null | number

    Returns void

onSetValue

  • onSetValue(newValue: undefined | null | number, oldValue: undefined | null | number): void
  • Parameters

    • newValue: undefined | null | number
    • oldValue: undefined | null | number

    Returns void

onStartAnimating

  • onStartAnimating(): void
  • Returns void

onStartConstraining

  • onStartConstraining(): void
  • Returns void

onStopAnimating

  • onStopAnimating(): void
  • Returns void

onStopConstraining

  • onStopConstraining(): void
  • Returns void

onUnmount

  • onUnmount(): void
  • Returns void

plus

removeConstraintCondition

  • Parameters

    Returns void

removeSubAnimator

  • removeSubAnimator(subAnimator: ViewAnimator<View, undefined | null | number, never>): void
  • Parameters

    Returns void

setAnimatedState

  • setAnimatedState(newState: undefined | null | number, oldState: undefined | null | number, timing: Timing): void
  • Parameters

    • newState: undefined | null | number
    • oldState: undefined | null | number
    • timing: Timing

    Returns void

setAnimatorFlags

  • setAnimatorFlags(animatorFlags: number): void
  • Parameters

    • animatorFlags: number

    Returns void

setImmediateState

  • setImmediateState(newState: undefined | null | number, oldState: undefined | null | number): void
  • Parameters

    • newState: undefined | null | number
    • oldState: undefined | null | number

    Returns void

setInherit

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

    • inherit: string | boolean

    Returns void

setInherited

  • setInherited(inherited: boolean): void
  • Parameters

    • inherited: boolean

    Returns void

setIntermediateValue

  • setIntermediateValue(newValue: undefined | null | number, newState?: null | number): void
  • Parameters

    • newValue: undefined | null | number
    • Optional newState: null | number

    Returns void

setLook

  • setLook(newLook: null | Look<undefined | null | number, never>, precedenceOrTiming: undefined | number | boolean | AnyTiming): void
  • setLook(newLook: null | Look<undefined | null | number, never>, timing?: boolean | AnyTiming, precedence?: number): void
  • Parameters

    • newLook: null | Look<undefined | null | number, never>
    • precedenceOrTiming: undefined | number | boolean | AnyTiming

    Returns void

  • Parameters

    • newLook: null | Look<undefined | null | number, never>
    • Optional timing: boolean | AnyTiming
    • Optional precedence: number

    Returns void

setOwnLook

  • setOwnLook(newLook: null | Look<undefined | null | number, never>, timing?: boolean | AnyTiming): void
  • Parameters

    • newLook: null | Look<undefined | null | number, never>
    • Optional timing: boolean | AnyTiming

    Returns void

setOwnState

  • setOwnState(newState: undefined | null | string | number, timing?: boolean | AnyTiming): void
  • Parameters

    • newState: undefined | null | string | number
    • Optional timing: boolean | AnyTiming

    Returns void

setPrecedence

  • setPrecedence(newPrecedence: number): void
  • Parameters

    • newPrecedence: number

    Returns void

setState

  • setState(newState: undefined | null | string | number, precedenceOrTiming: undefined | number | boolean | AnyTiming): void
  • setState(newState: undefined | null | string | number, timing?: boolean | AnyTiming, precedence?: number): void
  • Parameters

    • newState: undefined | null | string | number
    • precedenceOrTiming: undefined | number | boolean | AnyTiming

    Returns void

  • Parameters

    • newState: undefined | null | string | number
    • Optional timing: boolean | AnyTiming
    • Optional precedence: number

    Returns void

setValue

  • setValue(newValue: undefined | null | number, oldValue?: null | number): void
  • Parameters

    • newValue: undefined | null | number
    • Optional oldValue: null | number

    Returns void

Protected startAnimating

  • startAnimating(): void
  • Returns void

startConstraining

  • startConstraining(): void
  • Returns void

Protected stopAnimating

  • stopAnimating(): void
  • Returns void

stopConstraining

  • stopConstraining(): void
  • Returns void

takeUpdatedValue

  • takeUpdatedValue(): undefined | null | number
  • Returns undefined | null | number

takeValue

  • takeValue(): undefined | null | number
  • Returns undefined | null | number

takesPrecedence

  • takesPrecedence(precedence: number): boolean
  • Parameters

    • precedence: number

    Returns boolean

times

  • Parameters

    • scalar: number

    Returns ConstraintExpression

toNumber

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

    • value: null | number

    Returns number

toString

  • toString(): string
  • Returns string

unbindSuperAnimator

  • unbindSuperAnimator(): void
  • Returns void

unmount

  • unmount(): void
  • Returns void

updateConstraintSolution

  • updateConstraintSolution(value: number): void
  • Parameters

    • value: number

    Returns void

updateConstraintVariable

  • updateConstraintVariable(): void
  • Returns void

willMount

  • willMount(): void
  • Returns void

willSetLook

  • willSetLook(newLook: null | Look<undefined | null | number, never>, oldLook: null | Look<undefined | null | number, never>, timing: boolean | Timing): void
  • Parameters

    • newLook: null | Look<undefined | null | number, never>
    • oldLook: null | Look<undefined | null | number, never>
    • timing: boolean | Timing

    Returns void

willSetPrecedence

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

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

Protected willSetState

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

    • newState: undefined | null | number
    • oldState: undefined | null | number

    Returns void

willSetValue

  • willSetValue(newValue: undefined | null | number, oldValue: undefined | null | number): void
  • Parameters

    • newValue: undefined | null | number
    • oldValue: undefined | null | number

    Returns void

willStartAnimating

  • willStartAnimating(): void
  • Returns void

willStartConstraining

  • willStartConstraining(): void
  • Returns void

willStopAnimating

  • willStopAnimating(): void
  • Returns void

willStopConstraining

  • willStopConstraining(): void
  • Returns void

willUnmount

  • willUnmount(): void
  • Returns void

Static define

Static getClass

  • Parameters

    • type: unknown

    Returns null | ViewAnimatorConstraintClass

Generated using TypeDoc