Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface StyleAnimator<V, T, U>

Type parameters

Hierarchy

Callable

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

  • Parameters

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

    Returns V

  • Parameters

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

    Returns V

Index

Properties

Readonly animatorFlags

animatorFlags: number

Readonly interpolator

interpolator: null | Interpolator<T>

Readonly name

name: string

Readonly node

node: null | Node

Readonly ownLook

ownLook: null | Look<T, never>

Readonly ownState

ownState: T

Readonly ownValue

ownValue: T

Readonly owner

owner: V

Readonly precedence

precedence: number

Readonly priority

priority: undefined | string

Readonly propertyNames

propertyNames: string | readonly string[]

Readonly propertyValue

propertyValue: undefined | T

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

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

    Returns void

applyTheme

  • Parameters

    Returns void

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

didStopAnimating

  • didStopAnimating(): void
  • Returns void

didUnmount

  • didUnmount(): void
  • Returns void

fromAny

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

    • value: T | U

    Returns T

fromCssValue

  • fromCssValue(value: CSSStyleValue): T
  • Parameters

    • value: CSSStyleValue

    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

isDefined

  • isDefined(value: T): boolean
  • Parameters

    • value: T

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

onStopAnimating

  • onStopAnimating(): void
  • Returns void

onUnmount

  • onUnmount(): void
  • Returns void

parse

  • parse(value: string): T
  • Parameters

    • value: string

    Returns T

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

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: T | U, timing?: boolean | AnyTiming): void
  • Parameters

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

    Returns void

setPrecedence

  • setPrecedence(newPrecedence: number): void
  • Parameters

    • newPrecedence: number

    Returns void

setPriority

  • setPriority(priority: undefined | string): void
  • Parameters

    • priority: undefined | string

    Returns void

setState

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

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

    Returns void

  • Parameters

    • newState: 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

Protected stopAnimating

  • stopAnimating(): 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

toString

  • toString(): string
  • Returns string

unmount

  • unmount(): 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

willStopAnimating

  • willStopAnimating(): void
  • Returns void

willUnmount

  • willUnmount(): void
  • Returns void

Generated using TypeDoc