{"_id":"@alesmenzel/bezier-curve","name":"@alesmenzel/bezier-curve","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alesmenzel/bezier-curve","version":"1.0.0","description":"Bezier curve calculation","license":"MIT","main":"./dist/bezier-curve.js","types":"./dist/bezier-curve.d.ts","author":{"name":"Aleš Menzel","email":"alesmenzel@gmail.com","url":"https://github.com/alesmenzel"},"scripts":{"build":"rm -rf dist && rollup --config rollup.config.js","lint":"eslint .","format":"eslint --fix .","pretest":"run-s lint types","test":"jest --ci --config ./jest/jest.config.js","test:coverage":"jest --ci --config ./jest/jest-coverage.config.js","types":"tsc --noEmit","prepublishOnly":"npm run test","prepare":"husky install"},"engines":{"node":">=16.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/alesmenzel/bezier-curve.git"},"devDependencies":{"@babel/core":"^7.17.10","@babel/eslint-plugin":"^7.17.7","@babel/plugin-proposal-class-properties":"^7.16.7","@babel/plugin-transform-runtime":"^7.17.10","@babel/preset-env":"^7.17.10","@babel/preset-typescript":"^7.16.7","@babel/runtime":"^7.17.9","@babel/runtime-corejs3":"^7.17.9","@rollup/plugin-commonjs":"^22.0.1","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-typescript":"^8.3.2","@types/jest":"^28.1.3","@types/rollup-plugin-progress":"^1.1.1","@typescript-eslint/eslint-plugin":"^5.23.0","@typescript-eslint/parser":"^5.23.0","core-js":"^3.22.5","eslint":"^8.15.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.2.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-promise":"^6.0.0","husky":"^8.0.1","jest":"^28.1.0","lint-staged":"^13.0.3","npm-run-all":"^4.1.5","prettier":"^2.6.2","rollup":"^2.73.0","rollup-plugin-progress":"^1.1.2","rollup-plugin-terser":"^7.0.2","tslib":"^2.4.0","typescript":"^4.6.4"},"lint-staged":{"*.js":"eslint --cache --fix"},"dependencies":{"@alesmenzel/cubic-equation":"^1.0.0"},"gitHead":"99ada7720fecb10d0140651a63b4eb981363b452","bugs":{"url":"https://github.com/alesmenzel/bezier-curve/issues"},"homepage":"https://github.com/alesmenzel/bezier-curve#readme","_id":"@alesmenzel/bezier-curve@1.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-/xLZpf4Zp0wKzpqwWW4GBWKurMTfz3nGlb/vyWpEfznnV6TQ380kfDUWU6a4Y5P/t7B/ftDY4A5d8Vh+laXfUg==","shasum":"2e608073aefcbe00b5ed550fc9f02d8096e25c42","tarball":"https://registry.npmjs.org/@alesmenzel/bezier-curve/-/bezier-curve-1.0.0.tgz","fileCount":7,"unpackedSize":15051,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAb+IWWLEZNa85K1+W7Qcn5P6v4mb1jNREBigfl81nK7AiA9N4UwbTr/+XE7cZGb3alL+eyhZuX45jmZ7cju7/b7UQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuLqPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVQA/9HH5QKvQOxkm7lL3ZFSLDTskErGq248HNoQvKUj0ei4Hxw/mR\r\njHaC+WNDape/tQHy4x/t732+zfF9au+1BvMwsVSUEJLfD4iMc1kqqQFNxnAP\r\nZDf3K8+nMohXLKP9zhaPSipikI3VNgOoW2f5LOHqROFLDecfuekHqO++OGTg\r\nhYnODmfDdfwq5dUgy3R8OwnV9RLTG77gS15lU35VOjqsMicoPFa41QN4a0Aq\r\n5t4yLxxt8yA8z26z7p3Gj6jDaHlvGS8zv1izPgobYy52biZ3gd7qD4uo3usu\r\nkhbe3wpIlOJ1oyU1lRQ/xt1ymphh0//97yLcaOjh+VlB1ZhqtHsHnyHOFMSF\r\n5ztzeycMfCOJRAwe/nIBHe88A729x8TMiqUQOl0wW8pyQx6L+uOVDSN7Aq4P\r\nLefnHD3FMxOO4mbjTE4Lef+DCv2hWd7qwEnM+hHkXTKr2I9bPGwo2dKJInHm\r\n1CS4hT4Hiw4LbXobx6AHF2hFiEvitRog6QvTzT8q9Ri2zosCkfvVDz119mnD\r\n1gHm879S2IX8vPH58V6NLBJeTF1l3yuIZPp9va4j1XmAh4tcT97SW/gbDlWw\r\ndZazTBjd/pjww3ByDTrJVDFc6FFuiN+n0xSJRFj9X3GO1kReqQaEWqbIiWPX\r\nSEEAmhq0ztZmERkZRmWymfv3th3Q9pnsAKc=\r\n=FPOk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alesmenzel","email":"alesmenzel@gmail.com"},"directories":{},"maintainers":[{"name":"alesmenzel","email":"alesmenzel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bezier-curve_1.0.0_1656273551155_0.16241110011813165"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-26T19:59:11.099Z","1.0.0":"2022-06-26T19:59:11.299Z","modified":"2022-06-26T19:59:11.441Z"},"maintainers":[{"name":"alesmenzel","email":"alesmenzel@gmail.com"}],"description":"Bezier curve calculation","homepage":"https://github.com/alesmenzel/bezier-curve#readme","repository":{"type":"git","url":"git+ssh://git@github.com/alesmenzel/bezier-curve.git"},"author":{"name":"Aleš Menzel","email":"alesmenzel@gmail.com","url":"https://github.com/alesmenzel"},"bugs":{"url":"https://github.com/alesmenzel/bezier-curve/issues"},"license":"MIT","readme":"# ⤴⤵ Bezier Curve\n\nJavascript implementation of bezier curve calculation. [Bezier calculation](https://stackoverflow.com/a/8218244)\n\n## Installation\n\n```bash\nnpm install @alesmenzel/bezier-curve\n```\n\n## Usage\n\n```ts\n// The most simple definition where start and end points are [0,0] and [1,1] respectively\nconst linearCurve = new BezierCurve([{x: 0.5, y: 0.5}, {x: 0.5, y: 0.5}])\n// Explicitly settings start and end points\nconst offsetCurve = new BezierCurve([{x: 0, y: 0.2}, {x: 0.5, y: 0.5}, {x: 0.5, y: 0.5}, {x: 1, y: 0.7}])\n// Using interval different from x:[0,1],y:[0,1], e.g. x:[0,100],y:[0,255]\nconst customCurve = new BezierCurve([{x: 0, y: 100}, {x: 50, y: 120}, {x: 50, y: 140}, {x: 100, y: 255}])\n```\n","readmeFilename":"README.md"}