0.2.5 • Published 6 months ago

@types/leaflet-rotatedmarker v0.2.5

Weekly downloads
2,745
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/leaflet-rotatedmarker

Summary

This package contains type definitions for Leaflet.RotatedMarker (https://github.com/bbecquet/Leaflet.RotatedMarker).

Details

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

index.d.ts

// Type definitions for Leaflet.RotatedMarker 0.2
// Project: https://github.com/bbecquet/Leaflet.RotatedMarker
// Definitions by: Robert Prib <https://github.com/robert-prib-polestar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import * as L from 'leaflet';

declare module 'leaflet' {
    interface MarkerOptions {
        rotationAngle?: number | undefined; // Rotation angle, in degrees, clockwise. (Default = 0)
        rotationOrigin?: string | undefined; // The rotation center, as a transform-origin CSS rule. (Default = 'bottom center')
    }

    interface Marker {
        /*
        * Sets the rotation angle value.
        */
        setRotationAngle(newAngle: number): this;

        /**
         * Sets the rotation origin value.
         */
        setRotationOrigin(newOrigin: string): this;
    }
}

Additional Details

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

Credits

These definitions were written by Robert Prib.

0.2.3

8 months ago

0.2.5

6 months ago

0.2.4

7 months ago

0.2.2

3 years ago

0.2.1

7 years ago

0.2.0

7 years ago