{"versions":{"0.4.0":{"name":"@mapbox/extent","version":"0.4.0","description":"a geographic extent object","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/mapbox/extent.git"},"keywords":["extent","geographic","lat","lon","browser"],"author":{"name":"Tom MacWright"},"license":"ISC","bugs":{"url":"https://github.com/mapbox/extent/issues"},"homepage":"https://github.com/mapbox/extent","devDependencies":{"tap":"~0.4.8","benchmark":"~1.0.0","point-in-polygon":"0.0.0"},"gitHead":"5bee5d4f50f8f51cbc9c5ceb2b5f08b8c895a615","_id":"@mapbox/extent@0.4.0","_shasum":"3e591f32e1f0c3981c864239f7b0ac06e610f8a9","_from":".","_npmVersion":"4.0.2","_nodeVersion":"4.6.2","_npmUser":{"name":"anonymous","email":"tom@macwright.org"},"dist":{"shasum":"3e591f32e1f0c3981c864239f7b0ac06e610f8a9","size":4352,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mapbox/extent/-/extent-0.4.0.tgz","integrity":"sha512-MSoKw3qPceGuupn04sdaJrFeLKvcSETVLZCGS8JA9x6zXQL3FWiKaIXYIZEDXd5jpXpWlRxinCZIN49yRy0C9A=="},"maintainers":[{"name":"anonymous","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"anonymous","email":"accounts+npmjs@mapbox.com"},{"name":"anonymous","email":"accounts+npmjs-01@mapbox.com"},{"name":"anonymous","email":"accounts+npmjs-02@mapbox.com"},{"name":"anonymous","email":"accounts+npmjs-03@mapbox.com"},{"name":"anonymous","email":"accounts+npmjs-04@mapbox.com"},{"name":"anonymous","email":"accounts+npmjs-08@mapbox.com"},{"name":"anonymous","email":"accounts+npmjs-09@mapbox.com"},{"name":"anonymous","email":"accounts+npmjs-npm-ci@mapbox.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/extent-0.4.0.tgz_1480711236168_0.012606338365003467"},"directories":{},"publish_time":1480711236839,"_hasShrinkwrap":false,"_cnpm_publish_time":1480711236839,"_cnpmcore_publish_time":"2021-12-16T17:36:30.913Z","contributors":[]}},"dist-tags":{"latest":"0.4.0"},"name":"@mapbox/extent","time":{"created":"2022-01-26T20:49:52.317Z","modified":"2023-01-12T12:54:00.784Z","0.4.0":"2016-12-02T20:40:36.839Z"},"readme":"[![Build Status](https://travis-ci.org/mapbox/extent.svg)](https://travis-ci.org/mapbox/extent)\n\n# extent\n\nA simple geographical extent.\n\n## api\n\n### `extent()`\n\nCreate a new extent object\n\n### `extent([w, s, e, n])`\n\nCreate a new extent object, given bounds as an array.\n\n### `extent.include([lon, lat])`\n\nExpand the extent to include a lon, lat point.\n\n### `extent.union([w, s, e, n] or other extent)`\n\nExpand the extent to include another extent.\n\n### `extent.equals([w, s, e, n] or other extent)`\n\nWhether this extent is exactly equal to another.\n\n### `extent.bbox()`\n\nGet the extent's value. `null` if no points have\nbeen included yet. Order is `[WSEN]` to match the [GeoJSON](http://geojson.org/)\nstandard.\n\n### `extent.center()`\n\nGet the centerpoint of the extent as a `[longitude, latitude]` array.\n\n### `extent.polygon()`\n\nGet the extent as a [GeoJSON](http://geojson.org/) Polygon geometry object.\n\n### `extent.contains([lon, lat])`\n\nReturns `true` if this extent contains the given point, and false if not. Points\non the boundary of the extent are considered to be contained. If the extent is\ninvalid, returns `null`.\n\n### `extent.contains()`\n\nReturns a function that evaluates whether points are contained in the extent -\nsame behavior as `.contains([lon, lat])`. This pre-compiles the function with the\ncurrent extent values, yielding a roughly 3x speedup.","users":{}}