@types/leaflet-draw
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -14,5 +14,5 @@ // Type definitions for leaflet-draw 1.0 | ||
interface MapOptions { | ||
drawControl?: boolean; | ||
drawControlTooltips?: boolean; | ||
touchExtend?: boolean; | ||
drawControl?: boolean | undefined; | ||
drawControlTooltips?: boolean | undefined; | ||
touchExtend?: boolean | undefined; | ||
} | ||
@@ -39,19 +39,19 @@ | ||
interface ToolbarOptions { | ||
polyline?: DrawOptions.PolylineOptions; | ||
polygon?: DrawOptions.PolygonOptions; | ||
rectangle?: DrawOptions.RectangleOptions; | ||
circle?: DrawOptions.CircleOptions; | ||
marker?: DrawOptions.MarkerOptions; | ||
circlemarker?: DrawOptions.CircleOptions; | ||
polyline?: DrawOptions.PolylineOptions | undefined; | ||
polygon?: DrawOptions.PolygonOptions | undefined; | ||
rectangle?: DrawOptions.RectangleOptions | undefined; | ||
circle?: DrawOptions.CircleOptions | undefined; | ||
marker?: DrawOptions.MarkerOptions | undefined; | ||
circlemarker?: DrawOptions.CircleOptions | undefined; | ||
} | ||
interface PrecisionOptions { | ||
km?: number; | ||
ha?: number; | ||
m?: number; | ||
mi?: number; | ||
ac?: number; | ||
yd?: number; | ||
ft?: number; | ||
nm?: number; | ||
km?: number | undefined; | ||
ha?: number | undefined; | ||
m?: number | undefined; | ||
mi?: number | undefined; | ||
ac?: number | undefined; | ||
yd?: number | undefined; | ||
ft?: number | undefined; | ||
nm?: number | undefined; | ||
} | ||
@@ -90,3 +90,3 @@ | ||
*/ | ||
position?: ControlPosition; | ||
position?: ControlPosition | undefined; | ||
@@ -98,3 +98,3 @@ /** | ||
*/ | ||
draw?: DrawOptions; | ||
draw?: DrawOptions | undefined; | ||
@@ -106,3 +106,3 @@ /** | ||
*/ | ||
edit?: EditOptions; | ||
edit?: EditOptions | undefined; | ||
} | ||
@@ -116,3 +116,3 @@ | ||
*/ | ||
polyline?: DrawOptions.PolylineOptions | false; | ||
polyline?: DrawOptions.PolylineOptions | false | undefined; | ||
@@ -124,3 +124,3 @@ /** | ||
*/ | ||
polygon?: DrawOptions.PolygonOptions | false; | ||
polygon?: DrawOptions.PolygonOptions | false | undefined; | ||
@@ -132,3 +132,3 @@ /** | ||
*/ | ||
rectangle?: DrawOptions.RectangleOptions | false; | ||
rectangle?: DrawOptions.RectangleOptions | false | undefined; | ||
@@ -140,3 +140,3 @@ /** | ||
*/ | ||
circle?: DrawOptions.CircleOptions | false; | ||
circle?: DrawOptions.CircleOptions | false | undefined; | ||
@@ -148,3 +148,3 @@ /** | ||
*/ | ||
circlemarker?: DrawOptions.CircleMarkerOptions | false; | ||
circlemarker?: DrawOptions.CircleMarkerOptions | false | undefined; | ||
@@ -156,3 +156,3 @@ /** | ||
*/ | ||
marker?: DrawOptions.MarkerOptions | false; | ||
marker?: DrawOptions.MarkerOptions | false | undefined; | ||
} | ||
@@ -174,3 +174,3 @@ | ||
*/ | ||
edit?: DrawOptions.EditHandlerOptions | false; | ||
edit?: DrawOptions.EditHandlerOptions | false | undefined; | ||
@@ -182,3 +182,3 @@ /** | ||
*/ | ||
remove?: boolean | null; | ||
remove?: boolean | null | undefined; | ||
} | ||
@@ -201,3 +201,3 @@ | ||
*/ | ||
repeatMode?: boolean; | ||
repeatMode?: boolean | undefined; | ||
} | ||
@@ -211,3 +211,3 @@ | ||
*/ | ||
allowIntersection?: boolean; | ||
allowIntersection?: boolean | undefined; | ||
@@ -219,3 +219,3 @@ /** | ||
*/ | ||
drawError?: DrawErrorOptions; | ||
drawError?: DrawErrorOptions | undefined; | ||
@@ -227,3 +227,3 @@ /** | ||
*/ | ||
guidelineDistance?: number; | ||
guidelineDistance?: number | undefined; | ||
@@ -236,4 +236,4 @@ /** | ||
shapeOptions?: L.PolylineOptions & { | ||
clickable?: boolean; | ||
}; | ||
clickable?: boolean | undefined; | ||
} | undefined; | ||
@@ -245,3 +245,3 @@ /** | ||
*/ | ||
showLength?: boolean; | ||
showLength?: boolean | undefined; | ||
@@ -253,3 +253,3 @@ /** | ||
*/ | ||
metric?: boolean; | ||
metric?: boolean | undefined; | ||
@@ -261,3 +261,3 @@ /** | ||
*/ | ||
feet?: boolean; | ||
feet?: boolean | undefined; | ||
@@ -269,3 +269,3 @@ /** | ||
*/ | ||
nautic?: boolean; | ||
nautic?: boolean | undefined; | ||
@@ -277,7 +277,7 @@ /** | ||
*/ | ||
zIndexOffset?: number; | ||
zIndexOffset?: number | undefined; | ||
icon?: Icon | DivIcon; | ||
icon?: Icon | DivIcon | undefined; | ||
touchIcon?: Icon | DivIcon; | ||
touchIcon?: Icon | DivIcon | undefined; | ||
@@ -289,3 +289,3 @@ /** | ||
*/ | ||
maxGuideLineLength?: number; | ||
maxGuideLineLength?: number | undefined; | ||
@@ -297,3 +297,3 @@ /** | ||
*/ | ||
factor?: number; | ||
factor?: number | undefined; | ||
@@ -305,3 +305,3 @@ /** | ||
*/ | ||
maxPoints?: number; | ||
maxPoints?: number | undefined; | ||
} | ||
@@ -316,3 +316,3 @@ | ||
*/ | ||
showArea?: boolean; | ||
showArea?: boolean | undefined; | ||
@@ -325,3 +325,3 @@ /** | ||
*/ | ||
showLength?: boolean; | ||
showLength?: boolean | undefined; | ||
@@ -333,3 +333,3 @@ /** | ||
*/ | ||
precision?: PrecisionOptions; | ||
precision?: PrecisionOptions | undefined; | ||
} | ||
@@ -343,3 +343,3 @@ | ||
*/ | ||
shapeOptions?: PathOptions; | ||
shapeOptions?: PathOptions | undefined; | ||
@@ -351,3 +351,3 @@ /** | ||
*/ | ||
metric?: boolean; | ||
metric?: boolean | undefined; | ||
} | ||
@@ -361,3 +361,3 @@ | ||
*/ | ||
shapeOptions?: PathOptions; | ||
shapeOptions?: PathOptions | undefined; | ||
@@ -369,3 +369,3 @@ /** | ||
*/ | ||
showRadius?: boolean; | ||
showRadius?: boolean | undefined; | ||
@@ -377,3 +377,3 @@ /** | ||
*/ | ||
metric?: boolean; | ||
metric?: boolean | undefined; | ||
@@ -385,3 +385,3 @@ /** | ||
*/ | ||
feet?: boolean; | ||
feet?: boolean | undefined; | ||
@@ -393,3 +393,3 @@ /** | ||
*/ | ||
nautic?: boolean; | ||
nautic?: boolean | undefined; | ||
} | ||
@@ -403,3 +403,3 @@ | ||
*/ | ||
stroke?: boolean; | ||
stroke?: boolean | undefined; | ||
@@ -411,3 +411,3 @@ /** | ||
*/ | ||
color?: string; | ||
color?: string | undefined; | ||
@@ -419,3 +419,3 @@ /** | ||
*/ | ||
weight?: number; | ||
weight?: number | undefined; | ||
@@ -427,3 +427,3 @@ /** | ||
*/ | ||
opacity?: number; | ||
opacity?: number | undefined; | ||
@@ -435,3 +435,3 @@ /** | ||
*/ | ||
fill?: boolean; | ||
fill?: boolean | undefined; | ||
@@ -443,3 +443,3 @@ /** | ||
*/ | ||
fillColor?: string; | ||
fillColor?: string | undefined; | ||
@@ -451,3 +451,3 @@ /** | ||
*/ | ||
fillOpacity?: number; | ||
fillOpacity?: number | undefined; | ||
@@ -459,3 +459,3 @@ /** | ||
*/ | ||
clickable?: boolean; | ||
clickable?: boolean | undefined; | ||
@@ -467,3 +467,3 @@ /** | ||
*/ | ||
zIndexOffset?: number; | ||
zIndexOffset?: number | undefined; | ||
} | ||
@@ -477,3 +477,3 @@ | ||
*/ | ||
icon?: Icon | DivIcon; | ||
icon?: Icon | DivIcon | undefined; | ||
@@ -485,3 +485,3 @@ /** | ||
*/ | ||
zIndexOffset?: number; | ||
zIndexOffset?: number | undefined; | ||
@@ -493,3 +493,3 @@ /** | ||
*/ | ||
repeatMode?: boolean; | ||
repeatMode?: boolean | undefined; | ||
} | ||
@@ -534,9 +534,9 @@ | ||
*/ | ||
selectedPathOptions?: PathOptions; | ||
selectedPathOptions?: PathOptions | undefined; | ||
} | ||
interface DrawErrorOptions { | ||
color?: string; | ||
timeout?: number; | ||
message?: string; | ||
color?: string | undefined; | ||
timeout?: number | undefined; | ||
message?: string | undefined; | ||
} | ||
@@ -670,3 +670,3 @@ } | ||
updateContent(labelText?: { text: string, subtext?: string }): Tooltip; | ||
updateContent(labelText?: { text: string, subtext?: string | undefined }): Tooltip; | ||
@@ -874,12 +874,12 @@ updatePosition(latlng: LatLng): Tooltip; | ||
interface EditPolyVerticesEditOptions { | ||
icon?: Icon | DivIcon; | ||
touchIcon?: Icon | DivIcon; | ||
drawError?: DrawOptions.DrawErrorOptions; | ||
icon?: Icon | DivIcon | undefined; | ||
touchIcon?: Icon | DivIcon | undefined; | ||
drawError?: DrawOptions.DrawErrorOptions | undefined; | ||
} | ||
interface EditSimpleShapeOptions { | ||
moveIcon?: Icon | DivIcon; | ||
resizeIcon?: Icon | DivIcon; | ||
touchMoveIcon?: Icon | DivIcon; | ||
touchResizeIcon?: Icon | DivIcon; | ||
moveIcon?: Icon | DivIcon | undefined; | ||
resizeIcon?: Icon | DivIcon | undefined; | ||
touchMoveIcon?: Icon | DivIcon | undefined; | ||
touchResizeIcon?: Icon | DivIcon | undefined; | ||
} | ||
@@ -960,5 +960,5 @@ } | ||
interface Tooltip { | ||
start?: string; | ||
cont?: string; | ||
end?: string; | ||
start?: string | undefined; | ||
cont?: string | undefined; | ||
end?: string | undefined; | ||
} | ||
@@ -965,0 +965,0 @@ |
{ | ||
"name": "@types/leaflet-draw", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "TypeScript definitions for leaflet-draw", | ||
@@ -40,4 +40,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-draw", | ||
}, | ||
"typesPublisherContentHash": "f861422a66f7761b4be11ef809e76a97cf5cd9f8bd37f7ca17e65e33f9c92e27", | ||
"typesPublisherContentHash": "be0d5c6f229b1f0a4c977fac1a3a9e6d6cdac8ca8506a2c4017c823f46764ad7", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 28 May 2021 18:31:26 GMT | ||
* Last updated: Thu, 08 Jul 2021 16:23:33 GMT | ||
* Dependencies: [@types/leaflet](https://npmjs.com/package/@types/leaflet) | ||
@@ -14,0 +14,0 @@ * Global values: none |
32034