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

@types/mapbox-gl

Package Overview
Dependencies
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/mapbox-gl - npm Package Compare versions

Comparing version 0.51.8 to 0.51.9

9

mapbox-gl/index.d.ts

@@ -202,3 +202,3 @@ // Type definitions for Mapbox GL JS v0.51.0

cameraForBounds(bounds: LngLatBoundsLike, options?: CameraForBoundsOptions): CameraOptions | undefined;
cameraForBounds(bounds: LngLatBoundsLike, options?: CameraForBoundsOptions): CameraForBoundsResult | undefined;

@@ -1215,2 +1215,9 @@ fitBounds(bounds: LngLatBoundsLike, options?: mapboxgl.FitBoundsOptions, eventData?: mapboxgl.EventData): this;

// The Mapbox docs say that if the result is defined, it will have zoom, center and bearing set.
// In practice center is always a {lat, lng} object.
export type CameraForBoundsResult = Required<Pick<CameraOptions, 'zoom' | 'bearing'>> & {
/** Map center */
center: {lng: number; lat: number};
};
/**

@@ -1217,0 +1224,0 @@ * FlyToOptions

4

mapbox-gl/package.json
{
"name": "@types/mapbox-gl",
"version": "0.51.8",
"version": "0.51.9",
"description": "TypeScript definitions for Mapbox GL JS",

@@ -34,4 +34,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "02a9d03dc2bb0e492072dbb1e505299cadfe136d94ec0ea34682f4ed27121a72",
"typesPublisherContentHash": "3e84f04db4d64bbe7e9a6b7cc4f3db516abbb8aa7ee9a9d46169c455c1c01707",
"typeScriptVersion": "3.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Wed, 26 Jun 2019 18:06:14 GMT
* Last updated: Fri, 28 Jun 2019 17:59:07 GMT
* Dependencies: @types/geojson

@@ -14,0 +14,0 @@ * Global values: mapboxgl

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