Skip to main content

@sceneify/animation

Index

Type aliases

AnimatableProperties

AnimatableProperties<T>: DeepSearch<Omit<T, width | height | sourceWidth | sourceHeight>, KeyframeProperty>

AnimationSubject

AnimationSubject: SceneItem | Input | Filter

KeyframeInputsMap

KeyframeInputsMap: {}

Type declaration

KeyframeProperty

KeyframeProperty: number | string | boolean

KeyframesFromSchema

KeyframesFromSchema<P>: { [ K in keyof P ]?: Record<number, P[K] | KeyframeInput<P[K]>> }

Type parameters

ProcessedTimeline

ProcessedTimeline<Subjects>: { [ K in keyof Subjects ]: SubjectKeyframes }

Type parameters

SubjectKeyframeValues

SubjectKeyframeValues<Subject>: Subject extends SceneItem ? KeyframesFromSchema<AnimatableProperties> : Subject extends Input<infer Settings> ? KeyframesFromSchema<Settings> : Subject extends Filter<infer Settings> ? KeyframesFromSchema<Settings | { visible?: boolean }> : never

Type parameters

Timeline

Timeline<Subjects>: { keyframes?: { [ S in keyof Subjects ]: SubjectKeyframeValues<Subjects[S]> }; subjects?: Subjects }

Type parameters

Type declaration

Variables

DEFAULT_EASING

DEFAULT_EASING: Easing = Easing.Linear

easingFuncs

easingFuncs: Record<Easing, EasingFunction> = ...

playing

playing: boolean = false

subjectKeyframes

subjectKeyframes: Map<AnimationSubject, SubjectKeyframes> = ...