拉格达
这是展示性能的性感小构件 或者是你的Javascript应用中缺少的.
将此添加到任何javascript应用程序中, 您可以在应用程序下方下降时看到 60英尺,随着雷达扫射 颜色改变,得到简奇.
使用量
雷达作为零依赖es6 javascript模块发布.
import lagRadar from './lag-radar.js';
const destroy = lagRadar({
frames: 50, // number of frames to draw, more = worse performance
speed: 0.0017, // how fast the sweep moves (rads per ms)
size: 300, // outer frame px
inset: 3, // circle inset px
parent: document.body, // DOM node to attach to
});
// later ...
destroy();
这也暴露了Css级的钩子 用来制造雷达
运行演示
npm install
npm start
open http://localhost:9080/
创世纪
此版本作者为 @mobz( 移动声) 有想法和贡献 其他人员 页:1 这段话 以 @ dan abramov (英语) 和分享世界 与爱.