@types/marker-animate-unobtrusive
TypeScript icon, indicating that this package has built-in type declarations

0.2.10 • Public • Published

Installation

npm install --save @types/marker-animate-unobtrusive

Summary

This package contains type definitions for marker-animate-unobtrusive (https://github.com/terikon/marker-animate-unobtrusive).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/marker-animate-unobtrusive.

index.d.ts

/// <reference types="google.maps" />

declare namespace jQuery.easing {
    type IEasingType =
        | "swing"
        | "easeInQuad"
        | "easeOutQuad"
        | "easeInOutQuad"
        | "easeInCubic"
        | "easeOutCubic"
        | "easeInOutCubic"
        | "easeInQuart"
        | "easeOutQuart"
        | "easeInOutQuart"
        | "easeInQuint"
        | "easeOutQuint"
        | "easeInOutQuint"
        | "easeInSine"
        | "easeOutSine"
        | "easeInOutSine"
        | "easeInExpo"
        | "easeOutExpo"
        | "easeInOutExpo"
        | "easeInCirc"
        | "easeOutCirc"
        | "easeInOutCirc"
        | "easeInElastic"
        | "easeOutElastic"
        | "easeInOutElastic"
        | "easeInBack"
        | "easeOutBack"
        | "easeInOutBack"
        | "easeInBounce"
        | "easeOutBounce"
        | "easeInOutBounce";
}

interface SlidingMarkerOptions extends google.maps.MarkerOptions {
    easing?: jQuery.easing.IEasingType | undefined;
    duration?: number | undefined;
    animateFunctionAdapter?:
        | ((
            marker: google.maps.Marker,
            destPoint: google.maps.LatLng,
            easing: "linear" | jQuery.easing.IEasingType,
            duration: number,
        ) => void)
        | undefined;
}

declare class SlidingMarker extends google.maps.Marker {
    static initializeGlobally(): void;
    constructor(opts?: SlidingMarkerOptions);
    setDuration(duration: number): void;
    getDuration(): number;
    setEasing(easing: jQuery.easing.IEasingType): void;
    getEasing(): jQuery.easing.IEasingType;
    getAnimationPosition(): google.maps.LatLng;
    setPositionNotAnimated(position: google.maps.LatLng | google.maps.LatLngLiteral): void;
}

declare class MarkerWithGhost extends SlidingMarker {
    setGhostPosition(ghostPosition: google.maps.LatLng | google.maps.LatLngLiteral): void;
    getGhostPosition(): google.maps.LatLng;
    getGhostAnimationPosition(): google.maps.LatLng;
}

declare module "SlidingMarker" {
    export = SlidingMarker;
}

declare module "MarkerWithGhost" {
    export = MarkerWithGhost;
}

Additional Details

Credits

These definitions were written by Roman Viskin.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/marker-animate-unobtrusive

Weekly Downloads

339

Version

0.2.10

License

MIT

Unpacked Size

7 kB

Total Files

5

Last publish

Collaborators

  • types