{"versions":{"1.0.0":{"name":"@yr/monotone-cubic-spline","description":"Convert a series of points to a monotone cubic spline","version":"1.0.0","author":{"name":"Alexander Pope","email":"alexander.pope@nrk.no"},"dependencies":{},"devDependencies":{"buddy":"3.1.x","expect.js":"*","mocha":"*","mocha-phantomjs":"*","transfigure-babel":"6.1.x"},"main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/YR/monotone-cubic-spline.git"},"license":"MIT","scripts":{"prepublish":"buddy build","test":"NODE_ENV=test mocha test/lib-test.js --reporter spec","test-client":"buddy build && mocha-phantomjs test/test-runner.html"},"browser":"index.js","build":{"targets":[{"input":"src/index.js","output":"test/lib.js","boilerplate":true,"bootstrap":true},{"input":"src","output":".","modular":false}]},"gitHead":"8d0f74091d23dbf8a98c400d1cb5b3852ae52bdc","bugs":{"url":"https://github.com/YR/monotone-cubic-spline/issues"},"homepage":"https://github.com/YR/monotone-cubic-spline#readme","_id":"@yr/monotone-cubic-spline@1.0.0","_shasum":"2d10671b0e47b0f1960e829fbbb3a8b343dd946f","_from":".","_npmVersion":"3.3.9","_nodeVersion":"5.0.0","_npmUser":{"name":"anonymous","email":"alexander.pope@nrk.no"},"dist":{"shasum":"2d10671b0e47b0f1960e829fbbb3a8b343dd946f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@yr/monotone-cubic-spline/-/monotone-cubic-spline-1.0.0.tgz","size":2959,"integrity":"sha512-U+TEGmBYjfS0A3CV/qXXVuobQ3xJpLZ3COz+C1ehNQAPHeoSGW12VX+47aAq8n6BNeobK+lCnuZriMsmTllKbQ=="},"maintainers":[{"name":"anonymous","email":"alexander.pope@nrk.no"}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T06:17:51.853Z","contributors":[]},"1.0.1":{"name":"@yr/monotone-cubic-spline","description":"Convert a series of points to a monotone cubic spline","version":"1.0.1","author":{"name":"Alexander Pope","email":"alexander.pope@nrk.no"},"dependencies":{},"devDependencies":{"buddy":"5.0.x","buddy-plugin-babel":"6.7.x","expect.js":"*","mocha":"*","mocha-phantomjs":"*"},"main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/YR/monotone-cubic-spline.git"},"license":"MIT","scripts":{"prepublish":"buddy build","test":"NODE_ENV=test mocha test/lib-test.js --reporter spec","test-client":"buddy build && mocha-phantomjs test/test-runner.html"},"browser":"index.js","build":{"targets":[{"input":"src","output":".","modular":false},{"input":"src/index.js","output":"test/lib.js"}]},"gitHead":"7ff2a64a23cf747737efa67007bb69c15103915b","bugs":{"url":"https://github.com/YR/monotone-cubic-spline/issues"},"homepage":"https://github.com/YR/monotone-cubic-spline#readme","_id":"@yr/monotone-cubic-spline@1.0.1","_shasum":"040a65eafb0841be2cb9fa573903557bf25fc785","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"anonymous","email":"alex@pope-industries.com"},"dist":{"shasum":"040a65eafb0841be2cb9fa573903557bf25fc785","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@yr/monotone-cubic-spline/-/monotone-cubic-spline-1.0.1.tgz","size":3193,"integrity":"sha512-6N2fTVpTUotF9kKnS0y/kfYCVXhlmBCx3+aqgAu8WNwmwODs3o/MPdK4WPl9sKvOcCYmeO+wAzs03ejibkP/pQ=="},"maintainers":[{"name":"anonymous","email":"alex@pope-industries.com"},{"name":"anonymous","email":"alexander.pope@nrk.no"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/monotone-cubic-spline-1.0.1.tgz_1462171854303_0.8894699579104781"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T06:17:53.499Z","contributors":[]},"1.0.2":{"name":"@yr/monotone-cubic-spline","description":"Convert a series of points to a monotone cubic spline","version":"1.0.2","author":{"name":"Alexander Pope","email":"alexander.pope@nrk.no"},"dependencies":{},"devDependencies":{"buddy":"5.1.x","buddy-plugin-babel":"6.10.x","expect.js":"*","mocha":"*","mocha-phantomjs":"*"},"main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/YR/monotone-cubic-spline.git"},"license":"MIT","scripts":{"prepublish":"buddy build","test":"NODE_ENV=test mocha test/lib-test.js --reporter spec","test-client":"buddy build && mocha-phantomjs test/test-runner.html"},"browser":"index.js","build":{"targets":[{"input":"src","output":".","modular":false},{"input":"src/index.js","output":"test/lib.js"}]},"gitHead":"ab837f86d65e599e4fff4e1dad03a1d5c3e0589c","bugs":{"url":"https://github.com/YR/monotone-cubic-spline/issues"},"homepage":"https://github.com/YR/monotone-cubic-spline#readme","_id":"@yr/monotone-cubic-spline@1.0.2","_shasum":"3a30f89c2c6c1494838cd6285e5a28ba2e24b6e7","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"anonymous","email":"alex@pope-industries.com"},"dist":{"shasum":"3a30f89c2c6c1494838cd6285e5a28ba2e24b6e7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@yr/monotone-cubic-spline/-/monotone-cubic-spline-1.0.2.tgz","size":4022,"integrity":"sha512-/gisZdA0JoQE4CxZF+lq3VWGAo9xJor4RdANP3l5v+nLwwSOU1uwgKqF9aMH1W5O/KED2yEw/Owpeg6VMQpedA=="},"maintainers":[{"name":"anonymous","email":"studio@mariuslundgard.com"},{"name":"anonymous","email":"alex@pope-industries.com"},{"name":"anonymous","email":"alexander.pope@nrk.no"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/monotone-cubic-spline-1.0.2.tgz_1467013122749_0.3360384979750961"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T06:17:55.177Z","contributors":[]},"1.0.3":{"name":"@yr/monotone-cubic-spline","description":"Convert a series of points to a monotone cubic spline","version":"1.0.3","author":{"name":"Alexander Pope","email":"alexander.pope@nrk.no"},"dependencies":{},"devDependencies":{"babel-plugin-syntax-trailing-function-commas":"6.22.0","babel-plugin-transform-async-generator-functions":"6.24.1","babel-plugin-transform-async-to-generator":"6.24.1","babel-plugin-transform-es2015-arrow-functions":"6.22.0","babel-plugin-transform-es2015-block-scoped-functions":"6.22.0","babel-plugin-transform-es2015-block-scoping":"6.24.1","babel-plugin-transform-es2015-classes":"6.24.1","babel-plugin-transform-es2015-computed-properties":"6.24.1","babel-plugin-transform-es2015-destructuring":"6.23.0","babel-plugin-transform-es2015-duplicate-keys":"6.24.1","babel-plugin-transform-es2015-for-of":"6.23.0","babel-plugin-transform-es2015-function-name":"6.24.1","babel-plugin-transform-es2015-literals":"6.22.0","babel-plugin-transform-es2015-object-super":"6.24.1","babel-plugin-transform-es2015-parameters":"6.24.1","babel-plugin-transform-es2015-shorthand-properties":"6.24.1","babel-plugin-transform-es2015-spread":"6.22.0","babel-plugin-transform-es2015-sticky-regex":"6.24.1","babel-plugin-transform-es2015-template-literals":"6.22.0","babel-plugin-transform-es2015-unicode-regex":"6.24.1","babel-plugin-transform-es5-property-mutators":"6.24.1","babel-plugin-transform-exponentiation-operator":"6.24.1","babel-plugin-transform-object-rest-spread":"6.23.0","buddy":"6.x.x","expect.js":"*","mocha":"*"},"main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/YR/monotone-cubic-spline.git"},"license":"MIT","scripts":{"prepublish":"buddy build","test":"NODE_ENV=test mocha test/lib-test.js --reporter spec"},"browser":"index.js","buddy":{"build":[{"input":"src/","output":".","bundle":false,"version":"es5"},{"input":"src/index.js","output":"test/lib.js"}]},"gitHead":"c2a8e9536e8788e02c32fa987aa1418f057abbf2","bugs":{"url":"https://github.com/YR/monotone-cubic-spline/issues"},"homepage":"https://github.com/YR/monotone-cubic-spline#readme","_id":"@yr/monotone-cubic-spline@1.0.3","_npmVersion":"5.0.3","_nodeVersion":"8.0.0","_npmUser":{"name":"anonymous","email":"alex@pope-industries.com"},"dist":{"integrity":"sha512-FQXkOta0XBSUPHndIKON2Y9JeQz5ZeMqLYZVVK93FliNBFm7LNMIZmY6FrMEB9XPcDbE2bekMbZD6kzDkxwYjA==","shasum":"7272d89f8e4f6fb7a1600c28c378cc18d3b577b9","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@yr/monotone-cubic-spline/-/monotone-cubic-spline-1.0.3.tgz","size":4524},"maintainers":[{"email":"saegrov@gmail.com","name":"anonymous"},{"email":"alex@pope-industries.com","name":"anonymous"},{"email":"alexander.pope@nrk.no","name":"anonymous"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/monotone-cubic-spline-1.0.3.tgz_1496836880305_0.7718168895225972"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T06:17:56.032Z","contributors":[]}},"dist-tags":{"latest":"1.0.3"},"name":"@yr/monotone-cubic-spline","time":{"created":"2022-01-27T00:16:40.013Z","modified":"2022-01-27T00:16:40.013Z","1.0.0":"2015-11-14T15:07:36.246Z","1.0.1":"2016-05-02T06:50:56.549Z","1.0.2":"2016-06-27T07:38:45.103Z","1.0.3":"2017-06-07T12:01:21.177Z"},"readme":"[![NPM Version](https://img.shields.io/npm/v/@yr/monotone-cubic-spline.svg?style=flat)](https://npmjs.org/package/@yr/monotone-cubic-spline)\n[![Build Status](https://img.shields.io/travis/YR/monotone-cubic-spline.svg?style=flat)](https://travis-ci.org/YR/monotone-cubic-spline?branch=master)\n\nConvert a series of points to a monotone cubic spline (based on D3.js implementation)\n\n## Usage\n\n```js\nconst spline = require('@yr/monotone-cubic-spline');\nconst points = spline.points([[0,0], [1,1], [2,1], [3,0], [4,0]]);\nconst svgPath = spline.svgPath(points);\n\nconsole.log(svgPath);\n// => 'M0 0C0.08333333333333333, 0.08333333333333333, ...'\n```\n\n## API\n\n**points(points)**: convert array of points (x,y) to array of bezier points (c1x,c1y,c2x,c2y,x,y)\n\n**slice(points, start, end)**: slice a segment of converted points\n\n**svgPath(points)**: convert array of bezier points to svg path (`d`) string","users":{}}