{"_id":"@mapbox/extent","_rev":"303-d5743d960dff0535b55c91ce65b9a534","name":"@mapbox/extent","description":"a geographic extent object","dist-tags":{"latest":"0.4.0"},"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":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"3e591f32e1f0c3981c864239f7b0ac06e610f8a9","tarball":"https://registry.npmjs.org/@mapbox/extent/-/extent-0.4.0.tgz","integrity":"sha512-MSoKw3qPceGuupn04sdaJrFeLKvcSETVLZCGS8JA9x6zXQL3FWiKaIXYIZEDXd5jpXpWlRxinCZIN49yRy0C9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDfz7FDQN1HDJaykTuulAbWSJvaTNtYQGbROI7zi2v08AiEA0mvqXQSeFipEzbtAfHxI+I0QJG8bk9n8siGiegT/E/Y="}]},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/extent-0.4.0.tgz_1480711236168_0.012606338365003467"},"directories":{}}},"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.\n","maintainers":[{"email":"yannick.meeus+npm+production+ci@mapbox.com","name":"mbx-npm-ci-production"},{"email":"yannick.meeus+npm+staging+ci@mapbox.com","name":"mbx-npm-ci-staging"},{"email":"yannick.meeus+npm+prod+advanced+actions@mapbox.com","name":"mbx-npm-advanced-actions-production"},{"email":"yannick.meeus+npm+staging+advanced+actions@mapbox.com","name":"mbx-npm-advanced-actions-staging"},{"email":"yannick.meeus+npm+prod+09@mapbox.com","name":"mbx-npm-09-production"},{"email":"yannick.meeus+npm+prod+08@mapbox.com","name":"mbx-npm-08-production"},{"email":"yannick.meeus+npm+prod+07@mapbox.com","name":"mbx-npm-07-production"},{"email":"yannick.meeus+npm+prod+06@mapbox.com","name":"mbx-npm-06-production"},{"email":"yannick.meeus+npm+prod+05@mapbox.com","name":"mbx-npm-05-production"},{"email":"yannick.meeus+npm+prod+04@mapbox.com","name":"mbx-npm-04-production"},{"email":"yannick.meeus+npm+prod+03@mapbox.com","name":"mbx-npm-03-production"},{"email":"yannick.meeus+npm+prod+02@mapbox.com","name":"mbx-npm-02-production"},{"email":"yannick.meeus+npm+prod+01@mapbox.com","name":"mbx-npm-01-production"},{"email":"yannick.meeus@mapbox.com","name":"mbx-npm-02-staging"},{"email":"accounts+npmjs-01@mapbox.com","name":"mapbox-npm-01"},{"email":"accounts+npmjs-02@mapbox.com","name":"mapbox-npm-02"},{"email":"accounts+npmjs-07@mapbox.com","name":"mapbox-npm-07"},{"email":"accounts+npmjs-03@mapbox.com","name":"mapbox-npm-03"},{"email":"accounts+npmjs-04@mapbox.com","name":"mapbox-npm-04"},{"email":"accounts+npmjs-09@mapbox.com","name":"mapbox-npm-09"},{"email":"accounts+npmjs-05@mapbox.com","name":"mapbox-npm-05"},{"email":"accounts+npmjs-06@mapbox.com","name":"mapbox-npm-06"},{"email":"accounts+npmjs-08@mapbox.com","name":"mapbox-npm-08"},{"email":"accounts+npmjs-advanced-actions@mapbox.com","name":"mapbox-npm-advanced-actions"},{"email":"accounts+npmjs-npm-ci@mapbox.com","name":"mapbox-npm-ci"},{"email":"accounts+npmjs@mapbox.com","name":"mapbox-npm"},{"email":"accounts@mapbox.com","name":"mapbox-admin"},{"email":"accounts+npm-mapbox-machine-user@mapbox.com","name":"mapbox-machine-user"}],"time":{"modified":"2023-01-12T12:42:23.406Z","created":"2016-12-02T20:40:36.839Z","0.4.0":"2016-12-02T20:40:36.839Z"},"homepage":"https://github.com/mapbox/extent","keywords":["extent","geographic","lat","lon","browser"],"repository":{"type":"git","url":"git+ssh://git@github.com/mapbox/extent.git"},"author":{"name":"Tom MacWright"},"bugs":{"url":"https://github.com/mapbox/extent/issues"},"license":"ISC","readmeFilename":"README.md"}