UNPKG

material-motion

Version:

Makes it easy to add rich, interactive motion to your application.

27 lines (26 loc) 1.04 kB
import { MotionProperty } from '../observables/MotionProperty'; import { State } from '../enums'; import { ObservableWithMotionOperators, Spring } from '../types'; export declare const DEFAULT_STIFFNESS: number; export declare const DEFAULT_DAMPING: number; export declare const DEFAULT_THRESHOLD: number; export declare class NumericSpring implements Spring<number> { readonly destination$: MotionProperty<number>; destination: number; readonly initialValue$: MotionProperty<number>; initialValue: number; readonly initialVelocity$: MotionProperty<number>; initialVelocity: number; readonly stiffness$: MotionProperty<number>; stiffness: number; readonly damping$: MotionProperty<number>; damping: number; readonly threshold$: MotionProperty<number>; threshold: number; readonly enabled$: MotionProperty<boolean>; enabled: boolean; readonly state$: MotionProperty<State>; readonly state: State; value$: ObservableWithMotionOperators<number>; } export default NumericSpring;