Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ViewAnimatorConstraint<V, T, U>

Type parameters

  • V: View

  • T

  • U = never

Hierarchy

Callable

  • ViewAnimatorConstraint(): T
  • ViewAnimatorConstraint(newState: number | T | U, precedenceOrTiming: undefined | number | boolean | AnyTiming): V
  • ViewAnimatorConstraint(newState: number | T | U, timing?: boolean | AnyTiming, precedence?: number): V
  • Returns T

  • Parameters

    • newState: number | T | U
    • precedenceOrTiming: undefined | number | boolean | AnyTiming

    Returns V

  • Parameters

    • newState: number | T | U
    • Optional timing: boolean | AnyTiming
    • Optional precedence: number

    Returns V

Index

Properties

Accessors

Methods

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<T>

Readonly name

name: string

Readonly ownLook

ownLook: null | Look<T, never>

Readonly ownState

ownState: T

Readonly ownValue

ownValue: T

Readonly owner

owner: V

Readonly precedence

precedence: number

Readonly strength

strength: number

subAnimators

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

Readonly superAnimator

superAnimator: null | ViewAnimator<View, T, never>

Readonly superLook

superLook: null | Look<T, never>

Readonly superName

superName: undefined | string

Readonly superState

superState: undefined | T

Readonly superValue

superValue: undefined | T

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

addSubAnimator

  • Parameters

    Returns void

applyLook

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

    Returns void

applyTheme

  • Parameters

    Returns void

bindSuperAnimator

  • bindSuperAnimator(): void
  • Returns void

constrain

  • Parameters

    • Optional constrained: boolean

    Returns ViewAnimatorConstraint<V, T, U>

didMount

  • didMount(): void
  • Returns void

didSetLook

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

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

    Returns void

didSetPrecedence

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

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

Protected didSetState

  • didSetState(newState: T, oldState: T): void
  • Parameters

    • newState: T
    • oldState: T

    Returns void

didSetValue

  • didSetValue(newValue: T, oldValue: T): void
  • Parameters

    • newValue: T
    • oldValue: T

    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

evaluateConstraintVariable

  • evaluateConstraintVariable(): void

fromAny

  • fromAny(value: number | T | U): T
  • Parameters

    • value: number | T | U

    Returns T

getState

  • getState(): NonNullable<T>
  • Returns NonNullable<T>

getStateOr

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

    • E

    Parameters

    • elseState: E

    Returns NonNullable<T> | E

getValue

  • getValue(): NonNullable<T>
  • Returns NonNullable<T>

getValueOr

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

    • E

    Parameters

    • elseValue: E

    Returns NonNullable<T> | E

isAnimating

  • isAnimating(): boolean
  • Returns boolean

isConstant

  • isConstant(): boolean
  • Returns boolean

isConstrained

  • isConstrained(): boolean
  • Returns boolean

isConstraining

  • isConstraining(): boolean
  • Returns boolean

isDefined

  • isDefined(value: T): boolean
  • Parameters

    • value: T

    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

onAnimate

  • onAnimate(t: number): void
  • Parameters

    • t: number

    Returns void

onAnimateInherited

  • onAnimateInherited(t: number): void
  • Parameters

    • t: number

    Returns void

onBegin

  • onBegin(value: T): void
  • Parameters

    • value: T

    Returns void

onEnd

  • onEnd(value: T): void
  • Parameters

    • value: T

    Returns void

onInterrupt

  • onInterrupt(value: T): void
  • Parameters

    • value: T

    Returns void

onMount

  • onMount(): void
  • Returns void

onSetLook

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

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

    Returns void

onSetPrecedence

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

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

Protected onSetState

  • onSetState(newState: T, oldState: T): void
  • Parameters

    • newState: T
    • oldState: T

    Returns void

onSetValue

  • onSetValue(newValue: T, oldValue: T): void
  • Parameters

    • newValue: T
    • oldValue: T

    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

removeSubAnimator

  • Parameters

    Returns void

setAnimatedState

  • setAnimatedState(newState: T, oldState: T, timing: Timing): void
  • Parameters

    • newState: T
    • oldState: T
    • timing: Timing

    Returns void

setAnimatorFlags

  • setAnimatorFlags(animatorFlags: number): void
  • Parameters

    • animatorFlags: number

    Returns void

setImmediateState

  • setImmediateState(newState: T, oldState: T): void
  • Parameters

    • newState: T
    • oldState: T

    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: T, newState?: T): void
  • Parameters

    • newValue: T
    • Optional newState: T

    Returns void

setLook

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

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

    Returns void

  • Parameters

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

    Returns void

setOwnLook

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

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

    Returns void

setOwnState

  • setOwnState(newState: number | T | U, timing?: boolean | AnyTiming): void
  • Parameters

    • newState: number | T | U
    • Optional timing: boolean | AnyTiming

    Returns void

setPrecedence

  • setPrecedence(newPrecedence: number): void
  • Parameters

    • newPrecedence: number

    Returns void

setState

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

    • newState: number | T | U
    • precedenceOrTiming: undefined | number | boolean | AnyTiming

    Returns void

  • Parameters

    • newState: number | T | U
    • Optional timing: boolean | AnyTiming
    • Optional precedence: number

    Returns void

setValue

  • setValue(newValue: T, oldValue?: T): void
  • Parameters

    • newValue: T
    • Optional oldValue: T

    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 | T
  • Returns undefined | T

takeValue

  • takeValue(): T
  • Returns T

takesPrecedence

  • takesPrecedence(precedence: number): boolean
  • Parameters

    • precedence: number

    Returns boolean

times

toNumber

  • toNumber(value: T): number
  • Parameters

    • value: T

    Returns number

toString

  • toString(): string
  • Returns string

unbindSuperAnimator

  • unbindSuperAnimator(): void
  • Returns void

unmount

  • unmount(): void
  • Returns void

updateConstraintSolution

  • updateConstraintSolution(value: number): void

updateConstraintVariable

  • updateConstraintVariable(): void
  • Returns void

willMount

  • willMount(): void
  • Returns void

willSetLook

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

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

    Returns void

willSetPrecedence

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

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

Protected willSetState

  • willSetState(newState: T, oldState: T): void
  • Parameters

    • newState: T
    • oldState: T

    Returns void

willSetValue

  • willSetValue(newValue: T, oldValue: T): void
  • Parameters

    • newValue: T
    • oldValue: T

    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

Generated using TypeDoc