0.1.8 • Published 7 months ago
@types/leaflet-areaselect v0.1.8
Installation
npm install --save @types/leaflet-areaselect
Summary
This package contains type definitions for Leaflet.areaSelect (https://github.com/heyman/leaflet-areaselect).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-areaselect.
index.d.ts
// Type definitions for non-npm package 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 | undefined;
height?: number | undefined;
keepAspectRatio?: boolean | undefined;
}
interface Dimension {
width: number;
height: number;
}
interface AreaSelect {
addTo(map: Map): Map;
getBounds(): LatLngBounds;
remove(): void;
setDimensions(dim: Dimension): void;
}
}
Additional Details
- Last updated: Thu, 08 Jul 2021 16:23:33 GMT
- Dependencies: @types/leaflet
- Global values: none
Credits
These definitions were written by André Wallat.