@razi91/types-ol-ext
Version:
Type definitions for ol-ext
29 lines (24 loc) • 893 B
TypeScript
import { default as featureAnimation, FeatureAnimationEvent } from './FeatureAnimation';
export interface Options {
bounce?: number;
amplitude?: number;
easing: ((p0: number) => number);
duration?: number;
}
/** Bounce animation:
* @constructor
* @extends {featureAnimation}
* @param {featureAnimationBounceOptions} options
* @param {number} options.bounce number of bounce, default 3
* @param {number} options.amplitude bounce amplitude,default 40
* @param {easing} options.easing easing used for decaying amplitude, use function(){return 0} for no decay, default easing.linear
* @param {number} options.duration duration in ms, default 1000
*/
declare class Bounce extends featureAnimation {
constructor(options?: Options)
/** Animate
* @param {FeatureAnimationEvent} e
*/
animate(e: FeatureAnimationEvent): boolean;
}
export default Bounce;