UNPKG

@siedlerchr/types-ol-ext

Version:
29 lines (24 loc) 839 B
import type { FeatureAnimationEvent, Options as FeatureAnimationOptions } from './FeatureAnimation' import { FeatureAnimation } from './FeatureAnimation' export interface Options extends FeatureAnimationOptions { bounce?: number; amplitude?: number; horizontal?: boolean; } /** Shakee animation: * @constructor * @extends {featureAnimation} */ export default class Shake extends FeatureAnimation { /** * @param {featureAnimationShakeOptions} options * @param {number} options.bounce number o bounds, default 6 * @param {number} options.amplitude amplitude of the animation, default 40 * @param {bool} options.horizontal shake horizontally default false (vertical) */ constructor(options?: Options) /** Animate * @param {featureAnimationEvent} e */ animate(e: FeatureAnimationEvent): boolean; }