0.1.4 • Published 7 months ago
@types/leaflet-rotate v0.1.4
Installation
npm install --save @types/leaflet-rotate
Summary
This package contains type definitions for leaflet-rotate (https://github.com//Raruto/leaflet-rotate).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-rotate.
index.d.ts
// Type definitions for leaflet-rotate 0.1
// Project: https://github.com//Raruto/leaflet-rotate
// Definitions by: Brian Jubelirer <https://github.com/bjubes>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as L from 'leaflet';
declare module 'leaflet' {
interface MapOptions {
rotate?: boolean;
bearing?: number;
trackContainerMutation?: boolean;
touchRotate?: boolean | string;
shiftKeyRotate?: boolean | string;
rotateControl?: boolean;
}
interface Map {
setBearing: (theta: number) => void;
getBearing: () => number;
rotatedPointToMapPanePoint: (point: Point) => Point;
mapPanePointToRotatedPoint: (point: Point) => Point;
}
interface Point {
rotate: (theta: number) => Point;
rotateFrom: (theta: number, pivot: Point) => Point;
}
interface MarkerOptions {
rotation?: number;
rotateWithView?: boolean;
}
interface Marker {
setRotation: (rotation: number) => void;
}
}
Additional Details
- Last updated: Mon, 02 May 2022 14:31:39 GMT
- Dependencies: @types/leaflet
- Global values: none
Credits
These definitions were written by Brian Jubelirer.