mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
27 lines
895 B
TypeScript
27 lines
895 B
TypeScript
// Type definitions for leaflet-imageoverlay-rotated 0.1
|
|
// Project: https://github.com/IvanSanchez/Leaflet.ImageOverlay.Rotated
|
|
// Definitions by: Thomas Kleinke <https://github.com/tkleinke>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import * as L from 'leaflet';
|
|
|
|
declare module 'leaflet' {
|
|
namespace ImageOverlay {
|
|
interface Rotated extends ImageOverlay {
|
|
reposition(
|
|
topleft: LatLngExpression,
|
|
topright: LatLngExpression,
|
|
bottomleft: LatLngExpression): void;
|
|
}
|
|
}
|
|
|
|
namespace imageOverlay {
|
|
function rotated(
|
|
imgSrc: string | HTMLImageElement | HTMLCanvasElement,
|
|
topleft: LatLngExpression,
|
|
topright: LatLngExpression,
|
|
bottomleft: LatLngExpression,
|
|
options?: ImageOverlayOptions): ImageOverlay.Rotated;
|
|
}
|
|
}
|