JSPM

  • Created
  • Published
  • Downloads 4104
  • Score
    100M100P100Q57951F
  • License MIT

TypeScript definitions for Leaflet.fullscreen

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/leaflet.fullscreen) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/leaflet.fullscreen

    Summary

    This package contains type definitions for Leaflet.fullscreen (https://github.com/brunob/leaflet.fullscreen).

    Details

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

    index.d.ts

    // Type definitions for Leaflet.fullscreen 1.6
    // Project: https://github.com/brunob/leaflet.fullscreen
    // Definitions by: William Comartin <https://github.com/wcomartin>
    //                 Dan Manastireanu <https://github.com/danmana>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.3
    
    import * as L from "leaflet";
    
    declare module "leaflet" {
        namespace Control {
            class Fullscreen extends Control {
                constructor(options?: FullscreenOptions);
                options: FullscreenOptions;
            }
    
            interface FullscreenOptions {
                content?: string | undefined;
                position?: ControlPosition | undefined;
                title?: string | undefined;
                titleCancel?: string | undefined;
                forceSeparateButton?: boolean | undefined;
                forcePseudoFullscreen?: boolean | undefined;
                pseudoFullscreen?: boolean | undefined;
                fullscreenElement?: false | HTMLElement | undefined;
            }
        }
    
        namespace control {
            /**
             * Creates a fullscreen control.
             */
            function fullscreen(options?: Control.FullscreenOptions): Control.Fullscreen;
        }
    
        interface MapOptions {
            fullscreenControl?: boolean | undefined;
            fullscreenControlOptions?: Control.FullscreenOptions | undefined;
        }
    
        interface Map {
            toggleFullScreen(): void;
        }
    }
    

    Additional Details

    • Last updated: Wed, 30 Aug 2023 19:34:57 GMT
    • Dependencies: @types/leaflet
    • Global values: none

    Credits

    These definitions were written by William Comartin, and Dan Manastireanu.