0.1.8 • Published 7 months ago

@types/leaflet-areaselect v0.1.8

Weekly downloads
14
License
MIT
Repository
github
Last release
7 months ago

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.

0.1.8

7 months ago

0.1.7

7 months ago

0.1.6

9 months ago

0.1.5

3 years ago

0.1.4

5 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago