material-motion
Version:
Makes it easy to add rich, interactive motion to your application.
11 lines (10 loc) • 654 B
TypeScript
import { Constructor, Dimensions, MathOperation, MotionReactiveMappable, Observable, ObservableWithMotionOperators, Point2D } from '../../types';
import { _ReactiveMapOptions } from './_reactiveMap';
export declare type _MathOperatorArgs<U> = _ReactiveMapOptions & {
operation: MathOperation;
value$: U | Observable<U>;
};
export interface MotionMathOperable<T> {
_mathOperator<U extends T & (number | Point2D | Dimensions)>(kwargs: _MathOperatorArgs<U>): ObservableWithMotionOperators<U>;
}
export declare function withMathOperator<T, S extends Constructor<MotionReactiveMappable<T>>>(superclass: S): S & Constructor<MotionMathOperable<T>>;