{"name":"@turf/bezier","version":"3.5.2","keywords":["turf","geometry","bezier","curve","linestring"],"author":{"name":"Morgan Herlocker"},"license":"ISC","_id":"@turf/bezier@3.5.2","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"cdbe41469feefcd2d1dc1808000fd45cbaa823b3","tarball":"http://registry-npm.ywwl.com/@turf/bezier/download/@turf/bezier-3.5.2.tgz","integrity":"sha512-zhUVLPUgXvWrpqcE4HXOwccD72Tf2/Z6UknhyvdnxxkyDUtbJa9bso1VacGDowg3W+dTWmYGYxN+9EYLu6OjEw==","signatures":[{"sig":"MEUCIHp/KGhn0mC+/xAM+lGqrhJN9a/IjWPd779dohQT0oo0AiEA8Qj4Vymiwpqs6bZwxYLPwGJGo1lpFLbH+nI2/+SMkmM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":4149,"noattachment":false,"key":"/@turf/bezier/-/@turf/bezier-3.5.2.tgz"},"main":"index.js","_from":".","_shasum":"cdbe41469feefcd2d1dc1808000fd45cbaa823b3","scripts":{"test":"tape test.js"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"deprecated":"Module has been renamed to @turf/bezier-spline","repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"2.15.9","description":"generate a bezier curve from a linestring","directories":{},"_nodeVersion":"4.5.0","dependencies":{"@turf/helpers":"^3.5.2"},"devDependencies":{"tape":"~3.5.0","benchmark":"1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bezier-3.5.2.tgz_1471904435843_0.522884793812409","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":1471904437657,"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":1471904437657,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"4.7.3","lerna-temp":"4.7.1"}}