Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@huangjs888/damping

huangjs88824MIT2.2.1TypeScript support: included

Damping algorithm

huangjs, huangjs888, damping, bounce

readme

damping

拖动阻尼算法

安装使用


npm install @huangjs888/damping --save

使用方法


import { revokeDamping, performDamping } from '@huangjs888/damping';

const a = performDamping(100, 500);
const b = revokeDamping(a, 500);