Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/mapbox__mapbox-gl-draw

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/mapbox__mapbox-gl-draw - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

30

mapbox__mapbox-gl-draw/index.d.ts

@@ -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`

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