{"name":"@turf/bezier","version":"4.2.0","keywords":["turf","geometry","bezier","curve","linestring"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/bezier@4.2.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"5e638fe6a72927889ce33b29acb05860cc5ed5a3","tarball":"http://registry-npm.ywwl.com/@turf/bezier/download/@turf/bezier-4.2.0.tgz","integrity":"sha512-TtGFQqBCLL4SDfSaTMWk3P6p8qqDkqJvSAQkOyRRabPpMSYl8U4nIff6tfqoUgJHYHtQyihnjTnTm8PvOJ2yYA==","signatures":[{"sig":"MEYCIQCD66weZSV+xHLUBlYMo99aU1SNpPxNfcXWlDpL6V2HVAIhAK+eGd1m5ZEA94ewHbn1MIiKuiqnYcqzkVm1+JyKF7fH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":4089,"noattachment":false,"key":"/@turf/bezier/-/@turf/bezier-4.2.0.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts","spline.js"],"types":"index.d.ts","_shasum":"5e638fe6a72927889ce33b29acb05860cc5ed5a3","scripts":{"test":"node test.js","bench":"node bench.js"},"_npmUser":{"name":"deniscarriere","email":"carriere.denis@gmail.com"},"deprecated":"Module has been renamed to @turf/bezier-spline","repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"4.2.0","description":"turf bezier module","directories":{},"_nodeVersion":"7.9.0","dependencies":{"tape":"^4.6.3","benchmark":"^2.1.4","@turf/helpers":"^4.2.0","load-json-file":"^2.0.0","write-json-file":"^2.0.0"},"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/bezier-4.2.0.tgz_1493588812864_0.4318897679913789","host":"packages-12-west.internal.npmjs.com"},"readme":"# @turf/bezier\n\n# bezier\n\nTakes a [line](http://geojson.org/geojson-spec.html#linestring) and returns a curved version\nby applying a [Bezier spline](http://en.wikipedia.org/wiki/B%C3%A9zier_spline)\nalgorithm.\n\nThe bezier spline implementation is by [Leszek Rybicki](http://leszek.rybicki.cc/).\n\n**Parameters**\n\n-   `line` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[LineString](http://geojson.org/geojson-spec.html#linestring)>** input LineString\n-   `resolution` **\\[[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)]** time in milliseconds between points (optional, default `10000`)\n-   `sharpness` **\\[[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)]** a measure of how curvy the path should be between splines (optional, default `0.85`)\n\n**Examples**\n\n```javascript\nvar line = turf.lineString([\n  [-76.091308, 18.427501],\n  [-76.695556, 18.729501],\n  [-76.552734, 19.40443],\n  [-74.61914, 19.134789],\n  [-73.652343, 20.07657],\n  [-73.157958, 20.210656]\n]);\n\nvar curved = turf.bezier(line);\n\n//addToMap\nvar addToMap = [line, curved]\ncurved.properties = { stroke: '#0F0' };\n```\n\nReturns **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[LineString](http://geojson.org/geojson-spec.html#linestring)>** curved line\n\n<!-- This file is automatically generated. Please don't edit it directly:\nif you find an error, edit the source file (likely index.js), and re-run\n./scripts/generate-readmes in the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](http://turfjs.org/), an open source\nmodule collection dedicated to geographic algorithms. It is maintained in the\n[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create\nPRs and issues.\n\n### Installation\n\nInstall this module individually:\n\n```sh\n$ npm install @turf/bezier\n```\n\nOr install the Turf module that includes it as a function:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1493588813094,"maintainers":[{"email":"james@smallsaucepan.com","name":"smallsaucepan"},{"email":"morganherlocker@gmail.com","name":"morgan.herlocker"},{"email":"tim.j.welch@gmail.com","name":"twelch"},{"email":"jamesmilner22@hotmail.com","name":"jamesmilneruk"},{"email":"rowanwins@yahoo.com.au","name":"rowanwins"},{"email":"tom@macwright.com","name":"tmcw"},{"email":"morgan.herlocker@gmail.com","name":"morganherlocker"},{"email":"tim.channell@gmail.com","name":"tcql"},{"email":"mdfedderly@mdfedderly.com","name":"mdfedderly"}],"_cnpm_publish_time":1493588813094,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"4.7.3","lerna-temp":"4.7.1"}}