@types/react-leaflet
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -14,55 +14,55 @@ // Type definitions for react-leaflet 1.0 | ||
interface LeafletLayerEvents { | ||
onbaselayerchange?: (event: Leaflet.LayersControlEvent) => void; | ||
onoverlayadd?: (event: Leaflet.LayersControlEvent) => void; | ||
onoverlayremove?: (event: Leaflet.LayersControlEvent) => void; | ||
onlayeradd?: (event: Leaflet.LayerEvent) => void; | ||
onlayerremove?: (event: Leaflet.LayerEvent) => void; | ||
onbaselayerchange?(event: Leaflet.LayersControlEvent): void; | ||
onoverlayadd?(event: Leaflet.LayersControlEvent): void; | ||
onoverlayremove?(event: Leaflet.LayersControlEvent): void; | ||
onlayeradd?(event: Leaflet.LayerEvent): void; | ||
onlayerremove?(event: Leaflet.LayerEvent): void; | ||
} | ||
interface LeafletMapStateChangeEvents { | ||
onzoomlevelschange?: (event: Leaflet.Event) => void; | ||
onresize?: (event: Leaflet.ResizeEvent) => void; | ||
onunload?: (event: Leaflet.Event) => void; | ||
onviewreset?: (event: Leaflet.Event) => void; | ||
onload?: (event: Leaflet.Event) => void; | ||
onzoomstart?: (event: Leaflet.Event) => void; | ||
onmovestart?: (event: Leaflet.Event) => void; | ||
onzoom?: (event: Leaflet.Event) => void; | ||
onmove?: (event: Leaflet.Event) => void; | ||
onzoomend?: (event: Leaflet.Event) => void; | ||
onmoveend?: (event: Leaflet.Event) => void; | ||
onzoomlevelschange?(event: Leaflet.Event): void; | ||
onresize?(event: Leaflet.ResizeEvent): void; | ||
onunload?(event: Leaflet.Event): void; | ||
onviewreset?(event: Leaflet.Event): void; | ||
onload?(event: Leaflet.Event): void; | ||
onzoomstart?(event: Leaflet.Event): void; | ||
onmovestart?(event: Leaflet.Event): void; | ||
onzoom?(event: Leaflet.Event): void; | ||
onmove?(event: Leaflet.Event): void; | ||
onzoomend?(event: Leaflet.Event): void; | ||
onmoveend?(event: Leaflet.Event): void; | ||
} | ||
interface LeafletPopupEvents { | ||
onpopupopen?: (event: Leaflet.PopupEvent) => void; | ||
onpopupclose?: (event: Leaflet.PopupEvent) => void; | ||
onautopanstart?: (event: Leaflet.Event) => void; | ||
onpopupopen?(event: Leaflet.PopupEvent): void; | ||
onpopupclose?(event: Leaflet.PopupEvent): void; | ||
onautopanstart?(event: Leaflet.Event): void; | ||
} | ||
interface LeafletTooltipEvents { | ||
ontooltipopen?: (event: Leaflet.TooltipEvent) => void; | ||
ontooltipclose?: (event: Leaflet.TooltipEvent) => void; | ||
ontooltipopen?(event: Leaflet.TooltipEvent): void; | ||
ontooltipclose?(event: Leaflet.TooltipEvent): void; | ||
} | ||
interface LeafletLocationEvents { | ||
onlocationerror?: (event: Leaflet.ErrorEvent) => void; | ||
onlocationfound?: (event: Leaflet.LocationEvent) => void; | ||
onlocationerror?(event: Leaflet.ErrorEvent): void; | ||
onlocationfound?(event: Leaflet.LocationEvent): void; | ||
} | ||
interface LeafletInteractionEvents { | ||
onclick?: (event: Leaflet.MouseEvent) => void; | ||
ondblclick?: (event: Leaflet.MouseEvent) => void; | ||
onmousedown?: (event: Leaflet.MouseEvent) => void; | ||
onmouseup?: (event: Leaflet.MouseEvent) => void; | ||
onmouseover?: (event: Leaflet.MouseEvent) => void; | ||
onmouseout?: (event: Leaflet.MouseEvent) => void; | ||
onmousemove?: (event: Leaflet.MouseEvent) => void; | ||
oncontextmenu?: (event: Leaflet.MouseEvent) => void; | ||
onkeypress?: (event: Leaflet.KeyboardEvent) => void; | ||
onpreclick?: (event: Leaflet.MouseEvent) => void; | ||
onclick?(event: Leaflet.MouseEvent): void; | ||
ondblclick?(event: Leaflet.MouseEvent): void; | ||
onmousedown?(event: Leaflet.MouseEvent): void; | ||
onmouseup?(event: Leaflet.MouseEvent): void; | ||
onmouseover?(event: Leaflet.MouseEvent): void; | ||
onmouseout?(event: Leaflet.MouseEvent): void; | ||
onmousemove?(event: Leaflet.MouseEvent): void; | ||
oncontextmenu?(event: Leaflet.MouseEvent): void; | ||
onkeypress?(event: Leaflet.KeyboardEvent): void; | ||
onpreclick?(event: Leaflet.MouseEvent): void; | ||
} | ||
interface LeafletOtherEvents { | ||
onzoomanim?: (event: Leaflet.ZoomAnimEvent) => void; | ||
onzoomanim?(event: Leaflet.ZoomAnimEvent): void; | ||
} | ||
interface LeafletDraggingEvents { | ||
ondragstart?: (event: Leaflet.Event) => void; | ||
onmovestart?: (event: Leaflet.Event) => void; | ||
ondrag?: (event: Leaflet.Event) => void; | ||
ondragend?: (event: Leaflet.DragEndEvent) => void; | ||
onmoveend?: (event: Leaflet.Event) => void; | ||
ondragstart?(event: Leaflet.Event): void; | ||
onmovestart?(event: Leaflet.Event): void; | ||
ondrag?(event: Leaflet.Event): void; | ||
ondragend?(event: Leaflet.DragEndEvent): void; | ||
onmoveend?(event: Leaflet.Event): void; | ||
} | ||
@@ -96,12 +96,12 @@ | ||
interface LayerProps extends LeafletInteractionEvents { | ||
onadd?: (event: Leaflet.Event) => void; | ||
onremove?: (event: Leaflet.Event) => void; | ||
onadd?(event: Leaflet.Event): void; | ||
onremove?(event: Leaflet.Event): void; | ||
// Popup events | ||
onpopupopen?: (event: Leaflet.PopupEvent) => void; | ||
onpopupclose?: (event: Leaflet.PopupEvent) => void; | ||
onpopupopen?(event: Leaflet.PopupEvent): void; | ||
onpopupclose?(event: Leaflet.PopupEvent): void; | ||
// Tooltip events | ||
ontooltipopen?: (event: Leaflet.TooltipEvent) => void; | ||
ontooltipclose?: (event: Leaflet.TooltipEvent) => void; | ||
ontooltipopen?(event: Leaflet.TooltipEvent): void; | ||
ontooltipclose?(event: Leaflet.TooltipEvent): void; | ||
} | ||
@@ -134,8 +134,8 @@ | ||
onloading?: (event: Leaflet.Event) => void; | ||
ontileunload?: (event: Leaflet.TileEvent) => void; | ||
ontileloadstart?: (event: Leaflet.TileEvent) => void; | ||
ontileerror?: (event: Leaflet.TileErrorEvent) => void; | ||
ontileload?: (event: Leaflet.TileEvent) => void; | ||
onload?: (event: Leaflet.Event) => void; | ||
onloading?(event: Leaflet.Event): void; | ||
ontileunload?(event: Leaflet.TileEvent): void; | ||
ontileloadstart?(event: Leaflet.TileEvent): void; | ||
ontileerror?(event: Leaflet.TileErrorEvent): void; | ||
ontileload?(event: Leaflet.TileEvent): void; | ||
onload?(event: Leaflet.Event): void; | ||
} | ||
@@ -227,4 +227,4 @@ export const GridLayer: React.ComponentClass<GridLayerProps>; | ||
} | ||
declare class MapControl<T extends MapControlProps> extends React.Component<T, any> { | ||
leafletElement?: L.Control | ||
export class MapControl<T extends MapControlProps> extends React.Component<T, any> { | ||
leafletElement?: L.Control; | ||
} | ||
@@ -231,0 +231,0 @@ |
{ | ||
"name": "@types/react-leaflet", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "TypeScript definitions for react-leaflet", | ||
@@ -23,4 +23,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "4b1fdfc08ba905cb6e15f03d2dce446ec316c2de262e92e758da999bb680b352", | ||
"typesPublisherContentHash": "c914d37d8d22b0c9aeac1461fdafc3ce9a93760ce1c4db52844a4aa5e4b69813", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/react-leaflet | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-leaflet | ||
Additional Details | ||
* Last updated: Tue, 28 Mar 2017 04:19:48 GMT | ||
* Last updated: Thu, 30 Mar 2017 21:15:21 GMT | ||
* Dependencies: leaflet, react | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9725