{"version":3,"sources":["/home/runner/work/turf/turf/packages/turf-envelope/dist/cjs/index.cjs","../../index.ts"],"names":[],"mappings":"AAAA;ACEA,kCAAqB;AACrB,iDAA4B;AAoB5B,SAAS,QAAA,CAAS,OAAA,EAAuC;AACvD,EAAA,OAAO,sCAAA,wBAAY,OAAY,CAAC,CAAA;AAClC;AAGA,IAAO,sBAAA,EAAQ,QAAA;ADrBf;AACE;AACA;AACF,qEAAC","file":"/home/runner/work/turf/turf/packages/turf-envelope/dist/cjs/index.cjs","sourcesContent":[null,"import type { Feature, Polygon } from \"geojson\";\nimport type { AllGeoJSON } from \"@turf/helpers\";\nimport { bbox } from \"@turf/bbox\";\nimport { bboxPolygon } from \"@turf/bbox-polygon\";\n\n/**\n * Takes any number of features and returns a rectangular {@link Polygon} that encompasses all vertices.\n *\n * @function\n * @param {GeoJSON} geojson input features\n * @returns {Feature} a rectangular Polygon feature that encompasses all vertices\n * @example\n * var features = turf.featureCollection([\n * turf.point([-75.343, 39.984], {\"name\": \"Location A\"}),\n * turf.point([-75.833, 39.284], {\"name\": \"Location B\"}),\n * turf.point([-75.534, 39.123], {\"name\": \"Location C\"})\n * ]);\n *\n * var enveloped = turf.envelope(features);\n *\n * //addToMap\n * var addToMap = [features, enveloped];\n */\nfunction envelope(geojson: AllGeoJSON): Feature {\n return bboxPolygon(bbox(geojson));\n}\n\nexport { envelope };\nexport default envelope;\n"]}