{"name":"@turf/bezier","version":"4.7.3","keywords":["turf","geometry","bezier","curve","linestring"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/bezier@4.7.3","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"34bdd8e96f22726aad1f35683173882cf616be48","tarball":"http://registry-npm.ywwl.com/@turf/bezier/download/@turf/bezier-4.7.3.tgz","integrity":"sha512-t7wO3BeYRkMqM0nfweUzvFEs/JXpGdjsMIKPDMP5Rhohd5ZETMlthGels6Fo8KyC7OTm+0PQcnu67WLErjHsIA==","signatures":[{"sig":"MEQCIGpFFOs/E8iLk76qUh2IAVhjB0CtWQIQVAdIjg9okcGCAiAElBsckwx+4jX2o6B8ev40KXpfS6HHQBHjiEb5HxbMrA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2fHWCRA9TVsSAnZWagAALhIQAJcAvnuDh8mz8//Zx8w3\ndxvaUAwkHPM/vRBsPf7fnDNQwinjcnDMmhYn3YpummER2FMOD6QrObHSndqj\nLgA4DqN6fe7YnqSSsoEqeT7UYp6eJvqaa9qPDWwkqNDID/y1zooi/OveUsuF\nlHhsr28g6bqj0XzL679Wj/pm0x30lswyfcWVsUtsdxtJg6dt/Mvq9spiRPjX\nYG6pw8bqu49L+e87krTxOdiQOF3FD7PDZcgUNge8fxVbGL+JrFjJwf+SEHfL\n6a9gQ5W++VZjJ5DSKnCnbih2JtNuF6FfPUcfNJnT8UIpc+XJyflaoL41UrGr\nDbbAVNjkO6+DI/zA6MJ1OCLe6M3iqptjy9prgsj7arjW8cHJOjZex3T4kByt\nUf3evrQTIJ9m/OkWr4RrB/o4UdZA4cu+Ddg2tSZQJs8IOmGf4EaIkNdDoDdv\nR67SfpimOAPSGlAjxfRXc4gBRT3KMTzO1MRhGoAZyXaGibclCNqcz5vUzX5S\noPP9vEwoQpA3k4ZH9sHLlG/R8abBasfCIdjtgB7f6+/3f6wXaquNRUv5kpOy\nQozy4GNBKPfghfqJhXiEx0PjzLHaYsR2vLfd2SLySuSz0DCFzrMug9xOYbJz\nt3F+uIfKiNPbWumFCrg6vnmZndlJpBJ/11ol0KMPgI6RyOvZIPtwK3NPomfg\nxrme\r\n=soXm\r\n-----END PGP SIGNATURE-----\r\n","size":3990,"noattachment":false,"key":"/@turf/bezier/-/@turf/bezier-4.7.3.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts","spline.js"],"types":"index.d.ts","_shasum":"34bdd8e96f22726aad1f35683173882cf616be48","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":"3.10.10","description":"turf bezier module","directories":{},"_nodeVersion":"6.11.2","dependencies":{"@turf/helpers":"^4.7.3"},"devDependencies":{"tape":"^4.6.3","benchmark":"^2.1.4","load-json-file":"^2.0.0","write-json-file":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bezier-4.7.3.tgz_1505222476185_0.6143803966697305","host":"s3://npm-registry-packages"},"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":1505222476295,"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":1505222476295,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"4.7.3","lerna-temp":"4.7.1"}}