mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
* Rename leaflet.d.ts to leaflet-0.7.d.ts * Defined several important interfaces and the skeleton of some others * Started adding tests * Added more interfaces, factory methods and tests * Implemented other interfaces and nested namespaces * Added more types
33 lines
798 B
TypeScript
33 lines
798 B
TypeScript
// Type definitions for Leaflet.fullscreen v1.3.0
|
|
// Project: https://github.com/brunob/leaflet.fullscreen
|
|
// Definitions by: William Comartin <https://github.com/wcomartin>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../leaflet/leaflet-0.7.d.ts" />
|
|
|
|
declare namespace L {
|
|
|
|
namespace Control {
|
|
|
|
export interface Fullscreen extends L.Control {}
|
|
|
|
export interface FullscreenOptions {
|
|
content?: string,
|
|
position?: string,
|
|
title?: string,
|
|
titleCancel?: string,
|
|
forceSeparateButton?: boolean,
|
|
forcePseudoFullscreen?: boolean
|
|
}
|
|
}
|
|
|
|
namespace control {
|
|
|
|
/**
|
|
* Creates a fullscreen control.
|
|
*/
|
|
export function fullscreen(options?: Control.FullscreenOptions): L.Control.Fullscreen;
|
|
|
|
}
|
|
}
|