mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-19 22:20:31 +00:00
* Update `TypeScript Version`s to be at least as high as dependencies' versions * Run through again
30 lines
705 B
TypeScript
30 lines
705 B
TypeScript
// Type definitions for Leaflet.areaSelect 0.1
|
|
// Project: https://github.com/heyman/leaflet-areaselect
|
|
// Definitions by: André Wallat <https://github.com/awallat>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import * as L from 'leaflet';
|
|
|
|
declare module 'leaflet' {
|
|
function areaSelect(box: AreaSelectOptions): AreaSelect;
|
|
|
|
interface AreaSelectOptions {
|
|
width?: number;
|
|
height?: number;
|
|
keepAspectRatio?: boolean;
|
|
}
|
|
|
|
interface Dimension {
|
|
width: number;
|
|
height: number;
|
|
}
|
|
|
|
interface AreaSelect {
|
|
addTo(map: Map): Map;
|
|
getBounds(): LatLngBounds;
|
|
remove(): void;
|
|
setDimensions(dim: Dimension): void;
|
|
}
|
|
}
|