@types/leaflet.icon.glyph
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

Installation

npm install --save @types/leaflet.icon.glyph

Summary

This package contains type definitions for leaflet.icon.glyph (https://github.com/Leaflet/Leaflet.Icon.Glyph).

Details

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

index.d.ts

import * as L from "leaflet";

declare module "leaflet" {
    namespace Icon {
        class Glyph extends Icon {
            constructor(options?: GlyphOptions | GlyphIconOptions);
            options: GlyphIconOptions;
            createIcon(): HTMLElement;
        }

        interface GlyphOptions extends BaseIconOptions {
            className?: string | undefined;
            bgPos?: PointExpression | undefined;
            bgSize?: PointExpression | undefined;
            prefix?: string | undefined;
            glyph?: string | undefined;
            glyphColor?: string | undefined;
            glyphSize?: string | undefined;
            glyphAnchor?: PointExpression | undefined;
        }

        interface GlyphIconOptions extends IconOptions {
            className?: string | undefined;
            bgPos?: PointExpression | undefined;
            bgSize?: PointExpression | undefined;
            prefix?: string | undefined;
            glyph?: string | undefined;
            glyphColor?: string | undefined;
            glyphSize?: string | undefined;
            glyphAnchor?: PointExpression | undefined;
        }
    }

    namespace icon {
        function glyph(options?: Icon.GlyphOptions | Icon.GlyphIconOptions): Icon.Glyph;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/leaflet

Credits

These definitions were written by BePo65.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leaflet.icon.glyph

Weekly Downloads

437

Version

0.2.4

License

MIT

Unpacked Size

5.22 kB

Total Files

5

Last publish

Collaborators

  • types