Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
frame-player
Advanced tools
图片序列帧播放器,代替 gif、video 播放
npm i -S frame-player
import FramePlayer from 'frame-player'
const framePlayer = new FramePlayer(options)
<script src="//unpkg.com/frame-player"></script>
options
<Object>
canvas
<string|HTMLCanvasElement> 画布选择器 | 画布对象。默认 "canvas"
width
<number> 绘制宽度(当设置了 css width 时,作为绘制比例)height
<number> 绘制高度(当设置了 css height 时,作为绘制比例)images
<Array<string>> 图片路径数组fps
<number> 帧率。默认 24
loop
<number> 循环播放次数。-1
为无限循环,默认 0
不循环alternate
<boolean> 是否轮流反向播放,配合 loop
使用才有效果。默认 false
transparent
<boolean> 图片是否透明,true
每次绘制前清空画布。默认 false
autoPlay
<boolean> 是否自动播放,true
会在图片 ready 后立即播放。默认 false
正在加载图片的事件,可用于画面上显示加载进度
所有图片加载完成的事件
开始播放的事件
播放每一帧的事件
停止播放的事件
事件监听
desc
<boolean> 是否反向播放。默认 false
播放动画,将从之前 stop() 的位置继续播放,默认从 0
开始
frame
<number> 停止的帧索引。默认 当前播放索引
停止播放,也可以传入 frame 跳帧到指定位置
FAQs
Frame Player
The npm package frame-player receives a total of 0 weekly downloads. As such, frame-player popularity was classified as not popular.
We found that frame-player demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.