Socket
Socket
Sign inDemoInstall

@types/leaflet

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/leaflet - npm Package Compare versions

Comparing version 1.0.36 to 1.0.37

72

leaflet/index.d.ts

@@ -8,3 +8,39 @@ // Type definitions for Leaflet.js 1.0.0-rc3

type NativeMouseEvent = MouseEvent;
declare namespace L {
export class Class {
static extend(props:any):any/* how to return constructor of self extended type ? */;
static include(props:any):any /* how to return self extended type ? */;
static mergeOptions(props:any): any /* how to return self extended type ? */;
static addInitHook(initHookFn: ()=> void): any/* how to return self extended type ? */;
}
export class DomUtil {
static get(id: string): HTMLElement;
static get(id: HTMLElement): HTMLElement;
static getStyle(el: HTMLElement, styleAttrib: string): string;
static create(tagName: String, className?: String, container?: HTMLElement): HTMLElement;
static remove(el: HTMLElement):void;
static empty(el: HTMLElement):void;
static toFront(el: HTMLElement):void;
static toBack(el: HTMLElement):void;
static hasClass(el: HTMLElement, name: String): Boolean;
static addClass(el: HTMLElement, name: String):void;
static removeClass(el: HTMLElement, name: String):void;
static setClass(el: HTMLElement, name: String):void;
static getClass(el: HTMLElement): String;
static setOpacity(el: HTMLElement, opacity: Number):void;
static testProp(props: String[]): String|boolean/*=false*/;
static setTransform(el: HTMLElement, offset: Point, scale?: Number):void;
static setPosition(el: HTMLElement, position: Point):void;
static getPosition(el: HTMLElement): Point
static disableTextSelection(): void
static enableTextSelection(): void
static disableImageDrag(): void
static enableImageDrag(): void
static preventOutline(el: HTMLElement): void
static restoreOutline(): void
}
export interface CRS {

@@ -215,3 +251,3 @@ latLngToPoint(latlng: LatLng, zoom: number): Point;

*/
export interface Evented {
export interface Evented extends Class {
/**

@@ -1130,3 +1166,3 @@ * Adds a listener function (fn) to a particular event type of the object.

containerPoint: Point;
originalEvent: MouseEvent; // how can I reference the global MouseEvent?
originalEvent: NativeMouseEvent;
}

@@ -1191,2 +1227,34 @@

export namespace DomEvent {
export function on(el: HTMLElement, types: string, fn: (ev: Event) => any, context?: Object): typeof DomEvent;
export function on(el: HTMLElement, eventMap: {[eventName: string]: Function}, context?: Object): typeof DomEvent;
export function off(el: HTMLElement, types: string, fn: (ev: Event) => any, context?: Object): typeof DomEvent;
export function off(el: HTMLElement, eventMap: {[eventName: string]: Function}, context?: Object): typeof DomEvent;
export function stopPropagation(ev: Event): typeof DomEvent;
export function disableScrollPropagation(el: HTMLElement): typeof DomEvent;
export function disableClickPropagation(el: HTMLElement): typeof DomEvent;
export function preventDefault(ev: Event): typeof DomEvent;
export function stop(ev: Event): typeof DomEvent;
export function getMousePosition(ev: Event, container?: HTMLElement): Point;
export function getWheelDelta(ev: Event): number;
export function addListener(el: HTMLElement, types: string, fn: (ev: Event) => any, context?: Object): typeof DomEvent;
export function addListener(el: HTMLElement, eventMap: {[eventName: string]: Function}, context?: Object): typeof DomEvent;
export function removeListener(el: HTMLElement, types: string, fn: (ev: Event) => any, context?: Object): typeof DomEvent;
export function removeListener(el: HTMLElement, eventMap: {[eventName: string]: Function}, context?: Object): typeof DomEvent;
}
interface DefaultMapPanes {

@@ -1193,0 +1261,0 @@ mapPane: HTMLElement;

4

leaflet/package.json
{
"name": "@types/leaflet",
"version": "1.0.36",
"version": "1.0.37",
"description": "TypeScript definitions for Leaflet.js 1.0.0-rc3",

@@ -18,3 +18,3 @@ "license": "MIT",

"typings": "index.d.ts",
"typesPublisherContentHash": "82b956a8739e064d3e64875ddae404223d5c31961871bf082b06e30be73c5fe6"
"typesPublisherContentHash": "a502ec7e29b0477b452d1aa6f913944812ce2cd9e871160c60b9d22793a10009"
}

@@ -11,4 +11,4 @@ # Installation

Additional Details
* Last updated: Wed, 26 Oct 2016 19:23:28 GMT
* File structure: OldUMD
* Last updated: Mon, 14 Nov 2016 19:34:56 GMT
* File structure: Mixed
* Library Dependencies: geojson

@@ -15,0 +15,0 @@ * Module Dependencies: none

@@ -8,4 +8,4 @@ {

"moduleDependencies": [],
"libraryMajorVersion": "1",
"libraryMinorVersion": "0",
"libraryMajorVersion": 1,
"libraryMinorVersion": 0,
"libraryName": "Leaflet.js 1.0.0-rc3",

@@ -16,3 +16,3 @@ "typingsPackageName": "leaflet",

"sourceBranch": "types-2.0",
"kind": "OldUMD",
"kind": "Mixed",
"globals": [

@@ -28,3 +28,3 @@ "L"

"hasPackageJson": false,
"contentHash": "82b956a8739e064d3e64875ddae404223d5c31961871bf082b06e30be73c5fe6"
"contentHash": "a502ec7e29b0477b452d1aa6f913944812ce2cd9e871160c60b9d22793a10009"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc