1.0.4 • Published 7 months ago

@types/leaflet.pancontrol v1.0.4

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

Installation

npm install --save @types/leaflet.pancontrol

Summary

This package contains type definitions for leaflet.pancontrol (https://github.com/kartena/Leaflet.Pancontrol).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.pancontrol.

index.d.ts

// Type definitions for leaflet.pancontrol 1.0
// Project: https://github.com/kartena/Leaflet.Pancontrol
// Definitions by: Brictarus <https://github.com/Brictarus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import { ControlOptions, Control as LControl } from 'leaflet';

declare module 'leaflet' {
  interface MapOptions {
    panControl?: boolean | undefined;
  }

  namespace control {
    function pan(options?: Control.PanControlOptions): Control.Pan;
  }

  namespace Control {
    interface PanControlOptions extends ControlOptions {
      panOffset?: number | undefined;
    }

    class Pan extends LControl {
      options: PanControlOptions;

      constructor(options?: PanControlOptions);
    }
  }
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 16:23:38 GMT
  • Dependencies: @types/leaflet
  • Global values: none

Credits

These definitions were written by Brictarus.

1.0.2

9 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.1

3 years ago

1.0.0

6 years ago