{"_id":"@14islands/lerp","_rev":"5-1804693cbf7be22ff8a3ac2501d1c7f5","name":"@14islands/lerp","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@14islands/lerp","version":"1.0.0","description":"Frame rate independent linear interpolation function","main":"index.js","license":"MIT","author":{"name":"David Lindkvist @14islands"},"dependencies":{"lerp":"^1.0.3"},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/14islands/lerp.git"},"homepage":"https://github.com/14islands/lerp","bugs":{"url":"https://github.com/14islands/lerp/issues"},"keywords":["linear","interpolation","lerp","interp","smoothstep","mix","anim","animation","animate","fps","independent","damping"],"licenseText":"The MIT License (MIT)\nCopyright (c) 2014 Matt DesLauriers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n\n","_id":"@14islands/lerp@1.0.0","dist":{"shasum":"a7ed21add0b7afb767b28bd18d824f479eafc3e5","integrity":"sha512-R+PWo6qnlrgEecoxet6D15sSkR7IcBNNS/ivdVAGCG3laZ76bilntGe7C0G3We873j+hP5GxvGZ0w3testwAmg==","tarball":"https://registry.npmjs.org/@14islands/lerp/-/lerp-1.0.0.tgz","fileCount":6,"unpackedSize":4336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggqnKCRA9TVsSAnZWagAAlO0P/17ynv8Axh2TQYrv3LHd\n1maoqMdImIBvwim94V7WEvtWaAkbWOYMn2Z0wa6JVAKBZFQAiFwG36yiVErv\nlVyzkuAcD4VIjbAPA+hw35o7jSa0CyE6F5FJp/aT076mDJWarNTPrLsbZ4ho\nQt/4l+ysQt50VeFzuvaZFKuH0VhW+kl6EwHh62Chwzfn1egRbcnzAJWLLZoJ\n/lsTvtEC1a8QxD5yfguYzPEW++vsLRDpNQJCjBWKFyPmKC98XrHmdQ3L9Ifa\nHvmmMOZIhXBT1YJFJfiN3jdL1Na/Tr0oMPKIYnmcl7+x/74i3HFbPCGVNwyM\nZnz9McSKhJDd+dFyIvfseoQ1vEE6RgM4cJdvwKIocwHuy2zW6u+Qhx+epBWn\nf47r3t2rpXPsiYNaIucryCIRVaHBy726Y0vLqTfbRpc3y2Dk+Hk9bO4qctpd\n2s1TUH1BGg2TH6GSH0WcV5sPCr3sQjBXUpEv564+0pElZ+mloAJEXGBS9xpy\nN8cOnYqcR7+Nc/yA54p60BkJIEeC3DgmlosAQmNLx2Y/FpAHibH2K/r+zXqC\n5gL6MsmDmHyAbCOfRtdL6qHc8U14bw0onlIfbEGtDBGvA6fsQ/XSFdorASAN\nfzs9iz6PXl9GDk0ZLcVKrsJUorNvGXVay9A3t812S5AEVJtvZcVxLwlvtd5Y\n0nVc\r\n=w8O6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBMA51XFFgvFBtBrE58DOThJyJ1NV6PEA3bcZacEqFRfAiEAzcDh1s2qbZNxkXVpGMzMWzAFQuSFgg3J+ZNUM1eGTj4="}]},"_npmUser":{"name":"ffdead","email":"david+npm@14islands.om"},"directories":{},"maintainers":[{"name":"ffdead","email":"david+npm@14islands.om"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lerp_1.0.0_1619175882201_0.8470887417177004"},"_hasShrinkwrap":false},"1.0.1":{"name":"@14islands/lerp","version":"1.0.1","description":"Frame rate independent linear interpolation function","main":"index.js","license":"MIT","author":{"name":"David Lindkvist @14islands"},"dependencies":{"lerp":"^1.0.3"},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/14islands/lerp.git"},"homepage":"https://github.com/14islands/lerp","bugs":{"url":"https://github.com/14islands/lerp/issues"},"keywords":["linear","interpolation","lerp","interp","smoothstep","mix","anim","animation","animate","fps","independent","damping"],"licenseText":"The MIT License (MIT)\nCopyright (c) 2014 Matt DesLauriers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n\n","_id":"@14islands/lerp@1.0.1","dist":{"shasum":"99431daaf9515370109460ca68388064cce6b0b7","integrity":"sha512-wTeOdaFBJdo8vbP0Omigjs0cBrmDADkM4AVXY1fJ+v+LtDtVuVj4X5edc6+ZAirooRBoT0SPWVoWyaLhrdo+3w==","tarball":"https://registry.npmjs.org/@14islands/lerp/-/lerp-1.0.1.tgz","fileCount":6,"unpackedSize":4412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggrYpCRA9TVsSAnZWagAAXQsP/1wOm+8rKiUiXIjmf1k7\nt/1K1LB752DwlJORGSYUrEUG4k0CmJa6SnQ1d1leigMCnpcEc1ulGffKncUF\nlIbd9LOnAumhjKYMmCTncRnZBOpSgQzowQNkq6vMTZvfqcqraEG3YykjVGzF\nzWPOFJtT9/i/vpEOfWjuw5u1TYEUhK0ff9kzN0WdLIBBtWUk2oJRje/+sMwl\nde9I5YIqzNAQcGzQLpCKdWj4G+CkHq6O1g7uwmsfRyrLdE+RCBlkB2yNmpIO\nhP3Vpx/RVQv57VTK1Aw3t/YBn+asjTRZXGCcm/Jpryiw32h8BdC3MoHYudx9\na82A0KTokylbCXf9AOUhJ1yy6nnGobz7tE9KMsPn2VuHkLhHXZ5hi3Fi4JUW\nBjnBrumwVLiqvr7cpvM7FZSv5A+3lvDcacvAzPU5+TNchMp2GQyWrnWOYgmM\nVi2lEBC8rdkboRGBTl1vpI4p8apeDYeSvyftfz7yun8twviRqT7DmpMBmqpd\njapr0WPGcxy4BhjWvlWVST24iXlIcu3ctTg5ZIen0noG0YY5LepUR0S6juwN\ngFqdANBan1DKfLhnDZXJg0xrwsrnaJrQg+8Es/QZHBp/ppYXXnQToNHjOLm7\nlHdKDgmg91RBYKFzUyj8daToNd0Z+gymRBm8fXvOxyBxAYh2UJRSOcOlCOj8\nHLSZ\r\n=xM3H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG2YCTSKWgdbHMRwqXXU/tOqmYz6hJ4agDLEeDGrxGRHAiBJYdadL3SLwq2tncYs9LUh/mtrTrKUlgany7Osdwwdlg=="}]},"_npmUser":{"name":"ffdead","email":"david+npm@14islands.om"},"directories":{},"maintainers":[{"name":"ffdead","email":"david+npm@14islands.om"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lerp_1.0.1_1619179048780_0.5412932479162398"},"_hasShrinkwrap":false},"1.0.2":{"name":"@14islands/lerp","version":"1.0.2","description":"Frame rate independent linear interpolation function","main":"index.js","license":"MIT","author":{"name":"David Lindkvist @14islands"},"dependencies":{"lerp":"^1.0.3"},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/14islands/lerp.git"},"homepage":"https://github.com/14islands/lerp","bugs":{"url":"https://github.com/14islands/lerp/issues"},"keywords":["linear","interpolation","lerp","interp","smoothstep","mix","anim","animation","animate","fps","independent","damping"],"licenseText":"The MIT License (MIT)\nCopyright (c) 2014 Matt DesLauriers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n\n","_id":"@14islands/lerp@1.0.2","dist":{"shasum":"6f9cf8d29878e8b6dc45ccca99f0fb0005e7702d","integrity":"sha512-HziIn41XLmU6NDBcjJfmxA8mzRCOwSLZDlREYEwB2eLq7gD6jJJUwKvtq8FM6nGvpHQThUwGfAY0aHOh4ql0Fw==","tarball":"https://registry.npmjs.org/@14islands/lerp/-/lerp-1.0.2.tgz","fileCount":6,"unpackedSize":4412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggr4oCRA9TVsSAnZWagAA93kP/2z3dNzDqbqzLX/tzz9x\n5Ha1bnAQf+L5CC0f+U5nNE1q+SqEQx1jjrdXq9Ri5Tquh4xpmXn/6BadFoGa\n1qPaiI83mWSAi9TTc830RNxeouUlhdL0LGHuJHM4G/uXflRlhosYGuw5BBqp\nsSH9t8T4O9mAg1ffM/gM3qEY5orWgEC3quA729KJtpYuBbG8vGIeZFdbZfSX\nsm7ZHAD43OndQQxsZi73V52f//bYnVVr6wRZqLaBnMaKT3oo0WbC+otv2Db8\naWqKil5ZJspcht6xyDsyH9RvzbSAY7/r/rSLLVpcfyyMt38ov245biJioFp0\nS2Y9L2zimYtdzddupxGg8b3cWHwme60rg7N0DFUdQOa7Pg664S9+sMhL+PwS\nDE/F9RKkpPysx/5o29ZuUVyw9Cd5kDDqG2qNZRW5Vi57I8jlA8HtnVORtXHY\n9FARv/VTPsrD2UIAwyyYmJ1zP2OsOsM+H+2Q24pP1SnI2FIfhHBvFs8CZsdn\nbutmuQ/7yC52OvZzWZGE3w2j37Th9DRINfB4jILP2JVxLQ520/dFl/4g7ld9\nop2ayjGofRLUZTGYbt2i2Rju+qqS6Nts33Y3zWL18qVrXUIY/CllshGj2dWl\nPznxb5B48crRm3Z9pkXGm0Ay3varY1yLx1c5Qf3DfV3n8PKfouvaAQzxlkgp\nC5eR\r\n=WNs1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/DPLsCvzKDL0MKHLikPQ+iPOKnoGsCOu/F6FFVnoA+AiEA7rLvQ+Ws8X0yi0A+ZFJLyHCSbSYHFZCYFjHlbx1cBMI="}]},"_npmUser":{"name":"ffdead","email":"david+npm@14islands.om"},"directories":{},"maintainers":[{"name":"ffdead","email":"david+npm@14islands.om"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lerp_1.0.2_1619181095851_0.1207794660308863"},"_hasShrinkwrap":false},"1.0.3":{"name":"@14islands/lerp","version":"1.0.3","description":"Frame rate independent linear interpolation function","main":"index.js","license":"MIT","author":{"name":"David Lindkvist @14islands"},"dependencies":{"lerp":"^1.0.3"},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/14islands/lerp.git"},"homepage":"https://github.com/14islands/lerp","bugs":{"url":"https://github.com/14islands/lerp/issues"},"keywords":["linear","interpolation","lerp","interp","smoothstep","mix","anim","animation","animate","fps","independent","damping"],"licenseText":"The MIT License (MIT)\nCopyright (c) 2014 Matt DesLauriers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n\n","_id":"@14islands/lerp@1.0.3","dist":{"shasum":"5bb3f3f3ebd55dcb85a1a3b4f1c07a5394b2f211","integrity":"sha512-PiUuf2vrgMc+mk/VN0CaGdnm1E+UvWkstpPFQJ2Sxs9CEa05edWoBhmhjmSCSuEK072rCgXOUkyAYVKviTEqgg==","tarball":"https://registry.npmjs.org/@14islands/lerp/-/lerp-1.0.3.tgz","fileCount":6,"unpackedSize":4412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggtIDCRA9TVsSAnZWagAAO+gP/i0uD0HEThHTE6H85ubc\nq5mGEM3bm0/kcC8qJFVaPpCOO+AYVwOhJUcUs3hqDmWW/meWRStLtAnaAJ19\nlxgT418xOZ7afuX0LQepiHBueqSVK/xsMPgvxKqHTh1As6RUwMt1yT7v3iDj\nHd5vYuDKC8nC6N/n/inCumH20z6EetkzJFIpwjNcQ3t4VmCaRUXv/M0NSDS8\nrT67oESNWTzG8xHJfTBAgFN1XWFlWOTBZGBpvu1MVOhp8yRb8C6ihNJO/71q\nqOaQhjlXGUeZa5sQ903HeZ2sZ+J0nHIoCyXqRjEO225a5OhwuVFvV3hGTOOj\nEKpVDLaoxRySPrswH65SSv7oBjsSV4z1uiLa/b84dHz+d+hRu99IDNof6fxy\nEsN3GnROoUPZVT06wbfQA5nuVpOMe/gY+ZZkYkHIIBb9+4aj77t/ECvWgXoh\nYtSUFidgYQ69/OwhxmcF0Z3goV7+qAI6VD5CJFPRnyqpv1Ub2rYSZSTKHByh\nzH+0i8vdYKPlZ+KWQspColxFV3CRn67KirIBY6DYwkzsyKCukAYGhRrRRYzI\nsrP6YA7VEsYYPQSLh1LelmOkOTS7tWpJ90zYecXFpiG5EBurSZlbuJdYR91P\ngzhBMvQTC5HmhuTxmJKKLRusnyGKsIMJIDSHMYdsxddJBDBsx5iya5Pg8dUz\nivwa\r\n=1jVq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJpJl4R4ODir1zKrFFHttlyrvCt7+F+am9RCtBJf57xAIhAMKVEDw7vN/sDXZa83rOLuU+5yKV1CyP6SI0RLwGk5IQ"}]},"_npmUser":{"name":"ffdead","email":"david+npm@14islands.om"},"directories":{},"maintainers":[{"name":"ffdead","email":"david+npm@14islands.om"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lerp_1.0.3_1619186179197_0.577926631643805"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-23T11:04:41.904Z","1.0.0":"2021-04-23T11:04:42.363Z","modified":"2022-06-01T12:30:19.690Z","1.0.1":"2021-04-23T11:57:28.911Z","1.0.2":"2021-04-23T12:31:36.023Z","1.0.3":"2021-04-23T13:56:19.331Z"},"maintainers":[{"email":"fabiowabreu@gmail.com","name":"abreu00"},{"email":"david+npm@14islands.com","name":"ffdead"}],"description":"Frame rate independent linear interpolation function","homepage":"https://github.com/14islands/lerp","keywords":["linear","interpolation","lerp","interp","smoothstep","mix","anim","animation","animate","fps","independent","damping"],"repository":{"type":"git","url":"git://github.com/14islands/lerp.git"},"author":{"name":"David Lindkvist @14islands"},"bugs":{"url":"https://github.com/14islands/lerp/issues"},"license":"MIT","readme":"# Frame rate independent linear interpolation function\n\nThis is a frame rate independent linear interpolation function based on [this article](http://www.rorydriscoll.com/2016/03/07/frame-rate-independent-damping-using-lerp/). It uses [https://www.npmjs.com/package/lerp](https://www.npmjs.com/package/lerp) under the hood.\n\n```js\nvar lerp = require('@14islands/lerp')\n\nvar res = lerp(a, b, t, frameDelta, targetFps);\n```\n\n## Usage\n\n```js\n// classic lerp - works as expected\nlerp(start, end, progress)\n\n// Interpolates and adjusts for the frame delta. Default target is 60fps.\nconst frameDelta = clock.getDelta()\nlerp(start, end, alpha, frameDeltaMs)\n\n// Adjust for frame delta targeting a 120fps refresh rate.\nconst frameDelta = clock.getDelta()\nlerp(start, end, alpha, frameDelta, 120)\n```\n\n## Demo\n[Sandbox demo](https://codesandbox.io/s/fps-independent-lerp-pdiq2)\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/14islands/lerp/blob/master/LICENSE.md) for details.\n","readmeFilename":"README.md"}