{"_id":"@turf/bbox-clip@7.4.0","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"dc8a4b6fe9dc27ac58ccdbff5696e627b3c543d2","tarball":"http://registry-npm.ywwl.com/@turf/bbox-clip/download/@turf/bbox-clip-7.4.0.tgz","fileCount":9,"integrity":"sha512-Vxi8XznT/vhLHfqE9C1IMw0wi73+6EP3Bn51Vm0v9AWLUEv1zKPqR9/a4cj+s7f3diPE1g238rS48+BB5nYKSQ==","signatures":[{"sig":"MEQCICYgYMo9euCybiqjBGxtKNSR4u9YZxdHz5hz1TMUhGSmAiAtvbJ5KUzy0FKZJsdEgszJcmuXHC6jKDGzfYWXuUlzyg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDobkRVnRRkJLh8i9Z4kDzVhb7Y6zdGDOpJfQZHggk4tgIhAO3/mPMKgL05lPH474J4MSAGdwHD1zMR+tDxCYdXvwS7"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@turf%2fbbox-clip@7.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":36604,"size":7832,"noattachment":false,"key":"/@turf/bbox-clip/-/@turf/bbox-clip-7.4.0.tgz"},"main":"dist/cjs/index.cjs","name":"@turf/bbox-clip","type":"module","_from":"file:turf-bbox-clip-7.4.0.tgz","types":"dist/esm/index.d.ts","author":{"name":"Turf Authors"},"module":"dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}},"./package.json":"./package.json"},"funding":"https://opencollective.com/turf","license":"MIT","scripts":{"test":"pnpm run /test:.*/","bench":"tsx bench.ts","build":"tsup --config ../../tsup.config.ts","test:tape":"tsx test.ts"},"version":"7.4.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:59953016-e158-4d61-8d0c-3d6cc44a8311"}},"homepage":"https://github.com/Turfjs/turf","keywords":["turf","geojson","gis","bbox","clip"],"_resolved":"/tmp/232c0eff4833046d4c756d94a10d3e0f/turf-bbox-clip-7.4.0.tgz","_integrity":"sha512-Vxi8XznT/vhLHfqE9C1IMw0wi73+6EP3Bn51Vm0v9AWLUEv1zKPqR9/a4cj+s7f3diPE1g238rS48+BB5nYKSQ==","repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"11.17.0","description":"Takes a Feature and a bbox and clips the feature to the bbox using lineclip.","directories":{},"maintainers":[{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"}],"sideEffects":false,"_nodeVersion":"26.5.1","contributors":[{"name":"Tim Channell","email":"@tcql"},{"name":"Vladimir Agafonkin","email":"@mourner"},{"name":"Denis Carriere","email":"@DenisCarriere"}],"dependencies":{"tslib":"^2.8.1","@turf/helpers":"7.4.0","@types/geojson":"^7946.0.10","@turf/invariant":"7.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.22.4","tape":"^5.10.2","tsup":"^8.5.1","benchmark":"^2.1.4","@turf/bbox":"7.4.0","typescript":"^5.9.3","@types/tape":"^5.8.1","load-json-file":"^7.0.1","write-json-file":"^6.0.0","@types/benchmark":"^2.1.5"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bbox-clip_7.4.0_1785771008454_0.4094892089879574"},"readme":"# @turf/bbox-clip\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## bboxClip\n\nTakes a [Feature][1] and a bbox and clips the feature to the bbox using\n[lineclip][2].\nMay result in degenerate edges when clipping Polygons.\n\n### Parameters\n\n*   `feature` **[Feature][1]<([LineString][3] | [MultiLineString][4] | [Polygon][5] | [MultiPolygon][6])>** feature to clip to the bbox\n*   `bbox` **[BBox][7]** extent in \\[minX, minY, maxX, maxY] order\n\n### Examples\n\n```javascript\nvar bbox = [0, 0, 10, 10];\nvar poly = turf.polygon([[[2, 2], [8, 4], [12, 8], [3, 7], [2, 2]]]);\n\nvar clipped = turf.bboxClip(poly, bbox);\n\n//addToMap\nvar addToMap = [bbox, poly, clipped]\n```\n\nReturns **[Feature][1]<([LineString][3] | [MultiLineString][4] | [Polygon][5] | [MultiPolygon][6])>** clipped Feature\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[2]: https://github.com/mapbox/lineclip\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.1.4\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3.1.5\n\n[5]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n[6]: https://tools.ietf.org/html/rfc7946#section-3.1.7\n\n[7]: https://tools.ietf.org/html/rfc7946#section-5\n\n<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run \"yarn docs\" from the root of the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](https://turfjs.org/), an open source module collection dedicated to geographic algorithms. It is maintained in the [Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create PRs and issues.\n\n### Installation\n\nInstall this single module individually:\n\n```sh\n$ npm install @turf/bbox-clip\n```\n\nOr install the all-encompassing @turf/turf module that includes all modules as functions:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1785771008531,"_cnpm_publish_time":1785771008531,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}