@types/mapbox__mapbox-gl-draw
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -179,2 +179,4 @@ // Type definitions for @mapbox/mapbox-gl-draw 1.3 | ||
drawConfig: MapboxDrawOptions; | ||
setSelected(features?: string | string[]): void; | ||
@@ -272,13 +274,3 @@ | ||
type MapboxDrawOptions = ConstructorParameters<typeof MapboxDraw>[0]; | ||
} | ||
declare class MapboxDraw implements IControl { | ||
static modes: MapboxDraw.Modes; | ||
modes: MapboxDraw.DrawModes; | ||
getDefaultPosition: () => string; | ||
constructor(options?: { | ||
interface MapboxDrawOptions { | ||
displayControlsDefault?: boolean | undefined; | ||
@@ -290,9 +282,19 @@ keybindings?: boolean | undefined; | ||
touchBuffer?: number | undefined; | ||
controls?: MapboxDraw.MapboxDrawControls | undefined; | ||
controls?: MapboxDrawControls | undefined; | ||
styles?: object[] | undefined; | ||
modes?: { [modeKey: string]: MapboxDraw.DrawCustomMode } | undefined; | ||
modes?: { [modeKey: string]: DrawCustomMode } | undefined; | ||
defaultMode?: string | undefined; | ||
userProperties?: boolean | undefined; | ||
}); | ||
} | ||
} | ||
declare class MapboxDraw implements IControl { | ||
static modes: MapboxDraw.Modes; | ||
modes: MapboxDraw.DrawModes; | ||
getDefaultPosition: () => string; | ||
constructor(options?: MapboxDraw.MapboxDrawOptions); | ||
add(geojson: Feature | FeatureCollection | Geometry): string[]; | ||
@@ -299,0 +301,0 @@ |
{ | ||
"name": "@types/mapbox__mapbox-gl-draw", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "TypeScript definitions for @mapbox/mapbox-gl-draw", | ||
@@ -31,4 +31,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-gl-draw", | ||
}, | ||
"typesPublisherContentHash": "c12cb86c764955cb87c977ef20e26ae0a3f1d43b591cf3e38ba7d8b9fe0b7c1f", | ||
"typesPublisherContentHash": "290f0e110250f30e17c199f2e7ff051af2e7c83bc2a173ea6e986a9fb0956c08", | ||
"typeScriptVersion": "4.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 02 Nov 2022 15:02:44 GMT | ||
* Last updated: Mon, 07 Nov 2022 20:26:34 GMT | ||
* Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/mapbox-gl](https://npmjs.com/package/@types/mapbox-gl) | ||
@@ -14,0 +14,0 @@ * Global values: `MapboxDraw` |
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
14404
249