Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LengthAttributeAnimator<V>

Type parameters

Hierarchy

Callable

  • LengthAttributeAnimator(): null | Length
  • LengthAttributeAnimator(newState: null | AnyLength, precedenceOrTiming: undefined | number | boolean | AnyTiming): V
  • LengthAttributeAnimator(newState: null | AnyLength, timing?: boolean | AnyTiming, precedence?: number): V
  • Returns null | Length

  • Parameters

    Returns V

  • Parameters

    • newState: null | AnyLength
    • Optional timing: boolean | AnyTiming
    • Optional precedence: number

    Returns V

Index

Constructors

constructor

  • Type parameters

    Parameters

    • owner: V
    • animatorName: string

    Returns LengthAttributeAnimator<V>

Properties

Readonly animatorFlags

animatorFlags: number

Readonly attributeName

attributeName: string

Readonly attributeValue

attributeValue: undefined | null | Length

Readonly interpolator

interpolator: null | Interpolator<null | Length>

Readonly name

name: string

Readonly node

node: Node

Readonly ownLook

ownLook: null | Look<null | Length, never>

Readonly ownState

ownState: null | Length

Readonly ownValue

ownValue: null | Length

Readonly owner

owner: V

Readonly precedence

precedence: number

Readonly timing

timing: null | Timing

Optional updateFlags

updateFlags: number

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

applyLook

  • Parameters

    Returns void

applyTheme

  • Parameters

    Returns void

didMount

  • didMount(): void
  • Returns void

didSetLook

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

    Returns void

didSetPrecedence

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

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

Protected didSetState

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

    Returns void

didSetValue

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

    Returns void

didStartAnimating

  • didStartAnimating(): void
  • Returns void

didStopAnimating

  • didStopAnimating(): void
  • Returns void

didUnmount

  • didUnmount(): void
  • Returns void

equalState

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

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

    Returns boolean

fromAny

  • Parameters

    Returns null | Length

getState

  • Returns Length

getStateOr

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

    • E

    Parameters

    • elseState: E

    Returns Length | E

getValue

  • Returns Length

getValueOr

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

    • E

    Parameters

    • elseValue: E

    Returns Length | E

isAnimating

  • isAnimating(): boolean
  • Returns boolean

isDefined

  • isDefined(value: null | Length): boolean
  • Parameters

    Returns boolean

isMounted

  • isMounted(): boolean
  • Returns boolean

isUpdated

  • isUpdated(): boolean
  • Returns boolean

mount

  • mount(): void
  • Returns void

onAnimate

  • onAnimate(t: number): void
  • Parameters

    • t: number

    Returns void

onBegin

  • onBegin(value: null | Length): void
  • Parameters

    Returns void

onEnd

  • onEnd(value: null | Length): void
  • Parameters

    Returns void

onInterrupt

  • onInterrupt(value: null | Length): void
  • Parameters

    Returns void

onMount

  • onMount(): void
  • Returns void

onSetLook

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

    Returns void

onSetPrecedence

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

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

Protected onSetState

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

    Returns void

onSetValue

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

    Returns void

onStartAnimating

  • onStartAnimating(): void
  • Returns void

onStopAnimating

  • onStopAnimating(): void
  • Returns void

onUnmount

  • onUnmount(): void
  • Returns void

parse

  • parse(value: string): null | Length
  • Parameters

    • value: string

    Returns null | Length

setAnimatedState

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

    Returns void

setAnimatorFlags

  • setAnimatorFlags(animatorFlags: number): void
  • Parameters

    • animatorFlags: number

    Returns void

setImmediateState

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

    Returns void

setIntermediateValue

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

    Returns void

setLook

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

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

    Returns void

  • Parameters

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

    Returns void

setOwnLook

  • Parameters

    Returns void

setOwnState

  • Parameters

    Returns void

setPrecedence

  • setPrecedence(newPrecedence: number): void
  • Parameters

    • newPrecedence: number

    Returns void

setState

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

    Returns void

  • Parameters

    • newState: null | AnyLength
    • Optional timing: boolean | AnyTiming
    • Optional precedence: number

    Returns void

setValue

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

    Returns void

Protected startAnimating

  • startAnimating(): void
  • Returns void

Protected stopAnimating

  • stopAnimating(): void
  • Returns void

takeUpdatedValue

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

takeValue

  • Returns null | Length

takesPrecedence

  • takesPrecedence(precedence: number): boolean
  • Parameters

    • precedence: number

    Returns boolean

toString

  • toString(): string
  • Returns string

unmount

  • unmount(): void
  • Returns void

willMount

  • willMount(): void
  • Returns void

willSetLook

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

    Returns void

willSetPrecedence

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

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

Protected willSetState

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

    Returns void

willSetValue

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

    Returns void

willStartAnimating

  • willStartAnimating(): void
  • Returns void

willStopAnimating

  • willStopAnimating(): void
  • Returns void

willUnmount

  • willUnmount(): void
  • Returns void

Static define

Static getClass

  • Parameters

    • type: unknown

    Returns null | AttributeAnimatorClass

Generated using TypeDoc